Tom Moor
3aaaf73a28
Add mouse safe area for when moving between contextual submenus
2022-03-18 20:53:41 -07:00
Tom Moor
5977fe4caa
fix: Editor title does not autoFocus on first load ( #3238 )
...
* fix: Editor title does not autoFocus on first load
* Detect IntersectionObserver for IE support
2022-03-13 22:08:26 -07:00
Saumya Pandey
c979d003e4
fix: navigate to all the pages of settings through command bar ( #3226 )
...
* fix: create useAuthorizedSettingsConfig
* use config to render routes
* translations and icon
* mount in CommandBar
* memo
* Update app/hooks/useSettingsAction.tsx
Co-authored-by: Tom Moor <tom.moor@gmail.com >
* fix: add actions into settings action
* remove comment
* fix: update shares
* fix: Remove Slack/Zapier from translations
Co-authored-by: Tom Moor <tom.moor@gmail.com >
2022-03-13 09:38:36 +05:30
Tom Moor
b7097654b5
chore: Allow Button s to take action prop ( #3204 )
...
* Add ability for NudeButton to take action+context
* Add example usage
* Refactor to ActionButton, convert another example
* Remove dupe label
2022-03-12 15:46:13 -08:00
Tom Moor
631d600920
feat: File attachments ( #3031 )
...
* stash
* refactor, working in non-collab + collab editor
* attachment styling
* Avoid crypto require in browser
* AttachmentIcon, handling unknown types
* Do not allow attachment creation for file sizes over limit
* Allow image as file attachment
* Upload placeholder styling
* lint
* Refactor: Do not use placeholder for file attachmentuploads
* Add loading spinner
* fix: Extra paragraphs around attachments on insert
* Bump editor
* fix build error
* Remove attachment placeholder when upload fails
* Remove unused styles
* fix: Attachments on shared pages
* Merge fixes
2022-03-06 13:58:58 -08:00
Saumya Pandey
8b0b383e9e
fix: don't hide sidebar when menu is open ( #3203 )
2022-03-05 23:00:41 +05:30
Saumya Pandey
ad2bce9c10
fix: sync the correct collection with edit action ( #3166 )
...
* fix: sync the correct collection with edit action
* fix: remove action suggestions on undefined
* Update app/hooks/useCommandBarActions.ts
Co-authored-by: Tom Moor <tom.moor@gmail.com >
2022-02-25 20:39:03 -08:00
Tom Moor
ccacb65d9e
fix: Inset icon in collection headers, minor ContentEditable refactor ( #3168 )
2022-02-25 20:38:46 -08:00
Tom Moor
a3b8e7a65e
chore: Quick refactor to usePolicy hook ( #3161 )
2022-02-23 21:33:18 -08:00
Tom Moor
d7ee801fe4
feat: Show icon on external links ( #3100 )
...
* feat: External links get treatment
* cache decorations
2022-02-16 18:05:02 -08:00
Tom Moor
25fd8466e0
perf: Move to passive scroll listeners where supported
2022-02-10 19:29:25 -08:00
Tom Moor
e8c88b3c33
fix: Flash of content when selecting text on RHS of document ( #2981 )
...
fix: Double portal
2022-01-22 18:10:23 -08:00
Tom Moor
062016b164
chore: Move editor into codebase ( #2930 )
2022-01-19 18:43:15 -08:00
Tom Moor
5abc73fabc
fix: Editor shortcut conflicts ( #2943 )
...
* fix: ctrl+n shortcut conflicts
* Update kbar with fix for ctrl-k on macOS
2022-01-15 17:47:53 -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
0340149457
chore: More type improvements
2021-12-12 18:44:32 -08:00
Tom Moor
d9cb40ae84
fix: Error at table size in dark mode
2021-12-05 18:30:21 -08:00
Tom Moor
8085c16d32
fix: Odd document header state on exact media query boundary
2021-12-03 10:34:41 -06: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
a600a897c3
fix: Clash between history and table of content shortcuts
...
related #2733
2021-11-08 18:03:03 -08:00
Tom Moor
eb9ff990ac
feat: Show collab cursor names upon loading document. ( #2732 )
...
Second attempt, adds a class to the editor for a couple of seconds when the awareness is loaded to force cursors to display
2021-11-04 17:24:23 -07:00
Tom Moor
57fa1305a6
chore: Remove react-keydown ( #2713 )
...
* First steps of remove react-keydown, replace with hook
* RegisterKeyDown component to aid transition away from react-keydown
2021-11-01 19:52:04 -07:00
Tom Moor
1819920c04
fix: React warning size of memo changing between renders
2021-10-26 00:20:32 -07:00
Tom Moor
043a7b41b5
feat: Add print, duplicate, template to command bar
2021-10-25 20:41:28 -07:00
Tom Moor
33b6fbdee9
feat: Command Bar ( #2669 )
2021-10-24 12:30:27 -07:00
Saumya Pandey
40e09dd829
fix: Implement custom Select Input ( #2571 )
2021-10-06 21:48:43 -07:00
Tom Moor
be905a6993
feat: Add idle detection and disconnect collaboration socket ( #2629 )
2021-10-06 17:37:21 -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
801f6681ba
Collaborative editing ( #1660 )
2021-09-10 22:46:57 -07:00
Tom Moor
0be40609ed
feat: Add UI to switch teams where signed in to multiple ( #2457 )
...
* feat: Add UI to switch teams where signed in to multiple
* fix: Do not display current team in switch menu
* Refactor to hook
2021-08-18 18:37:50 -07:00
Saumya Pandey
fdb85ec195
fix: Separate toasts storage to own MobX store ( #2339 )
...
Co-authored-by: Tom Moor <tom.moor@gmail.com >
2021-07-20 14:36:10 +05:30
Tom Moor
31714efb0b
feat: useBoolean hook ( #2314 )
...
* feat: Add useBoolean hook and example usage
* More example usage
* chore: More useBoolean conversion
2021-07-15 12:27:03 -07:00
Tom Moor
9f05c9bd43
chore: Upgrade React to v17 ( #2045 )
...
* chore: Upgrade React v17
* chore: Upgrade additional deps to reduce warnings
* fix: Restore react-table dep
* Bump react-avatar-editor, mobx-react
* Remove unmaintained @rehooks/window-scroll-position dep
* Bump react-waypoint dep for React 17 support
* fix: Syntax error in autotrack chunk name comment
2021-06-13 15:23:53 -07:00
Saumya Pandey
a6d4d4ea36
fix: Add Portugese, Brazil to language options ( #2164 )
...
* Add Portugese, Brazil to language options
* Upgrade date-fns package
Co-authored-by: Tom Moor <tom.moor@gmail.com >
2021-06-09 17:42:14 -07:00
Saumya Pandey
ddbbb963b6
fix: Add guard condition for matchMedia usage ( #2178 )
2021-06-05 09:51:42 -07:00
Tom Moor
44920a25f4
feat: Nested document sharing ( #2075 )
...
* migration
* frontend routing, api permissioning
* feat: apiVersion=2
* feat: re-writing document links to point to share
* poc nested documents on share links
* fix: nested shareId permissions
* ui and language tweaks, comments
* breadcrumbs
* Add icons to reference list items
* refactor: Breadcrumb component
* tweaks
* Add shared parent note
2021-05-22 19:34:05 -07:00
Tom Moor
317c52df62
fix: Improve error handling for Azure-specific errors not captured in OAuth2 strategy
2021-04-18 22:41:27 -07:00
Tom Moor
03d90b3f15
fix: Hide secondary actions in document header on mobile
...
closes #2042
2021-04-17 18:14:24 -07:00
Tom Moor
b2d703bee4
fix: Improved mobile styling
...
fix: Severla context menus miss-positioned
fix: Search filters not large enough on mobile
fix: Deep black background on mobile to match native apps
fix: Sticky document header allowing horizontal scrolling on mobile
2021-04-17 10:40:39 -07:00
Tom Moor
1101ea428b
feat: Drop to import onto collection scene ( #2005 )
...
* Refactor to functional component
* feat: Basic drag and drop into collection
2021-04-05 19:05:27 -07:00
Tom Moor
25023fb086
chore: Fix modal nesting, remove react-modal ( #1996 )
...
* chore: Fix modal nesting, remove react-modal
* tweak
* fix: Janky route jump when accessing Document -> Move from non-document scene
2021-03-30 18:46:14 -07:00
Tom Moor
1dbcc12648
feat: Inline collection editing ( #1865 )
2021-02-12 16:20:49 -08:00
Tom Moor
70626ffff0
feat: Organize sidebar ( #1834 )
...
* chore: Flip chinese label in language select
* feat: Add settings to sidebar, organize secondary items to bottom
2021-01-21 07:22:20 -08:00
Tom Moor
836b2e310a
chore: Missing translation hooks in settings sidebar
2021-01-20 23:13:51 -08:00
Tom Moor
27fca28450
fix: Account for rehydrated old users before language
...
closes #1819
2021-01-17 22:19:54 -08:00
Rubén Moya
93ac9892d5
fix: take into account user lang in Time component ( #1793 )
...
This PR takes into account the user selected language to format the time in the Time component.
Co-authored-by: tommoor <tom.moor@gmail.com >
2021-01-14 09:08:14 -08:00
Tom Moor
1285efc49a
feat: I18n ( #1653 )
...
* feat: i18n
* Changing language single source of truth from TEAM to USER
* Changes according to @tommoor comments on PR
* Changed package.json for build:i18n and translation label
* Finished 1st MVP of i18n for outline
* new translation labels & Portuguese from Portugal translation
* Fixes from PR request
* Described language dropdown as an experimental feature
* Set keySeparator to false in order to cowork with html keys
* Added useTranslation to Breadcrumb
* Repositioned <strong> element
* Removed extra space from TemplatesMenu
* Fortified the test suite for i18n
* Fixed trans component problematic
* Check if selected language is available
* Update yarn.lock
* Removed unused Trans
* Removing debug variable from i18n init
* Removed debug variable
* test: update snapshots
* flow: Remove decorator usage to get proper flow typing
It's a shame, but hopefully we'll move to Typescript in the next 6 months and we can forget this whole Flow mistake ever happened
* translate: Drafts
* More translatable strings
* Mo translation strings
* translation: Search
* async translations loading
* cache translations in client
* Revert "cache translations in client"
This reverts commit 08fb61ce36384ff90a704faffe4761eccfb76da1.
* Revert localStorage cache for cache headers
* Update Crowdin configuration file
* Moved translation files to locales folder and fixed english text
* Added CONTRIBUTING File for CrowdIn
* chore: Move translations again to please CrowdIn
* fix: loading paths
chore: Add strings for editor
* fix: Improve validation on documents.import endpoint
* test: mock bull
* fix: Unknown mimetype should fallback to Markdown parsing if markdown extension (#1678 )
* closes #1675
* Update CONTRIBUTING
* chore: Add link to translation portal from app UI
* refactor: Centralize language config
* fix: Ensure creation of i18n directory in build
* feat: Add language prompt
* chore: Improve contributing guidelines, add link from README
* chore: Normalize tab header casing
* chore: More string externalization
* fix: Language prompt in dark mode
Co-authored-by: André Glatzl <andreglatzl@gmail.com >
2020-11-29 20:04:58 -08:00
Tom Moor
ec38f5d79c
refactor: Remove old react lifecycle methods ( #1480 )
...
* refactor: Remove deprecated APIs
* bump mobx-react for hooks support
* inject -> useStores
https://mobx-react.js.org/recipes-migration\#hooks-to-the-rescue
* chore: React rules of hooks lint
2020-08-23 11:51:56 -07:00