Skip to content

Add /charts to slash-command menu (closes #80)#100

Open
vahid-ahmadi wants to merge 1 commit into
mainfrom
feat/charts-slash-command
Open

Add /charts to slash-command menu (closes #80)#100
vahid-ahmadi wants to merge 1 commit into
mainfrom
feat/charts-slash-command

Conversation

@vahid-ahmadi

Copy link
Copy Markdown
Collaborator

Summary

Adds the /charts command to the slash-command menu. It was originally omitted because chartsMode state didn't exist on main when the slash menu shipped. That state now exists (chartsMode / setChartsMode), so this wires up the command.

Changes (all in frontend/src/app/ChatPage.tsx)

  • Removed the now-stale comment noting /charts was intentionally omitted.
  • Added { name: "charts", description: "Toggle Charts mode on/off", kind: "action" } to SLASH_COMMANDS, placed right after /plan.
  • Added a parallel branch in selectSlashCommand mirroring /plan: setChartsMode((v) => !v); closeSlash();.

Verification

npx tsc --noEmit passes with no errors.

Closes #80

🤖 Generated with Claude Code

The /charts slash command was omitted when the slash menu shipped
because chartsMode state didn't exist on main yet. It now exists, so
add a /charts entry mirroring /plan and a handler branch toggling
chartsMode.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
policyengine-uk-chat Ready Ready Preview, Comment Jun 8, 2026 8:25am

Request Review

@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

Beta preview is ready.

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.

Add /charts to slash-command menu now that chartsMode exists

1 participant