Antoine Clausse
07b1701b72
[web] Convert EditorProviders and some test files to Typescript ( #26512 )
...
* Rename files to tsx
* Update types
* Remove props that aren't typed
* Add `LayoutContextOwnStates`
* Use `LayoutContextOwnStates`
* Ignore ts errors about `SocketIOMock`
* Address comments: remove `satisfies`, update `BroadcastChannel` fixture
* Add types to `makeEditorOpenDocProvider`. Update `openDocId`->`currentDocumentId`
* misc.
* Type sockets as `SocketIOMock & Socket`
* Fix remaining typing errors
* Fix type of `ideReactContextValue`
GitOrigin-RevId: 2734ac707517d56c452b0bf06ea3438f947a64be
2025-07-07 08:05:40 +00:00
Antoine Clausse
9e189e7d59
[web] Move UI scope to React states ( #26403 )
...
* Move `ui.view` to setState
* Move `openFile` to setState
* Move `ui.leftMenuShown` to setState
* Move `ui.miniReviewPanelVisible` to setState
* Move `ui.pdfLayout` to setState
* Move `ui.chatOpen` to setState
* Move `ui.reviewPanelOpen` to setState
* Cleanup: remove layout-context-adapter and imports
* Replace `ui` scope by mocked `LayoutProvider` in tests
* Update test
* Remove unnecessary `scopeStore.set('ui.chatOpen' ...`
GitOrigin-RevId: 81578bfdc958239eac492905f714a6074c81d0f5
2025-06-25 08:05:15 +00:00
Miguel Serrano
04fa5366ce
Merge pull request #26070 from overleaf/msm-disable-dropbox
...
[web] Disable Dropbox Capability
GitOrigin-RevId: 5f91d2918bf3b88e52f4d27c828a4715f9b88629
2025-06-20 08:05:20 +00:00
Tim Down
7abafb01ea
Merge pull request #23940 from overleaf/td-react-18
...
Upgrade to React 18
GitOrigin-RevId: 9b81936e6eea2bccd97fe5c2c5841f0b946371b8
2025-05-02 08:05:29 +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
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
Alf Eaton
2147f1d53d
Remove Bootstrap 3 code from IDE page components ( #23061 )
...
GitOrigin-RevId: b41aff10672bf96e892de0be396a69eb25e2443b
2025-03-07 09:05:45 +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
Brian Gough
4a32f49b3d
add an option to remove chat from server pro ( #20445 )
...
* add option to remove chat from backend
* make chat default to enabled
* Check chat is enabled in chat context
---------
Co-authored-by: mserranom <mserranom@gmail.com>
GitOrigin-RevId: 7dda09df4bb74007eb4b1272d4918155b5cddaf6
2024-10-14 11:07:02 +00:00
roo hutton
bf90932f40
Merge pull request #18936 from overleaf/rh-viewer-no-comment
...
[web] Remove access to commenting/chat for collaborators with Viewer permission
GitOrigin-RevId: 03957cb8c04866318a4b94bdb72843e7d7a5a003
2024-06-26 08:04:38 +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
Alf Eaton
cca569e22c
Allow read-only users to close the review panel ( #18040 )
...
GitOrigin-RevId: 93a470152da6dd215db07e3060621f32e5ae701d
2024-04-23 08:05:35 +00:00
Jakob Ackermann
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
Jessica Lawshe
bd3b9007c8
Merge pull request #11078 from overleaf/jel-features-page-analytics
...
[web] Add analytics to React dash features link
GitOrigin-RevId: 5f62af1af3854b1443734cda6b97334e6eb42711
2023-01-10 09:06:43 +00:00
Alf Eaton
e741eb0cb8
Remove PDF detach split test ( #9275 )
...
GitOrigin-RevId: 9e227fe45d874e01c4282ebbe489d7bd6d2250ac
2022-08-19 08:03:47 +00:00
Jakob Ackermann
3c8a9d9863
Merge pull request #8853 from overleaf/jpa-no-pdf-download-in-editor-only-mode
...
[web] do not download the pdf in editor only view mode
GitOrigin-RevId: 4d8936964540c0820f72abb8c858e86e2e7196e2
2022-07-19 08:03:28 +00:00
Alf Eaton
5e1be2c03d
Disable "PDF in separate tab" menu item when native BroadcastChannel is missing ( #7954 )
...
GitOrigin-RevId: a90c89296caeb5333c62150249dc4125a47a899a
2022-05-17 08:05:06 +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
Timothée Alby
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
June Kelly
837ad6002f
Merge pull request #6911 from overleaf/ta-layout-dropdown-view-fix
...
Fix Layout Dropdown in History and File Views
GitOrigin-RevId: 17792e6ec516ac9d72c050d5e2b83066fa34ed6d
2022-03-16 09:03:14 +00:00
Timothée Alby
44eca312ff
Merge pull request #6053 from overleaf/ta-pdf-detach-tests
...
PDF Detach Misc Tests
GitOrigin-RevId: 9615c8fdfd8964a9c63d7c91e4596d397a1d35dc
2021-12-15 09:04:46 +00:00
Timothée Alby
f6fc3d468c
Merge pull request #5854 from overleaf/ta-pdf-detach-v2
...
PDF Detach Updates
GitOrigin-RevId: c09c4fe37a922b041cfa1376e110a264a88177c8
2021-12-01 09:03:41 +00:00
Timothée Alby
8ca159b4b9
Merge pull request #5797 from overleaf/ta-pdf-detach
...
PDF Detach
GitOrigin-RevId: f69d8a87d1ba2115ad496a719106dfc7707a6ed5
2021-11-16 09:02:57 +00:00
Alf Eaton
c73894e56b
Merge pull request #5709 from overleaf/ae-fail-prop-types-tests
...
Format error messages for test failure
GitOrigin-RevId: 74da66d9da31939755162a91f5adf4f8122f06f6
2021-11-16 09:02:54 +00:00
Jessica Lawshe
3ad686c30b
Merge pull request #5630 from overleaf/jel-layout-dropdown
...
New project layout dropdown
GitOrigin-RevId: 8d7f4ff6649fe249b762642e70522597e5e78dd4
2021-11-04 09:03:44 +00:00
June Kelly
4737982cdd
Merge pull request #4675 from overleaf/msm-fix-review-button-ce
...
Remove Track Changes button in CE
GitOrigin-RevId: 7e682ea9cce8d23ba0fffc95cfb379588f0fd42e
2021-08-13 12:57:17 +00:00
June Kelly
1fb1c08348
Merge pull request #4673 from overleaf/msm-rename-project-onblur
...
Rename project on blur instead of canceling renaming
GitOrigin-RevId: fe58b48d5ab37357df33e970338e8b96c3ec1986
2021-08-13 12:57:09 +00:00
Hugh O'Brien
d2f5509fed
remove unnecessary extra bool check for cobranding ( #4368 )
...
GitOrigin-RevId: 3f1c6b03030d7fd59be802053f6bcf49e919e0ea
2021-08-04 02:05:39 +00:00
Miguel Serrano
cbb0fd41e2
Merge pull request #4273 from overleaf/msm-update-publish-modal-permissions
...
User 'write' permission to display the publish button
GitOrigin-RevId: f73ccf05b165ef1ef9e57e3aea4c04d177aba6d4
2021-07-01 12:29:59 +00:00
Miguel Serrano
9b59c0813c
Replaced application-context
with user-context
( #4246 )
...
* Replaced `application-context` with `user-context`
* deleted `user` initialization with `window.user`
* fixed tests and storybook
GitOrigin-RevId: 0ed4b9070d7c6d370fee2112f310c4bcfea519e7
2021-06-26 02:05:53 +00:00
Alf Eaton
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
Miguel Serrano
8856f3121d
Merge pull request #4118 from overleaf/msm-fix-nav-toolbar-anonymous
...
Fix problems with React Navigation Toolbar on anonymous access
GitOrigin-RevId: 29b652ac2765129e3adf2f9bca2309e8a18ac823
2021-06-18 02:05:40 +00:00
Alf Eaton
387950b495
Add conditional rendering to CobrandingLogo ( #4221 )
...
Co-authored-by: Miguel Serrano <mserranom@gmail.com>
GitOrigin-RevId: 033cc5bfdbbd3cc03d11f28f9e2dc0cd6d95b8ff
2021-06-18 02:05:32 +00:00
Jakob Ackermann
12eb7b38a2
Merge pull request #4096 from overleaf/msm-online-user-widget-test
...
OnlineUsersWidget and ToolbarHeader unit tests
GitOrigin-RevId: 5a8dfe94d54590b108a2caaa938f6e01ef844b67
2021-06-01 02:05:40 +00:00
Miguel Serrano
1d4c7f71d5
Merge pull request #4010 from overleaf/msm-navbar-tests
...
Added tests for navbar chat button and project name
GitOrigin-RevId: fc33142ef80254d65505c2b623ac768f8a4dfdf2
2021-05-14 02:09:41 +00:00