Antoine Clausse
e6c64dfd77
[web] Add window. prefix to globals and add no-restricted-globals rule ( #26422 )
...
* 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
2025-06-24 08:05:10 +00:00
Antoine Clausse
daf10140f8
Merge pull request #26188 from overleaf/ac-bs5-fix-redundant-carets
...
[web] Fix redundant carets in BS5 marketing pages
GitOrigin-RevId: 479687d982db23e4f5f2efcc3f5f39bb78f0eb24
2025-06-12 08:05:11 +00:00
andrew rumble
06d2b287a4
Remove unused params from destructuring
...
GitOrigin-RevId: e47a16e2d99e923c314fd0fa2220c19b7b2c9b51
2025-06-11 08:05:56 +00:00
Antoine Clausse
2ce9b399cb
[web] Use 6-digits verification in project-list notifications (bis) ( #25847 )
...
* Pull email context outside of `ResendConfirmationCodeModal`
* Use `loading` prop of button instead of deprecated Icon
* Swap notification order to clarify priority (no change in behaviour)
* Replace confirmation link action by confirmationCodeModal, and simplify code
* Change to secondary button variant in the Notification
* Display errors within the modal
* Increase ratelimit for resend-confirmation
* Copy changes
* Add stories on email confirmation notifications
* Fix other Notification stories
* Update tests
* Update services/web/frontend/js/features/settings/components/emails/confirm-email-form.tsx
Co-authored-by: Rebeka Dekany <50901361+rebekadekany@users.noreply.github.com >
* Remove placeholder on 6-digit code input
---------
Co-authored-by: Rebeka Dekany <50901361+rebekadekany@users.noreply.github.com >
GitOrigin-RevId: dad8bfd79505a2e7d065fd48791fd57c8a31e071
2025-05-28 08:05:01 +00:00
Antoine Clausse
aab598e044
[web] De-capitalize english translations ( #24123 )
...
* Create decapitalize.sh script
* Remove `text-capitalize` classes, rely on translations instead
* `Account Linking` -> `Account linking`
* `Account Settings` -> `Account settings`
* `Add Affiliation` -> `Add affiliation`
* `Add Email` -> `Add email`
* `Add Files` -> `Add files`
* `Add to Dictionary` -> `Add to dictionary`
* `All Projects` -> `All projects`
* `All Templates` -> `All templates`
* `Archive Projects` -> `Archive projects`
* `Archived Projects` -> `Archived projects`
* `Auto Compile` -> `Auto compile`
* `Back to Subscription` -> `Back to subscription`
* `Blank Project` -> `Blank project`
* `Change Password` -> `Change password`
* `Change Project Owner` -> `Change project owner`
* `Clear Sessions` -> `Clear sessions`
* `Company Name` -> `Company name`
* `Compile Error Handling` -> `Compile error handling`
* `Compile Mode` -> `Compile mode`
* `Compromised Password` -> `Compromised password`
* `Confirm Affiliation` -> `Confirm affiliation`
* `Confirm Email` -> `Confirm email`
* `Connected Users` -> `Connected users`
* `Contact Sales` -> `Contact sales`
* `Contact Support` -> `Contact support`
* `Contact Us` -> `Contact us`
* `Copy Project` -> `Copy project`
* `Delete Account` -> `Delete account`
* `Emails and Affiliations` -> `Emails and affiliations`
* `Git Integration` -> `Git integration`
* `Group Settings` -> `Group settings`
* `Link Accounts` -> `Link accounts`
* `Make Primary` -> `Make primary`
* `Mendeley Integration` -> `Mendeley integration`
* `Papers Integration` -> `Papers integration`
* `Project Synchronisation` -> `Project synchronisation`
* `Sessions Cleared` -> `Sessions cleared`
* `Stop Compilation` -> `Stop compilation`
* `Update Account Info` -> `Update account info`
* `the Sales team` -> `the sales team`
* `your Group settings` -> `your group settings`
* `Zotero Integration` -> `Zotero integration`
* Update decapitalize.sh
* Decapitalize some translations
* `Example Project` -> `Example project`
* `New Project` -> `New project`
* `New Tag` -> `New tag`
* `Trashed Projects` -> `Trashed projects`
* `Upload Project` -> `Upload project`
* `Your Projects` -> `Your projects`
* Revert "Create decapitalize.sh script"
This reverts commit 8c79f367096c206c704c7c01e3572a18f3961d5e.
* Revert changes to stories
* Fix tests
* `Contact us of` -> `Contact us if`
* Make `Contact us` bold in tex files
* `sales team` -> `Sales team`
* `Link accounts and Add email` -> `Link accounts and add email`
* `Make Private` -> `Make private`
* `contact support` -> `contact Support`
* Make `Make primary` tests case sensitive
* Use `add_email` translation string
* Revert changes to non-english locales
* Remove redundant `Account settings` translation
* `New project Name` -> `New project name`
GitOrigin-RevId: 675c46f96ddbf3d259a8d723fed62aa4a7ed40b7
2025-05-22 08:07:46 +00:00
roo hutton
f1ffa79557
Merge pull request #24787 from overleaf/rh-sort-account-emails
...
Sort user emails by primary>confirmed>alphabetical
GitOrigin-RevId: 1d166e424e3848b83110c1a87adfff7790c1a01f
2025-05-20 08:06:00 +00:00
Rebeka Dekany
fc956f3b28
Make links more descriptive on the Account settings page ( #25558 )
...
GitOrigin-RevId: 21cb7c02f7a5678b4c385da5b842ad6a5303169b
2025-05-16 08:06:44 +00:00
Rebeka Dekany
7b90e54238
Improve ARIA labels for buttons and links on the Account setting page ( #25499 )
...
* Improve announced button and link labels for screen reader users
* Improve labels for integration widgets and update test
* Make integration widget IDs to be required
GitOrigin-RevId: 1e0124ef63a91fb63dffd79881c60794bccb9d27
2025-05-13 08:08:31 +00:00
Tim Down
2090b759e4
Merge pull request #24965 from overleaf/td-downshift-9-upgrade
...
Upgrade Downshift to version 9
GitOrigin-RevId: b36904ab0c82c09a633a25cd6fed651d7c8b19f7
2025-04-24 08:06:24 +00:00
Tim Down
3f4e975e92
Merge pull request #24660 from overleaf/td-bs5-remove-react-bootstrap-0
...
Remove react-bootstrap 0.33.1
GitOrigin-RevId: c320a6b18c576afdc0fd49559915d3d2f3a7a1ef
2025-04-10 08:04:50 +00:00
Antoine Clausse
6daba57137
[web] Add reCAPTCHA conditions to /user/emails/add-secondary ( #24528 )
...
* Add RecaptchaConditions to `user/emails/add-secondary`, set font to 12px
* Hide `RecaptchaConditions` if `ExposedSettings.recaptchaDisabled.addEmail`
GitOrigin-RevId: dcc4609bf8787076257caed6b5a5d1e47178380e
2025-03-27 09:05:47 +00:00
Antoine Clausse
72d35fa748
Add recaptcha conditions to the add-email form ( #24295 )
...
GitOrigin-RevId: 4b90a73edd2435d6c858ccf790827fb3352069e8
2025-03-27 09:05:42 +00:00
Rebeka Dekany
12fd0194ff
Cleanup Bootstrap 3 code in the Account settings page ( #24058 )
...
* Remove the Bootstrap 5 version utilities
* Remove Account settings LESS stylesheet and unused styles
* Prefer using the OLFormText wrapper component instead of FormText
* Remove the Bootstrap 3 version stories
* Replace Font Awesome icons to Material icons
* Fix the heading hierarchy
* Cleanup unused translation
* Restore ellipsis to the text of two loading spinners
* Add loading button tests back and add some button loading labels
---------
Co-authored-by: Tim Down <158919+timdown@users.noreply.github.com >
GitOrigin-RevId: 283a9167c8c78bf0fe5062840ded6917dcd6263b
2025-03-24 10:49:33 +00:00
Tim Down
36f7170cff
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
Tim Down
6da4ad2079
Merge pull request #24349 from overleaf/td-bs5-add-secondary-email
...
Migrate add secondary email page to Bootstrap 5
GitOrigin-RevId: f5d1992f2cb2d313f5950ccfd5c187b9bac72d82
2025-03-24 10:46:57 +00:00
Antoine Clausse
85958774dc
[web] Use 6-digits code to confirm existing email in Account Settings ( #23931 )
...
* Rename `checkSecondaryEmailConfirmationCode` to `checkAddSecondaryEmailConfirmationCode`
* Create function `sendCodeAndStoreInSession`
* Create function `sendExistingSecondaryEmailConfirmationCode`
* Create function `_checkConfirmationCode`
* Create function `checkExistingEmailConfirmationCode`
* Rename `resendSecondaryEmailConfirmationCode` to `resendAddSecondaryEmailConfirmationCode`
* Create function `_resendConfirmationCode`
* Create function `resendExistingSecondaryEmailConfirmationCode`
* Add `ResendConfirmationCodeModal`
* Remove `ResendConfirmationEmailButton`
* `bin/run web npm run extract-translations`
* Update frontend test
* Fix: don't throw on render when send-confirmation-code fails!
* Update phrasing in the UI
Per https://docs.google.com/document/d/1PE1vlZWQN--PjmXpyHR9rV2YPd7OIPIsUbnZaHj0cDI/edit?usp=sharing
* Add unit test
* Don't share the "send-confirmation" and "resend-confirmation" rate-limits
* Update frontend test after copy change
* Rename `checkAddSecondaryEmailConfirmationCode` to `checkNewSecondaryEmailConfirmationCode` and `resendAddSecondaryEmailConfirmationCode` to `resendNewSecondaryEmailConfirmationCode`
* Rename `cb` to `beforeConfirmEmail`
Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com >
* Return `422` on missing session data
Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com >
* Add `userId` to log
* Replace `isSecondary` param by `welcomeUser`
Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com >
* Rename `resend-confirm-email-code`'s `existingEmail` to `email`
* Remove "secondary" from rate-limiters
Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com >
* Remove unnecessary `userId` check behind `AuthenticationController.requireLogin()`
* Only open the modal if the code was sent successfully
---------
Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com >
GitOrigin-RevId: df892064641d9f722785699777383b2d863124e1
2025-03-07 09:06:50 +00:00
Antoine Clausse
0d05cef327
[web] When switching primary email, delete the old primary if it's unconfirmed ( #23688 )
...
* Add note to ConfirmModal: unconfirmed primary will be deleted
* Change confirm button copy
* Promisify `UserEmailsController.setDefault`
* Update tests after promisification
* Delete unconfirmed primary when swapped
* Fixup apostrophe in translation
* `npm run extract-translations`
* Add unit tests
* Add acceptance tests
* Fix frontend tests
* Make email address bold
* Add "We removed the previous primary..." to the email
GitOrigin-RevId: c971e219e36e509f9963e1720acdd44f562a05b5
2025-02-21 09:05:44 +00:00
M Fahru
5f9b0bdf80
Merge pull request #23305 from overleaf/mf-onboarding-data-collection-bs5
...
[web] Migrate onboarding collection data page to bootstrap 5
GitOrigin-RevId: ebf91db34ff11313c262bf57ad45e70d30857cd6
2025-02-13 09:05:58 +00:00
Antoine Clausse
858d31bcd0
[web] Update secondary email addition: confirm with 6 digits code ( #22851 )
...
* Remove `Interstitial` from `ConfirmEmailForm`
* Allow adding `affiliationOptions` in `addWithConfirmationCode`
* Add confirmationStep in add-email.tsx
* Call `getEmails` once a secondary email is added
* Fix tests
* Lint fix
* Style confirm-email-form
Figma: https://www.figma.com/design/TWyeImDSZHhkl9akYaGmeb/24.5-Secondary-email-reconfirmation?node-id=1-449&p=f&m=dev
* Remove unnecessary `successMessage` and `successButtonText` from hidden ConfirmEmailForm
* Remove icon padding
* Rename file to confirm-email-form.tsx
* Use `OLButton`
* Add Cancel button
* Update loading states
* Remove redundant `className` with variants
GitOrigin-RevId: 62b1729cf2299da38f20fa3946273ad0193c7d54
2025-01-31 09:05:23 +00:00
Jimmy Domagala-Tang
e1a7dea96e
Merge pull request #22994 from overleaf/jdt-diasble-assist
...
Add a toggle to hide all AI features on a users account
GitOrigin-RevId: 978b02609c40f3975daa267aa6c10ac49e13d6f3
2025-01-28 09:05:27 +00:00
Mathias Jakobsen
522ce90f2e
Merge pull request #22591 from overleaf/em-delete-account
...
Add blurb about Writefull in the Delete Account modal
GitOrigin-RevId: 3b64a2c66e8c212bcdd6271c78cec43dc2c91192
2025-01-08 09:04:36 +00:00
Tim Down
d0e2cccd87
Merge pull request #21566 from overleaf/td-bs5-website-redesign
...
Add website redesign query string override to arbitrary BS5 pages
GitOrigin-RevId: 72816f00d6e2e92dab21035097abc540689af1d3
2024-11-05 09:05:30 +00:00
ilkin-overleaf
68510e8fc9
Merge pull request #21289 from overleaf/ii-bs5-figure-modal-improvements
...
[web] BS5 fix form text colour
GitOrigin-RevId: 8ff03f41cc3490eff0ea4c65a376ac572003fb9c
2024-10-24 08:05:54 +00:00
Jimmy Domagala-Tang
af916712b3
Merge pull request #20848 from overleaf/jdt-hide-wf-in-settings-from-no-ai
...
hiding wf in settings from users with a blocking policy
GitOrigin-RevId: 8d640a53d7bbbcd809604f07bbd4bb0ab6939c03
2024-10-14 11:10:33 +00:00
Antoine Clausse
adbf0beb84
[web] Update bsVersion to return its arguments types ( #20963 )
...
* [web] Update `bsVersion` to return its arguments types
* [web] Remove `as string` after `bsVersion` calls
GitOrigin-RevId: 604ce87aaccd709299124a986e98cf45874484bb
2024-10-14 11:07:45 +00:00
ilkin-overleaf
7439eee365
Merge pull request #20708 from overleaf/ii-bs5-pdf-toolbar
...
[web] BS5 pdf toolbar
GitOrigin-RevId: a04091c9e936e52f47c3977b3149ffe613d43bb9
2024-10-14 11:06:17 +00:00
Jessica Lawshe
905bf1dd1a
Merge pull request #20692 from overleaf/ar-limit-length-of-user-editable-fields
...
[web] limit length of user editable fields
GitOrigin-RevId: 239398dd05dcde7fea0ac8415e41396ef01c2b74
2024-10-14 10:57:56 +00:00
Jimmy Domagala-Tang
3fd4bd97e0
Merge pull request #20256 from overleaf/jdt-enable-writefull-unset
...
Differentiate between unset and disabled Writefull
GitOrigin-RevId: 3cf8f12ede851dab5a8067bdbcddba6c69870573
2024-09-06 08:05:52 +00:00
Liangjun Song
51761303b8
Merge pull request #19954 from overleaf/ls-access-token-gradual-rollout-cleanup
...
Update git bridge modal for pw auth deprecation
GitOrigin-RevId: 2e764922bf350ddcba29bf9f3baa220ed1f48e40
2024-08-26 08:05:15 +00:00
Tim Down
a745081514
Merge pull request #19126 from overleaf/td-bs5-contact-modal-react
...
React version of Contact Us modal
GitOrigin-RevId: 0bef3095f36daa88afdc6172a5531ed11e892047
2024-08-14 08:04:37 +00:00
Jimmy Domagala-Tang
c2c5ad8f1a
Merge pull request #19640 from overleaf/jdt-integrations-anchor
...
Add Id to integrations section in settings
GitOrigin-RevId: 347102cd4050e8d56904bf2462f530f73e3f1fc4
2024-08-07 08:05:17 +00:00
Alf Eaton
8aa98dcfae
Upgrade Prettier to v3.3 ( #19756 )
...
GitOrigin-RevId: 86d628d8c2fe55e3b2e4867a8e1f29876d38feab
2024-08-02 08:06:02 +00:00
Tim Down
58a09ae844
Merge pull request #19347 from overleaf/td-bs5-cypress-css
...
Move CSS loading in Cypress to individual test spec files
GitOrigin-RevId: 92bb5167cfa81b0bd54acc724efb23b397421ccb
2024-07-25 08:05:16 +00:00
Rebeka Dekany
cb8693db19
Merge pull request #19472 from overleaf/rd-stylelint-ci
...
[web] Add Stylelint formatting to the CI
GitOrigin-RevId: f31139f9f6f70aa96214b59db37ad1f79cd1e733
2024-07-23 08:04:09 +00:00
ilkin-overleaf
0977718624
Merge pull request #19141 from overleaf/ii-add-email-account-settings
...
[web] Reset recaptcha every time
GitOrigin-RevId: 6db3571ad6dad3611c748a2d92dce47002a16a77
2024-07-01 08:04:07 +00:00
Jimmy Domagala-Tang
17a116683a
Merge pull request #19108 from overleaf/jdt-ai-rm-alpha-reqs
...
Remove Alpha bypass for AI Error Correction
GitOrigin-RevId: d6b93bc2071dbeeb3d67d48197e61abf4d920944
2024-06-28 08:04:57 +00:00
Jimmy Domagala-Tang
f12aeae776
Merge pull request #18682 from overleaf/jdt-ai-labs
...
Re-Release Labs Page for AI Error-Correction
GitOrigin-RevId: 2eef85dd3b5f86bedcf3339559a5fbbae2d4da87
2024-06-24 12:04:08 +00:00
Jakob Ackermann
cb987446ed
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
ilkin-overleaf
820174b123
Merge pull request #18690 from overleaf/ii-bs5-projects-welcome
...
[web] Welcome page migration
GitOrigin-RevId: 2469786372df24d579d1987cf5bb1113450e9d78
2024-06-14 08:04:32 +00:00
Tim Down
b77e6efd7a
Merge pull request #18733 from overleaf/td-bs5-button-props
...
Simplify handling of BS3 props in button wrapper component
GitOrigin-RevId: 12a6b1374da5084e075775f3cef23f0b24d098fc
2024-06-07 08:04:24 +00:00
Tim Down
4627c0c7f7
Merge pull request #18662 from overleaf/td-bs5-increase-settings-button-sizes
...
Bootstrap 5: increase size of "Add new email" and institution/role change submit buttons
GitOrigin-RevId: 28756bdfe723a57da9c73f0ab3d852d2f9c3ea5e
2024-06-04 08:04:34 +00:00
Rebeka Dekany
c97937a1b4
Merge pull request #18567 from overleaf/rd-bs5-settings-modal
...
[web] Migrate the Git Integration settings on the Account Settings page to Bootstrap 5
GitOrigin-RevId: bafac941d3afaadaa046de07e18968d8e3692b1c
2024-05-31 08:04:49 +00:00
ilkin-overleaf
4e94d358e4
Merge pull request #18473 from overleaf/ii-bs5-settings-grid-fix
...
[web] Adjust column breakpoints in bs5 account settings page
GitOrigin-RevId: 90e7fe7561a75439166472627fdb6189ebcdefa1
2024-05-29 08:03:46 +00:00
Rebeka Dekany
30fb5bbf8d
Merge pull request #18454 from overleaf/rd-managed-account
...
[web] Use the Notification component for the managed account alert
GitOrigin-RevId: 3839b171348bf0f670b6a033b99078b8543ce2e5
2024-05-27 10:22:53 +00:00
David
9efae1f958
Merge pull request #18320 from overleaf/dp-add-secondary-prompt-ui
...
Add secondary email form V2 (with Captcha this time)
GitOrigin-RevId: b06216a2c9cb5b3b09305a17992eca506a0047f5
2024-05-27 10:22:40 +00:00
roo hutton
fcf494a68e
Merge pull request #18422 from overleaf/rh-managed-acct-delete-email
...
[web]: Clarify tooltip for managed user attempting to delete email address
GitOrigin-RevId: 82eabc0b9d96773d5d418bec52ea917fd585ec63
2024-05-27 10:22:36 +00:00
Rebeka Dekany
b5c42ca97a
Merge pull request #18418 from overleaf/rd-bs5-cookie-banner
...
[web] Migrate the cookie banner to Bootstrap 5
GitOrigin-RevId: 79dd74e2cf09faab381f24101a3633b0377009a0
2024-05-27 10:22:04 +00:00
ilkin-overleaf
b2c519cb40
Merge pull request #18369 from overleaf/ii-bs5-downshift
...
[web] BS5 downshift in account settings page
GitOrigin-RevId: acfbde3ec87ae8038e0b19ddaca35e6c7392743b
2024-05-21 08:04:40 +00:00
Rebeka Dekany
420cb22502
Merge pull request #18331 from overleaf/rd-bs5-renaming
...
[web ] Bootstrap 5 - rename the wrapper components and restructure
GitOrigin-RevId: 7a76903df81cd546e9e469f24c4f203ea6a61672
2024-05-16 08:05:31 +00:00
Rebeka Dekany
377bf63fc9
Merge pull request #18127 from overleaf/rd-bs-modal
...
[web] - Migrate the Modal to Bootstrap 5 on the Account Settings page
GitOrigin-RevId: 90799125f837742b4887eab762ca9ff84a67e70b
2024-05-15 08:05:32 +00:00