Skip to content

feat(site/src/pages/AgentsPage): link agent definitions from the Agents sidebar and explain workspace agents in the empty state - #182

Merged
ibetitsmike merged 2 commits into
mainfrom
mike/agent-usage-2-discoverability
Nov 11, 2026
Merged

ibetitsmike merged 2 commits into
mainfrom
mike/agent-usage-2-discoverability

Conversation

@ibetitsmike

@ibetitsmike ibetitsmike commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Xum opened this PR on behalf of @ibetitsmike.

Part of #187 (U4, discoverability).

Custom agent definitions were hard to find. The personal page was reachable only through the Agents sidebar gear, then Settings, then Agent definitions. An empty list also gave no hint that agents can come from a workspace. Behind the fork-agent-definitions experiment:

  • Sidebar: the Agents sidebar nav gets an Agents row under Search. It opens the personal agent definitions page and passes the same from state as the gear, so settings can return to the page you came from. It lives in a new fork ForkSidebarNavItems, so the upstream ChatsPanel.tsx change is one element and one import. A later PR in this series points the row at an Available agents page.
  • Empty state: the definitions table's empty state (personal, organization and project) explains that chats can also use a Claude Code or Cursor agent file at .claude/agents/<name>.md in their workspace. Viewers who can create definitions get the same New agent definition button as the header (one shared action), which opens the editor and returns focus.
  • Docs: the pstack adapter doc mentions the new row and the empty state, and its source line references follow the shifted lines.

Tests: the nav item test clicks Agents and checks the route and the passed state. With the state dropped, it fails. The table view test clicks the empty state's button and checks onCreate, and the page's delete test checks that focus goes to the header button once the list is empty. The stories cover the nav item and the empty state with and without create access.

Checks: tsc, biome, oxlint, knip, lint:check, lint:compiler, lint:circular-deps, unit tests (250 in the touched dirs) and story tests (15) pass locally.

UAT on the fork UI UAT server (local Vite at head 38afcfabd2 proxying to it), 4 of 4 pass. Since then the only change is the frontend review fix that gives the empty state the header's shared New agent definition action (formerly labeled Create agent definition):

  • A member clicks Agents in the sidebar and lands on the personal definitions page, with the sidebar's return state set.
  • An admin with no personal definitions sees the workspace guidance and the empty state's create button, which opens the editor. Cancel returns focus to the button.
  • An admin on the empty organization page sees the guidance and the button.
  • A read-only auditor on the empty organization page sees the guidance and no create buttons.

Not tested live: the experiment off, because the shared server keeps it on.

…ts sidebar and explain workspace agents in the empty state
…ionsPage): share one create action between the header and the empty state
@ibetitsmike

Copy link
Copy Markdown
Owner Author

@codex review

Xum commented on behalf of @ibetitsmike.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T09:23:32.341197Z f879f1d Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: f879f1d5c4

ℹ️ 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".

@ibetitsmike
ibetitsmike marked this pull request as ready for review November 11, 2026 09:19
@ibetitsmike
ibetitsmike merged commit 857d342 into main Nov 11, 2026
11 checks passed
@ibetitsmike
ibetitsmike deleted the mike/agent-usage-2-discoverability branch November 11, 2026 09:20
@ibetitsmike

Copy link
Copy Markdown
Owner Author

Xum merged this PR on behalf of @ibetitsmike.

Merged at 857d342b62 (squash of head f879f1d5c4).

  • CI: fork-ci run 42991826366 green on the exact head, which contained main 896f09d757.
  • Codex: receipt 6791773273 on f879f1d5c4, no major issues. 0 unresolved threads.
  • UAT: 4/4 passed on 38afcfabd2. The only change since is the frontend-review fix that shares one create action between the header and the empty state, covered by unit tests.

Part of #187.

ibetitsmike added a commit that referenced this pull request Nov 11, 2026
…ts sidebar and explain workspace agents in the empty state (#182)

* feat(site/src/pages/AgentsPage): link agent definitions from the Agents sidebar and explain workspace agents in the empty state

* refactor(site/src/pages/AgentsPage/AgentSettingsPage/ForkAgentDefinitionsPage): share one create action between the header and the empty state
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant