Tom Moor
db73879918
Assorted cleanup, minor bug fixes, styling fixes, eslint rules ( #5165
...
* fix: Logic error in toast
fix: Remove useless component
* fix: Logout not clearing all stores
* Add icons to notification settings
* Add eslint rule to enforce spaced comment
* Add eslint rule for arrow-body-style
* Add eslint rule to enforce self-closing components
* Add menu to api key settings
Fix: Deleting webhook subscription does not remove from UI
Split webhook subscriptions into active and inactive
Styling updates
2023-04-08 05:25:20 -07:00
Tom Moor
422bdc32d9
Add 's' method to access theme props ( #5163 )
2023-04-07 19:43:34 -07:00
Tom Moor
70beb7524f
feat: Custom accent color ( #4897 )
...
* types
* Working, but messy
* Add InputColor component
* types
* Show default theme values when not customized
* Support custom theme on team sign-in page
* Payload validation
* Custom theme on shared documents
* Improve theme validation
* Team -> Workspace in settings
2023-02-19 07:43:03 -08:00
Tom Moor
575f70a9e2
fix: useMousePosition can set state after component unmounted
...
fix: Clicking item in SubMenu does not close parent menu
2022-12-31 10:34:23 -05:00
Tom Moor
b40bb71adf
fix: Allow clicking anywhere outside command menu to close
2022-11-28 23:35:41 -05:00
Tom Moor
59d9859a64
fix: Prevent hover styling when MenuItem is controlled
2022-11-28 21:18:15 -05:00
Tom Moor
ae6855f3df
chore: Refactors towards shared menu component ( #4445 )
2022-11-19 13:15:38 -08:00
Tom Moor
b9bf2e58cb
feat: Add cursor style user preference ( #4199 )
...
* feat: Add cursor style user preference
* Remove headings for now
2022-10-01 04:39:45 -07:00
Tom Moor
fe3ff1215e
Make submenus dismissable on mobile, alternative solution closes #3948
2022-09-12 10:12:42 +01:00
Tom Moor
465a8bd505
fix: Version tag should open new tab, related type improvements
...
closes #3737
2022-07-10 11:22:45 +02:00
Tom Moor
2dc930bfe2
fix: Context menus not scrollable on iOS ( #3626 )
...
closes #3588
2022-06-04 08:15:43 -07:00
Tom Moor
da87fd422d
Remove hover styles on mobile context menus
2022-05-28 10:05:17 +02:00
Tom Moor
b152b9f17b
fix: Possible extra separator in filtered context menus
...
Todo: We need to combine this logic with the menus in the editor, but not today
closes #3506
2022-05-15 15:40:49 +01:00
Tom Moor
a736022c39
chore: cleanup
2022-04-30 09:10:35 -07:00
Tom Moor
abbc3bdb30
fix: Consistent menus in editor ( #3363 )
...
* Use scrollable in context menu
* fix: Remove old blockToolbar styles
2022-04-12 20:12:45 -07:00
Tom Moor
9281287dba
one
2022-04-09 20:25:54 -07:00
Tom Moor
2e41ace386
refactor: Move depths and breakpoints out of theme
2022-04-04 21:20:38 -07:00
忽如寄
9f400af73b
refactor: ♻️ refactor isHosted && type clean up ( #3290 )
...
* refactor: ♻️ refactor isHosted && type clean up
Change-Id: I4dfbad8a07607432801de78920ce42bf81e46498
* refactor: ♻️ code clean up
Change-Id: I8f487a33d332a2acaff84397a97371b56ace28a1
* feat: 💄 lint
Change-Id: I776b1a5e249bdb542f8e6da7cb2277821cf91094
* feat: ✨ ci type
Change-Id: I486dde7bf60321238e9a394c40ad8cdb8bfc54c8
* feat: some code sugession
Change-Id: I4761d057344b95a98e99068d312a42292977875b
2022-03-27 15:18:37 -07:00
Tom Moor
3aaaf73a28
Add mouse safe area for when moving between contextual submenus
2022-03-18 20:53:41 -07:00
Tom Moor
10cc6ed154
fix: Sidebar cannot collapse after visiting settings ( #3235 )
2022-03-13 09:35:04 -07:00
Saumya Pandey
8b0b383e9e
fix: don't hide sidebar when menu is open ( #3203 )
2022-03-05 23:00:41 +05:30
Tom Moor
4f0ee2c3f8
fix: No reserved space for submenu arrow
...
fix: Submenu arrow miss-positioned when menu is scrollable
closes #3191
2022-03-03 22:40:12 -08:00
Tom Moor
c1df8c2162
Add danger background to dangerous menu items on hover ( #3148 )
...
closes #3105
2022-02-19 18:13:05 -08:00
Tom Moor
c5a11fe17b
chore: Enable eslint to enforce curly ( #3060 )
2022-02-05 10:15:40 -08:00
Nan Yu
ae0644177b
fix: make mobile popover dialog styling nice ( #3059 )
...
* fix: make mobile popover dialog styling nice
Co-authored-by: Tom Moor <tom.moor@gmail.com >
2022-02-04 16:32:22 -08:00
Tom Moor
175857753e
fix: Bag 'o fixes
...
Remove menu hover styles on mobile
Fixed duplicate hover+active behavior on editor menus
Fixed editor menus visibly scroll to the top when reopened
Fixed some minor editor spacing issues
Renamed shred routeHelpers -> urlHelpers
2022-01-25 23:43:11 -08:00
Tom Moor
49718f2894
fix: Submenus get stuck open, closes #2938
2022-01-15 16:21:39 -08:00
Tom Moor
19704e15ba
fix: Pin icons different colored, closes #2939
2022-01-14 21:02:35 -08:00
Tom Moor
eb0c324da8
feat: Pin to home ( #2880 )
2021-12-30 16:54:02 -08:00
Tom Moor
ce614ca170
chore: Minor typescript improves
2021-12-19 22:08:25 -08:00
Tom Moor
15b1069bcc
chore: Move to Typescript ( #2783 )
...
This PR moves the entire project to Typescript. Due to the ~1000 ignores this will lead to a messy codebase for a while, but the churn is worth it – all of those ignore comments are places that were never type-safe previously.
closes #1282
2021-11-29 06:40:55 -08:00
Tom Moor
33b6fbdee9
feat: Command Bar ( #2669 )
2021-10-24 12:30:27 -07:00
polemius
b44c15c6eb
fix: small typo ( #2683 )
2021-10-22 10:23:23 -07:00
Tom Moor
a6b3dbc894
fix: Reduce sensitivity of dark icon switching
...
fix: Layout issue in icon picker in dark mode
closes #2658
2021-10-12 23:02:14 -07:00
Saumya Pandey
40e09dd829
fix: Implement custom Select Input ( #2571 )
2021-10-06 21:48:43 -07:00
Tom Moor
c5fb5f875f
flow
2021-10-04 22:08:16 -07:00
Tom Moor
765c7cdc27
fix: Max menu height should not affect mobile context menus
2021-09-26 17:19:00 -07:00
Tom Moor
6f136e342f
fix: Context menus can extend outside of window bounds
...
closes #2492
2021-09-26 17:07:44 -07:00
Tom Moor
c00001086a
fix: IconPicker unclosable on mobile
2021-09-26 15:26:10 -07:00
Saumya Pandey
2c52a8cb8b
fix: Add icons to menu items ( #2373 )
...
Co-authored-by: Tom Moor <tom.moor@gmail.com >
2021-08-13 14:21:25 -07:00
Tom Moor
6e07ee3f3e
chore: Move animations and globals from shared directory ( #2344 )
2021-07-21 10:34:55 -07:00
Tom Moor
8e5a2b85c2
feat: Improved UI motion design ( #2310 )
...
* feat: Improved UI motion design
* fix: Animation direction when screen placement causes context menu to be flipped
2021-07-12 11:57:17 -07:00
Tom Moor
5cd4dbd9d7
fix: Mispositioned TOC control on mobile due to merge conflict
...
fix: Show message in mobile TOC when no headings in document
fix: MenuItem with level should still have background edge-to-edge
fix: Show developer warning when creating incorrect menu item type
2021-07-11 13:09:10 -04:00
Saumya Pandey
7d5fbeb7b0
fix: Add access to document TOC on mobile ( #2279 )
...
* Add TOC button for mobile
* Undo NewDocumentMenu changes
* Place the toc button in the correct position.
* Pass menu props to menuitem
* Update app/menus/TableOfContentsMenu.js
Co-authored-by: Tom Moor <tom.moor@gmail.com >
* Update app/menus/TableOfContentsMenu.js
Co-authored-by: Tom Moor <tom.moor@gmail.com >
* Use the existing prop type
* Write menu inside actions prop
* Prevent blank webpage behaviour for toc
* Use href instead of level to determine target
* Update app/scenes/Document/components/Header.js
Co-authored-by: Tom Moor <tom.moor@gmail.com >
* Add heading to menu items
* Use existing Heading component
Co-authored-by: Tom Moor <tom.moor@gmail.com >
2021-07-09 04:50:27 -07:00
Tom Moor
aeba8ce4eb
fix: Empty context menu when user does not have permission to update collection
2021-07-06 22:02:31 -04:00
Tom Moor
181a20a268
fix: More context menu fixes
2021-07-05 16:35:46 -04:00
Tom Moor
286a15cf10
fix: Clicking dropdown menu items in FF ( #2269 )
...
* fix: Clicking dropdown menu items in FF
closes #2264
* fix: Anchor items, add comment
* fix: CI test memory issues
2021-07-04 06:54:40 -07:00
Tom Moor
a1d5ac0907
RTL document support ( #2263 )
...
* Basic RTL support in documents
* fix: DocumentListItem and ReferenceListItem for RTL content
2021-07-03 07:00:10 -07:00
Tom Moor
470920e2c3
feat: Allow templates from any collection to be used
...
fix: Hover state of context menu items with icons
2021-06-13 17:43:50 -07:00
Tom Moor
b0196f0cf0
feat: Rebuilt member admin ( #2139 )
2021-05-19 21:36:10 -07:00