feat: Add assistant filter support to documents page (#10697)

This PR introduces support for an assistant filter on the documents page.

- Moved the existing assistant filter functionality to a standalone, reusable component.
- Updated the documents page and responses page to use the component
This commit is contained in:
Pranav
2025-01-15 21:41:07 -08:00
committed by GitHub
parent 54d629d171
commit 793b1f85f6
4 changed files with 99 additions and 51 deletions

View File

@@ -6,11 +6,12 @@ class CaptainDocument extends ApiClient {
super('captain/documents', { accountScoped: true });
}
get({ page = 1, searchKey } = {}) {
get({ page = 1, searchKey, assistantId } = {}) {
return axios.get(this.url, {
params: {
page,
searchKey,
assistant_id: assistantId,
},
});
}