Antoine Clausse
912944250d
[web] Add admin permission view-script-log ( #27463 )
...
* Add capability `view-script-log`
* Check `view-script-log` (frontend)
* Check `view-script-log` (backend)
* Update tests
GitOrigin-RevId: 70fdb94875c9db69772b1450f03802917c4c52d4
2025-08-08 08:07:54 +00:00
Simon Gardner
4c2c00eeb0
Merge pull request #27464 from overleaf/slg-filter-group-member-list
...
add user filter to group member list
GitOrigin-RevId: 0a65ca377979de706e2e43ee024d2cee9261a121
2025-08-06 08:05:05 +00:00
roo hutton
bcbdd0100d
Merge pull request #27215 from overleaf/rh-stripe-pause-status
...
Update features and subscription state when Stripe pause starts and ends
GitOrigin-RevId: 368f5d9b046cfe26e996be336189081b96926713
2025-08-06 08:04:57 +00:00
M Fahru
a0f6359f60
Merge pull request #27551 from overleaf/kh-fix-failing-webhook-event
...
[web] prefer metadata over email for invoice.paid events
GitOrigin-RevId: cfb06333b62dfb5018bcdee0f153a812d19ff328
2025-08-01 08:07:10 +00:00
Antoine Clausse
2e8c7e02c9
[web] Add admin permission view-audit-log ( #27402 )
...
* Add capability `view-audit-log`
* Fix: Don't fetch `user.auditLog` twice
* Check `view-audit-log` (frontend)
* Check `view-audit-log` (backend)
* Update tests
GitOrigin-RevId: 7e20f2bdc6387144503490f6aba234d967f84913
2025-08-01 08:06:43 +00:00
Antoine Clausse
54d5aaf9f9
[web] Add admin permission modify-feature-override ( #27395 )
...
* Add capability `modify-feature-overrides`
* Check `modify-feature-overrides` for create endpoint (frontend)
* Check `modify-feature-overrides` for create endpoint (backend)
* Update tests
* Check `modify-feature-override` for delete endpoint (frontend)
* Check `modify-feature-override` for delete endpoint (backend)
* Update tests
* Fixup test name
Co-authored-by: Andrew Rumble <andrew.rumble@overleaf.com >
---------
Co-authored-by: Andrew Rumble <andrew.rumble@overleaf.com >
GitOrigin-RevId: ebf37e48fed1dd6fda23ca8c7a5baf55af1cde38
2025-08-01 08:06:39 +00:00
Antoine Clausse
f4517d9992
[web] Add admin permission create-recurly-account ( #27376 )
...
* Add capability `create-recurly-account`
* Check `create-recurly-account` (frontend)
* Check `create-recurly-account` (backend)
* Update tests
GitOrigin-RevId: f4a66937333fbd101cbf0562d768f185f41c88cf
2025-08-01 08:06:31 +00:00
Antoine Clausse
7c12389367
[web] Add admin permission view-user-additional-info ( #27335 )
...
* Add capability `view-user-additional-info`
* Check `view-user-additional-info` (frontend)
* Check `view-user-additional-info` (backend)
* Update tests
* Fix prop type
* Add missing `view-user-additional-info` in `product` role
GitOrigin-RevId: b912b98eac1325b74d42079feaf94d0ec99825c1
2025-08-01 08:06:27 +00:00
ilkin-overleaf
42a3af7ca5
Merge pull request #27276 from overleaf/ii-domain-capture-anaylze-saml-response
...
[web] Domain capture analyze saml response
GitOrigin-RevId: 5a970968bdf14ab6f52d883a390d420b00cb4d8d
2025-07-30 08:07:30 +00:00
ilkin-overleaf
8d1c5958a5
Merge pull request #26902 from overleaf/ii-group-sso-config-email-attribute
...
[web] Add email attribute to ssoConfig
GitOrigin-RevId: 313ad45987fb408c62ef30575dacaea1041471da
2025-07-30 08:07:16 +00:00
Antoine Clausse
674bf0087b
[web] Add admin permission create-subscription ( #27382 )
...
* Add capability `create-subscription`
* Check `create-subscription` (frontend)
* Check `create-subscription` (backend)
* Update tests
GitOrigin-RevId: bc75b99f74573f50d5b1cb003244658040c76064
2025-07-28 08:05:04 +00:00
Antoine Clausse
82a96be3f9
[web] Add admin permission modify-login-status ( #27331 )
...
* Add capability `modify-login-status`
* Check `modify-login-status` (backend)
* Check `modify-login-status` (frontend)
* Prevent the side-effects to `suspended` changes
* Update tests
GitOrigin-RevId: e01b276ada1e938e549e31aaa92fe7a75e33eba1
2025-07-28 08:04:59 +00:00
Liangjun Song
898cdb00e1
Merge pull request #27150 from overleaf/ls-flexible-licensing-for-stripe-manually-billed-users
...
Support Stripe manually billed users in flexible licensing
GitOrigin-RevId: b3211577a313f3a241320bfe3910cf648ee49319
2025-07-25 08:05:32 +00:00
Andrew Rumble
1ece1afbf4
Add view-session, clear-session capabilities
...
GitOrigin-RevId: 10134ab400939c388c5e563ac216af122bffaeb6
2025-07-25 08:05:16 +00:00
Antoine Clausse
d33a70e020
[web] Add admin permission modify-user-name ( #27284 )
...
* Add capabilitiy `modify-user-name`
* Check `modify-user-name` (backend)
* Check `modify-user-name` (frontend)
* Add `isAdmin: true` in UserAdminController.test.mjs
* Disable the name inputs instead of hidding them, so admins can still see them
* Update tests
* Update services/web/modules/admin-panel/test/unit/src/UserAdminController.test.mjs
Co-authored-by: Andrew Rumble <andrew.rumble@overleaf.com >
---------
Co-authored-by: Andrew Rumble <andrew.rumble@overleaf.com >
GitOrigin-RevId: 8731a57aaea8960606ecb4ecd5094eef4fb86f89
2025-07-24 08:05:39 +00:00
Andrew Rumble
652925dde1
Block clearing saml data without relevant capability
...
GitOrigin-RevId: d556b9fc1f5fd3f52beb472181779430f9d8d1fe
2025-07-23 08:05:42 +00:00
Tim Down
a8e1f28d3f
Merge pull request #27254 from overleaf/td-project-dashboard-cookie-banner
...
Implement React cookie banner on project dashboard
GitOrigin-RevId: 95d2778d7ce7cb3054a06b06486b815a3453a623
2025-07-22 08:06:05 +00:00
Domagoj Kriskovic
9d899f0254
Add docModified hook in ds-mobile-app module ( #27196 )
...
* Add docModified hook in ds-mobile-app module
* use Object.entries when iterating over promises
* avoid project lookup
* update tests
GitOrigin-RevId: 88676746f56558a97ce31010b57f5eeb254fefef
2025-07-22 08:05:56 +00:00
Andrew Rumble
7db60157f1
Define all initial roles
...
GitOrigin-RevId: ad613bad4d8a47e327281e90b5475e989a3ccec4
2025-07-22 08:05:42 +00:00
Antoine Clausse
6e06409bdf
[web] Create middleware and functions for checks on admin permissions ( #27107 )
...
* Create AdminCapabilities in admin-panel module
* Add `adminRolesEnabled` setting
* Use `PermissionsController.requirePermission` in admin-panel routes
* Update `adminCapabilities` to be an array
* Update frontend tests
* Rename `defaultAdminCapabilities` to `fullAdminCapabilities`
Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com >
* Add tests to PermissionsManagerTests.js
* Get admin roles and capabilities from the database
* Add tests to admin-panel
* Fixup PermissionsManagerTests.js without admin-panel module
* Revert "Use `PermissionsController.requirePermission` in admin-panel routes"
This reverts commit ccbf3e3e3bca9239b786c662cba2ac6bd2f4117a.
* Revert "Fixup PermissionsManagerTests.js without admin-panel module"
This reverts commit 6d7ad207bb17c5ca4c12c489d4636a02c608926d.
* Revert "Add tests to PermissionsManagerTests.js"
This reverts commit 8f9cc911750911e1c4b74b631d8c8a1b1ca86630.
* Fix tests after the reverts
* Replace capabilities to more sensible examples ('modify-user-email' and 'view-project')
* Set `adminRolesEnabled: false` for now
* Return `[]` capabilities for non-admins
* Misc: types, test description, settings ordering
* Small refactor of AdminPermissions.mjs:
Reuse code with `getMissingCapabilities`
Throw when `requiredCapabilities` is empty
* Update tests after update
* Rename `checkAdminPermissions` to `hasAdminPermissions`
* Change role permissions to array instead of object
* Remove admin capabilities when `!Settings.adminPrivilegeAvailable`
* Return `[]` if there is no user id
* Throw if `user?._id` is missing
* Update services/web/modules/admin-panel/app/src/AdminPermissions.mjs
Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com >
* Adjust to ForbiddenError constructor syntax
* Give empty capabilities for unknown role, update tests
---------
Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com >
GitOrigin-RevId: 1eec4f6a45e1cc3ae76a3a4603cec1ceba1c2322
2025-07-18 08:06:40 +00:00
Jessica Lawshe
be5e564739
Merge pull request #26603 from overleaf/jel-domainCaptureEnabled
...
[web] Add admin toggle for setting `domainCaptureEnabled` feature for groups
GitOrigin-RevId: d116a493402f39c06b3267bf5294ed90ed3e762d
2025-07-15 08:06:23 +00:00
Antoine Clausse
3ebd8b3728
[web] Add some types to web module ( #27051 )
...
* Update `WebModule` types
* Add `if (module.middleware)` so types are satisfied
GitOrigin-RevId: 875fa2710a65d557037771c3eb76ff3cb0e73429
2025-07-15 08:05:34 +00:00
Antoine Clausse
a7591bcdab
[web] Add some types for existing capabilities and PermissionController ( #27048 )
...
* Add types on existing Capabilities code
* Add ts-expect-error comments
* Minor code changes to satisfy types
* Remove ts-check because of unrelated errors
* Remove some ts-expect-error comments
* Revert "Remove some ts-expect-error comments"
This reverts commit 76cc0a073710eecf4f8b88f8579405838607f4d5.
* Remove the `@ts-check`s for now
It looks like typescript is somewhat flaky. We can re-enable this later
* Remove the `@ts-expect-error`s
* Remove return type
GitOrigin-RevId: 57bbd370654592c0662047e72e61f91bf38e0949
2025-07-15 08:05:29 +00:00
M Fahru
171791fd7b
Merge pull request #26965 from overleaf/mf-trials-convert-to-regular-should-not-send-subscription-renewed
...
[web] Stop sending any event when trial changes to active for Stripe subscription on `customer.subscription.updated` stripe webhook event type
GitOrigin-RevId: 11256878cd2828036aad3130a05ad36d95466199
2025-07-11 08:06:50 +00:00
M Fahru
048c5d1882
Merge pull request #25962 from overleaf/mf-stripe-payment-page-form-success-event
...
[web] Simulate sending `payment-page-form-success` event when user successfully subscribe using Stripe
GitOrigin-RevId: 82243fc16d3410670e4e6e9c0ccd487a5f2253a3
2025-07-08 08:07:20 +00:00
M Fahru
0e474a81c2
Merge pull request #25911 from overleaf/mf-stripe-payment-page-form-submit-event
...
[web] Simulate `payment-page-form-submit` event for Stripe subscription
GitOrigin-RevId: 8cfa1a2d91aaea4314a4a40f3256bade50507084
2025-07-08 08:07:16 +00:00
Mathias Jakobsen
410c306a61
Merge pull request #26850 from overleaf/mj-chat-deleted-user
...
[web] Handle deleted users in chat threads
GitOrigin-RevId: 6593bf37e4f2339b40069b7cf4198166660852fb
2025-07-08 08:06:17 +00:00
Alexandre Bourdin
5e4ba2df0b
Merge pull request #26683 from overleaf/ab-update-survey-form
...
Update survey form and preview + support custom button CTA
GitOrigin-RevId: 2b519ab1da1c8e7897b3135956f80619f4e901b4
2025-07-03 08:05:26 +00:00
Tim Down
efa8e3eaf0
Merge pull request #26697 from overleaf/td-custom-logo-sp
...
Restore custom logo feature on SP project dashboard
GitOrigin-RevId: c3ceafa8756968bfbb92f3fca22889e11a39dc40
2025-07-02 08:06:01 +00:00
Kristina
69aa973b92
Merge pull request #26641 from overleaf/kh-use-stripe-us-client
...
[web] use Stripe US client
GitOrigin-RevId: 9b99ba8c7ac900c528526cf7e18fec48761e0091
2025-06-30 08:06:02 +00:00
Kristina
41bee0be39
Merge pull request #26639 from overleaf/kh-support-stripe-us
...
[web] support regional Stripe accounts
GitOrigin-RevId: d414d310d8db495635d8e0d3b057e3f56b2f044e
2025-06-30 08:05:57 +00:00
Antoine Clausse
3ea6632bf4
[web] Add third-party tracking Propensity ( #26638 )
...
* 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
2025-06-30 08:05:52 +00:00
Mathias Jakobsen
d100f5c1e4
Merge pull request #26440 from overleaf/mj-ide-co-branding-submit
...
[web] Editor redesign: Add co-branded submit button to toolbar
GitOrigin-RevId: 45f7ba93de8b28868d88a4ad913f6543e0f7e0a6
2025-06-26 08:05:10 +00:00
Jessica Lawshe
aa032d6f6f
Merge pull request #25868 from overleaf/jel-group-sso-ukamf-endpoints
...
[web] Option to use UKAMF path for group SSO
GitOrigin-RevId: 117fca5913682a02e9f8e8442eed13568f6551a1
2025-06-19 08:06:21 +00:00
Antoine Clausse
e2add2cba1
[web] Rename docRoot_id to docRootId in the frontend code ( #26337 )
...
* Rename `rootDoc_id` to `rootDocId` in the frontend
* Update types
* Fix frontend test
GitOrigin-RevId: b755a4ebf7b8c0b8ed800d713bbae8cfcfdd5046
2025-06-18 08:07:05 +00:00
Antoine Clausse
37e550f43f
[web] Remove instances of $scope and _ide ( #26297 )
...
* Remove `$scope` from `getMockIde`
* Replace `...getMockIde()` by `_id: projectId`
* Simplify stories decorator scope.tsx: less reliance on `window`
* Update helper editor-providers.jsx: pass data instead directly instead of using `window`
* Remove `cleanUpContext`
* Remove unused prop `clsiServerId`
* Update types to reflect unused properties
* Remove comment
* Add `ol-chatEnabled` in Storybook
* Revert moving `getMeta` outside of the component
This causes issues in Storybook
GitOrigin-RevId: dc2558ce814c2d738fb39450c57c104f4419efb8
2025-06-18 08:06:42 +00:00
Kristina
01ad56140c
Merge pull request #26397 from overleaf/kh-use-new-price-lookups
...
[web] use new price lookup keys
GitOrigin-RevId: f4c077d946100862aaea0288d5035a34d6188e83
2025-06-17 08:05:51 +00:00
Kristina
f13dc2d884
Merge pull request #25771 from overleaf/kh-pass-locale-to-checkout
...
[web] pass locale and currency to Stripe checkout
GitOrigin-RevId: 410cde4849226a70c5a6b295554d96984f48f9fb
2025-06-16 08:05:51 +00:00
Kristina
6520d917e3
Merge pull request #26014 from overleaf/kh-remaining-references-to-recurly-fields
...
[web] update remaining references to `recurlyStatus` and `recurlySubscription_id`
GitOrigin-RevId: f5e905eba598cfcd146803c6ccc36a2304021544
2025-06-09 08:05:17 +00:00
Kristina
b211285eef
Merge pull request #26087 from overleaf/mf-change-to-stripe-uk
...
[web] Configure to use Stripe UK account
GitOrigin-RevId: 0856f6da2caae8caf9887ec2acea8e7f0972e598
2025-06-09 08:05:09 +00:00
M Fahru
1986941b98
Merge pull request #26027 from overleaf/mf-admin-panel-stripe
...
[web] Update admin panel with Stripe subscription data
GitOrigin-RevId: fc4f773c5d6d2eae206a791c1ad40d8ccbf766e7
2025-06-05 08:05:58 +00:00
Kristina
400c037057
[web] support purchasing/removing add-ons for Stripe subscriptions ( #26081 )
...
GitOrigin-RevId: 01c2eaccc7c34bc37be43120de83270490e5e6da
2025-06-05 08:05:06 +00:00
Eric Mc Sween
d949b8f831
Merge pull request #25910 from overleaf/em-track-changes-sharejs
...
Track changes in the history OT sharejs doc
GitOrigin-RevId: 17365219f24a25790eac611dbde9681eb73d0961
2025-06-04 08:07:50 +00:00
roo hutton
e48f0f508f
Merge pull request #25896 from overleaf/rh-load-odc-data
...
Load ODC data when revisiting onboarding form
GitOrigin-RevId: 506df5d58a8b0305d83b9f43986a55fd309a2720
2025-06-04 08:05:42 +00:00
Mathias Jakobsen
988d826c75
Merge pull request #26015 from overleaf/mj-ide-breadcrumbs-setting
...
[web] Add setting to control editor breadcrumbs
GitOrigin-RevId: 6e0a4bb97eba63a1df43d85840f8962bf0238b7c
2025-06-03 08:05:49 +00:00
Jessica Lawshe
5736b8adf4
Merge pull request #25556 from overleaf/jel-group-audit-log-remove-from-group
...
[web] Log when user leaves or is removed from group
GitOrigin-RevId: 8a5042b21cbf4eb622d5ca35cc095d94fe5a8539
2025-05-28 08:05:53 +00:00
M Fahru
d5ac64e049
Merge pull request #25706 from overleaf/mf-tear-down-nudge-annual-checkout-page
...
[web] Tear down `nudge-annual-checkout-page` split test and keep the default version
GitOrigin-RevId: 5714810b2a8abedca60855b37b059cd7f900407c
2025-05-21 08:06:16 +00:00
M Fahru
184fef5a6d
Merge pull request #25705 from overleaf/mf-add-journal-grey-sticker
...
[web] Add `journal-grey.svg` sticker in Contentful
GitOrigin-RevId: 713ba7ef1e2589eecb9b93081d31a79464172850
2025-05-21 08:06:07 +00:00
M Fahru
e96d290b48
Merge pull request #25692 from overleaf/mf-add-stickers-cms
...
[web] Add pen-yellow and support-green sticker in contentful
GitOrigin-RevId: 26beffd1bf75f9fdf1dba5b8e93b1190a642ff6d
2025-05-19 08:05:33 +00:00
M Fahru
f1aaac1047
Merge pull request #25560 from overleaf/mf-stripe-analytics-invoice-event
...
[web] Handle stripe analytics for the `subscription-invoice-collected` event
GitOrigin-RevId: cba56db820cac92a66307a05350c779e1198cbf3
2025-05-16 08:07:16 +00:00