memos/web/src
Johnny 357118804e feat(web): add Focus Mode UI entry in Insert Menu
Add discoverable UI entry point for Focus Mode via Insert Menu submenu:

UI Changes:
- Add "View" submenu to Insert Menu (+ button dropdown)
- Nested menu with Focus Mode option (ChatGPT-style pattern)
- Display keyboard shortcut hint (⌘⇧F) next to menu item
- Uses DropdownMenuSub components from Radix UI

User Access Methods:
1. Keyboard: Cmd/Ctrl+Shift+F (primary, power users)
2. Mouse: + menu → View → Focus Mode (discoverable)
3. Mobile: Touch-friendly menu access

Benefits:
- Improves discoverability for new users
- Doesn't clutter main editor UI
- Educates users about keyboard shortcut
- Extensible for future view options (typewriter, reading mode, etc.)
- Follows familiar UI patterns (ChatGPT, Notion)

Files Modified:
- web/src/components/MemoEditor/ActionButton/InsertMenu.tsx
  * Add DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent
  * Add View submenu with Focus Mode entry
  * Add onToggleFocusMode prop
- web/src/components/MemoEditor/index.tsx
  * Pass toggleFocusMode to InsertMenu component
- web/src/locales/en.json
  * Add "editor.view" translation key
2025-11-17 08:55:10 +08:00
..
components feat(web): add Focus Mode UI entry in Insert Menu 2025-11-17 08:55:10 +08:00
helpers refactor: migrate eslint 2025-04-01 00:04:43 +08:00
hooks chore(web): migrate from ESLint+Prettier to Biome 2025-11-14 23:58:07 +08:00
layouts chore(web): migrate from ESLint+Prettier to Biome 2025-11-14 23:58:07 +08:00
lib chore(web): migrate from ESLint+Prettier to Biome 2025-11-14 23:58:07 +08:00
locales feat(web): add Focus Mode UI entry in Insert Menu 2025-11-17 08:55:10 +08:00
pages chore(web): migrate from ESLint+Prettier to Biome 2025-11-14 23:58:07 +08:00
router chore(web): migrate from ESLint+Prettier to Biome 2025-11-14 23:58:07 +08:00
store chore(web): migrate from ESLint+Prettier to Biome 2025-11-14 23:58:07 +08:00
themes chore(web): migrate from ESLint+Prettier to Biome 2025-11-14 23:58:07 +08:00
types feat(web): standardize theme system with auto sync option (#5231) 2025-11-08 00:41:21 +08:00
utils feat(web): standardize theme system with auto sync option (#5231) 2025-11-08 00:41:21 +08:00
App.tsx chore(web): migrate from ESLint+Prettier to Biome 2025-11-14 23:58:07 +08:00
grpcweb.ts refactor: rename workspace to instance throughout codebase 2025-11-05 23:35:35 +08:00
i18n.ts feat: add norwegian bokmål (nb) translation (#4561) 2025-03-27 13:14:12 +08:00
index.css fix(web): refactor task list styles to follow GitHub standard (#5253) 2025-11-14 23:37:00 +08:00
main.tsx refactor: rename workspace to instance throughout codebase 2025-11-05 23:35:35 +08:00