Skip to content

fix(notes): improve NEW badge UX and add star button loading state#22

Merged
typelets merged 1 commit intomainfrom
fix/ui-improvements
Oct 16, 2025
Merged

fix(notes): improve NEW badge UX and add star button loading state#22
typelets merged 1 commit intomainfrom
fix/ui-improvements

Conversation

@typelets
Copy link
Copy Markdown
Owner

Summary

Enhanced the NEW badge user experience and added visual feedback for starring notes.

Changes

NEW Badge Improvements

  • Reduced badge size (9px font with minimal padding) and added proper spacing
  • Badge now removes on any title change, not just from default templates
  • Fixed cross-tab synchronization for badge removal via WebSocket
  • Updated notes list to reflect changes when manually refreshing from editor

Star Button Enhancement

  • Added delayed loading spinner (500ms) to star button in editor panel for better visual feedback

Technical Improvements

  • Exposed setNotes from useNotes hook to support manual refresh updates

Testing

  • ✅ NEW badge appears and disappears correctly
  • ✅ Cross-tab sync works for badge removal
  • ✅ Star button shows loading state
  • ✅ Notes list updates properly on refresh

Files Changed

  • src/components/editor/hooks/useEditorEffects.ts
  • src/components/editor/index.tsx
  • src/components/layout/MainLayout.tsx
  • src/components/notes/NotesPanel/NoteCard.tsx
  • src/components/notes/NotesPanel/index.tsx
  • src/hooks/useNotes.ts
  • src/hooks/useNotesOperations.ts
  • src/hooks/useNotesSync.ts
  • src/lib/api/api.ts
  • src/types/layout.ts
  • src/types/note.ts

- Reduce NEW badge size (9px font, minimal padding) with right spacing
- Remove badge on any title change instead of only from defaults
- Fix cross-tab sync for badge removal via WebSocket
- Update notes list when manually refreshing note from editor
- Add delayed spinner (500ms) to star button in editor panel
- Expose setNotes from useNotes hook for manual refresh updates
@typelets typelets self-assigned this Oct 16, 2025
@typelets typelets merged commit 1458a65 into main Oct 16, 2025
3 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.28.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants