Skip to content

feat(aggregator): add Cost Explorer band lane charts - #3972

Merged
dezren39 merged 1 commit into
mainfrom
queue/4908-1400-lane-charts
Nov 2, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/4908-1400-lane-charts

Conversation

@dezren39

@dezren39 dezren39 commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

Summary

Band-comparison groups 3–5
  reuse their existing members + near-leader choices
  add a metric lane chart with selectable, keyboard-operable model points
Group 6
  share its speed-target/cost-tier cells between the table and chart

Adds the first bounded slice of the parity remainder; the tables and their band math remain unchanged.

Evidence

  • Before: band-comparison groups 3–6 were tables only.
  • After: bun test test/aa.test.ts test/a11y-1215.test.ts — 38 pass, 0 fail; git diff --check passes.
  • Full aggregator suite: 885 pass; the known test/slice3.test.ts:506 main-branch failure is also documented in PR test(aggregator): cover Cost Explorer client computations #3737. The worktree lacks web-push and @types/bun, so alerts.test.ts cannot load and bunx tsc --noEmit cannot run to completion.

Merge Danger

Door: two-way

The UI addition is isolated to band comparisons and can be reverted. src/render.ts also appears in open Drew-authored PR #3737, which extracts shared band calculations but does not add lane charts; expect possible merge conflict if both branches advance together. This PR does not modify or depend on that PR.

Blast Radius: narrow

Refs #1400


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

@dezren39
dezren39 requested a review from a team as a code owner November 1, 2026 21:00
@coderabbitai

coderabbitai Bot commented Nov 1, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 1 minute.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 263eb965-2c44-4612-bf7c-70b1bf28b26b
Commits

Reviewing files that changed from the base of the PR and between 70a595a and 37ff922.

Files selected for processing: 2
  • pm-stack/aggregator/src/render.ts
  • pm-stack/aggregator/test/aa.test.ts
  • 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 1, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-01T21:03:53.456737Z 37ff922 PR opened
ℹ️ 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 37ff9224be

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +4207 to +4208
var label = band.label.length > 38 ? band.label.slice(0, 35) + "…" : band.label;
svg += '<text x="8" y="' + (cy + 3) + '" font-size="9" fill="#c9d1d9">' + esc(label) + "</text>";

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve the cost tier when shortening group 6 lane labels

When group 6 has multiple populated cost tiers for the 100th-percentile target, this truncation renders every corresponding lane label as Fastest available (100th percentile…, dropping the tier identifier and cost range entirely. Empty tiers are also omitted from the chart, so users cannot reliably infer which tier each lane represents from its position. Neither the label nor the point tooltip exposes the full lane label. Shorten the target prefix or wrap the label so the distinguishing tier remains visible.

Useful? React with 👍 / 👎.

svg += '<circle class="xpt" data-pick="' + esc(p.key) + '" cx="' + x(v).toFixed(1) + '" cy="' + py.toFixed(1) + '" r="' + (isLeader ? 5 : 3.8) + '" fill="' + color + '" fill-opacity="' + (isLeader ? 0.95 : 0.65) + '" stroke="' + (isLeader ? "#fff" : color) + '" stroke-width="' + (isLeader ? 1.5 : 0.8) + '" tabindex="0" role="button" aria-label="' + esc("Select " + desc) + '"><title>' + esc(desc + (isLeader ? " — band leader" : " — near-leader")) + "</title></circle>";
});
});
return '<div class="xpl-band-lane-wrap">' + svg + "</svg></div>";

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Give lane charts the existing dark chart surface

With prefers-color-scheme: light, these charts render directly on the white page because xpl-band-lane-wrap has no background and is not inside a .chart. Their SVG foregrounds remain dark-theme colors: lane labels use #c9d1d9 (only 1.54:1 contrast against white), and the leader's white ring disappears. The existing light-theme CSS preserves a dark background specifically for .chart, but this wrapper misses that protection. Reuse that surface or explicitly theme the lane charts so their labels and leader indicators remain visible in light mode.

Useful? React with 👍 / 👎.

@dezren39
dezren39 merged commit 2cb2055 into main Nov 2, 2026
1 check passed
@dezren39
dezren39 deleted the queue/4908-1400-lane-charts branch November 2, 2026 15:45
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