-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add top level obot page to admin ui (#1993)
* fix: ensure project inherits parent from copied project - additionally ensure project IDs are converted properly when forwarding to the UI Signed-off-by: Ryan Hopper-Lowe <[email protected]> * feat: add top level obots page to admin ui * chore: fix tests * fix: invalid json tag on project type * feat: add filtering to threads page by obotId in admin ui * feat: add filters for obot children and parents in admin ui * feat: enable filtering obots by userID * feat: add ability to filter out spawned obots from obots page * feat: add column filters to top level obot page * chore: update tests in admin UI * chore: generate new types * chore: update obot page icon --------- Signed-off-by: Ryan Hopper-Lowe <[email protected]>
- Loading branch information
1 parent
59db081
commit 35fdfc2
Showing
25 changed files
with
609 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { EntityMeta } from "~/lib/model/primitives"; | ||
import { ThreadManifest } from "~/lib/model/threads"; | ||
|
||
type ProjectManifest = ThreadManifest & { | ||
parentID?: Nullish<string>; | ||
assistantID: string; | ||
editor: boolean; | ||
userID: string; | ||
}; | ||
|
||
export type Project = EntityMeta & ProjectManifest; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import queryString from "query-string"; | ||
|
||
import { ConsumptionUrl } from "~/lib/routers/baseRouter"; | ||
|
||
const buildUrl = (path: string, params?: Record<string, string>) => { | ||
const url = new URL(ConsumptionUrl(path)); | ||
|
||
if (params) { | ||
url.search = queryString.stringify(params, { skipNull: true }); | ||
} | ||
|
||
return { | ||
url: url.toString(), | ||
path: url.pathname, | ||
}; | ||
}; | ||
|
||
export const UserRoutes = { | ||
root: () => buildUrl("/"), | ||
obot: (projectId: string) => buildUrl(`/o/${projectId}`), | ||
thread: (projectId: string, threadId: string) => | ||
buildUrl(`/o/${projectId}/t/${threadId}`), | ||
}; |
Oops, something went wrong.