Skip to content

feat(reports): leftover-map comparison graphic leftover-map axis origin ticks independently of leftover-map axis share and leftover-map singular values (v2.101.0) - #886

Draft
seonghobae wants to merge 1 commit into
feat/leftover-map-plot-tick-origin-badge-v21000from
feat/leftover-map-compare-plot-tick-origin-badge-v21010
Draft

feat(reports): leftover-map comparison graphic leftover-map axis origin ticks independently of leftover-map axis share and leftover-map singular values (v2.101.0)#886
seonghobae wants to merge 1 commit into
feat/leftover-map-plot-tick-origin-badge-v21000from
feat/leftover-map-compare-plot-tick-origin-badge-v21010

Conversation

@seonghobae

@seonghobae seonghobae commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Summary

Stacked on #885 @ 7a6c038 (feat/leftover-map-plot-tick-origin-badge-v21000). leftoverMapComparePlotTickAxisBadge (ADR 0344 / v2.101.0) names leftover-map comparison graphic leftover-map axis origin ticks independently of leftover-map axis share and leftover-map singular values.

  • Distinct accessible name leftover map comparison graphic leftover-map axis {axis} origin tick {value} when leftoverMapPlotTickIsOrigin returns true (formatSignedLeftoverValue(0) === 0.00).
  • Rank-0 unused axes still name leftover-map origin 0.00.
  • Share and singular omit independently as leftover map comparison graphic leftover-map axis {axis} origin tick {value} σ {singular}, leftover map comparison graphic leftover-map axis {axis} origin tick {value} {share}%, and leftover map comparison graphic leftover-map axis {axis} origin tick {value} σ {singular} {share}%.
  • Non-origin leftover-map comparison graphic leftover-map axis ticks stay leftover map comparison graphic leftover-map axis {axis} tick {value}.
  • leftoverMapPlotTickAxisBadge stays leftover-map graphic leftover-map axis origin tick keys from ADR 0343.
  • leftoverMapCompareAxisTickBadge and leftoverMapAxisTickBadge stay leftover-map tick keys this increment. Do not mix feat(reports): leftover-map origin on leftover-map comparison graphic leftover-map axis ticks independently of leftover-map axis share and leftover-map singular values (v2.92.0) #877.
  • Do not invent leftover-map origin from leftover-map axis share or leftover-map singular values σ_k.
  • UI-only. No SQL. No new columns. Never invent a leftover score. Never invent a theta.

Test plan

Leave open for independent review. Do not self-approve. Do not squash-merge.


Devin Review

…in ticks independently of leftover-map axis share and leftover-map singular values (v2.101.0)
@coderabbitai

coderabbitai Bot commented Aug 31, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 9b087ddc-79f9-4efb-962b-ea74fcbb2983

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

Copy link
Copy Markdown
Contributor Author

Exact head 4a31a41. oxlint 0/0, tsc -b clean, vitest 753 passed on leftover-map origin-tick files. Independent APPROVE required on this exact head (Devin COMMENT is not APPROVE). Leave stacked leftover-map PRs open. Do not squash-merge onto unprotected leftover bases. Do not mix #877. Issues #79 and #87 stay OPEN. Do not merge #808 without independent APPROVE. Do not self-approve.

@devin-ai-integration devin-ai-integration 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.

Devin Review found 2 potential issues.

Devin Review

): LeftoverMapCompareAxisBadge {
const singular = formatLeftoverMapPlotAxisSingular(leftoverSingular);
const percent = formatLeftoverMapPlotAxisShare(leftoverShare);
const origin = leftoverMapPlotTickIsOrigin(tickLabel);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📝 Info: Origin detection shares its formatter

leftoverMapPlotTickIsOrigin and coordinate tick generation use formatSignedLeftoverValue. Generated zero labels therefore match without a separate numeric-origin source.

Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Comment on lines +282 to +306
const origin = leftoverMapPlotTickIsOrigin(tickLabel);
if (singular === null && percent === null) {
return { key: LEFTOVER_MAP_COMPARE_PLOT_TICK, values: { axis: axisIndex, value: tickLabel } };
return {
key: origin ? LEFTOVER_MAP_COMPARE_PLOT_ORIGIN_TICK : LEFTOVER_MAP_COMPARE_PLOT_TICK,
values: { axis: axisIndex, value: tickLabel },
};
}
if (singular === null && percent !== null) {
return {
key: LEFTOVER_MAP_COMPARE_PLOT_TICK_SHARE,
key: origin ? LEFTOVER_MAP_COMPARE_PLOT_ORIGIN_TICK_SHARE : LEFTOVER_MAP_COMPARE_PLOT_TICK_SHARE,
values: { axis: axisIndex, value: tickLabel, share: percent },
};
}
if (singular !== null && percent === null) {
return {
key: LEFTOVER_MAP_COMPARE_PLOT_TICK_SINGULAR,
key: origin
? LEFTOVER_MAP_COMPARE_PLOT_ORIGIN_TICK_SINGULAR
: LEFTOVER_MAP_COMPARE_PLOT_TICK_SINGULAR,
values: { axis: axisIndex, value: tickLabel, singular },
};
}
return {
key: LEFTOVER_MAP_COMPARE_PLOT_TICK_SINGULAR_SHARE,
key: origin
? LEFTOVER_MAP_COMPARE_PLOT_ORIGIN_TICK_SINGULAR_SHARE
: LEFTOVER_MAP_COMPARE_PLOT_TICK_SINGULAR_SHARE,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📝 Info: Badge omissions remain independent

Origin selection only changes the translation key. Existing singular and share validation still controls each optional value independently.

Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Copy link
Copy Markdown
Contributor Author

Stacked #887 @ 7637fc8 (feat/leftover-map-compare-axis-tick-origin-badge-v21020) names leftover-map comparison leftover-axis origin ticks as leftoverMapCompareAxisTickBadge (ADR 0345 / v2.102.0) independently of leftover-map axis share and leftover-map singular values. Distinct accessible name leftover map comparison leftover axis {axis} origin tick {value}. Rank-0 unused axes still name leftover-map origin 0.00. leftoverMapPlotTickAxisBadge stays leftover-map graphic leftover-map axis origin tick keys. leftoverMapComparePlotTickAxisBadge stays leftover-map comparison graphic leftover-map axis origin tick keys. leftoverMapAxisTickBadge stays leftover-map tick keys. Do not mix #877. Leave both open for independent review. Do not self-approve. Do not squash-merge. Issues #79 and #87 stay OPEN. Do not merge #808 without independent APPROVE.

Copy link
Copy Markdown
Contributor Author

Cycle write probe 2026-08-31T11:00Z: independent APPROVE still required on exact head 4a31a41 (Devin COMMENT is not APPROVE). Next stacked #887 leftover-map comparison leftover-axis origin ticks @ 7637fc8 and #889 leftover-map leftover-axis origin ticks @ 4bfb490 remain open. Do not self-approve. Do not squash-merge. Do not mix #877. Issues #79 and #87 stay OPEN. Do not merge #808 without independent APPROVE.

@seonghobae
seonghobae marked this pull request as draft September 3, 2026 05:10
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