Commit Graph

26165 Commits

Author SHA1 Message Date
David
fff683c285 Merge pull request #27316 from overleaf/dp-file-menu-options
Add copy and submit project options to new editor file menu

GitOrigin-RevId: 7f402d96f278f2b084375441089b286adaa731b8
2025-08-21 08:05:37 +00:00
David
1e354a1cf6 Merge pull request #28010 from overleaf/dp-histroy-sidebar
Always show history sidebar when opening history view

GitOrigin-RevId: c630b4483b11527741280ad1aaaae1b30db6e472
2025-08-21 08:05:33 +00:00
roo hutton
2ba5af5cc1 Merge pull request #27895 from overleaf/rh-b2c-js-tsx-canceled
Migrate B2C jsx to tsx: algolia-search and subscriptions

GitOrigin-RevId: 917036ce6baf8130d2b10b46efa649f015b84576
2025-08-21 08:05:28 +00:00
Rebeka Dekany
31de40282b Update Notification story with the offer type (#27966)
* Update notification story with the `offer` type

* Remove `.btn-sm` as buttons should be medium sized

GitOrigin-RevId: ec0cd09fda0126bce185265fdf1f05ca7ae414c9
2025-08-21 08:05:20 +00:00
Antoine Clausse
2853e7762e [web] Add admin permission modify-group-manager (#27642)
* Add capacity `modify-group-manager`

* Check `modify-group-manager` (backend)

* Check `modify-group-manager` (frontend)

* Update tests

* Rename AdminPermissions to mjs

* Add `ol-adminCapabilities` in frontend tests

* Allow modifying group managers if `adminRolesEnabled` is false

* Add `adminPrivilegeAvailable` check

* Update: set `ol-canModify` boolean instead of `ol-adminCapabilities`

* Mock `hasAnyAccess`

* Use `hasAdminCapability` helper

* Add `ol-canModify` to types

* Remove `isAdminMiddleware` as we don't want to relax the permissions for now

* Fix: pass `res` to `hasAnyAccess` (!!)

* * Check `hasWriteAccess` (`hasAdminCapability('modify-group-manager')` or `staffAccess.groupManagement`) in the Pug file
* Fix: Check `hasWriteAccess` in the publisher and institution pug files (!)
* Revert `hasAnyAccess` changes
* Rename `ol-canModify` to `ol-hasWriteAccess` for consistency with other variables

* Remove redundant file AdminPermissions.mjs

* Update unit test

* Revert changes to UserMembershipController.test.mjs

* Rename to `requireGroupManagersWriteAccess`

GitOrigin-RevId: f3f0b1b17abd1d2f0c363688e87d9063de886e3c
2025-08-21 08:05:07 +00:00
M Fahru
949eb9745c Merge pull request #27998 from overleaf/mf-improve-plan-not-found-error-stripe
[web] Return user-readable error message if user visits stripe-based payment page with invalid plan code

GitOrigin-RevId: ad88a7d6698227867874fa0a724142e563d1377c
2025-08-20 08:06:29 +00:00
Jessica Lawshe
a3a7b0ea18 Merge pull request #27894 from overleaf/ii-domain-capture-join-button
[web] Domain capture join button

GitOrigin-RevId: aec6033f6776e9384c77fe0ef609c65b13a90f87
2025-08-20 08:06:21 +00:00
Jessica Lawshe
c1c5b0d0ce Merge pull request #27834 from overleaf/ii-domain-capture-not-in-group-redirect
[web] Redirect to domain capture page

GitOrigin-RevId: 15d2b8046beb5a40fc4937c337ee9655abaed8fd
2025-08-20 08:06:16 +00:00
Mathias Jakobsen
8c77cb9efd Merge pull request #28016 from overleaf/revert-27953-mj-editor-color-scheme
Revert "[web] Specify CSS color-scheme based on editor theme"

GitOrigin-RevId: b83fee057d40cb6c58c4e96f5ffdab2019965146
2025-08-20 08:06:11 +00:00
Mathias Jakobsen
2a040a889c Merge pull request #27953 from overleaf/mj-editor-color-scheme
[web] Specify CSS color-scheme based on editor theme

GitOrigin-RevId: dda4039b7fcc4aecc7ed3f96efe15518599c9226
2025-08-20 08:06:06 +00:00
MoxAmber
8e1c2d27d7 Merge pull request #27677 from overleaf/as-compile-timeout-enforcement
[web] 10s Compile Timeout - Enforcement Phase

GitOrigin-RevId: 3930eb376cc1293409259e073032218e09d5270e
2025-08-20 08:06:01 +00:00
MoxAmber
8647424f14 Merge pull request #27848 from overleaf/as-compile-warning-teardown
[web] Tear down 10s-timeout-warning split test

GitOrigin-RevId: ca8faf77bc73073e9fc126d9d722fe568921c1c3
2025-08-20 08:05:57 +00:00
Antoine Clausse
2c44d65785 [web] Add requireAdminRoles param to hasAdminCapability (#28006)
* Add `requireAdminRoles` param to `hasAdminCapability`

https://github.com/overleaf/internal/pull/27965#discussion_r2284808889

Co-authored-by: Andrew Rumble <andrew.rumble@overleaf.com>

* Update test

---------

Co-authored-by: Andrew Rumble <andrew.rumble@overleaf.com>
GitOrigin-RevId: 83f8af84debc70c7a2e294638747369c786be22f
2025-08-20 08:05:52 +00:00
Simon Gardner
4edaafe98e Merge pull request #27995 from overleaf/slg-license-allocated-text-2
[web] change text for 1 license

GitOrigin-RevId: 4bb7527c39b587830aa40018f28c60abb3238ff0
2025-08-20 08:05:47 +00:00
David
a5718b86b9 Merge pull request #27989 from overleaf/dp-pdf-caching-transport
Re-convert pdf-caching-transport to typescript

GitOrigin-RevId: f0033afd5d46bc1da00a0d815b946225a804ca19
2025-08-20 08:05:38 +00:00
Brian Gough
f183a1dfbc add option to disable link sharing (#27626)
* add option to remove link-sharing from backend

* restrict make link-sharing in the frontend based on capability

* extend e2e project-sharing tests to cover OVERLEAF_DISABLE_LINK_SHARING=true

* throw an error when link sharing is disabled in TokenAccessHandler

* throw errors when attempting to add users to projects with link sharing disabled

* Update server-ce/test/project-sharing.spec.ts

Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com>

* add tests for existing access when link sharing is disabled

* update tests to specify access restrictions for read-only and read-write link shared projects

* [web] block access to legacy public project with link-sharing disabled

---------

Co-authored-by: Jakob Ackermann <jakob.ackermann@overleaf.com>
GitOrigin-RevId: 5f194dbcb790e973e427c58a3a4a738a5dd74cb4
2025-08-20 08:05:33 +00:00
Simon Gardner
22ffe57d50 Merge pull request #27979 from overleaf/slg-license-allocated-text
[web] change wording of license allocation text on group members management page

GitOrigin-RevId: eaca68cad1dfc5f486a21497069655b188ab2824
2025-08-19 08:06:10 +00:00
Simon Gardner
9ce6f5f318 Merge pull request #27842 from overleaf/slg-group-members-jsx-to-tsx
[web] rename group-members and group managers jsx to tsx

GitOrigin-RevId: 675deadd68582197e42840ac23d18cb7971e23f6
2025-08-19 08:06:06 +00:00
Jakob Ackermann
c24886d870 [monorepo] document jenkins pipelines (#27954)
* [saas-e2e] reset database when db-migration files were removed

* [monorepo] document jenkins pipelines

* [monorepo] trim docs for jenkins pipelines

GitOrigin-RevId: 783ad94f05b36f4057e3ac6cc8b8c40f850e5d2f
2025-08-19 08:06:02 +00:00
Jakob Ackermann
97a4a09406 [history-v1] add migrations record after full binary file migration (#27932)
* [history-v1] add migrations record after full binary file migration

* [server-pro] add hotfix 5.5.5

* [server-ce] test: build hotfix 5.5.5 and use it in tests

GitOrigin-RevId: fb84e5710c59f466a3305de5f32f78e0ac9ce15d
2025-08-19 08:05:54 +00:00
Jakob Ackermann
5fa79b04a7 [web] reduce log noise in CI (#27961)
* [web] reduce noise from CollectPayPalPastDueInvoiceTest

* [web] reduce noise for frontend tests that use Range.getClientRects

* [web] avoid nesting <li> elements in ProjectToolsMoreDropdownButton

RenameProjectMenuItem/CopyProjectMenuItem will return <li> elements.

* [web] avoid clicking on links that navigate away in JSDom

* [web] add mock for location change in JSDom

* [web] add fallback stripe subscription data for test

3.8k lines of log noise!

GitOrigin-RevId: 7adab182487a6c07ac9809c60802e498a0edb0ec
2025-08-19 08:05:50 +00:00
David
cacf87923c Merge pull request #27987 from overleaf/dp-pdf-caching-revert
Revert "Merge pull request #27892 from overleaf/dp-pdf-caching-typescript"

GitOrigin-RevId: 036a05cfe5db754d1f1050bd58d2cd605550bc18
2025-08-19 08:05:42 +00:00
Eric Mc Sween
89687b5e66 Merge pull request #27823 from overleaf/em-increase-max-request-size
Increase max request size in docstore and history

GitOrigin-RevId: 8ce6c023027457a65431ee5deb2f75f467914f14
2025-08-19 08:05:35 +00:00
David
a05ade0f84 Merge pull request #27892 from overleaf/dp-pdf-caching-typescript
Convert pdf-caching-transport to typescript

GitOrigin-RevId: 161cac41eebd9d92804fad6bce85a863573b133e
2025-08-19 08:05:31 +00:00
Antoine Clausse
7a4327535d [web] Add https://analytics.propensity-abm.com/ to the ignored Propensity NetworkError (#27980)
GitOrigin-RevId: 42dec70d7e4d1bb1207c35267bb7ef6629152d65
2025-08-19 08:05:26 +00:00
Antoine Clausse
d9fc34ad80 Add utility for converting CIDR ranges to IP ranges (#26904)
* Add utility for converting CIDR ranges to IP ranges

* Add CLI support for IP matcher ranges script

GitOrigin-RevId: 1432bf3efa269c0e8e9d58fce1575bb01d694b2f
2025-08-19 08:05:22 +00:00
Simon Gardner
7b531a1b29 Merge pull request #27851 from overleaf/slg-group-member-pricing-js-to-ts
[web] Migrate group-member-pricing.jsx to tsx

GitOrigin-RevId: f5fd95939f6af5dfaedb1fafeecec04ceb6612f6
2025-08-19 08:05:18 +00:00
Domagoj Kriskovic
4edf4b2d42 Show Recurly's line items breakdown in subscription change preview (#27809)
* Show Recurly's line items breakdown in subscription change preview

* fix rounding, filter items that cancel each other out

GitOrigin-RevId: 0f5d71b3917ce8a52ff36608a6ec6280fe7d38ce
2025-08-19 08:05:02 +00:00
Rebeka Dekany
4b19028b4e Remove Bootstrap 3 related types (#27959)
* Remove bootstrap-5 folder and move tokens to foundations

* Remove unused `BsStyle` and `BsSize`

* Fix the size prop of the reference search modal

GitOrigin-RevId: 566ee519c50a39dd80bda475af40383ef8154a2c
2025-08-19 08:04:54 +00:00
Mathias Jakobsen
13ffdf3dd2 Merge pull request #27905 from overleaf/mj-pug-frontend-helpers-ts
[web] Convert pug frontend helpers to typescript

GitOrigin-RevId: e74527306ded6bc7db992cd8ceaff34d0d26b1b7
2025-08-19 08:04:50 +00:00
David
297ed66899 Merge pull request #27684 from overleaf/dp-teardown-labs
Cleanup editor-redesign labs experiment

GitOrigin-RevId: 7697736f3bada8d205bab98c03ba96a99734311a
2025-08-19 08:04:42 +00:00
David
1e6d9017ee Merge pull request #27914 from overleaf/dp-remove-duplicate-rail-component
Remove duplicate Rail component

GitOrigin-RevId: a063887559ae5305de957ec24bae930a1d8436c2
2025-08-19 08:04:37 +00:00
Jakob Ackermann
bbfea381e1 [server-ce] update link to CLA in PR template (#27943)
GitOrigin-RevId: d822884e4118c87a25b8476afef4be66ba078844
2025-08-18 08:06:12 +00:00
Jakob Ackermann
c006666837 [web] run sentry as current user to match up with the git-repo owner (#27964)
GitOrigin-RevId: a0736a6d7d8a24ec6a7b539526f52d3c2749c0bb
2025-08-18 08:06:08 +00:00
Jakob Ackermann
f66fe7a123 [web] fix sentry upload (#27960)
GitOrigin-RevId: a151486769a18d1a17f427ea6d8613821db5ef14
2025-08-18 08:06:01 +00:00
Jakob Ackermann
51fa205414 [web] update Jenkins pipeline following rename of redis container (#27957)
GitOrigin-RevId: dee9a5e22d0de96b77a9e12f1826fab9856479a3
2025-08-18 08:05:57 +00:00
Jakob Ackermann
75eae52aa3 [web] fix sentry upload (#27956)
GitOrigin-RevId: e83670af74da82e385e312a62904eaeb9b7fbef8
2025-08-18 08:05:52 +00:00
roo hutton
af3d931a6c Merge pull request #27829 from overleaf/rh-pug-contact-suggestions
Show subject suggestions list in pug contact form

GitOrigin-RevId: 509506ab1ad629eafcc34df7d841c095321ae72b
2025-08-18 08:05:48 +00:00
Jakob Ackermann
5705613231 [web] tweaks for jenkins pipeline (#27952)
* [web] move sentry upload into a Makefile target

* [web] fix typos in jenkins pipeline

* [web] fix BRANCH_NAME for PR builds

This is currently "true". Just use PR-xxx for now.

* [web] remove explicit pull of main-deps for Jenkins

In Jenkins we do not need to wait for the cloud-builder image. The
docker build can start right away. Let docker validate the remote cache
and pull it if needed.

* [packer] jenkins-worker: prefetch sentry image

* [packer] jenkins-worker: switch to production AR

* [packer] jenkins-worker: wait for monorepo setup before pulling sentry

* [web] cloudbuild: fix directory for prefetch_sentry

GitOrigin-RevId: ec394bbf51efd516f0ade8813014dec9b63fb732
2025-08-18 08:05:44 +00:00
Eric Mc Sween
ca845ad532 Merge pull request #27903 from overleaf/em-unit-tests-redis
Make Redis available to unit tests

GitOrigin-RevId: 7bd403d9ad4be504a87bc9108d60686e6c2a9fb1
2025-08-18 08:05:40 +00:00
Tim Down
a7bd6c1062 Merge pull request #27798 from overleaf/td-project-list-frontend-tests-fix
Fix and reinstate project list front-end tests

GitOrigin-RevId: 5f9343a56a5cf6e4da04c161b9f17b9282fdccbb
2025-08-18 08:05:29 +00:00
Jakob Ackermann
a84b94e04c [server-ce] force cleanup of docker images (#27944)
GitOrigin-RevId: d515f191c660e382c16497544a6d13e434a3c9e2
2025-08-18 08:05:21 +00:00
Antoine Clausse
ba97b96815 [web] Add admin permissions modify-group-member and modify-managed-group-member (#27665)
* Add capability `modify-managed-group-member` & `modify-group-member`

* Check `modify-managed-group-member` & `modify-group-member` (backend)

* Check `modify-managed-group-member` & `modify-group-member` (frontend)

* Update tests

* Update with `ol-hasWriteAccess` flag

* Update tests

* Move functions to AdminAuthorizationHelper.js

* Update import to fix build error

* Add `ol-hasWriteAccess` to types

* Use `hasAdminAccess()` instead of `req?.user?.isAdmin`

* Add tests on `/manage/groups/:id/invites` depending on admin roles

* Reuse `UserMembershipAuthorization.hasAdminCapability`

* Fix: Add entityAccess check

* Update unit test

* Rename `hasAdminGroupMemberCapability` to `hasModifyGroupMemberCapability`

* Remove useless and redundant `hasWriteAccess` check

* Restore stub in afterEach

GitOrigin-RevId: 4b6d83751121b43d4c19d0dbd82a4833cf7a6f24
2025-08-15 08:05:57 +00:00
Antoine Clausse
fcd6c44dc3 [web] Add admin permission modify-group-setting (#27657)
* Add capacity `modify-group-setting`

* Check `modify-group-setting` (backend)

* Check `modify-group-setting` (frontend)

* Update tests

* Fix: Add entityAccess check

* Update unit test

GitOrigin-RevId: 7702fe34762ecb8bd050c2fa2b6e95a9baf90be3
2025-08-15 08:05:52 +00:00
Antoine Clausse
1cd3640de4 [web] Add admin permission modify-project (#27491)
* Add capability `modify-project`

* Check `modify-project` (frontend)

* Check `modify-project` (backend)

* Update tests

* Allow admin to open project regardless of `modify-project`

* Hide `CurrentHistoryDebug` for admins without `modify-project`

GitOrigin-RevId: 92b9b59a2cafff26ea943209b60cda4e95bd58b0
2025-08-15 08:05:47 +00:00
Liangjun Song
1acb68f41c Merge pull request #27800 from overleaf/ls-support-create-stripe-customer-from-admin-panel
Support creating Stripe customer from admin panel

GitOrigin-RevId: 3e23008e1f4690e6f3737b5689e20958bf468f82
2025-08-15 08:05:34 +00:00
Jakob Ackermann
4ecf4a26ba [server-pro] trust local nginx proxy running inside Server Pro/CE (#27719)
GitOrigin-RevId: ed9bb136effb1602aa0239b107c116fd6385ebbc
2025-08-15 08:05:26 +00:00
Domagoj Kriskovic
fa892b336d Add endpoint to retrieve document with history ranges and use it in dsmp API (#27564)
GitOrigin-RevId: 3d2ac33cdc903a07b8ec67f7fb6f723ae9c81a26
2025-08-15 08:05:17 +00:00
Jakob Ackermann
3e5d3fe97e [monorepo] try harder at timing out Jenkins builds (#27897)
GitOrigin-RevId: 9d9b675d4603da761b725ab0470ecc7af4141ef0
2025-08-14 08:06:49 +00:00
Eric Mc Sween
89cc71134e Merge pull request #27862 from overleaf/em-unit-tests-migrations
Run Mongo migrations before unit tests

GitOrigin-RevId: e8ff6c8df7dac0d4c8a582863b9f78648d98079b
2025-08-14 08:06:32 +00:00