feat(nav): add Pro/Assistant mode switch with animated transition by GCWing · Pull Request #158 · GCWing/BitFun
- 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