Skip to content

fix(chat): fold Governance with the same ▾ / ▴ button as Menu and Chats - #2184

Merged
gkhngyk merged 1 commit into
ansvisor:mainfrom
cihan-gyk:fix/chat-menu-governance-arrow
Nov 6, 2026
Merged

gkhngyk merged 1 commit into
ansvisor:mainfrom
cihan-gyk:fix/chat-menu-governance-arrow

Conversation

@cihan-gyk

Copy link
Copy Markdown
Collaborator

Summary

#2180 folded the chat menu's Governance under its title with the main app menu's chevron. Menu and Chats in the same menu fold with a small ▾ / ▴ button instead, so the chat menu showed two kinds of arrows. The owner asked for one kind.

Governance now uses the same FoldButton as Menu and Chats, beside its title: ▾ while closed, ▴ while open, with the same size, class and place. The rest is unchanged:

  • it opens by itself on Activity or What Chat can do;
  • it remembers how it was left;
  • it stays closed at first.

The button's label is "Show or hide Governance", as Menu's and Chats' are. Help (help/chat/chat.md) says ▾ / ▴ now. The unused ChevronDown import is dropped.

Related issue

None. Owner feedback on #2180, 2026-11-06.

Type of change

  • feat — New feature
  • fix — Bug fix
  • chore — Maintenance / dependencies
  • docs — Documentation only
  • refactor — Code change that neither fixes a bug nor adds a feature
  • test — Adding or updating tests

How to test

  1. Open /dashboard/chat. In the chat menu, Governance has a ▾ on the right, the same as Menu and Chats.
  2. Select it. Activity, What Chat can do and Tool policy show, and it turns to ▴.
  3. Open Activity. Governance is open there by itself.

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/) — see CONTRIBUTING.md
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/)
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR
  • Help article updated under help/ (or no user-visible change) — see help/README.md

CI passed on this branch (8c910bd), run on the fork (https://github.com/cihan-gyk/ansvisor/actions/runs/42193078552): schema is up to date; web format:check, lint, typecheck, all tests and yarn build pass; server lint, format:check and all tests pass.

🤖 Generated with Claude Code

ansvisor#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: Claude Opus 5.5 <[email protected]>

@gkhngyk gkhngyk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@gkhngyk
gkhngyk merged commit e1be77b into ansvisor:main Nov 6, 2026
13 checks passed
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.

2 participants