Skip to content

feat: add default workspace feature#1978

Closed
ramonouyang wants to merge 1 commit into
EKKOLearnAI:mainfrom
ramonouyang:feat/default-workspace-v2
Closed

feat: add default workspace feature#1978
ramonouyang wants to merge 1 commit into
EKKOLearnAI:mainfrom
ramonouyang:feat/default-workspace-v2

Conversation

@ramonouyang

Copy link
Copy Markdown
Contributor

Summary

Add support for configuring default workspaces in the chat panel, making it convenient for users working on fixed projects.

Features

  • Multiple default workspaces: Users can pin multiple folders as default workspaces
  • Chip-based UI: Display default workspaces as clickable chips with '/' separator
  • Visual feedback: Active workspace is highlighted with theme-consistent styling
  • Smart selection: Auto-select the most recently used default workspace
  • Responsive layout: Show as many chips as fit, with dropdown menu for overflow
  • Tooltip support: Show full path on hover for better clarity

Implementation Details

  • Added useDefaultWorkspace composable for state management
  • Store default workspaces globally in localStorage (not per-profile)
  • Track recent workspace usage for intelligent selection
  • Non-invasive changes to existing FolderPicker component
  • Full i18n support (English and Chinese)

Files Changed

  • packages/client/src/composables/useDefaultWorkspace.ts (new)
  • packages/client/src/components/hermes/chat/ChatPanel.vue
  • packages/client/src/components/hermes/chat/FolderPicker.vue
  • packages/client/src/i18n/locales/en.ts
  • packages/client/src/i18n/locales/zh.ts

Testing

  • ✅ Build successful
  • ✅ Local deployment verified
  • ✅ UI interactions tested (pin/unpin, select, dropdown menu)
  • ✅ Theme consistency verified (light/dark mode)

- Add useDefaultWorkspace composable for managing default workspaces
- Support multiple default workspaces with chip-based UI
- Add star icon to pin/unpin current workspace as default
- Show default workspace chips with '/' separator
- Implement dropdown menu for overflow workspaces
- Highlight active workspace chip with theme-consistent style
- Add tooltip for full path display in FolderPicker
- Add i18n translations for workspace-related UI elements

Features:
- Store default workspaces globally in localStorage
- Track recent workspace usage for smart selection
- Auto-select most recently used default workspace
- Visual feedback for selected workspace state
- Responsive layout with dynamic visible chip count
@EKKOLearnAI

Copy link
Copy Markdown
Owner

#1985

@EKKOLearnAI EKKOLearnAI closed this Jul 8, 2026
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