* [frontend] WIP: pdf caching using service worker -- squashed
Ref: 920fbaa00b31530f7c457a2d93bad5e553798057
Co-Authored-By: Brian Gough <brian.gough@overleaf.com>
Co-Authored-By: Eric Mc Sween <eric.mcsween@overleaf.com>
* [misc] add contentId into the URL for protecting PDF stream contents
* [misc] gracefully handle missing ranges in serviceWorker
* [misc] support PDF stream caching for anonymous users
* [misc] polish header names and add URL to error message when fetch fails
* [misc] polish event handler registration
* [misc] limit serviceWorker scope to /project/ -- trailing slash
This will block the service worker from intercepting requests on the
project dashboard.
* [misc] add per-request feature flag for enabling PDF stream caching
* [misc] expose compile stats and timings to the frontend
* [misc] serviceWorker: support clsiServerId and compileGroup url params
* [misc] serviceWorker: polish header maps
* [misc] serviceWorker: drop TODO for p-limit -- the browser has a queue
* [misc] serviceWorker: drop verbose log message on every fetch
* [misc] cut down size of diff in backend code
* [misc] add test case for forwarding of pdf caching and metrics details
* [misc] serviceWorker: drop all the log lines
* [misc] serviceWorker: add boundary guards to the compile request regex
Co-authored-by: Brian Gough <brian.gough@overleaf.com>
Co-authored-by: Eric Mc Sween <eric.mcsween@overleaf.com>
GitOrigin-RevId: 4b291b4a4f2866cf07bccf8ec9068f33bbfdc916
* Update new logs pane: remove beta icons, add specific surveys
* Remove unneeded reset of log entries
* Remove unneeded reset of the autocompile linting error flag
* Lower compile event sampling rate ahead of prod release
* Never send logs UI subvariant when user is getting the existing UI
GitOrigin-RevId: ab726761ba372c6806e56fc0cf841099cc30df50
* Add logs UI without pop-up variant
* Implement frontend for logs UI without pop-up
* Add logs UI variants to admin panel and front user info
* Fix existing UI subvariant window global
GitOrigin-RevId: 075db56032354d782e489b5235925f55b1a67e0b
* Uncouple account-upgrade and exposted-settings from Angular
* Mock socket shim with the correct methods
* Extract timeout upgrade prompt to a component
GitOrigin-RevId: ee8058b38bf5e20924a21f40d32c5bb0ee06c555
* Ordering of log entries in the new errors UI
* Don't show the expand-collapse widget when not needed; smaller font size in the raw log output
* Expose log actions in the log pane.
* Use "This project" instead of "Your project" in the new errors UI
* Better handling of long log messages; left-ellipsize the file/line number button
* Make log location more button-like; add tooltip when needed.
* Add a PDF expand button to the toolbar.
* Add a stop compilation button to the new compile UI
* Use aria-label for button accessible text; improve handling of long filenames in the log location button
* Set max-height correctly for the logs pane dropdown
* Avoid changing raw logs sizing when expanded and collapsed
* Add comment on the solution for right-to-left text and ellipsis
* Improve logs pane actions
GitOrigin-RevId: 4098d77a9ee6d333644906876b9ff27035b79319
* Remove references to the duplicatePaths validation
* Make the log entries more generic, to support validation and CLSI errors
* Add validation issues to the new logs UI
* Add CLSI errors to the new logs UI
* Update tests; accessibility fixes
* Disable PDF viewing when compile fails; address PR feedback.
* Add accessible description for error and validation failed compiles
GitOrigin-RevId: 8b0597af8857712d47c20e4915470e8e745bb315