Repository navigation
feat(chat): fold the chat menu's Governance under its title with an arrow - #2180
Merged
gkhngyk merged 1 commit intoNov 6, 2026
Merged
Conversation
…rrow The owner asked for Governance in Chat's own menu (Activity, What Chat can do, Tool policy) to open and close with a down arrow, like the groups of the app's main menu. Its title is now a button with the main menu's group pattern: lucide's ChevronDown on the right, turned to point right while closed, aria-expanded, and aria-controls while its items show. It is closed at first and open while Activity or What Chat can do is the page shown, without remembering that. The person's open/closed choice is kept in this browser with the chat menu's other folds (ansvisor.chatMenu.sections), as the main menu keeps its groups in local storage. Only Governance changes. Help: Use Chat gets an "Open and close Governance" section; the approved articles are copied again. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
This was referenced Nov 6, 2026
Merged
gkhngyk
pushed a commit
that referenced
this pull request
Nov 6, 2026
…ts (#2184) #2180 gave Governance the main menu's chevron, so the chat menu showed two kinds of arrows. Governance now uses the small ▾ / ▴ button Menu and Chats have, beside its title; it still opens by itself on its pages and remembers how it was left. Help says so. Co-authored-by: Cihan <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The owner asked for this. In Chat's own menu, Governance (Activity, What Chat can do, Tool policy) now opens and closes with a down arrow, like the groups of the app's main left menu (Execution, Analytics).
What it looks like: the GOVERNANCE title keeps its look (the menu's small uppercase section title). It is now a button across the row, with the arrow on the right. The arrow points right (›) while Governance is closed and down (⌄) while it is open, as in the main menu. Clicking the title, or Enter or Space on it, opens and closes it.
Default state and memory:
ansvisor.chatMenu.sections(governance: true= closed), so the menu keeps all its folds under one key. On one of its pages the person can still close it, and that choice is kept.Pattern reused: the main sidebar's group header in
web/src/components/layout/sidebar.tsx: atype="button"title with lucide'sChevronDown(h-3.5 w-3.5 transition-transform,-rotate-90while closed),aria-expanded,aria-controlsonly while the items are shown, and the items not rendered while closed. The open-on-its-page effect is copied too. Nothing new is built: the change is inchat-menu.tsxonly.Accessibility: a native button, so Tab reaches it and Enter or Space toggles it.
aria-expandedfollows the state, andaria-controls="chat-menu-governance"names the items while they show. The arrow isaria-hidden. When it is open, the items' links, their active state (aria-current="page"on Activity or What Chat can do) and their hover and focus styles are as before. Governance's items have no counts.Scope: only Governance changes, as the owner asked. The chat menu's other sections still fold with the ▴ / ▾ button at their right: Menu, Agents at work, Chats, and Connections inside Menu. They could follow the same title-and-chevron pattern in a follow-up if the owner wants the menu to look the same throughout.
help/chat/chat.md. The chat menu says Governance is closed until clicked (142 words), and a new section, Open and close Governance (68 words), says how it opens, closes, opens on its own pages and is remembered in this browser. Keywords: governance, open governance.approved-articles.jsonregenerated (yarn test -u src/lib/help).Related issue
None (owner's request: Chat menu UI).
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
ansvisor.chatMenu.sectionsin local storage). GOVERNANCE shows with › and no items under it.cd web && npx vitest run src/components/chat/chat-menu.test.tsx src/lib/help.Checklist
yarn lintpassesyarn typecheckpassesyarn format:checkpasseshelp/(or no user-visible change)Checks run locally on 7d3ba99 (branched from
mainat 12e5e7b, and it still merges cleanly intomain5d1a1e6):format:checkpasses.lintgives 0 errors and 7 warnings, all already onmainin files this PR doesn't touch.typecheckpasses.yarn testpasses 998/998 files, 10696 tests passed and 1 skipped.yarn buildwith CI's placeholder env passes.chat-menu.test.tsx: 23/23. There are 3 new Governance tests (closed by default and the toggle; remembered open or closed; open on its pages with the page marked and without being remembered), and the existing menu test opens Governance before it checks its links.src/lib/help: 12/12.Generated by Claude Code