Commit graph

715 commits

Author SHA1 Message Date
Mathias Jakobsen
144334ec58 Merge pull request #22866 from overleaf/mj-typing-delay
[web] Remove activateOnTypingDelay from CM6 autocomplete

GitOrigin-RevId: 79c39932fce818f13bada824ceaecedd15d36b21
2025-01-21 09:05:18 +00:00
Alf Eaton
17ae05a055 Add cause to "spell check loading failed" error (#22923)
GitOrigin-RevId: 37772c842bb9d92200c08fa7ce89ec0b85fe1b94
2025-01-20 09:05:02 +00:00
Alf Eaton
ce1d63d92c Create a shared module for CSS styles from user settings (#22925)
GitOrigin-RevId: 1e62258e1e38d8ab2ce8debc51c53a98f4e915f6
2025-01-20 09:04:57 +00:00
Alf Eaton
2fbb4615f9 Convert utility functions to TypeScript (#22658)
* Convert event-tracking to TypeScript

* Convert local-storage to TypeScript

* Convert mapSeries to TypeScript

* Convert SessionStorage to TypeScript

* Convert account-upgrade to TypeScript

* Convert isValidTeXFile to TypeScript

* Convert date functions to TypeScript

* Convert EventEmitter to TypeScript

* Convert isNetworkError to TypeScript

* Convert webpack-public-path to TypeScript

* Convert displayNameForUser to TypeScript

GitOrigin-RevId: 79c5a2d1101fcd520f3116f0f4af29d974189d94
2025-01-16 09:05:36 +00:00
Alf Eaton
f2f1178bcd Refactor isMac to a utility module (#22829)
GitOrigin-RevId: c6ab1dbeb1c56c35af121e7f657325a89fc847ea
2025-01-16 09:05:26 +00:00
Domagoj Kriskovic
36f2e52167 Add comment option in editor toolbar (#22849)
* Add comment option in editor toolbar

* move addComment to commands

GitOrigin-RevId: 690b70f67abe5653f28ec9ec61deb3f201a78131
2025-01-16 09:05:12 +00:00
Domagoj Kriskovic
1f23b78de2 Fixed equation preview overflow (#22769)
* Fixed equation preview overflow

* Decrease max-height to 200px

GitOrigin-RevId: 4a733d25e86b0d4adfb2dc697bc251ad244949b4
2025-01-14 09:05:15 +00:00
Alf Eaton
cffa9c1a28 Improve spell check when dictionary is edited (#22635)
GitOrigin-RevId: 20d36cb987d014809423240a46c7c577781dfde6
2025-01-14 09:05:03 +00:00
Alf Eaton
e1f880a62b Wrap dispatchSelectionAndScroll in setTimeout (#22596)
GitOrigin-RevId: 8c2c27acdbbf0e8879978e307ccf952c1be5381e
2025-01-09 09:05:08 +00:00
Alf Eaton
45facc0f78 Call MathJax.typesetClear after typesetting a table cell (#22604)
GitOrigin-RevId: d36236a47815841ee3662f1b9121b4a224d3dada
2025-01-09 09:05:04 +00:00
Alf Eaton
aaeac2cd72 Ensure that all callbacks for useEventListener are wrapped in useCallback (#22618)
GitOrigin-RevId: 4a7c409a9720eab04fc17e5111b6a3aeeac6871d
2025-01-09 09:05:00 +00:00
Alf Eaton
823069d13e Remove feedback link from spelling suggestions (#22634)
GitOrigin-RevId: f75dffe5395ad15441aee603c494afdf8488642e
2025-01-09 09:04:47 +00:00
Alf Eaton
9c9ffd8a08 Improve spell check edit tracking (#22577)
GitOrigin-RevId: 237e454b56fc18199bf64087dd3cfb93749b8468
2024-12-19 09:04:37 +00:00
Eric Mc Sween
659f15d010 Merge pull request #22571 from overleaf/dk-add-comment-mouseup2
Show add comment tooltip on mouse up

GitOrigin-RevId: d12b10c0c3d481a509c19eaacaf8055c2c65ff30
2024-12-18 09:05:47 +00:00
Alf Eaton
c0cbe51828 Avoid dispatching unnecessary transaction for review panel tooltip (#22524)
* Avoid dispatching unneeded review panel effects
* Remove event listeners

GitOrigin-RevId: 17fec45f660fdd7934aa6ef3202159377902f6a5
2024-12-17 09:05:11 +00:00
Alf Eaton
d434a2ba86 Remove toolbar visibility button (#22519)
GitOrigin-RevId: 51084bf6f21a6ecaf9d38dab33a8e1541bf62bc8
2024-12-17 09:05:06 +00:00
Alf Eaton
9b82969e44 Upgrade CodeMirror dependencies (#22489)
GitOrigin-RevId: 77d2773a382ddb8dfa8f3a66bd6f8041720490b3
2024-12-17 09:05:02 +00:00
David
4a8163b3f3 Add new trackedWrite frontend permission for review panel (#22486)
* Add new trackedWrite frontend permission for review panel

* Fix test lint

* Remove comment

* Fix codemirror tests

* hide file actions for reviewer

---------

Co-authored-by: Domagoj Kriskovic <dom.kriskovic@overleaf.com>
GitOrigin-RevId: 6aab5c662287a02750d81b3960bbdd9c98b325db
2024-12-17 09:04:48 +00:00
Domagoj Kriskovic
174d62e4cc Improve positioning of "Add comment" tooltip when selecting entire line(s) (#22277)
* Avoid obscuring text with "Add comment" tooltip when selecting entire line

* tooltip position change on direction of selection

GitOrigin-RevId: d8cd301091104dae2422e34e14f90afd4c0927c4
2024-12-09 09:04:52 +00:00
Tim Down
b3edd2b6c6 Merge pull request #22288 from overleaf/td-history-dropdown-layout-fix
Fix history dropdown layout issue in Bootstrap 3

GitOrigin-RevId: 85709eaa45fd496128afb95738841894c5d211dd
2024-12-04 09:04:51 +00:00
Alf Eaton
078a3b8d05 Use --font-sans in the Visual Editor widgets (#22085)
GitOrigin-RevId: 64a480562b3e7d2fda7d41ed402511290f800f14
2024-11-28 09:04:54 +00:00
Tim Down
065464f722 Merge pull request #22147 from overleaf/td-bs5-beta-badge-special-cases
Alpha/beta badge fixes and change warning badge colours in Bootstrap 5

GitOrigin-RevId: f60610572c62607db7e5cf349c5791c3519c74ed
2024-11-27 09:05:04 +00:00
Alf Eaton
b4f624d8f6 Record events for shortcut usage (#22062)
GitOrigin-RevId: ff85e0719fca24a3723ea62119fa254226cd65c0
2024-11-26 09:04:37 +00:00
Alf Eaton
3bbde49781 Merge pull request #22055 from overleaf/ae-restore-review-tooltips
Reapply "Allow position of review tooltip to be calculated automatically (#21803)"

GitOrigin-RevId: b6dff2d12627b04ff1859bd4765be01670256aa4
2024-11-22 09:05:33 +00:00
Alf Eaton
bc310ddd1e Revert "Allow position of review tooltip to be calculated automatically (#21803)" (#22022)
This reverts commit 7d285a9c76032a3238422e15a73ae4b819612b31.

GitOrigin-RevId: 792391619bd6f2a9483428088c31ece09a441b33
2024-11-21 09:05:12 +00:00
Antoine Clausse
e576ffd63c [web] Hide pdf-log-entry-content when empty + fixup search "count" color (#21977)
* Hide `PdfLogEntryContent` when there is no content

* Fixup in search "count": `--ol-blue-gray-4` doesn't exist in SCSS

* Update `AiErrorAssistant` with a `shouldRender` export, allowing to hide the element from the caller

* Revert "Update `AiErrorAssistant` with a `shouldRender` export, allowing to hide the element from the caller"

This reverts commit 01812fa2b108b94c99d250c9a39e4f3c41b36781.

* Hide .log-entry-content when empty, using CSS

Co-authored-by: Alf Eaton <alf.eaton@overleaf.com>

---------

Co-authored-by: Alf Eaton <alf.eaton@overleaf.com>
GitOrigin-RevId: c5096b362600058535bd645cf11dad255e941fb9
2024-11-21 09:04:34 +00:00
Alf Eaton
2304e6d32b Upgrade Lezer dependencies (#21987)
GitOrigin-RevId: 5eb834bb1144c499ea29539750f1b73edeeff2f8
2024-11-21 09:04:03 +00:00
Alf Eaton
598ccab8b4 Allow position of review tooltip to be calculated automatically (#21803)
* Remove view from textSelectedEffect
* Upgrade @codemirror/view to 6.34.3

GitOrigin-RevId: 7d285a9c76032a3238422e15a73ae4b819612b31
2024-11-21 09:03:59 +00:00
Alf Eaton
36acad4d1b Rename $SectioningCommand to $SectioningCtrlSeq or $Section (#21534)
GitOrigin-RevId: 5b3173d82ec4c00fe69e2ab059bf48a872a4ca3e
2024-11-18 09:04:51 +00:00
Alf Eaton
2dee905361 Merge pull request #21535 from overleaf/ae-grammar-grouping
* Move $MathContainer grouping into the LaTeX grammar
* Remove $Environment grouping from NodeProp.group

GitOrigin-RevId: 96c74edd818bf84acf4b492702864c3c71a9bee3
2024-11-18 09:04:46 +00:00
Antoine Clausse
bf26ef58a2 [web] Migrate "Manage Template" option in editor left menu to BS5 (#21799)
* Update manage template modal to BS5

* Update `ManageTemplateButton` to BS5

* Update `OLFormControl` prop types so it has its `as` props

* Update `LeftMenuButton` to BS5

* Fixup linting

* Update `ManageTemplateModalBody` style:

* Bold label
* Correct rows in BS3

* Set spinner color to `text-muted` instead of blue

* `npm run format:fix`

GitOrigin-RevId: c5311e4786b2859a8b7cf567d19cd3d7614dd3db
2024-11-15 09:05:37 +00:00
Domagoj Kriskovic
edb4e3d537 Improve selection detection for "Add comment" tooltip (#21731)
GitOrigin-RevId: cd13cacea0d6e45015997f3a831d0f127ddf8cd8
2024-11-12 09:05:57 +00:00
Alf Eaton
66fee7a794 Only use the LaTeX indent service for when inserting a line break (#21530)
GitOrigin-RevId: 15c5e5afdee59badc833fe2deb13a80b3c409862
2024-11-12 09:05:30 +00:00
Mathias Jakobsen
595c60327e Merge pull request #21737 from overleaf/dp-eq-preview-beta-badge-v2
Update split test badge for math preview tooltip V3

GitOrigin-RevId: 9ff41f5bc68ba6cd4d7a1c7e8d5f1f725369c02a
2024-11-11 09:05:17 +00:00
Rebeka Dekany
4563273396 Merge pull request #21680 from overleaf/rd-dyslexic-font
Add OpenDyslexic Mono typeface font to the source editor

GitOrigin-RevId: 8826e51cfa50f1d5ffc2217fb86fb4d1dec21b92
2024-11-11 09:04:42 +00:00
Domagoj Kriskovic
83bed793f5 Add sort:true when updating decorations for delete highlight (#21715)
GitOrigin-RevId: afd5aed5a4ea1ff7f9439155b5150b23666b0cc7
2024-11-08 09:06:28 +00:00
Domagoj Kriskovic
72f03b39c6 Hide "add comment" tooltip on mouse down (#21721)
* Hide "add comment" tooltip on mouse down

* using EditorView.domEventHandlers

GitOrigin-RevId: 48b7626d5c1be8a3fb0b1ee1fcc1bc7738f8dbc5
2024-11-08 09:06:23 +00:00
David
637185025f Merge pull request #21722 from overleaf/dp-revert-badge-changes
Revert "Merge pull request #21687 from overleaf/dp-eq-preview-beta-ba…

GitOrigin-RevId: 8347b1bc3b02194bf5c2c657fc85ebefb3b0cf3a
2024-11-08 09:06:01 +00:00
Rebeka Dekany
a0a164c4d0 Merge pull request #21709 from overleaf/rd-fix-command-tooltip-size
[web] Fix href command tooltip width in the editor

GitOrigin-RevId: d76e5961bd97ca16e47aa6b1eda68f4488caff69
2024-11-08 09:05:35 +00:00
David
bd15e3cc5c Merge pull request #21687 from overleaf/dp-eq-preview-beta-badge
Update split test badge for math preview tooltip

GitOrigin-RevId: fbdc7b42d3ce51f405f75232fbfd357ee6afc2a3
2024-11-08 09:05:31 +00:00
Alf Eaton
31e7f113f8 Wrap all view.dispatch in setTimeout (#21590)
GitOrigin-RevId: a78e314683642e173c61b0bef95b30f5b96c82b5
2024-11-08 09:04:48 +00:00
Alf Eaton
db8d7a7af0 Upgrade CodeMirror dependencies (#20618)
GitOrigin-RevId: c1d45e73784fd26db09e9930bc504d2d78c05b12
2024-11-08 09:04:39 +00:00
David
dfcc805549 Merge pull request #21526 from overleaf/dp-dismiss-equation-preview
Add options to disable/hide equation preview

GitOrigin-RevId: 5f71b4c747bf27ae816bdfe32c6e3e5a42f99508
2024-11-07 09:05:07 +00:00
Alf Eaton
562a4e4ce6 Avoid spell checking list environment arguments (#21483)
GitOrigin-RevId: 8fe56c53b503abddcc4f0d996707e3df12309362
2024-11-06 09:05:17 +00:00
Alf Eaton
7fa8c01e31 Disable spell check in setlength arguments (#21491)
GitOrigin-RevId: 279f5df7c97b6a6caa5a344bf50b0747402cf61d
2024-11-06 09:05:13 +00:00
Alf Eaton
a827f8835b Focus the editor after using the "Switch to editor" button (#21549)
GitOrigin-RevId: f94c6d266ec9c2c3e4a30ea2c34c937817b48596
2024-11-06 09:05:08 +00:00
Rebeka Dekany
09ad023161 Merge pull request #21561 from overleaf/rd-ide-paste
Migrate the editor pasted content popover to Bootstrap 5

GitOrigin-RevId: 2f89d0d6818e219dc5b786b5f21d4d47a91b06c8
2024-11-06 09:05:04 +00:00
Rebeka Dekany
caa446f933 Merge pull request #21512 from overleaf/rd-insert-link
Migrate the editor command tooltips to Bootstrap 5

GitOrigin-RevId: 9e3b477608e334e6e8bc0e79710cd2b3878680e6
2024-11-05 09:05:09 +00:00
Antoine Clausse
053831b48c [web] Spelling correction Dropdown to BS5 (#21493)
* Split `SpellingSuggestions` into a BS3 and BS5 version

* Migrate `B5SpellingSuggestions` to BS5

* Add `.dropdown-menu.dropdown-menu-unpositioned` styles

This makes the dropdown position itself without overflows

* Make spelling tooltip background transparent

* Migrate Cog icon to BS5

* Use `PolymorphicComponent`

Co-authored-by: Ilkin Ismailov <ilkin.ismailov@overleaf.com>

* Fix formatting

---------

Co-authored-by: Ilkin Ismailov <ilkin.ismailov@overleaf.com>
GitOrigin-RevId: aaa6c589637971031d13ac099f935fe2052e6989
2024-11-05 09:04:28 +00:00
ilkin-overleaf
1033e73844 Merge pull request #21477 from overleaf/ii-bs5-table-generator
[web] BS5 table generator

GitOrigin-RevId: 3fe10c05fa36f026c47ff4f54b15f5d76f7c509e
2024-11-04 09:04:41 +00:00