feat(nav): add Pro/Assistant mode switch with animated transition#158
Merged
feat(nav): add Pro/Assistant mode switch with animated transition#158
Conversation
added 2 commits
March 15, 2026 15:01
Ensure workspace menu session creation uses the clicked workspace instead of the stale active workspace context, then activate that workspace so the new session opens in the expected scope.
- Add NavDisplayMode toggle (pro/assistant) persisted to localStorage
- Replace workspace-bot button with full-width mode-switch card showing
label, description, and hover hint; supports clip-path ripple animation
- Pro mode shows split Code/Cowork create buttons; Assistant mode shows
single new-session button plus My Agent footer entry
- Remove modeDropdown portal in favour of direct mode handlers
(handleCreateCodeSession, handleCreateCoworkSession,
handleCreateAssistantSession, handleToggleNavDisplayMode)
- Add handleOpenProModeSession / handleOpenAssistantModeSession that
restore the last session for the target workspace before creating a new one
- Add nav sections fade/slide animation synced with button ripple
- Update NavPanel.scss: new mode-switch card styles, split-button variants,
assistant-footer/entry styles, keyframe animations with reduced-motion guard
- ChatInput: move ModelSelector after mode-selector block
- WelcomePanel: replace CSS blink animation with hover-swap for panda frames
- Update panda_1/2/full_1/full_2 image assets
- Add i18n keys: nav.displayModes.{pro,assistant,switchToPro,switchToAssistant,
proDesc,assistantDesc}, nav.actions.openMyAgent (en-US, zh-CN)
- Import compareSessionsForDisplay for session ordering in nav handlers
Generated with BitFun
Co-Authored-By: BitFun
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
Add a Pro/Assistant nav display mode toggle to the NavPanel, replacing the old mode dropdown with a full-width mode-switch card.
Changes
NavPanel
ChatInput
WelcomePanel
i18n (en-US + zh-CN)