Skip to content

fix(aggregator): Turso SaaS card takes its plan and limits from the live read (#10436) - #11796

Merged
dezren39 merged 1 commit into
mainfrom
fix/turso-plan-label
Nov 18, 2026
Merged

dezren39 merged 1 commit into
mainfrom
fix/turso-plan-label

Conversation

@dezren39

@dezren39 dezren39 commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Closes #10436

Before: the /quota Turso card showed fresh metrics from the live gatherer read, but its plan label still read "Starter Free $0" from the dated local record while the read said the org is on scaler. The metric limits were the Starter ones too, so the card showed, for example, a 5 GB storage limit beside a 45.528% that the read had computed against Scaler's 24 GB.

After: when a fresh read carries a plan, the card's label reads "Scaler (live read)", its limits are Scaler's, and the source note says the plan and limits came from the read. A read with no plan keeps the record's label and the Starter limits, as before. Metrics the read does not carry stay as stale dated values with their old limits, unchanged.

How: overlayTursoUsage resolves the read's planLabel through resolveTursoLimits (the same per-plan table the gatherer falls back to) and maps each window to the card's units (storage and sync in decimal GB). Two tests: a scaler read sets the label and all four limits, and a plan-less read keeps the record. Ran quota-current (75 pass) and the 10 other files that touch the quota or SaaS view (171 pass); tsc --noEmit is clean outside the Playwright specs, which need packages not installed here.


Generated by Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…ive read (#10436)

overlayTursoUsage replaced the metrics from a fresh gatherer read but
kept the dated record's plan label (Starter Free $0) and the Starter
limits, while the read said scaler. A fresh read that carries a plan now
sets the card's plan label and its metric limits from that plan
(resolveTursoLimits' per-plan table). A read without a plan keeps the
record's label and the Starter limits, as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dezren39
dezren39 marked this pull request as ready for review November 18, 2026 11:55
@dezren39
dezren39 requested a review from a team as a code owner November 18, 2026 11:55
@coderabbitai

coderabbitai Bot commented Nov 18, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T11:57:05.130363Z 21a05e0 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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.

pm-stack(turso): /quota SaaS card plan label disagrees with the quota read — page "Starter Free $0" vs hub plan "scaler"

2 participants