Repository navigation
feat(site/src): manage project agent definitions from the project panel - #178
Conversation
|
@codex review
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9581467713
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…restating CountRow comment
|
@codex review
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 64f0c4d606
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…nt definitions story its own data and cover the row's error state
|
@codex review
|
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8cb6aeea68
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…ating dialog JSDoc and address the reader in the project definitions guidance
|
@codex review
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1bc7636a6f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…oject definitions story fixture with mock
|
@codex review
|
…s-ui-10-project # Conflicts: # docs/fork/pstack-adapter.md # site/src/api/forkAgentDefinitions.ts # site/src/api/queries/forkAgentDefinitions.test.ts # site/src/api/queries/forkAgentDefinitions.ts
|
@codex review
|
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Merge evidence for head
|
…el (#178) * feat(site/src): manage project agent definitions from the project panel * docs: describe managing project agent definitions from the project panel in the pstack adapter * refactor(site/src/pages/AgentsPage/components/ProjectPage): drop the restating CountRow comment * test(site/src/pages/AgentsPage/components/ProjectPage): give each agent definitions story its own data and cover the row's error state * docs(docs/fork): point the personal delete message reference at its shifted lines * docs(site/src/pages/AgentsPage/components/ProjectPage): drop the restating dialog JSDoc and address the reader in the project definitions guidance * test(site/src/pages/AgentsPage/components/ProjectPage): prefix the project definitions story fixture with mock
Part of #75.
Adds project agent definitions to the Agents project page, behind the
fork-agent-definitionsexperiment, on the project routes from #77 (/api/v2/chats/fork/organizations/{organization}/projects/{project}/agent-definitions).CountRow.ProjectAgentDefinitionsDialog, which reusesForkAgentDefinitionsTable(and its editor dialog) inside the project skills dialog's frame. Members withproject.permissions.update, the signalProjectSkillsDialoguses and the sameActionUpdatecheck the server makes for writes, get New agent definition, Edit, Delete and the Enabled switch. Other project members see the list read-only.AgentDefinitionScopebecomes a discriminated union with aprojecttier carryingprojectId. OnescopeEndpointsswitch picks the user, organization or project API, so the existing create, update, delete and toggle mutations work unchanged. Pending toggles are keyed by the hashed query key, so two projects never share state. The table gets project copy for its description, empty state and delete message.Tests: the query tests cover the project tier (each project its own scope, list, get and create through the project routes, update and delete without touching another project's cache). The dialog tests cover write and read-only access. The panel tests cover opening the dialog from the row and making no request while the experiment is off. Stories show the dialog list, read-only and empty states, and the panel row loaded, loading and failed.
Checks:
tsc,biome,oxlint,knip,lint:check,lint:compiler,lint:circular-deps, unit tests (170) and story tests (139) pass locally.UAT on the fork UI UAT server (local Vite at head
552368da96proxying to it), projectuat-w10-projwith a project admin, a plain project member and an org member outside the project:Not tested live: a chat in the project spawning the definition, which needs a model turn and a workspace; #77 covers it server-side.