Commit graph

640 commits

Author SHA1 Message Date
Alf Eaton
625714a924 [visual] Fix section heading test (#14549)
GitOrigin-RevId: 8cf54515d62e538a8cd2b7711435c0d6bed4f016
2023-08-30 08:04:44 +00:00
Mathias Jakobsen
28d8c2b135 Merge pull request #14499 from overleaf/mj-table-gen-tests
[visual] Add cypress tests for table generator

GitOrigin-RevId: 03bdd315221f8a5998fd37de4c955635dcc86148
2023-08-30 08:04:40 +00:00
Alf Eaton
03fbc5e0a8 [visual] Place cursor in editable content when closing the preamble (#14162)
GitOrigin-RevId: 35f146caa4469c7f31fb00dc6047a421b1daadb0
2023-08-30 08:04:27 +00:00
Alf Eaton
1e286c263c [visual] Avoid pasting formatted content into a math container (#14475)
GitOrigin-RevId: e563e27bf80092df7b296878536ca2d4549c4d2a
2023-08-30 08:04:23 +00:00
Alf Eaton
cf319b61b4 [visual] Improved pasted HTML handling (#14384)
* Replace non-breaking spaces added by Chrome on copy
* Ignore text/html from VS Code
* Improve table border handling
* Remove unused cy.spy
* Map em to textit and strong to textbf
* Left-align table cells by default
* Remove "justify" mapping
* Detect border on table row
* Remove protection for special characters in pasted HTML
* If the only pasted HTML content is in a code block, use the plain text version
* Enable paste-html feature in Storybook
* Improve table handling

GitOrigin-RevId: a912aa1fc659089451103e63c5d0fd3ae2a30627
2023-08-30 08:04:19 +00:00
M Fahru
c648448949 Merge pull request #14506 from overleaf/mf-add-cypress-managed-user-dropdown
[web] Improve cypress tests for managed users

GitOrigin-RevId: c4ba3027afc397b7eafc556527c9e41799997008
2023-08-28 08:04:48 +00:00
Davinder Singh
acad014cc9 added Legacy keyword in front of theme names
GitOrigin-RevId: 67153578ba1cdfcc2df45caf4dee185644ec1021
2023-08-28 08:04:36 +00:00
Alexandre Bourdin
0ae6adb4d6 Merge pull request #14498 from overleaf/ab-fix-managed-user-admin
[web] Do not show Delete user button for managed group admin

GitOrigin-RevId: 4fcb120e6feec51c218cce7f381925eb12680afd
2023-08-28 08:04:18 +00:00
Alexandre Bourdin
15f26eb622 Merge pull request #14500 from overleaf/ab-hide-checkbox-managed-users
[web] Hide checkbox on the row of managed group members

GitOrigin-RevId: cda1c2be6374f69b4de43f7730e7fba734d75f0a
2023-08-28 08:04:14 +00:00
Alexandre Bourdin
0c5ba1e96e Merge pull request #14491 from overleaf/ab-update-managed-users-icons
[web] Update managed users icons and improve display on smaller screen sizes

GitOrigin-RevId: 7b6263ea9afa9bb52bed3a3f50cbe361e7064085
2023-08-28 08:04:02 +00:00
Alexandre Bourdin
796a92841f Merge pull request #14483 from overleaf/ab-fix-delete-user-button-check
[web] Show remove from group button instead of delete user if enrollment is {}

GitOrigin-RevId: d344b199be70d4661f25088962bd8158b443aed9
2023-08-25 08:04:28 +00:00
Ilkin Ismailov
52b487e7be display document path instead of file name in the main document settings menu
GitOrigin-RevId: f5e1773b8d20d2ffbfed04c8483c755d0f323cc2
2023-08-24 08:04:15 +00:00
Alf Eaton
96195177a3 Remove Grammarly warning (#14423)
GitOrigin-RevId: 623ecffabdce9fc15dfb62361822afb75bd1cfa8
2023-08-24 08:04:02 +00:00
Davinder Singh
d8c4399c01 History ui - Adding the compare dropdown on the withinSelected versions
GitOrigin-RevId: 728979b11918c9bc1e535024040d90053536251d
2023-08-24 08:03:26 +00:00
M Fahru
1e4028d05e Merge pull request #14311 from overleaf/mf-resend-surrender-email
[web] Add an option to resend managed users invite in managed users setting

GitOrigin-RevId: 2734ef3be31f77c309caec96e97411c9d48a8160
2023-08-23 08:05:50 +00:00
Davinder Singh
7e5a476a95 History UI changes- Adding enums for history versions
GitOrigin-RevId: 63f3a324889ad10e4a96994fa61f04bea4333630
2023-08-23 08:05:18 +00:00
Alexandre Bourdin
a4a5a08c31 Merge pull request #14256 from overleaf/ab-unmanaged-remove-from-group-dropdown-action
[web] Add Remove from group action in dropdown for unmanaged/pending users

GitOrigin-RevId: daa66598e42befa2f8430bdf118e907a8758d60e
2023-08-23 08:05:10 +00:00
Domagoj Kriskovic
f37ae7a5f8 [cm6] fix toggling ranges next to command (#14183)
GitOrigin-RevId: 4959419a09415b202dc7ce2271e9691d2c2387d4
2023-08-18 12:11:24 +00:00
ilkin-overleaf
b05f8ad7e7 Merge pull request #14339 from overleaf/ii-filetree-empty-space-click-3
[web] Select project root folder improvements

GitOrigin-RevId: 48b80f26adf239215bf04d3db95a61ef35b5cf77
2023-08-18 12:11:06 +00:00
Davinder Singh
3490f6a58e History UI changes- Extracting compare outside dropdown menu
GitOrigin-RevId: 67f51428debefdafe2c9bb746de5da8fc0ac5385
2023-08-18 08:05:23 +00:00
Alf Eaton
06aa92d0fd Only exclude the current command from autocompletion (#14367)
GitOrigin-RevId: 1f1dc0f2c3bcd19b12e06ec56d2d82181b0b5c6d
2023-08-18 08:05:09 +00:00
Alf Eaton
a55bb9c4b2 [visual] Improve pasting of a table containing a caption (#14322)
GitOrigin-RevId: 6d7676a9412c5614f85c17e16509c80ad937cc40
2023-08-16 08:04:01 +00:00
Alf Eaton
c8f0885316 Remove CM5 Rich Text module (#11776)
GitOrigin-RevId: 812d3b5f1df7e769c8be732ccb31653e8e9a8aa3
2023-08-16 08:03:35 +00:00
Tyna William
dd71c9924e Tw email confirmation notification (#14088)
* Edited notification copy for user with affilation that ha commons account

* edited translation key to have overleaf professional appear in bold and switched to using trans component

* changed anchor tag to button and added additional check to ensure affiliation exists before accessing institution name

* add tests for commons user confirmation notification

* edit user email context test to facilitate test data changes

* edit license in fake test data

* edit test to check text of notification for non commons user

GitOrigin-RevId: 6700ceaa066f099ce593283887fa81d72ad624b6
2023-08-15 08:03:30 +00:00
ilkin-overleaf
d8e2c10257 Merge pull request #14291 from overleaf/ii-filetree-empty-space-click-2
Select project root folder

GitOrigin-RevId: 146bf9dcbfbd037c51529b80104495bd95922471
2023-08-15 08:03:22 +00:00
ilkin-overleaf
738ff5e63c Revert filetree empty space click (#14283)
GitOrigin-RevId: e019f88631e91ffefd71cae145b5355372f12df7
2023-08-14 08:05:26 +00:00
Alf Eaton
9d390f1ab3 Updated pasted HTML tests (#14277)
GitOrigin-RevId: 2a3001a23c2cf3cd82d3d2b464b5feb858cd5885
2023-08-14 08:05:14 +00:00
Alf Eaton
253f2c53d5 [visual] Show tooltip with target for linkable nodes (#13636)
GitOrigin-RevId: c236caff7560d8d3e4f53667c7abe27b57f7711d
2023-08-14 08:05:09 +00:00
Alf Eaton
8f1de5fa09 [visual] Convert pasted HTML to LaTeX (#12094)
GitOrigin-RevId: a2fd4411ab8655eea834d321025efb9644081252
2023-08-14 08:05:05 +00:00
Alf Eaton
971e0f0e84 [visual] Add decorations for \textsuperscript and \textsubscript (#14153)
GitOrigin-RevId: 7a5bfc7077131dab7ba9569b7edc0d5daad65347
2023-08-14 08:04:50 +00:00
Alf Eaton
3ae32f8332 Merge pull request #14197 from overleaf/ii-filetree-empty-space-click
[web] Select project root folder

GitOrigin-RevId: 78272a6af16879e9c71c9167ba066c258b0ff7b7
2023-08-14 08:04:41 +00:00
Thomas
6a9c9652f9 Merge pull request #14007 from overleaf/tm-subscription-active-until-trial-ends
Show cancelled subscription will remain active until end of trial

GitOrigin-RevId: 277f477dc95869ff61cbb48cb2033ec55db3cf52
2023-08-09 08:04:28 +00:00
Tyna William
2c511c9a0d add support for newline character and semicolon seperated emails when… (#14092)
* add support for newline character and semicolon seperated emails when sharing with collaborators

* edited existing paste event to check for (and replace) white space, comma, new line and semi colon seperated emails

GitOrigin-RevId: 53eadd0ca662a2f54312294f6779cfcf3f0f2fd7
2023-08-08 08:04:20 +00:00
Alf Eaton
f8f56cea89 [cm6] Add LineBreak to LaTeX grammar, highlight and decorate (#13742)
GitOrigin-RevId: 64c54676e0284b7187678eedcc5096b1aa284cc0
2023-08-04 08:05:26 +00:00
Alf Eaton
b1d6770f1c [cypress] Avoid logging stubbed Angular events (#13983)
GitOrigin-RevId: 7268822768aaeeb54c2c42d854d73dcecc57016d
2023-08-04 08:05:03 +00:00
Domagoj Kriskovic
67632212d7 [cm6] show full title for section outline (#14100)
* [cm6] prefer showing full title in outline for sections

* fix test

* remove fallback

* test rename

GitOrigin-RevId: ac7a2a2c4fa7740a51661710953c85f03394292f
2023-08-04 08:04:15 +00:00
Tim Down
0d3af56efa Merge pull request #13911 from overleaf/td-review-panel-performance
Review panel: memoize entry views for performance

GitOrigin-RevId: 3c305845ad0914a7ffeb595e7235d7dceb4c780a
2023-07-21 08:04:49 +00:00
Alf Eaton
08c82a24a9 [visual] Apply style to the content of color commands (#13726)
GitOrigin-RevId: 4ae8b745618e91b487d17c357cdb0e697038b3a3
2023-07-19 08:04:56 +00:00
Alf Eaton
ca9593e74c [visual] Decorate quotation environments (#13728)
GitOrigin-RevId: 65c4bb8b4695d0698120936d3b2fb8ec6fa402dc
2023-07-19 08:04:52 +00:00
Domagoj Kriskovic
c21b8e31fd [visual] suport for \texttt command in maketitle (#13824)
GitOrigin-RevId: 712eb8fb4fc0f2cbc5cd3c2e39ff6b8af39c0a49
2023-07-19 08:04:28 +00:00
Alf Eaton
b284434ad2 [visual] Move the cursor after leading whitespace when creating a new list item on Enter (#13828)
GitOrigin-RevId: 2f5941627b64fb53efce0bdd6f2d888986f45a9d
2023-07-19 08:04:16 +00:00
Alf Eaton
05adb9d14d [visual] Add decorations for theorem environments (#13708)
GitOrigin-RevId: ba78be534fd7efba7d8722a214d69b21b0e3917c
2023-07-19 08:04:12 +00:00
Tim Down
49eafa2712 Merge pull request #13604 from overleaf/jk-managed-users-offboarding-ui
[web] Managed Users offboarding UI

GitOrigin-RevId: ee4a1ae7cdb0022839ef232836ef6933443400fc
2023-07-17 11:08:52 +00:00
M Fahru
c8b13102c8 Revert Tw reference manager access (#13854)
This reverts commit 85232c1559c6d2068effec50e31b8fa30bf53c89.

GitOrigin-RevId: 32475f6aabaa4f8f2f8e042d62ff07420fb32c9f
2023-07-17 11:07:45 +00:00
ilkin-overleaf
dbef201e3f Merge pull request #13801 from overleaf/ii-review-panel-migration-upgrade-track-changes-modal
[web] Create upgrade track changes modal

GitOrigin-RevId: 704ddef862ea9a2f8ca2bf63880da6e88f783724
2023-07-17 11:07:16 +00:00
ilkin-overleaf
84bbdf9772 Merge pull request #13767 from overleaf/ii-review-panel-migration-in-editor-widgets
[web] Create in editor widgets

GitOrigin-RevId: 53dfb9935ee59bbdedc353aad5e5b19f389a513c
2023-07-17 11:07:06 +00:00
Tyna William
3297506021 Revert "Revert "Tw reference manager access"" (#13825)
* Revert "Revert "Tw reference manager access""

This reverts commit 55f3512f254e136d8a239bb5d9ca39f0d04720fd.

* added conditional to check whether file linked data exists

* created new translation key for refresh error

* Fix for misleading reference manager access error to ensure users are aware only original importer of reference file can refresh it. If original importer, then user is prompted to relink provider account. Previous PR and conversation #13618.

GitOrigin-RevId: 85232c1559c6d2068effec50e31b8fa30bf53c89
2023-07-17 11:06:48 +00:00
Alf Eaton
bbbf38d76b Add decorations for textmd and textsf (#13716)
GitOrigin-RevId: c5bedf2260c4e075e458ac38f90e5746dccdde81
2023-07-17 11:04:50 +00:00
Alf Eaton
809172d531 Decorate verbatim and lstlisting environments (#13722)
GitOrigin-RevId: 2e5af20bf2fe0c7769011ecd26797e93290b4fdb
2023-07-17 11:04:40 +00:00
Alf Eaton
e7d36903bb [cm6] Add Tilde to the LaTeX grammar (#13740)
GitOrigin-RevId: 98a2e968056ba4d6e36310d4ea0f7ff2f25e373a
2023-07-17 11:04:21 +00:00
Domagoj Kriskovic
8ab6239a24 [cm6] support \emph and \textbf in maketitle (#13703)
* [cm6] support \textbf in maketitle

* support for emph

* added support for \\textbf

* fix overlapping ignored ranges

* fix overlapping fn, added test

* multiple maketitle cases in the same test

* prettier

* simplify from calculation

* added test cases from #13736

GitOrigin-RevId: 00dcf15d6d62903ae30b387a16929e68dde8ca1b
2023-07-17 11:02:11 +00:00
Domagoj Kriskovic
9cb0122ea3 [visual] support for multiple authors in /maketitle (#13713)
* [visual] support for multiple titles in /maketitle

* support \and in author name

* using isMatchWith

* fix isMatchWith check

* fix isMatchWith... again

* add tests

* test author text replace and mouse events

* prettier

* don't handle updating node events

* use the arguments order as before

GitOrigin-RevId: 99b3d1c22a2dc1258a5cdf95738852028895f54a
2023-07-17 11:00:07 +00:00
ilkin-overleaf
13a7e752d5 Merge pull request #13710 from overleaf/ii-review-panel-migration-bulk-actions-entry
[web] Create bulk actions entry and bulk actions modal

GitOrigin-RevId: c88ce6213304a110ee7410529813310b863178c1
2023-07-17 10:59:19 +00:00
ilkin-overleaf
225de683c7 Merge pull request #13687 from overleaf/ii-review-panel-migration-add-comment-entry
[web] Create add comment entry

GitOrigin-RevId: 019f508eeb3982fce082df153e56d6c3c3e3bae5
2023-07-17 10:56:42 +00:00
Alf Eaton
b63cb6e029 Merge pull request #13623 from overleaf/ae-symbol-palette-toolbar
[cm6] Only show symbol palette toolbar button when available

GitOrigin-RevId: 34e2c4e8ac1077a4da15277188ea0456db26e0af
2023-07-17 10:55:45 +00:00
Alf Eaton
d044899a28 Merge pull request #13763 from overleaf/revert-13618-tw-reference-manager-access
Revert "Tw reference manager access"

GitOrigin-RevId: d520234bd125f734037afa5208b4ad09e8f6e124
2023-07-17 10:55:36 +00:00
Tyna William
840f56f330 Merge pull request #13618 from overleaf/tw-reference-manager-access
Tw reference manager access

GitOrigin-RevId: e4554f2fcfd0aa9193497daae3ac1da18629d0de
2023-07-17 10:55:26 +00:00
Eric Mc Sween
d89b62e965 Merge pull request #13671 from overleaf/ii-review-panel-migration-aggregate-change-entry
[web] Create aggregate change entries

GitOrigin-RevId: 685ac40739f3c39665d84bd402ada21e00db5146
2023-07-17 10:54:50 +00:00
Alf Eaton
af038a9d47 Skip flaky "disables compile button while compile is running" test (#13731)
GitOrigin-RevId: c0b9dcd7438882251012b9eef913547b0a967485
2023-07-17 10:54:23 +00:00
Davinder Singh
b1f246b9ba Merge pull request #13658 from overleaf/ii-review-panel-migration-change-entry
[web] Create change entries

GitOrigin-RevId: 4d49f8b02b9bfcfe470f6db21f5347080ff47562
2023-07-17 10:53:56 +00:00
ilkin-overleaf
936ab81b65 Merge pull request #13641 from overleaf/ii-review-panel-migration-overview-view
[web] Create overview view shell for review panel

GitOrigin-RevId: 21cc8a744253aec53f089ec6e6c1221d7153f3a4
2023-07-17 10:50:58 +00:00
Alf Eaton
7202d7413e [rich text] Cover the whole command when selecting end-to-end (#11683)
GitOrigin-RevId: c3559ce68798047e7001b2a9857f2c168633af6c
2023-07-17 10:50:12 +00:00
Alf Eaton
7e20d41c4c Remove list items when list is toggled off (#13580)
GitOrigin-RevId: 19c63b26798fcf3c8e631090c614f0a693d4f071
2023-07-17 10:50:02 +00:00
Alf Eaton
bd770e8a8c Merge pull request #13600 from overleaf/ae-skip-project-list-root
Skip flaky ProjectListRoot tests

GitOrigin-RevId: a0a6d55635e63c9fb19d4e8ed8d8005af0f57515
2023-07-17 10:49:24 +00:00
Alf Eaton
283c1d7282 Merge pull request #13605 from overleaf/ae-meta-tests
[cypress] Set/reset window.metaAttributesCache globally

GitOrigin-RevId: 5aa1d5e37780b53f6ddf7d34587e2119ba328003
2023-07-17 10:49:15 +00:00
Alf Eaton
c16d2d5840 [visual] Avoid showing list environment markup when the selection is within list items (#13461)
GitOrigin-RevId: cadab83774d52dc6c4867fdd7300a1217423b837
2023-07-17 10:48:56 +00:00
ilkin-overleaf
e5d6777211 Merge pull request #13628 from overleaf/ii-review-panel-migration-resolved-comments-entry
[web] Add resolved comments entries functionality

GitOrigin-RevId: f0a8365b00c0861be12347aeaf486f7c02faf8e5
2023-07-17 10:47:41 +00:00
Domagoj Kriskovic
17452b51d7 [cm6] Add toolbar to Source Mode for Beta users (#13429)
* [cm6] toolbar for source mode

* top:0 for new toolbar

* empty div for extensions

* fix legacy css top pos

* show source toolbar split test

* prettier

* show beta icon in source editor

* dropdown toolbar wip

* fix wrong conflict resolve

* math dropdown, chrome extension fixes

* math dropdown cleanup

* sort en.json

* fix sort en.json

* using isVisual

* getMeta in component, pug update

* using flex grow

* toolbar beta badge

* remove extra whitespace

* has-legacy-toolbar class

* Increase container size

* fix tests

* prettier

* styling fixes, using SplitTestBadge

* only show source toolbar if flag is set

* fix typo

---------

Co-authored-by: Alf Eaton <alf.eaton@overleaf.com>
GitOrigin-RevId: 34b01a9421f4a0d6defc40925c5092901575946e
2023-07-17 10:46:26 +00:00
June Kelly
a14e2aecfb Merge pull request #13483 from overleaf/jk-managed-users-group-management-ui
[web] Managed Users: Update Group Member Management UI

GitOrigin-RevId: 6896951927f0e3220db59dda208d7cfe9c6c309e
2023-07-17 10:46:16 +00:00
ilkin-overleaf
9e8be31bdf Merge pull request #13573 from overleaf/ii-review-panel-migration-comment-entry
[web] Create comment entries

GitOrigin-RevId: 7f3fbe672d18d57a0f5e683e5456ea79ed295e2d
2023-07-17 10:45:32 +00:00
Alf Eaton
8402081d9b [visual] Add decoration for footnotes (#13428)
GitOrigin-RevId: b0c8e475e9d8b4a19977a48b615596b88ce65797
2023-07-17 10:44:55 +00:00
Alf Eaton
c6d832d6d9 Merge pull request #13594 from overleaf/ae-starred-caption
[cm6] Allow an asterisk after CaptionCtrlSeq

GitOrigin-RevId: e76e15afb676f6eddb8f09d710b0d90408584e29
2023-07-17 10:44:36 +00:00
Alf Eaton
db26446d76 [visual] Avoid showing braces around section headings when editing the section title (#13464)
GitOrigin-RevId: 050663e752720993ccf1ab745a8b4250d54198fc
2023-07-17 10:44:17 +00:00
Alf Eaton
adbccde085 [cm6] Move cursor over existing closing brace when inserting a required parameter (#13494)
* Move cursor over existing closing brace

* Update package-lock.json

* Update tests

GitOrigin-RevId: dd729e41c2174d9f4563f2f47efcc075c7453ced
2023-07-17 10:44:06 +00:00
Brian Gough
137eda06f0 Merge pull request #13571 from overleaf/bg-disable-flaky-cypress-tests
disable flaky cypress tests

GitOrigin-RevId: 3ff8a8a50aff352251eb23daa86e55650ca1f369
2023-07-17 10:43:11 +00:00
Alf Eaton
29f67a3985 Merge pull request #13525 from overleaf/jpa-teardown-compile-domain-test
[web] start tear down of split test for new compile domain

GitOrigin-RevId: 405bba924a37f56614b0744f47914306f420a028
2023-07-17 10:43:01 +00:00
ilkin-overleaf
b61ee4c4d3 Merge pull request #13528 from overleaf/ii-review-panel-migration-current-file-view
[web] Create initial current file container

GitOrigin-RevId: 81635922bb10b97637af296d987f28d43cf61262
2023-07-17 10:42:51 +00:00
Mathias Jakobsen
af76768eb7 Merge pull request #13372 from overleaf/mj-captcha-add-email
[web] Add recaptcha to add-email

GitOrigin-RevId: 0540e0dbc3103dcaac87dd7fabeedbc5892c371c
2023-07-17 10:40:08 +00:00
ilkin-overleaf
423f2604db Merge pull request #13500 from overleaf/ii-review-panel-migration-nav
[web] Create review panel navigation

GitOrigin-RevId: abed4171e9fd52de2f137a6cf7456791bc2ca161
2023-07-17 10:39:20 +00:00
Domagoj Kriskovic
98aa084089 [cm6+rt] getParentNode account for commands with arguments (#13345)
* [cm6+rt] getParentNode account for commands with arguments

* add explanation comment

* added test

* prettier

* check commandAncestor in same position

* using ancestorOfNodeWithToRange

* function rename

GitOrigin-RevId: bb837d956d029c1026dab03825634f24d5bc3905
2023-07-17 10:39:00 +00:00
ilkin-overleaf
15f4e2e5cc Merge pull request #13487 from overleaf/ii-review-panel-migration-create-panel-toggler
[web] Create review panel toggler

GitOrigin-RevId: f50422b99dbd8bbc2f1fbf323419ee13403c9ba6
2023-07-17 10:36:11 +00:00
ilkin-overleaf
e514e97305 Merge pull request #13438 from overleaf/ii-review-panel-toolbar-shell
[web] Create review panel toolbar shell

GitOrigin-RevId: 561fb18e1239c9b96b52944716a83cf3b8606677
2023-07-17 10:34:04 +00:00
Davinder Singh
88d0254dde Merge pull request #13390 from overleaf/ab-managers-page-styling
[web] Full-row links styling for group subscription links in dash

GitOrigin-RevId: f3b2dd67e9c14cf8fde1df41d74d380c06cc3d4c
2023-07-17 10:31:18 +00:00
Alf Eaton
5382178309 Merge pull request #13223 from overleaf/ae-typescript-upgrade
Upgrade TypeScript to v5

GitOrigin-RevId: 55d98c0e8fdeb39c1297b4472f0d604e25af995b
2023-07-17 10:29:14 +00:00
M Fahru
7bbf7baf03 Add cypress tests for editor left menu react (#10902)
GitOrigin-RevId: b24021911c85eb689519ff7a6f2b0ea7cbc4a574
2023-07-17 10:26:45 +00:00
M Fahru
8c549aa0fa Implement new welcome page UI with split test (#11677)
GitOrigin-RevId: 3028ee5e34802e4f9a29cb752fcfa8ca6d5c284c
2023-06-01 08:05:01 +00:00
Domagoj Kriskovic
a05c201652 [cm6] indent figure modal generated code (#13213)
* [cm6] indent figure modal generated code

* fix: prettier

* fix indenting issues

* add licence on top

* fix cypress tests

GitOrigin-RevId: 8f74be537f19c2a29de3c742a9bbabe43b1ce40d
2023-06-01 08:03:49 +00:00
ilkin-overleaf
bb815268f2 Merge pull request #13146 from overleaf/ii-history-react-save-last-selected-file-in-local-storage
[web] Save lastly selected file in the file tree

GitOrigin-RevId: 4b4dcdcb1340e253d4cd2003280f67385975d664
2023-05-31 08:04:59 +00:00
Miguel Serrano
51223315e4 Merge pull request #13164 from overleaf/msm-email-limit
[web] limit user email addresses to 10

GitOrigin-RevId: 038214cc921d86a407391e6c82fa9cd16a7f9646
2023-05-29 08:04:04 +00:00
Tim Down
9ca81a72af Merge pull request #13218 from overleaf/td-history-update-change-list-tests
History migration: Update change list fixtures to ensure file diff request happens

GitOrigin-RevId: 5ec7b4389bc4d7f1343f9e3d26c0bcb7e4585ab5
2023-05-26 08:04:38 +00:00
Tim Down
66dc566752 Merge pull request #13039 from overleaf/td-history-auto-select-file-ignore-binary
History migration: Ignore binary files when auto-selecting file to display in history view

GitOrigin-RevId: 7d2a314cdb3d54e4e2292a95e7633e3829ea931f
2023-05-26 08:04:29 +00:00
Alf Eaton
5827c6f05c Merge pull request #13208 from overleaf/td-history-fix-change-list-test
History migration: Skip change list tests temporarily

GitOrigin-RevId: 38cdc3c42c8eafbada75c83503afb523b5d93199
2023-05-25 08:05:43 +00:00
Alf Eaton
510e686b7b Upgrade ESLint plugins (#13153)
GitOrigin-RevId: 9cd0b4429a9c2b3df9c18957aef21ef021e5fdfd
2023-05-25 08:05:34 +00:00
Alf Eaton
929e383ed5 Merge pull request #13151 from overleaf/ae-testing-library-upgrades
Upgrade @testing-library dependencies

GitOrigin-RevId: d1be1cf58eccb5acdbac68ab48a31ab960ad72bc
2023-05-25 08:05:15 +00:00
Alf Eaton
e0d327a3e8 Skip/improve flaky pdf tests (#13150)
GitOrigin-RevId: a98b145e86f325d1df79bdbcd1825ee5a3ca6def
2023-05-25 08:04:49 +00:00
Alf Eaton
6bae8fcdde Merge pull request #13149 from overleaf/ae-flaky-projects-test
Skip flaky ProjectListRoot unit test

GitOrigin-RevId: f888555cbba2a27c493ce66a33bba3f0c6c9b814
2023-05-25 08:04:40 +00:00
Tim Down
ccacd4cab7 History migration: Abort previous GET requests (#12893)
GitOrigin-RevId: ad72d526bf7cdfa91b00025b58205d9a5b4cc62f
2023-05-25 08:04:15 +00:00
ilkin-overleaf
454f8f80c2 Merge pull request #13117 from overleaf/ii-history-react-changes-list-tests
[web] Add changes list tests

GitOrigin-RevId: 5a4e1ea647d737dc761e4258002e6507c76e95a9
2023-05-23 08:05:27 +00:00
Tim Down
fd8557ef39 Merge pull request #13159 from overleaf/td-history-comparison-text-icon-tweaks
History migration: Icon and text changes to version comparison, switch order of from and to

GitOrigin-RevId: e31db255c55caf15481ed0237875e637c0ac0861
2023-05-23 08:04:15 +00:00
Miguel Serrano
b2a0fd13e6 [web] Git Bridge modal with Personal Access Token (#13058)
* [web] Git Bridge modal with Personal Access Token

* [web] Added `git-bridge-modal-tokens` unit tests

GitOrigin-RevId: 854ce83bba91b9d97afa950d49ce18f62970fb5b
2023-05-17 09:28:10 +00:00
Mathias Jakobsen
988fc57574 Merge pull request #13077 from overleaf/mj-figure-modal-tests
[web] Add cypress tests for figure modal

GitOrigin-RevId: 4debae1c665a68fd7bfa9f0dcfc150bec38a7c64
2023-05-17 08:06:33 +00:00
Alf Eaton
c8a72e96d4 [cm6] Improve keyboard shortcuts for toggling line comments (#13067)
GitOrigin-RevId: dd08778ea3621eefa75f306b2dada3f2c484f76c
2023-05-17 08:05:28 +00:00
June Kelly
6c2bc2fe8b Merge pull request #13068 from overleaf/td-history-renamed-file-auto-select
History migration: Fix bug that prevents renamed files being automatically selected

GitOrigin-RevId: ce127b218d1eb472fe7b35467a17549f3db4bfb7
2023-05-17 08:03:58 +00:00
June Kelly
ff4ac0a803 Merge pull request #12851 from overleaf/jk-dashboard-filter-visibility
[web] Improve filter visibility on project dashboard

GitOrigin-RevId: de7a9f999d6d0164ab3c18c58e305c7c628f946c
2023-05-17 08:03:39 +00:00
Mathias Jakobsen
31190b967b [cm6] Add figure modal (#12751)
GitOrigin-RevId: 3043d1369ed85b38b1fec7479385b123a304c05b
2023-05-16 08:04:02 +00:00
Alf Eaton
ea996582bf [cm6] Improve begin environment autocompletion (#12982)
GitOrigin-RevId: 42731e6f2261f7ed9b85523a550c636968698fc3
2023-05-11 08:05:37 +00:00
Alf Eaton
466011df86 [cm6] Account for line shifts when updating the spelling line tracker (#13015)
* Use lineShift

* Use fromA instead of fromB

* Only check the update doc

* Always use oldDoc

* Copy tests

GitOrigin-RevId: 05e5516b09ee4a25d8ac2b5f2994a034f35c9e82
2023-05-11 08:04:48 +00:00
Tim Down
f8a2d85126 Merge pull request #12917 from overleaf/td-history-highlight-tooltip-improvements
History migration: Rework change marker tooltips to match Angular version behaviour

GitOrigin-RevId: c34e42db6c310521d04690de41f3bb81c219bfbc
2023-05-10 08:04:18 +00:00
Tim Down
a0e3379c86 Merge pull request #12939 from overleaf/td-history-more-update-scroll-amount
History migration: More update button scrolls next change to the centre

GitOrigin-RevId: 29d41a046f7110c246a0b9c784dedf6b148ea298
2023-05-05 08:04:53 +00:00
Jakob Ackermann
b0633b3a47 Merge pull request #12842 from overleaf/jpa-logout
[web] remove GET /logout endpoints

GitOrigin-RevId: 93f9498fdb66ece5028d90941aac50cda2737604
2023-05-04 08:05:57 +00:00
Alf Eaton
6c21f0821c [cm6] Handle multiple selection ranges when applying snippets (#12830)
* Use fork of @codemirror/autocomplete
* Handle multiple selection ranges when applying snippets

GitOrigin-RevId: 04afc087ac127206463ea3d4950284a50308364a
2023-05-04 08:04:39 +00:00
Tim Down
da916c9c13 Merge pull request #12906 from overleaf/td-history-fix-labels-test
Expect correct number of labels in history version list test

GitOrigin-RevId: 2a56b21c7359aad5111a2a7879f31fb5e7c6b73d
2023-05-02 19:45:40 +00:00
Tim Down
70bae34bd8 Add paywall to React history view (#12849)
* Implement history view paywall

* Add tests and some CSS fallbacks

* Make additional faded version above paywall non-clickable

* Change isFaded to faded for consistency

* Remove unused import

* Add missing attribute

* SHow all labels in free tier

* Address review comments

* Change Boolean conversion

Co-authored-by: ilkin-overleaf <100852799+ilkin-overleaf@users.noreply.github.com>

* Make adding or deleting a label show up in version list again

* Refactor to use visibleUpdateCount rather than maintaining two separate update arrays

* Removed unused import

* Use data-testid instead on class

* Round gradient values

* Correct test selector

---------

Co-authored-by: ilkin-overleaf <100852799+ilkin-overleaf@users.noreply.github.com>
GitOrigin-RevId: a2b021f3f4d3b9eb1358edb2ee4aa7db1bc7240e
2023-05-02 19:44:39 +00:00
Alf Eaton
e0d9069131 [cm6] Add "within selection" option to the search form (#12798)
* Use forked @codemirror/search
* Use getPanel to get the search panel
* Remove layer-based highlightSelectionMatches
* Add "within selection" option to the search form
* Add test for "replace all within selection"
* Fix tests

GitOrigin-RevId: 95ce76fd017f96278b04c16a1fd34f785f7504a3
2023-05-01 08:05:02 +00:00
Alf Eaton
1da94f029c [cm6] Avoid selecting a search match when re-opening the search panel (#12797)
GitOrigin-RevId: 32bb03b71ce56cc0dbe6f7c92cc6d85151ef1971
2023-05-01 08:04:36 +00:00
M Fahru
0648b8aa6c Implement deleted file restore for history react (#12753)
* Add strikethrough to deleted file tree item in history file tree

* Add "restore file" button on toolbar if the selected file have a `removed` operation.

* Implement "restore file" functionality on removed file:

- Refactor the `Selection` object in history context value since we need the `deletedAtV` data which currently is not passed through the state.
- Refactor and clean up file tree type system to support passing through the whole `FileDiff` object for getting the `deletedAtV` data which only appear on `removed` operation
- Implement `postJSON` with file restoration API and pass it on restore file onClick handler at toolbar

* Implement loading behaviour while restoring file is inflight:

- Add `loadingRestoreFile` to `LoadingState`
- Change restore file button to `Restoring...` when in loading state.

* Refactor:

- Rename `DiffOperation` to `FileOperation`
- Extract `isFileRemoved` and `isFileRenamed` to its own file
- Extract `Toolbar` components into small files

GitOrigin-RevId: 2e32ebd2165f73fc6533ff282a9c084162efd682
2023-04-28 08:04:59 +00:00
ilkin-overleaf
0895e33235 Merge pull request #12773 from overleaf/ii-history-react-changes-list-dropdown
[web] Actions dropdown history migration

GitOrigin-RevId: 6b7055501c5eb1529b1794db92bb9f5f3faa6648
2023-04-26 08:05:24 +00:00
Tim Down
afd1195902 Add infinite scrolling to history versions list (#12752)
* Add infinite scrolling to change list, add spinner while doing initial updates load, refactor updates state

* Update type in tests

* Update types

* Using LoadingSpinner component

* Remove redundant imports

GitOrigin-RevId: 98c7eae8edbc4d10d7107d825045edfc4159494f
2023-04-25 08:06:22 +00:00
Tim Down
bf076a8c97 Merge pull request #12721 from overleaf/td-history-improve-diff-highlight
Add markers for addition and deletion on empty lines in history diff

GitOrigin-RevId: 62e329da8bc055ee922854b837fe9465d724402e
2023-04-25 08:06:14 +00:00
Alf Eaton
acf6abb0fb [cm6] Use a block widget for padding at the top of the editor (#12705)
GitOrigin-RevId: 000ce9c90ea6b2ca72ab969704354a19fcea7a87
2023-04-25 08:04:53 +00:00
M Fahru
4dec157e08 Implement history react toolbar UI (#12530)
There are two different UI in this PR: `comparing` and `viewing` mode.

- For `comparing`, the user would be shown two separate date. It uses the `UpdateRange` object and this PR adds a timestamp to both `fromV` and `toV` of the object type.
- For `viewing`, the user would only be shown one date since `viewing` mode means viewing a specific update version.

Some other notable changes:

- Move `diff` state to `diff-view.tsx`, which contains `main.tsx` (main editor history view) and `toolbar.tsx` as its children
- refactor `autoSelectFile` by passing `updateRange.toV` directly
- refactor `updateIsSelected` by passing an object that contains `fromV` and `toV` instead of passing `update

There's also a cypress test for both the `viewing` mode and `comparing` mode in this PR.

GitOrigin-RevId: ba54f073f3479c55a39eb6b2932ea7faff78dddc
2023-04-21 08:03:39 +00:00
Mathias Jakobsen
462837b44d Merge pull request #12701 from overleaf/dk-cm6-autocomplete-item-space
[cm6] Add space after item autocomplete

GitOrigin-RevId: 6fff77c0c0563530af981bbac73b1d88e02bb759
2023-04-21 08:03:08 +00:00
Rebeka Dekany
df300b5f24 Fix: Chat messages deduplication (#12667)
* Prevent the duplicated message IDs by filtering them out

* fix: Prevent the duplicated message IDs by filtering them out

GitOrigin-RevId: 6d6c2821e6e29c9949fd323fa3a507016b51aff4
2023-04-19 08:03:31 +00:00
Tim Down
5f5e07a334 Merge pull request #12668 from overleaf/td-history-scroll-to-first-change
Scroll to first change in history document diff viewer

GitOrigin-RevId: e135877ca440c5eb2732890e8723d9098444727f
2023-04-19 08:03:28 +00:00
Tim Down
99e1ff0804 Merge pull request #12644 from overleaf/td-history-compare
Initial implementation of comparing history versions

GitOrigin-RevId: 890e270d6e41856a79689ab41ccfbde25c4703ba
2023-04-19 08:03:25 +00:00
Alf Eaton
f205d1f31d Merge pull request #12621 from overleaf/ii-history-react-delete-labels
[web] Delete history tags

GitOrigin-RevId: 0a2846bbb3e99ef632b9192a9f8c04f702645506
2023-04-19 08:02:47 +00:00
Tim Down
23b9c078b8 Merge pull request #12636 from overleaf/td-history-autoselect-file
Simplify file autoselect in React history view

GitOrigin-RevId: 43f070b26ab0a75af13063712b5cf05778da4064
2023-04-17 08:05:49 +00:00
Tim Down
38998afa8e Implement history diff viewer buttons (#12439)
GitOrigin-RevId: 0ed8eb8568783b4938188a86c4ee75c767e6d713
2023-04-17 08:05:41 +00:00
Mathias Jakobsen
73191f56e1 [cm6+rt] Make formatting commands work after UnknownCommands without arguments (#12625)
GitOrigin-RevId: 0eb59e6580d6f217c46424ede0fa6f79c8786940
2023-04-17 08:05:16 +00:00
Alf Eaton
e09a5f3adf Assert that the Rich Text document is ready before continuing with Cypress tests (#12612)
GitOrigin-RevId: fb0755200366e1129ee86ba9a439210ffe64e205
2023-04-17 08:04:59 +00:00
Alf Eaton
359255b820 [cm6] Use a modified fork of the closeBrackets extension (#12573)
GitOrigin-RevId: a24020ed216cb10defff989f5876666c29889de2
2023-04-17 08:04:43 +00:00
Jakob Ackermann
1096c81f4a Merge pull request #12528 from overleaf/jpa-switch-dashboard-events-to-bq
[web] switch events on project dashboard to BQ

GitOrigin-RevId: 9326c19cc5663c4dc2919877eb8df91e312bb902
2023-04-14 08:03:12 +00:00
Jakob Ackermann
c35da85ad8 Merge pull request #12526 from overleaf/jpa-delete-redundant-assignment
[web] delete redundant variable assignment in tests

GitOrigin-RevId: 2876e217eb21a886dc2c8b251b7208de1b5ea349
2023-04-14 08:03:09 +00:00
Tim Down
7f37ba737c Move source editor out of module (#12457)
* Update Copybara options in preparation for open-sourcing the source editor

* Move files

* Update paths

* Remove source-editor module and checks for its existence

* Explicitly mention CM6 license in files that contain code adapted from CM6

GitOrigin-RevId: 89b7cc2b409db01ad103198ccbd1b126ab56349b
2023-04-13 08:40:56 +00:00
Alexandre Bourdin
f03b75e55f [web] Tags/color picker tweaks (#12595)
* Change wording of tags header and hide uncategorized when tags list is empty

* Add a tooltip on the colour picker more button

* Fix linting

GitOrigin-RevId: 07e1c411c2c9f6f66e0a00c1610af662b829c4e4
2023-04-13 08:04:37 +00:00
Alexandre Bourdin
376d9c43a3 Merge pull request #12374 from overleaf/ab-rename-folders-tags
[web] Rename folders to tags

GitOrigin-RevId: 05c34c515aeeb9230ed512c267f97bcb679767a8
2023-04-13 08:04:20 +00:00
Alexandre Bourdin
04c204f989 [web] Colour picker for tags (#12255)
* Base for color picker

* React color picker and updated modals

* Add tag color picker to mobile dashboard

* Update existing tests and fix disable save button condition

* CSS adaptations for desktop modal streched into mobile display

* Update TagsController tests

* Add aria-hidden label on color pickers

* Fix linting

* Fix project list test

* Select random color when creating tag

* Cleanup leftovers in project list context

* Test cleanup

* Pre-select custom color and store local color while picking

* Add type to preset colors

* Add css fix to override disabled button opacity

* Skip redundant check

* Fix linting

* Add back btn-secondary on manage tag modal after rebase

GitOrigin-RevId: a4cf24e85cc0ca01466f4bf9c77482be8360e68e
2023-04-13 08:04:03 +00:00
M Fahru
fb6746a887 Add default pathname logic on history react file tree (#12505)
On history react, when the initial screen has been loaded, no default pathname is selected. This PR adds logic for selecting default pathname and getting the diff for that pathname.

Also, add some other small changes, the notable ones are:

- Refactor some type naming and file structure related to the history file tree
- Refactor file tree selectable hooks (merge selectable context provider into the main provider)
- prevent clicking on the same file tree item by checking the current pathname before invoking the handler function

GitOrigin-RevId: 73c36e9ed918ae3d92dd47108fbe8542a7571bdd
2023-04-12 08:04:58 +00:00
ilkin-overleaf
867b37b76f Merge pull request #12417 from overleaf/ii-history-react-toggle-switch
[web] Toggle switch history migration

GitOrigin-RevId: c0812d03d576bc66dd8878fa80d4ac18dd8576d0
2023-03-30 08:04:22 +00:00
Alf Eaton
4c9c0641b2 Avoid reading some variables directly from window (#12280)
GitOrigin-RevId: 93af19498470fd7903db9d55d7468f0298097cc4
2023-03-30 08:03:32 +00:00
ilkin-overleaf
122d2310e6 Merge pull request #12278 from overleaf/ii-change-email-confirmation
[web] Show confirmation modal when making an email primary

GitOrigin-RevId: eb67fc37c18a5ecd59973baa27ee9ef8e4b67423
2023-03-21 09:04:23 +00:00
Alf Eaton
f375362894 Always use mockable location methods (#11929)
* Always use mockable location methods
* Add eslint rules for window.location calls/assignment
* Add useLocation hook
* Update tests

GitOrigin-RevId: eafb846db89f884a7a9a8570cce7745be605152c
2023-03-17 09:05:21 +00:00
Jakob Ackermann
223b8aa9d8 Merge pull request #12250 from overleaf/ii-add-new-email-blocklist
[web] Prevent Blocklisted domains from appearing as suggestion

GitOrigin-RevId: b02bebe3e043cb264fbdbffce3f783b3af483e95
2023-03-17 09:04:33 +00:00
Alf Eaton
390d7ed005 Merge pull request #12176 from overleaf/ae-syntex-tests
Improve synctex Cypress tests

GitOrigin-RevId: 282d26d344d8ae08f52b18ef4c12a4c311a6b7ff
2023-03-14 09:04:14 +00:00
Mathias Jakobsen
89ce4757fa [web] Update commons notifications (#12149)
GitOrigin-RevId: 0a39ce64c34467cd3a2c3304c2aba5e8bea64956
2023-03-14 09:03:57 +00:00
Jessica Lawshe
b10b7b1f91 Merge pull request #12042 from overleaf/jel-change-plan
[web] Change plan UI now in a modal and update the style

GitOrigin-RevId: 1b501b4a972ca676cff32f531862c15c0c8f9e61
2023-03-09 09:05:05 +00:00
Alf Eaton
488c6ff919 Improve compile request mocking in Cypress tests (#12095)
GitOrigin-RevId: fdbc53148e5437e451dab4889232923c823d649e
2023-03-07 09:05:25 +00:00
ilkin-overleaf
8616c53839 Merge pull request #12031 from overleaf/ii-payment-page-migration-three-d-secure-currency-change
[web] 3DS currency change fix

GitOrigin-RevId: e88c773c6576e55803df3b2ec6a6acb1df80e8f2
2023-03-02 09:04:13 +00:00
ilkin-overleaf
48587a7a62 Merge pull request #12007 from overleaf/ii-react-subscription-dash-thank-you
[web] Successful subscription react migration

GitOrigin-RevId: 1d7d849415f4b7a7f60ddf8a4e18570ff5142196
2023-03-02 09:04:04 +00:00
ilkin-overleaf
076bc9b39c Merge pull request #11872 from overleaf/ii-payment-page-tests
[web] Payment page tests

GitOrigin-RevId: 0ab9a75c13f1833cbdf7aa71ffe3ab66174ca773
2023-03-01 09:03:22 +00:00