Skip to content

feat(ux): improve sidebar ergonomics#402

Closed
glhrmv wants to merge 19 commits intorefactoringhq:mainfrom
glhrmv:improve-types-ux
Closed

feat(ux): improve sidebar ergonomics#402
glhrmv wants to merge 19 commits intorefactoringhq:mainfrom
glhrmv:improve-types-ux

Conversation

@glhrmv
Copy link
Copy Markdown

@glhrmv glhrmv commented Apr 28, 2026

The "Types" part of the sidebar could use some UX and ergonomic improvements. I've made a few changes, let me know what you think.

Added

  • Added "Delete type" option to the right-click context menu, integrated with the existing confirm-delete dialog and useDeleteActions hook, to give the user an option to quickly delete a type.
  • Type deletions now show "Type permanently deleted" (derived from entry type) rather than the generic "Note permanently deleted", regardless of deletion path.
  • Changed "Rename section" → "Rename type" throughout (locale keys, UI strings, component interactions)
  • Rename input now has right margin to avoid covering the count badge; long type names truncate with ellipsis.
  • Double-click the type name to inline-rename; double-click anywhere else on the header to open the type's definition note.
  • Added Phosphor icons to each menu item: pencil (rename), palette (change icon/color), trash (delete); renamed "Customize" → "Change" in the UI

Demo

Screen.Recording.2026-04-28.at.15.46.36.mov

@glhrmv glhrmv changed the title feat(types): improve sidebar UX feat(ux): improve sidebar ergonomics Apr 29, 2026
@glhrmv
Copy link
Copy Markdown
Author

glhrmv commented Apr 29, 2026

I don't mind resolving the merge conflicts but first I'd like to know whether this improvement is worthwhile. @LucaRonin any thoughts? :-)

@LucaRonin
Copy link
Copy Markdown
Collaborator

Love this! Will merge asap, thank you!

@glhrmv glhrmv force-pushed the improve-types-ux branch from ed42d1c to cf93107 Compare April 29, 2026 20:39
@glhrmv
Copy link
Copy Markdown
Author

glhrmv commented Apr 29, 2026

Rebased from upstream - it's ready.

@glhrmv glhrmv force-pushed the improve-types-ux branch 3 times, most recently from da742e0 to 9ed459e Compare April 29, 2026 22:45
@glhrmv
Copy link
Copy Markdown
Author

glhrmv commented Apr 29, 2026

I didn't include it in the demo, but here's what the right-click context menu on types looks like with these changes.
image

@glhrmv glhrmv force-pushed the improve-types-ux branch from f7e9dbb to 516f1f9 Compare April 30, 2026 11:17
@glhrmv
Copy link
Copy Markdown
Author

glhrmv commented Apr 30, 2026

That rebase took some effort but it looks clean and ready to go. @LucaRonin

@LucaRonin
Copy link
Copy Markdown
Collaborator

Merged after some tweaks — closing this now. Thanks again for the contribution!

@LucaRonin LucaRonin closed this Apr 30, 2026
@glhrmv glhrmv deleted the improve-types-ux branch April 30, 2026 22:34
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