Skip to content

Billing Portal: Phase 1 UI#170

Merged
tobihagemann merged 5 commits into
developfrom
feature/store-migration-phase1
Jun 25, 2026
Merged

Billing Portal: Phase 1 UI#170
tobihagemann merged 5 commits into
developfrom
feature/store-migration-phase1

Conversation

@overheadhunter

Copy link
Copy Markdown
Member

Add UI for phase 1 of Hub self-service billing portal

sequenceDiagram
    participant Hub as Cryptomator Hub
    participant Web as Billing Page
    participant API as API<br/>(api.cryptomator.org)
    actor Mail as User's inbox

    Hub-)Web: redirect /hub/billing#35;?hub_id=42&return_url=xyz
    activate Web

    %% PHASE 1
    note over Hub,Mail: PHASE 1
    Web->>+API: GET /billing/customers/challenge
    API-->>-Web: challenge
    activate Web
    Web->>Web: Solve Challenge
    deactivate Web

    Web->>+API: GET /billing/customers/by-hub-id/42?captcha=...
    alt 404
        API-->>Web: 404: hub_id not found
        activate Web
        Web->>Web: Enter Email Address
        deactivate Web
    else 200
        API-->>-Web: 200: h***r@e***e.com
    end

    Web->>+API: GET /billing/session/challenge
    API-->>-Web: challenge
    activate Web
    Web->>Web: Solve Challenge
    deactivate Web
    Web->>+API: POST /billing/session<br/>{hub_id=42, return_url=..., fragment_or_query=..., email?=...}
    API->>API: Create Session
    API--)+Mail: email with link
    API-->>-Web: 204
    deactivate Web

    Mail->>-Web: open /hub/billing?session=1337
    activate Web
    Web->>+API: GET /billing/session/1337
    alt 200
        API-->>-Web: {return_url, fragement_or_query, ...}
    else 404
        note right of Web: Link Expired
    end
Loading

@overheadhunter overheadhunter marked this pull request as ready for review June 19, 2026 13:52
@coderabbitai

coderabbitai Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@overheadhunter, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 27 minutes and 51 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: db24f5c6-de66-49d0-85b5-42b7e4d06397

📥 Commits

Reviewing files that changed from the base of the PR and between fd42ebe and 66deb9d.

📒 Files selected for processing (4)
  • assets/js/hubsubscription.js
  • i18n/de.yaml
  • i18n/en.yaml
  • layouts/hub-billing/single.html
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/store-migration-phase1

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@tobihagemann tobihagemann merged commit 7d88877 into develop Jun 25, 2026
5 checks passed
@tobihagemann tobihagemann deleted the feature/store-migration-phase1 branch June 25, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants