Skip to content

docs: add dynamic referral rewards table#133

Merged
kelsos merged 1 commit into
rotki:mainfrom
kelsos:docs/referral-dynamic-table
Jul 3, 2026
Merged

docs: add dynamic referral rewards table#133
kelsos merged 1 commit into
rotki:mainfrom
kelsos:docs/referral-dynamic-table

Conversation

@kelsos

@kelsos kelsos commented Jul 3, 2026

Copy link
Copy Markdown
Member

Summary

Adds a dynamic rewards table to the referral guide that pulls tier prices and reward rates live from the referral program endpoint (https://rotki.com/webapi/2/referral/program), so the guide always reflects current values with no hardcoded numbers to drift.

  • New ReferralRewardsTable.vue component, fetched client-side in onMounted (SSR-safe), sorted by price ascending.
  • Columns: Plan / Monthly / Yearly / Your reward, with the referee discount in the caption.
  • Falls back to a styled, theme-aware empty state pointing to the subscription page when the request fails or returns no tiers. The fallback quotes no numbers, so it can't go stale either.
  • Registered globally in the VitePress theme and dropped into the Referrer Rewards section of premium/referrals.md.

Testing

  • pnpm build succeeds, component renders in the built HTML.
  • pnpm lint clean.
  • Verified live values render (Supporter/Basic/Advanced) and the empty state via a bad endpoint override.

Fetch tier prices and reward rates live from the referral program
endpoint and render them in a table on the referral guide. Falls back
to a styled empty state that points to the subscription page when the
request fails or returns no tiers.
@kelsos
kelsos merged commit 13e407d into rotki:main Jul 3, 2026
5 checks passed
@kelsos
kelsos temporarily deployed to github-pages July 3, 2026 16:14 — with GitHub Actions Inactive
@kelsos
kelsos deleted the docs/referral-dynamic-table branch July 3, 2026 16:34
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.

1 participant