Antoine Clausse
|
e6d09ca748
|
[web] Fix Editor Stories (#26535)
* Fix storybook stories
* Add `chat` to `ol-capabilities` in Storybook
GitOrigin-RevId: 0816c82170ebc3bfe9ca2d7f02766364c693365a
|
2025-06-25 08:05:20 +00:00 |
|
andrew rumble
|
4960569648
|
Remove unused full arguments
As distinct from removing destructured props.
GitOrigin-RevId: d02ad8d36fb532559ed2899268d7b699f2f2fa37
|
2025-06-11 08:05:46 +00:00 |
|
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 |
|
Alf Eaton
|
d91ee50762
|
Standardise scope/context usage in Storybook stories (#7842)
GitOrigin-RevId: 109a4357fc3b083ffbd3af5b8c98acf0f655f297
|
2022-05-17 08:04:12 +00:00 |
|
Alf Eaton
|
913a62fbc8
|
Migrate synctex controls to React (#5503)
GitOrigin-RevId: 80362a00ae6b73616a6fa9b3193b9b9974b5fd35
|
2021-10-22 08:03:43 +00:00 |
|