feat: ToU readiness — onboarding, footer, and bug fixes#648
Open
jim-counter wants to merge 9 commits intomainfrom
Open
feat: ToU readiness — onboarding, footer, and bug fixes#648jim-counter wants to merge 9 commits intomainfrom
jim-counter wants to merge 9 commits intomainfrom
Conversation
Update onboarding to dynamically fetch the current active ToU version URL, add Terms of Use and Privacy Policy links to the landing footer, and update the fallback ToU URL to the confirmed Auto Drive ToU page. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ates (#635) Use Intl.DateTimeFormat (V8-built-in) instead of toLocaleDateString to avoid locale-data issues on minimal Docker images. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Aligns tou_versions and user_tou_acceptance with the convention used by banners and purchased_credits tables, preventing incorrect effective_date comparisons in non-UTC server environments. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Return the existing acceptance record on duplicate calls instead of null. The ON CONFLICT DO NOTHING already prevented 500s, but now the response is consistent regardless of whether it's a first or repeated accept. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
✅ Deploy Preview for auto-drive-storage ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Member
Author
|
bugbot run |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Member
Author
|
bugbot run |
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
Completes the remaining items on the ToU Readiness milestone:
EXTERNAL_ROUTES.termsOfUseURL. ToU acceptance is recorded after account creation viaPOST /tou/accept. Changed label from "terms and conditions" to "Terms of Use" for consistency. Confirmed ToU URL:https://autonomys.xyz/auto-drive-terms-of-use.TouAcceptanceInterstitialto the confirmed URL.setTouStatusto theuseEffectdependency array inSessionEnsurer.toLocaleDateString('en-US', ...)withIntl.DateTimeFormatfor banner date formatting. Note: the original issue flagged this for Alpine-based Docker images where OS locale data may be missing. Our Dockerfiles usenode:20.18.3-bookworm-slim(Debian), which ships with full ICU data, sotoLocaleDateStringwould have worked in practice. TheIntl.DateTimeFormatchange is still an improvement — it's the modern API, constructs the formatter once, and explicitly setstimeZone: 'UTC'for deterministic output.TIMESTAMPcolumns intou_versionsanduser_tou_acceptancetoTIMESTAMP WITH TIME ZONE, consistent withbannersandpurchased_creditstables.createAcceptancenow returns the existing record on duplicate calls instead ofnull. TheON CONFLICT DO NOTHINGalready prevented 500 errors, but the response is now consistent.Closes #627
Closes #636
Closes #635
Closes #639
Closes #640
Closes #645
Test plan
contentUrl(or falls back to static URL if no active version)POST /tou/acceptPOST /tou/acceptcalled twice returns 204 both times (no 500)TIMESTAMP WITH TIME ZONE🤖 Generated with Claude Code