💄 style(chat-input): rework Plus menu with toggle switches and grouped submenus#15433
Merged
Conversation
…d submenus - Render Memory, Web Search and Formatting Tool as trailing-switch menu items (toggle via the switch or the whole row); ActionDropdown now supports `type: 'switch'` items - Merge file upload into a renamed "Attachments" submenu, and "Add Skills..." into the Skills submenu - Reorder entries (Attachments, Memory, Web Search, Skills, Formatting Tool, Advanced params) with section dividers - Make the skill search bar borderless and cancel the slot padding so it sits near the menu edge - Match the skill and Attachments submenu widths Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Sorry @rivertwilight, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
… submenu Long library/file names made each row's natural width exceed the footer-driven 320px, growing the Attachments submenu past the skill submenu. Tighten the label max-width so rows stay within 320px and the footer floor keeps both submenus level. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## canary #15433 +/- ##
==========================================
- Coverage 68.96% 65.95% -3.02%
==========================================
Files 2403 2752 +349
Lines 209462 257768 +48306
Branches 25460 26681 +1221
==========================================
+ Hits 144463 170014 +25551
- Misses 64856 87636 +22780
+ Partials 143 118 -25
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
- Attachments: align the View-more row with the menu items and span it full width; drop the Libraries/Files group headers for a flat list - Skills: replace the pinned/auto activation groups with a flat list (pinned first, each carrying a trailing Pin icon) plus a dedicated Auto-mode switch entry - Move "Add Skills" into a footer icon button beside Skill Management - Reveal each skill row's 3-dot menu only on hover Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…de-from-auto) - Drop the pin mechanism (pin indicator + pinned/auto policy options) - Manual mode: each skill row shows a trailing switch toggling whether the skill is used - Auto mode: hide the switch; the hover 3-dot offers Exclude-from-Auto / Include-in-Auto + Configure (no uninstall — that lives in the management screen) - Use the base-ui Switch so per-skill switches match the Auto-entry switch size - Fix the gap between the Add Skills and Skill Management footer icons Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
… list - Each skill row uses a trailing switch (same base-ui Switch size as the Auto entry); off excludes the skill, shown with an "Excluded" tag in auto mode - Keep the skill list stable across auto/manual (stop surfacing hidden builtin tools in manual, which made the list denser) - 3-dot is now Configure-only (hover), shown only for configurable skills Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Auto ON: each skill row shows a hover-only 3-dot menu with an "Exclude from Auto" switch item (+ Configure when available) - Auto OFF: each skill row keeps its trailing enable switch - Both use the base-ui Switch for consistent sizing Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Move the Auto skill-activation toggle into the pinned header next to the search bar, so it stays sticky while the skill list scrolls (instead of being the first scrollable row). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2 tasks
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.
💻 Change Type
🔀 Description of Change
Polishes the chat input + (Add) dropdown menu.
Interaction
ActionDropdownnow supports Base UItype: 'switch'/type: 'checkbox'menu items — the items type was widened toBaseMenuItemTypeanddecorateMenuItemspasses those self-contained items through untouched.Structure
Attachments · Memory · Web Search · ─── · Skills · ─── · Formatting Tool · Advanced parameters.Styling
🧪 How to Test
bun run type-checkand ESLint on the touched files pass.📸 Screenshots / Videos
📝 Additional Information
Adds two i18n keys —
chat:plus.addAttachments("Attachments") andeditor:actions.typobar.title("Formatting Tool"). Onlydefault,en-US, andzh-CNare populated; runpnpm i18nto fill the remaining locales.