Skip to content

remember last used workspace when creating a note#781

Merged
moehdotdev merged 1 commit into
mainfrom
home-uiux-changes
Jun 3, 2026
Merged

remember last used workspace when creating a note#781
moehdotdev merged 1 commit into
mainfrom
home-uiux-changes

Conversation

@moehdotdev

Copy link
Copy Markdown
Member

when a user has multiple workspaces, the create note button used to always show a dropdown to pick one every time. now it remembers the last workspace you used and surfaces it as the default, with a chevron dropdown next to it if you want to switch.

before :
image

now :
image

what changed:

  • added CREATE_NOTE_WORKSPACE_STORAGE_KEY to persist the last selected workspace id in localStorage (replaced the old unused PreferredAction type and STORAGE_KEY)
  • on mount, the sidebar header reads the saved workspace id and resolves it against the loaded workspaces
  • if the saved workspace no longer exists (deleted/removed), it gets cleaned up from localStorage automatically
  • the create note button now has two states:
    • saved workspace exists: split button left side creates a note directly in that workspace, right chevron opens a dropdown to pick a different one
    • no saved workspace: full-width dropdown to pick (same as before)
  • extracted createNoteInWorkspace callback that handles both saving to localStorage and triggering note creation
  • swapped TbSelector for ChevronDown for consistency
  • fixed loading state order (spinner before text) and added align="end" to the dropdown content
  • bumped convex-helpers from 0.1.79 to 0.1.118

picking a workspace every single time is friction, especially if you mostly work in one. this makes the common case one click while keeping the option to switch.

@vercel

vercel Bot commented Jun 3, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
notevo Ready Ready Preview, Comment Jun 3, 2026 12:14pm

@moehdotdev moehdotdev merged commit 131c884 into main Jun 3, 2026
2 checks passed
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.

1 participant