9
2
Fork
You've already forked platform
2

fix: point billing links to dashboard anchor #361

Manually merged
ryansquared merged 2 commits from fix/issue-273-billing-url into main 2026年07月07日 15:59:00 +02:00

Summary

  • Replace stale /settings/billing links with the dashboard billing anchor https://caution.dev/#billing.
  • Centralize the billing URL in API, metering, and email-service code paths used by payment-required errors and dunning emails.
  • Add regression coverage for the API/metering billing URL constants and update suspension email assertions.

Test plan

  • cargo test -p email-service suspension_ -- --nocapture
  • cargo test -p api billing_url_points_to_dashboard_billing_hash -- --nocapture
  • cargo test -p metering billing_url_points_to_dashboard_billing_hash -- --nocapture
  • rg -n 'https://caution\.dev/settings/billing' . returned no matches
  • git diff --check

Note: cargo fmt -- --check was run and reports pre-existing formatting drift in unrelated files; no unrelated formatting changes are included in this PR.

Closes #273

## Summary - Replace stale `/settings/billing` links with the dashboard billing anchor `https://caution.dev/#billing`. - Centralize the billing URL in API, metering, and email-service code paths used by payment-required errors and dunning emails. - Add regression coverage for the API/metering billing URL constants and update suspension email assertions. ## Test plan - `cargo test -p email-service suspension_ -- --nocapture` - `cargo test -p api billing_url_points_to_dashboard_billing_hash -- --nocapture` - `cargo test -p metering billing_url_points_to_dashboard_billing_hash -- --nocapture` - `rg -n 'https://caution\.dev/settings/billing' .` returned no matches - `git diff --check` Note: `cargo fmt -- --check` was run and reports pre-existing formatting drift in unrelated files; no unrelated formatting changes are included in this PR. Closes #273
@ -20,6 +20,8 @@ use tower_http::trace::TraceLayer;
usetracing::info;
useuuid::Uuid;
constBILLING_URL: &str ="https://caution.dev/#billing";

This might change between deployments. We should make this configurable with an std::sync::LazyCell that uses an environment variable, and update env.example, probably with a variable such as CAUTION_DOMAIN. Otherwise, deploying in separate environments might lead to the same domain name being used.

This might change between deployments. We should make this configurable with an std::sync::LazyCell that uses an environment variable, and update `env.example`, probably with a variable such as `CAUTION_DOMAIN`. Otherwise, deploying in separate environments might lead to the same domain name being used.
ryansquared manually merged commit ee5c987940 into main 2026年07月07日 15:59:00 +02:00
Sign in to join this conversation.
No reviewers
Labels
Clear labels
Compat/Breaking
Breaking change that won't be backward compatible
Component/Enclave-Builder
This issue affects Enclave Builder (git-push and CLI)
Component/Infrastructure
This issue affects generic Caution hosted infra components
Deploy/BYOC
Relates to Caution Bring-your-own-compute
Deploy/Full-managed
Relates to Caution fully managed cloud
Deploy/Self-hosted
Relates to Caution deployed on self-hosted infra
Interface/API
This issue affects the API
Interface/CLI
This issue affects the command line interface
Interface/Git
This issue affects the Git `push` interface
Interface/Web
This issue affects the web dashboard
Kind/Bug
Something is not working
Kind/Documentation
Documentation changes
Kind/Enhancement
Improve existing functionality
Kind/Feature
New functionality
Kind/Security
This is security issue
Kind/Testing
Issue or pull request related to testing
Priority
Critical
The priority is critical
Priority
High
The priority is high
Priority
Low
The priority is low
Priority
Medium
The priority is medium
Reviewed
Confirmed
Issue has been confirmed
Reviewed
Duplicate
This issue or pull request already exists
Reviewed
Invalid
Invalid issue
Reviewed
Won't Fix
This issue won't be fixed
Status
Abandoned
Somebody has started to work on this but abandoned work
Status
Blocked
Something is blocking this issue or pull request
Status
Need More Info
Feedback is required to reproduce issue or to continue work
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
caution/platform!361
Reference in a new issue
caution/platform
No description provided.
Delete branch "fix/issue-273-billing-url"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?