Repository navigation
feat(frontend): name the product and link its terms on the accept-ToS page (OHE-3865) - #1173
Merged
Merged
Conversation
… page (OHE-3865) The /accept-tos page showed one "Accept Terms of Service" modal and always linked https://www.openhands.dev/tos, on OpenHands Cloud and on self-hosted OpenHands Enterprise alike. The page now reads the deployment mode from the web-client config through useAppMode(): - Self-hosted enterprise: "Accept OpenHands Enterprise Terms of Service", linking https://www.openhands.dev/enterprise-tos. - Managed cloud: "Accept OpenHands Cloud Terms of Service", linking https://www.openhands.dev/tos. - Mode unknown (config not cached yet, or a backend without deployment_mode): the generic wording and link as before, so a self-hosted user never sees "Cloud" flash while the config loads. The checkbox keeps its label and takes the link target as a prop. Two interpolated translation keys carry the product name. Tests cover the three cases.
Contributor
|
✅ PR Artifacts Cleaned Up The |
hieptl
marked this pull request as ready for review
November 4, 2026 09:17
Contributor
Contributor
|
🚀 Released in 1.87.0. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
HUMAN:
AGENT:
Why
The Terms of Service acceptance page (
/accept-tos) shows the same "Accept Terms of Service" modal on OpenHands Cloud and on self-hosted OpenHands Enterprise, and always links https://www.openhands.dev/tos. The two products have different terms, so the modal should say which product the user is accepting and link the matching page.Summary
ENTERPRISE_TERMS_OF_SERVICE_URL).deployment_mode): the generic wording and link as before, so a self-hosted user never sees "Cloud" flash while the config loads. The checkbox label "I accept the terms of service" is unchanged; only its link target is now a prop.Issue Number
OHE-3865
How to Test
cd frontend npm run lint npm run check-translation-completeness npx vitest run __tests__/routes/accept-tos.test.tsx __tests__/routes/root-layout.test.tsxManual: run
npm run dev:mock:saasand open/accept-tos. The mock config has nodeployment_mode, so it shows the generic modal. For the two product variants I rewrote the/api/v1/web-client/configresponse in the page (the mock API is a service worker, so Playwright cannot intercept it) withfeature_flags.deployment_modeset tocloudandself_hosted; the screenshots below are from that run. On a real install the mode comes fromOH_DEPLOYMENT_MODE(the Helm chart pinsself_hosted, saas-deploy setscloud).Video/Screenshots
Self-hosted enterprise:
Managed cloud:
Type
Notes
www.host like the existingTERMS_OF_SERVICE_URL;openhands.dev/tosredirects there.TermsAndPrivacyNotice) and the install-wizard footer (InstallFooter) still link the Cloud terms on self-hosted installs. Not changed here..pr/holds the screenshots and is removed automatically on approval.Enterprise server image for this PR: