Antoine Clausse
|
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 |
|
Tim Down
|
c2da12939e
|
Merge pull request #24313 from overleaf/td-ac-bs5-frontend-tests
Update front-end tests to use Bootstrap 5
GitOrigin-RevId: abaa09f8c0639d64d6ade97468ab16204e5de97b
|
2025-03-24 10:48:20 +00:00 |
|
Antoine Clausse
|
34cac93f9a
|
[web] When switching primary email, delete the old primary if it's unconfirmed (#23688)
* Add note to ConfirmModal: unconfirmed primary will be deleted
* Change confirm button copy
* Promisify `UserEmailsController.setDefault`
* Update tests after promisification
* Delete unconfirmed primary when swapped
* Fixup apostrophe in translation
* `npm run extract-translations`
* Add unit tests
* Add acceptance tests
* Fix frontend tests
* Make email address bold
* Add "We removed the previous primary..." to the email
GitOrigin-RevId: c971e219e36e509f9963e1720acdd44f562a05b5
|
2025-02-21 09:05:44 +00:00 |
|
Alf Eaton
|
4898b15dea
|
Add eslint-plugin-testing-library (#23017)
* Add eslint-plugin-testing-library
* Update .eslintrc.js
* Only import from @testing-library/react
* Fix issues
GitOrigin-RevId: c225f1f70020d4431866119423cd839ce1ee5ed2
|
2025-01-24 09:04:59 +00:00 |
|
Jakob Ackermann
|
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 |
|
Jimmy Domagala-Tang
|
e47c3e67c1
|
Merge pull request #15296 from overleaf/jdt-reword-send
Update wording in make primary email action
GitOrigin-RevId: df82ebcbec2ea101182f154673fd1c0fb4acbeaa
|
2023-10-24 08:03:43 +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 |
|
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 |
|
ilkin-overleaf
|
e41315364d
|
Merge pull request #8226 from overleaf/ae-remaining-types
[web] Fix remaining strict type checks
GitOrigin-RevId: 69881c37938f88c7ea4a630f362712a804085bc8
|
2022-06-01 08:03:29 +00:00 |
|
Alf Eaton
|
c138e43b64
|
Merge pull request #8179 from overleaf/ii-settings-make-primary-btn-tooltip
Fix make primary button states
GitOrigin-RevId: a3c6fef4fd7c40f0308605f5bed4a91447838bef
|
2022-05-30 08:03:39 +00:00 |
|
Timothée Alby
|
7c243c6c50
|
Merge pull request #7975 from overleaf/ta-settings-fixes-6
[SettingsPage] Small Fixes 6
GitOrigin-RevId: 19ad9a195a401909ac3dcc2be79d380cb61078da
|
2022-05-19 08:03:54 +00:00 |
|
ilkin-overleaf
|
1def576973
|
Merge pull request #7808 from overleaf/ii-settings-fixes-1
[SettingsPage] UI Fixes 1
GitOrigin-RevId: 0e0f605191218af4db70a801ff1e50b47f6e0b01
|
2022-05-02 08:03:48 +00:00 |
|
Timothée Alby
|
cf2dfc6bf1
|
Merge pull request #7593 from overleaf/ta-settings-migration
[SettingsPage] Integration Branch
GitOrigin-RevId: 5a3c26b2a02d716c4ae3981e3f08b811ae307725
|
2022-04-25 08:05:12 +00:00 |
|