* Move `hasLintingError` from scope to react state
* Move `permissionsLevel` to IdeReactContext states
* Get `permissionsLevel` from `useIdeReactContext()`
* Set `permissionsLevel` in mocked `IdeReactProvider`
* Replace `permissions` scope by React state
* Fixup `permission` changes
* Remove redundant type
GitOrigin-RevId: 6203c61f9ac429789624196bf67e508310f4577f
This prevents the bug "ReferenceError: Cannot access uninitialized variable" for users who don't have `window.requestIdleCallback`.
Fixes https://overleaf.sentry.io/issues/6724866295
GitOrigin-RevId: 129dcb72f24dc901ad600253bab7c58673e44321
* Test the scripts by adding fake ids
* Test Propensity errors
* Don't send Sentry event if `isPropensityNetworkError`
* Revert "Test Propensity errors"
This reverts commit 7052ca20d0bee3bb32b39fb90c473458a4375d7b.
* Revert "Test the scripts by adding fake ids"
This reverts commit 2ac797aadf24359917a10119155c5e41935a7482.
GitOrigin-RevId: 03c1e63e359d41ad83ce1ae5cc1063f1c59d0b4e
* Move `pdf.logEntryAnnotations` to react state
* Remove unused scope `pdf.downloadUrl`
* Remove unused scope `pdf.url`
* Move `pdf.uncompiled` to react state
* Move `pdf.logEntries` to react state
* Remove `pdf` from `mockScope`
* Fix test: "renders annotations in the gutter"
GitOrigin-RevId: bf1d0ec30cc0ffcc1177871651483c296ed08baf
* Rename `suppressGoogleAnalytics` to `suppressAnalytics`
* Add Propensity script
* Add LinkedIn Insight Tag script
* Version the cookie to prevent adding unconsented tracking
* Move tracking loaders to Typescript, insert them in foot_scripts.pug
* Show the cookie-banner when tracking other than GA is set
* Revert `oa` cookie versioning
* Remove `async` from propensity script
* Use shared tracking loader for Hotjar, LinkedIn, and Propensity
* Reusable `insertScript`
* Remove tracking-linkedin
* Test the scripts by adding fake ids
* Revert "Test the scripts by adding fake ids"
This reverts commit 50759bb6b40fd2684d1b967d83dd71e8517c3de9.
GitOrigin-RevId: 2a7b36bfc70ac1fc983f837dd4693a19a385cbc6
* Use the leadingIcon prop instead of spacing
* Remove duplicated ID
* Make the alt text to be empty since image is decorative
* Make switcher input visually hidden
The switcher's input previously used 'pointer-events: none', which prevented proper interaction in the test. It replaces that hack.
* Add accessibilityLabel to the info icon that is actually a clickable link
* Use more specific selectors
* It should display
* Use more specific selectors
* Use more specific selectors
GitOrigin-RevId: a555d96cf972d06dd5432f44a23b02355cedcd94
* Fix visited link colour
* Udpdate green link colors for the marketing pages
* Use the semantic color variables
GitOrigin-RevId: c53240cbd6f3608031d6e98db8203fe7bb414a9b
[web] Remove both "For teaching" and "Overleaf advisor programme" from our website navigation and pages
GitOrigin-RevId: 3189398e3f2fa9b19e828daeb890d89a336058b0
* Import changes from Hackathon
https://github.com/overleaf/internal/pull/24501
* Update compile status: allow errors
* Update favicons. Use the ones from Figma
* Optimize and reuse path from favicon.svg
* Clear status favicon after 5s on active tab
* Rename hook from useCompileNotification to useStatusFavicon
* Add tests
* Revert changes to favicon.svg
* Query favicon on document.head
GitOrigin-RevId: 3972b1981abaf6c80273e0ed5b1bc05eb51bd689
* Add `no-restricted-globals` eslint rule
Co-authored-by: Rebeka <rebeka.dekany@overleaf.com>
* Change `self` to `window.self`
* Change `innerWidth` to `window.innerWidth`
* Change `confirm` to `window.confirm`
* Change `location` to `window.location`
* Use `location` from `useLocation` hook
* Use location from useLocation hook
Co-authored-by: Antoine <antoine.clausse@overleaf.com>
* Disable no-restricted-globals eslint rule for use of 'self'
* Use `confusing-browser-globals` from npm
* Prevent unexpected globals in workers, using `no-undef`
* Use `self` as a global in workers
* Use unexpected globals in workers, using `no-restricted-globals` in workers
---------
Co-authored-by: Rebeka <rebeka.dekany@overleaf.com>
Co-authored-by: Rebeka <o.dekany@gmail.com>
GitOrigin-RevId: 526986799f5f2edf53c7d978fa85c1e98189565f