Antoine Clausse and Copybot
b901bb6c75
[web] Update fetch-mock to version 12 ( #24837 )
...
* Update fetch-mock to version 12
* Replace `fetchMock.done` by `fetchMock.callHistory.done`
* Replace `…Mock.called` by `…Mock.callHistory.called`
* Replace `fetchMock.reset` by `fetchMock.hardReset`
* Replace `fetchMock.restore` by `fetchMock.hardReset`
* Replace `fetchMock.resetHistory` by `fetchMock.clearHistory`
* Replace `fetchMock.calls` by `fetchMock.callHistory.calls`
* Replace `fetchMock.flush` by `fetchMock.callHistory.flush`
* Update tests for fetch-mock version 12
See https://www.wheresrhys.co.uk/fetch-mock/docs/Usage/upgrade-guide
* Update stories for fetch-mock version 12
* Remove `overwriteRoutes` option
* Add `fetchMock.spyGlobal()` to storybook
* Remove deprecated `sendAsJson` param
* Replace `fetchMock.hardReset()` by `fetchMock.removeRoutes().clearHistory()`
* Fixup fetch-mock in storybook:
Call `mockGlobal` inside the hook, call `removeRoutes` and `unmockGlobal` on cleanup
Behaviour can be tested by navigating between
https://storybook.dev-overleaf.com/main/?path=/story/editor-ai-error-assistant-compile-log-entries--first-log-entry
https://storybook.dev-overleaf.com/main/?path=/story/editor-ai-error-assistant-compile-log-entries--rate-limited
https://storybook.dev-overleaf.com/main/?path=/story/project-list-notifications--project-invite
https://storybook.dev-overleaf.com/main/?path=/story/project-list-notifications--project-invite-network-error
And clicking the buttons
GitOrigin-RevId: 35611b4430259e4c21c3d819ad18b2e6dab66242
2025-04-17 08:06:24 +00:00
Domagoj Kriskovic and Copybot
30c5495b21
Update share modal copy for reviewer role ( #24694 )
...
* Update share modal copy for reviewer role
* fix ShareProjectModal test
* use "limited_to_n_collaborators_per_project"
GitOrigin-RevId: f5afcb18a3921a6b1132a4c323af9d8395a7d07b
2025-04-15 08:05:14 +00:00
Tim Down and Copybot
28468e134c
Merge pull request #24660 from overleaf/td-bs5-remove-react-bootstrap-0
...
Remove react-bootstrap 0.33.1
GitOrigin-RevId: c320a6b18c576afdc0fd49559915d3d2f3a7a1ef
2025-04-10 08:04:50 +00:00
Domagoj Kriskovic and Copybot
1fb18b092d
Add upgrade prompt for track changes in share modal ( #24572 )
...
* Add upgrade prompt for track changes in share modal
* remove message from invite.jsx
* Fix itemToDisabled in Select
GitOrigin-RevId: 5ba9e2b063c7e26a4c39b9e973eddce36a5b4733
2025-04-07 08:05:00 +00:00
Domagoj Kriskovic and Copybot
f36c87b301
Update share modal dropdown with a description for reviewers in a free project ( #24571 )
...
* Update collaborator select dropdown with a description for reviewers in free project
* Update share-project-modal test
* Fix saas-e2e tests
* fix server pro tests
* fix cypress multiple inputs selection
* fix testid case
GitOrigin-RevId: 5369828334596d80988aba168385f0a51eea998f
2025-04-03 08:04:59 +00:00
Eric Mc Sween and Copybot
e4dae982d2
Merge pull request #24225 from overleaf/em-reviewers-share-modal
...
Count reviewers towards collaborator limit in share modal
GitOrigin-RevId: 27ec3a787124be7590791412d914ec6da78bab35
2025-03-24 10:51:09 +00:00
Kristina and Copybot
70a17768a3
Merge pull request #23268 from overleaf/kh-rm-dead-link-sharing-code
...
[web] remove deprecated project sharing modal
GitOrigin-RevId: 7b25918363c27154e0000e9497847217f2317fce
2025-02-04 09:04:33 +00:00
roo hutton and Copybot
fca6c952f8
Merge pull request #19391 from overleaf/rh-readd-collaborator
...
[web] Re-add collaborator email after removed from invite input
GitOrigin-RevId: 629ac28292978d24323ff2ba53ae1c9987bce9a2
2024-07-23 08:04:35 +00:00
roo hutton and Copybot
8b41d26750
Make "Read only" casing consistent ( #19236 )
...
GitOrigin-RevId: 9769fccd7507a8fa58786492acc1875ac68062bd
2024-07-03 08:04:11 +00:00
roo hutton and Copybot
268291b52d
Merge pull request #19181 from overleaf/rh-share-modal-collab-view
...
[web] Styling tweaks in new share modal
GitOrigin-RevId: 2b69612aff518ae0cb4f08851adc73971e5ac983
2024-06-28 08:05:13 +00:00
Jakob Ackermann and Copybot
aa480a2663
Merge pull request #18898 from overleaf/jpa-no-window
...
[web] migrate from window attributes to getMeta
GitOrigin-RevId: 3dcf1ab6b01155e5e4abeb3e78d0fa9053e055bc
2024-06-19 08:04:21 +00:00
Alf Eaton and Copybot
c24ace801b
Remove Angular ( #17534 )
...
GitOrigin-RevId: 7a0d45e17d9905fa75569e2d19ca59caa4a41565
2024-06-06 08:04:09 +00:00
Alf Eaton and Copybot
9729befe59
Merge pull request #18170 from overleaf/ae-token-access-page
...
Convert token access page to React
GitOrigin-RevId: d7434f0de395c47a95d00767727fbe9d43f9abca
2024-05-03 08:05:01 +00:00
ilkin-overleaf and Copybot
2f803292b4
Merge pull request #16857 from overleaf/ii-share-modal-click
...
[web] Clickable share modal buttons
GitOrigin-RevId: db6bef9b63e98007741d88b291a282d6ea4a68c5
2024-02-06 09:03:40 +00:00
ilkin-overleaf and Copybot
a44a6a22dc
Merge pull request #16662 from overleaf/ii-share-modal-click-2
...
[web] Share modal select contact
GitOrigin-RevId: e43575cd97ad8e4bca249967bdf0cfc587213cc4
2024-01-26 09:03:42 +00:00
Jessica Lawshe and Copybot
8da063d640
Merge pull request #15326 from overleaf/jel-link-sharing
...
[web] Add prefix of token hash to link sharing URLs
GitOrigin-RevId: 4b764c076a335768ab261dd1e181d90ce00fd1a2
2023-10-25 08:04:59 +00:00
Jakob Ackermann and Copybot
9daa8f5d98
Merge pull request #15040 from overleaf/jpa-js-to-jsx
...
[web] rename all the JSX files to .jsx/.tsx
GitOrigin-RevId: 82056ae47e017523722cf258dcc83c8a925a28f7
2023-09-29 08:04:29 +00:00
Tyna William and Copybot
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 and Copybot
4c9c0641b2
Avoid reading some variables directly from window ( #12280 )
...
GitOrigin-RevId: 93af19498470fd7903db9d55d7468f0298097cc4
2023-03-30 08:03:32 +00:00
Alf Eaton and Copybot
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
M Fahru and Copybot
29fbc253fd
Clean up link sharing upgrade prompt test and keep the default variant
...
GitOrigin-RevId: d34ed081bbc61dfc74a7117c0ba633db4b5a0bad
2023-01-20 14:13:51 +00:00
M Fahru and Copybot
eb63eadca1
Fix link sharing upgrade prompt show/hide logic
...
GitOrigin-RevId: 58c1fbdea566b48e770f9f7c7fd5f926fb1fdb37
2022-07-27 08:05:29 +00:00
Davinder Singh and Copybot
d730d20264
Merge pull request #8753 from overleaf/ds-admin-user-info-email-management
...
Admin user info page- email management row migrated to react
GitOrigin-RevId: 63ebcf6c5f11bdc29badd3be84ecf49ae3fe28ba
2022-07-21 08:03:43 +00:00
M Fahru and Copybot
045a1523d9
Explicitly name projectOwnerEmail to the test for clarity
...
GitOrigin-RevId: 816faa68b7f8664269757918aac8199cbe3fc10f
2022-07-12 08:04:28 +00:00
M Fahru and Copybot
3990e182d7
fix ShareProjectModal test case for non project owners cases
...
GitOrigin-RevId: 413de85b57e638defb5d240bd6275126e75a4114
2022-07-12 08:04:21 +00:00
M Fahru and Copybot
114b275e3b
change "admin" to "project-owner" in test file description and comments
...
GitOrigin-RevId: f99231359ebd20d14aec8ca08d4cb9780abfb915
2022-07-12 08:04:15 +00:00
M Fahru and Copybot
ce352bba4e
fix ShareProectModal test case on displaying the project members and invites
...
GitOrigin-RevId: 07e7737fdc97733a834a53add40fc7b433b790f1
2022-07-12 08:04:08 +00:00
M Fahru and Copybot
b245617b61
Import USER_ID and USER_EMAIL in ShareProjectModal test file from EditorProviders test mock
...
GitOrigin-RevId: e45bb0806cc4e0a4b315b8098da6e628c7f427d1
2022-07-12 08:04:01 +00:00
M Fahru and Copybot
d84ba96ecb
Remove unused isProjectOwner prop from ShareProjectModal
...
GitOrigin-RevId: e2f16694958172ad0ad3643c07a99daf1d0afe09
2022-07-12 08:03:55 +00:00
M Fahru and Copybot
e26c90f5fc
Rename isAdmin to isProjectOwner in he ShareProjectContext to avoid confusion
...
GitOrigin-RevId: 0bfc7317b197960114f2a06fbbc20818bc4c5ffb
2022-07-12 08:03:42 +00:00
Timothée Alby and Copybot
22e24b1763
Merge pull request #8627 from overleaf/ta-a-an-overleaf
...
Fix Wording with appName Translations
GitOrigin-RevId: 435719fa4428ffba06bc80db91bca2e6dcaf295f
2022-07-08 08:03:06 +00:00
Timothée Alby and Copybot
3c01402bbd
Merge pull request #7034 from overleaf/ta-pdf-detach-full
...
PDF Detach v2
GitOrigin-RevId: 3deb76474185f9176cde23ab32ef51b90df6e8e9
2022-04-05 12:19:23 +00:00
Alf Eaton and Copybot
53324b0cd2
Add Cypress React component testing ( #6974 )
...
GitOrigin-RevId: 1260312a0644f3bc60e007a840045974336e264d
2022-04-05 12:17:30 +00:00
Alf Eaton and Copybot
50df230846
[web] Upgrade Prettier to match version in monorepo root ( #6231 )
...
GitOrigin-RevId: 02f97af1b9704782eee77a0b7dfc477ada23e34d
2022-01-11 09:03:23 +00:00
Timothée Alby and Copybot
c5f883ad83
Merge pull request #5031 from overleaf/ab-paywall-events
...
Merge paywall-prompt and paywall-click events
GitOrigin-RevId: d567631d08b89565f9a3049f9b88cc2d14a799c1
2021-09-17 08:03:12 +00:00
Jakob Ackermann and Copybot
99a414f345
Merge pull request #4656 from overleaf/jpa-rewrite-quotes-in-locales
...
[misc] rewrite single quote to left/right single quotation mark in locales
GitOrigin-RevId: a021fb6841425555b9af79a9146820299cb93fc2
2021-08-17 08:04:49 +00:00
Miguel Serrano and Copybot
b7802674d5
Merge pull request #4245 from overleaf/msm-extract-project-context
...
React `project-context`
GitOrigin-RevId: 6a23437d6e6a328ff5854622ff903d348db1f8b8
2021-06-26 02:05:49 +00:00
Alf Eaton and Copybot
7c97f8ab6e
Switch to new JSX runtime ( #4225 )
...
* Use new JSX runtime and update Babel Node target
* Update .eslintrc
* Remove React imports
GitOrigin-RevId: 559de0267f8f2934c56a860ea8701bb522aa861a
2021-06-24 02:06:59 +00:00
Alf Eaton and Copybot
1760d93fc4
Upgrade React to v17 ( #4201 )
...
* Upgrade react and react-dom
* Fix test
* Ensure that the "history:toggle" event is broadcast when switching in or out of history view
* Add ControlledDropdown
* Remove DropdownButton stories
GitOrigin-RevId: 3810f6986bb60e59af31f960f431c31be16554f5
2021-06-19 02:08:29 +00:00
Alf Eaton and Copybot
ad3c66b36e
Add IdeProvider ( #4161 )
...
GitOrigin-RevId: cab09354cf4b325a1ea3814a8c4c49fac7c831be
2021-06-17 02:09:29 +00:00
Alexandre Bourdin and Copybot
c634f51eee
Merge pull request #4116 from overleaf/ab-paywall-prompt-events
...
Add paywall prompt events
GitOrigin-RevId: 6b1b3b384590f14828f37210b2e14047e2ee33d6
2021-06-11 02:05:54 +00:00
Alasdair Smith and Copybot
3f4fa4c6cc
Merge pull request #4099 from overleaf/as-clean-up-share-modal-window
...
Pull `user` and `isRestrictedTokenMember` from `ApplicationContext`/`EditorContext` instead of `window`
GitOrigin-RevId: 9084d4f1b075123fe4b10b1156c7b844595827e2
2021-06-04 02:08:24 +00:00
Alf Eaton and Copybot
cc6629693e
Merge pull request #4114 from overleaf/ae-fix-share-modal-test
...
Fix share modal test by ensuring that scoped value is used
GitOrigin-RevId: 618dd15bf1b21403cc9a64d3174707ee713bda86
2021-05-30 02:08:54 +00:00
Timothée Alby and Copybot
70952906c9
Merge pull request #4043 from overleaf/as-clean-up-exposed-settings
...
Remove `exposedSettings` from `ApplicationContext`
GitOrigin-RevId: 02acd3a7cf36d184560ff6df13acff515da908fa
2021-05-20 02:05:05 +00:00
Alf Eaton and Copybot
669e8f923f
Merge pull request #4014 from overleaf/ae-react-translations
...
Add more translations to React components
GitOrigin-RevId: c0392472f4d6603c147876c30def36f329994af5
2021-05-13 02:08:56 +00:00
Miguel Serrano and Copybot
f9871103bf
Merge pull request #3949 from overleaf/msm-reenable-eslint-const-rule
...
Reenable eslint `prefer-const` rule
GitOrigin-RevId: 4f3825be8b8dff381095209085a36eaab76260d5
2021-05-06 02:09:14 +00:00
Alf Eaton and Copybot
1be43911b4
Merge pull request #3942 from overleaf/prettier-trailing-comma
...
Set Prettier's "trailingComma" setting to "es5"
GitOrigin-RevId: 9f14150511929a855b27467ad17be6ab262fe5d5
2021-04-28 02:10:01 +00:00
Jakob Ackermann and Copybot
b276587c42
Merge pull request #3911 from overleaf/ae-share-modal-link-sharing
...
Only use project sharing data from the websocket connection
GitOrigin-RevId: 4549a6379dfebb00581ca4ddf276654fbbb3701d
2021-04-16 02:05:24 +00:00
Alf Eaton and Copybot
1ebc8a79cb
Merge pull request #3495 from overleaf/ae-prettier-2
...
Upgrade Prettier to v2
GitOrigin-RevId: 85aa3fa1acb6332c4f58c46165a43d1a51471f33
2021-04-15 02:05:22 +00:00
Alf Eaton and Copybot
5653116cdb
Reset the "select collaborators" combobox when needed ( #3821 )
...
GitOrigin-RevId: 773ea3ff01d2b6ec058728430174b77fadc481c8
2021-04-01 02:05:41 +00:00