Commit graph

98 commits

Author SHA1 Message Date
Alf Eaton
7b3ffb9fae Standardise types for ranges (#16927)
GitOrigin-RevId: 28dd0eb67e1684e6bd0e452d15315ce1f9e3481a
2024-02-09 09:06:51 +00:00
Alf Eaton
45389b3db2 Fix sync to code from PDF only view (#16909)
GitOrigin-RevId: 3a2847716263bffaee540a7c90e609be5f64aeb6
2024-02-06 09:03:43 +00:00
Alf Eaton
6dc7ced2df Upgrade react-dnd (#16753)
GitOrigin-RevId: 5a62bed823b716a6e0d6d3aa57ee187d161f3346
2024-02-06 09:03:31 +00:00
Jakob Ackermann
82cde31619 Merge pull request #16808 from overleaf/jpa-wsUrl
[web] move wsUrl into meta tag

GitOrigin-RevId: c94638759b79b8090b8b3cfa81baa718a69839e1
2024-02-02 09:03:35 +00:00
Alf Eaton
6976e02a38 Store the current value of openDocId in a ref for use in openDoc (#16853)
GitOrigin-RevId: 853a857eed832fde0be05fef3e149c875fd0c940
2024-02-02 09:03:14 +00:00
Alf Eaton
c443322a41 Memoize FileTree and outline toggle button components (#16776)
GitOrigin-RevId: 299ed9d568650ce37edba87643112d1cd6d12fd4
2024-02-02 09:03:08 +00:00
Alf Eaton
bb0da73a36 [ide-react] Preserve scope value update watchers on watcher add (#16729)
GitOrigin-RevId: 1168577364fef6e13a58d7d96afdf4ba685fc342
2024-01-29 09:03:20 +00:00
Alf Eaton
0cde5be165 Merge pull request #14709 from overleaf/ae-context-typescript
Convert React context providers to TypeScript [don't squash!]

GitOrigin-RevId: d92a91798286978410956ab791d73c17c5086d86
2024-01-29 09:03:04 +00:00
ilkin-overleaf
fa314fe5b0 Merge pull request #16509 from overleaf/ii-rp-update-entry-positions
[web] Review panel entry positions and long user names

GitOrigin-RevId: 3a596bd90bab2c87b2efae5eb812ffc5e5a1580f
2024-01-19 09:05:28 +00:00
Alf Eaton
6b3a953c8d Extend the size limits of some panels (#16543)
GitOrigin-RevId: 4c25e93effc08c6bf62cdca7e95b31ca36ac154f
2024-01-19 09:04:56 +00:00
ilkin-overleaf
fc3fb7318a Merge pull request #16493 from overleaf/ii-rp-mini-page-load
[web] Prevent opening and closing of the mini review panel

GitOrigin-RevId: 25297a24ddfb2654b00efa8d33b825620f859147
2024-01-17 09:03:17 +00:00
Alf Eaton
4a7a24b44d Update the CodeMirror language when the current file is renamed (#16342)
GitOrigin-RevId: 8b51df0d1acfeeb8b0323cebf6de78572c8cb95c
2024-01-15 09:04:27 +00:00
Alf Eaton
678f0eb498 Fix React scope event listener (#16434)
GitOrigin-RevId: 1846ad511f915ff48f2f20a8b8a7f1174bb21525
2024-01-10 09:03:05 +00:00
Alf Eaton
e91b76a4f0 Fix load metadata (#16417)
GitOrigin-RevId: 26505e08ca9074238253dba08d0380422ae859be
2024-01-09 09:03:43 +00:00
Alf Eaton
9804ebe12c Replace strict-event-emitter with EventTarget (#16374)
GitOrigin-RevId: 3b0afc3cd7bf3d11f35a3de23cb94061d2d6c69b
2024-01-08 09:05:22 +00:00
ilkin-overleaf
20485b886f Merge pull request #16278 from overleaf/ii-ide-page-prototype-review-panel-entry-hover
[web] Remove entry hover from review panel

GitOrigin-RevId: 6bcfb28e20d7a8826301c34499340b6a7d2745db
2024-01-04 09:03:14 +00:00
Alf Eaton
4fb2cbdf15 Increase default sidebar size (#16375)
GitOrigin-RevId: 0df345a468f68d2205bf919efa8d93be40d7a048
2024-01-04 09:03:11 +00:00
Alf Eaton
eb3e5037f8 Merge pull request #16335 from overleaf/ae-real-time-down
[ide-react] Improve handling of lost connection

GitOrigin-RevId: 89b641b2beca4f9de65551e6873b3c8c11bb1695
2024-01-04 09:03:05 +00:00
Alf Eaton
ecfa15cf57 Only call "reattach" when explicitly opening the PDF view (#16330)
GitOrigin-RevId: 53d7ef25a58255bdac46011c3d7b7e4d63e65a6c
2024-01-04 09:03:02 +00:00
Alf Eaton
e7dfd14986 Upgrade react-resizable-panels (#16321)
GitOrigin-RevId: 524257c441fc98ffc0e3da6f1e703ebdfbfbffb7
2023-12-21 09:03:02 +00:00
Alf Eaton
6c73a1d38a [ide-react] Remove useFixedSizeColumn (#16299)
GitOrigin-RevId: 7cee1e153d5ae3d15250097dc87f430f4e799957
2023-12-21 09:02:59 +00:00
Alf Eaton
5c6b8ec015 Use the expanded size from localStorage when available (#16298)
GitOrigin-RevId: 7747881b99d23ebb0ee38d044c671bffb7504302
2023-12-21 09:02:56 +00:00
Alf Eaton
7cb427738c [ide-react] Only call scope watcher with the latest value from each batch (#16296)
GitOrigin-RevId: 0284f99130424d50a2115853d793979a2b0387ff
2023-12-21 09:02:52 +00:00
Domagoj Kriskovic
da2f7ff153 Store editor selection on a per-user rather than per-project basis (#16246)
* Store editor selection on a per-user rather than per-project basis

* set code editor if rich_text=false

* format fix

GitOrigin-RevId: 8efc33b682de211162e674839e6b891ec04e542e
2023-12-19 09:04:31 +00:00
Alf Eaton
a4cfb8c01d Improve forceDisconnected state change handling (#16271)
GitOrigin-RevId: 4c09c1ef8123ad84358d0446c1249e4a0ae7c217
2023-12-18 09:04:39 +00:00
Alf Eaton
d0bbcca839 Redirect to project dashboard when project access is revoked (#16270)
GitOrigin-RevId: 4e90789fee440feec5360660305d414ea8193704
2023-12-18 09:04:35 +00:00
Alf Eaton
1ce16dd09f [ide-react] Handle failed socket.io loading (#16265)
GitOrigin-RevId: 3a460e1f53387e7012f994f6e8ea9ce764eb0fd2
2023-12-18 09:04:31 +00:00
Alf Eaton
56d70a18ae [ide-react] Avoid showing disconnected message if leaving page (#16263)
GitOrigin-RevId: bda7ed207a66b0f051d284cd9b31a20b2c93edca
2023-12-18 09:04:27 +00:00
Alf Eaton
731f071a4e Call detachDoc when cleaning up a doc (#16262)
GitOrigin-RevId: a7479e3685e552c2c3b73ed18a333d647f228c3e
2023-12-18 09:04:22 +00:00
ilkin-overleaf
fbed0cb943 Merge pull request #16268 from overleaf/ii-ide-page-prototype-review-panel-layout-to-left
[web] Review panel popovers

GitOrigin-RevId: 4424abab97b197013063679bd8efcac001f458ad
2023-12-18 09:04:18 +00:00
ilkin-overleaf
39e2a8349f Merge pull request #16236 from overleaf/ii-ide-page-prototype-review-panel-issues-2
[web] Enable track changes on page load in react ide page

GitOrigin-RevId: 17e58490703c0d18fc700fde2e770e57a141a537
2023-12-18 09:03:58 +00:00
Alf Eaton
c2b553e915 [ide-react] Improve file tree and outline components in the editor sidebar (#16225)
* Upgrade react-resizable-panels
* Add FileTreeOpenProvider
* Add OutlineProvider and OutlineContainer
* Convert Outline tests to Cypress

GitOrigin-RevId: afd9ae8190edf37642e36a4ffb331f1182c8982d
2023-12-18 09:03:53 +00:00
ilkin-overleaf
ca28b6995b Merge pull request #16173 from overleaf/ii-ide-page-prototype-review-panel-goto-entry
[web] Review panel gotoEntry

GitOrigin-RevId: b08ba8d8539751ea43f6c1a72d4e2043f02bb83c
2023-12-18 09:03:44 +00:00
Alf Eaton
8dbf2b64f8 [ide-react] Notify about unsaved changes (#16163)
* Notify about unsaved changes
* Move system message components and types to shared folder
* Add system messages component

GitOrigin-RevId: ab81a24888847bd9a8a390fd1af6b58f471f7a4b
2023-12-15 09:03:27 +00:00
Alf Eaton
a074054cc9 Add memo to some components (#16094)
GitOrigin-RevId: e4bea140d872ac3f8b2aca7833e658af684a1438
2023-12-15 09:03:22 +00:00
ilkin-overleaf
aceabf9fa8 Merge pull request #16217 from overleaf/ii-ide-page-prototype-review-panel-issues-3
[web] Review panel add comment, bulk accept/reject and track changes entries fix

GitOrigin-RevId: bbed28f69d5f882c4f29353daab9b2a6613fd654
2023-12-14 09:03:33 +00:00
ilkin-overleaf
b715cb3b16 Merge pull request #16152 from overleaf/ii-ide-page-prototype-review-panel-mini
[web] React ide page mini review panel

GitOrigin-RevId: 4c4ee8095446a2f72371024b93a07dbd1dbd2a63
2023-12-11 09:03:21 +00:00
ilkin-overleaf
91121a82b7 Merge pull request #16147 from overleaf/ii-ide-page-prototype-review-panel-add-last-editor-events
[web] React ide page add missing editor events

GitOrigin-RevId: 070acde5e8b2dd324584c8703941745f8d2e7bb6
2023-12-11 09:03:18 +00:00
Alf Eaton
da397e17d4 Hide PDF pane while resizing (#16124)
GitOrigin-RevId: c2003e91b5b5a3cf6af073329aff6618e060018c
2023-12-11 09:03:12 +00:00
Alf Eaton
8c91a2e4cf Improve chat pane handling (#16123)
GitOrigin-RevId: b4185a192b393e339aee8bc27e615d61d66a8b34
2023-12-11 09:03:09 +00:00
Alf Eaton
389d16aad1 Move ModalsContextProvider up the context tree (#16095)
GitOrigin-RevId: 2f978f410624597c747f32a84853393a5771582c
2023-12-11 09:03:06 +00:00
ilkin-overleaf
c3689ca6f3 Merge pull request #16138 from overleaf/ii-ide-page-prototype-review-panel-overview-loading
[web] React ide page overview switch

GitOrigin-RevId: 9a24a8ba9ed8e86d486a12a65259d25c1352c864
2023-12-08 09:04:19 +00:00
ilkin-overleaf
ffb24e061e Merge pull request #16139 from overleaf/ii-ide-page-prototype-review-panel-line-height
[web] React ide page line height

GitOrigin-RevId: da8c9cd178bc089fdc208abd1c453f7666ff58b1
2023-12-08 09:04:15 +00:00
Alf Eaton
d5b3c10cb5 Upgrade react-resizable-panels (#15998)
GitOrigin-RevId: af799f1a5b4945ad2acbb460806d559fae7416b9
2023-12-06 09:04:40 +00:00
Alf Eaton
df472b607e Merge pull request #16010 from overleaf/ae-socket-listeners-usecallback
[ide-react] Wrap socket listeners in useCallback

GitOrigin-RevId: 09692ac0026b6f94626eece4583ae320039a4ee9
2023-12-06 09:04:36 +00:00
Alf Eaton
8cb76ce40b [ide-react] Address some migration TODOs (#16033)
* Add type for externalUpdate
* Log clientTracking.getConnectedUsers error
* Remove update debugging code
* Use ErrorMetadata type
* Use Message type
* Remove unused document:opened event

GitOrigin-RevId: 3a1d1e785dca37d6b91cd650fbcb4e5decb6343b
2023-12-06 09:04:18 +00:00
Alf Eaton
18ad44c278 Use permissions.write for editor editable state (#16011)
GitOrigin-RevId: b38ce53fa90a739d9e38ddcc57b01dfa0d9a104c
2023-12-06 09:04:09 +00:00
Alf Eaton
23593f8650 [ide-react] Tidy IDE page layout components (#15953)
* Defer script loading
* Refactor loading
* Wait for project:joined
* Only mount IdePage once everything has connected
* Add useConnectionState hook and comments
* Remove placeholder components
* Move props into EditorAndSidebar
* Move props into MainLayout
* Tidy editor and sidebar components
* Lazy-load the symbol palette pane and separate the loading pane

GitOrigin-RevId: 4b721a06d6aba0ae0ec91768e6a6e29cf15e2083
2023-12-06 09:03:49 +00:00
ilkin-overleaf
8035241cc0 Merge pull request #16065 from overleaf/ii-ide-page-prototype-review-panel-add-comment
[web] React ide page add comment

GitOrigin-RevId: 4c2442ccc77760d4a27268551c9dd2d73fcdba84
2023-12-05 09:04:06 +00:00
ilkin-overleaf
2cd10df47e Merge pull request #16030 from overleaf/ii-ide-page-prototype-review-panel-reply
[web] React ide page reply

GitOrigin-RevId: 4c47c5720f8aa019f9b427699d1687f42c090bd6
2023-12-01 09:03:15 +00:00