Skip to content

Commit fbc02d2

Browse files
authored
Merge pull request #276 from iceljc/features/refine-chat-window
add similar search
2 parents 358c49a + 22f4bbb commit fbc02d2

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

src/lib/helpers/types/agentTypes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
* @property {import('$commonTypes').Pagination} pager - Pagination
3030
* @property {string} [type]
3131
* @property {string} [agentName]
32+
* @property {string} [similarName]
3233
* @property {boolean} [isPublic]
3334
* @property {boolean} [disabled]
3435
* @property {string[]} [agentIds]

src/lib/helpers/types/pluginTypes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
* @typedef {Object} PluginFilter
2424
* @property {import('$commonTypes').Pagination} pager - Pagination
2525
* @property {string[]} [names] - The plugin names
26+
* @property {string} [similarName] - The plugin similar name
2627
*/
2728

2829
export default {};

src/routes/page/agent/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
5252
filter = {
5353
pager: { page: firstPage, size: pageSize, count: 0 },
54-
agentName: event.payload || null
54+
similarName: event.payload || null
5555
};
5656
getPagedAgents();
5757
});

src/routes/page/plugin/+page.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,9 @@
3636
unsubscriber = globalEventStore.subscribe((/** @type {import('$commonTypes').GlobalEvent} */ event) => {
3737
if (event.name !== GlobalEvent.Search) return;
3838
39-
const names = event.payload ? [event.payload] : undefined;
4039
filter = {
4140
pager: { page: firstPage, size: pageSize, count: 0 },
42-
names: names
41+
similarName: event.payload || null
4342
};
4443
getPagedPlugins();
4544
});

0 commit comments

Comments
 (0)