-
Notifications
You must be signed in to change notification settings - Fork 1
feat(reports): leftover-map comparison graphic leftover-map axis leftover-map singular values as leftoverMapComparePlotAxisBadge (v2.83.0) #867
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
seonghobae
wants to merge
24
commits into
feat/leftover-map-plot-axis-singular-v2810
Choose a base branch
from
feat/leftover-map-compare-plot-axis-badge-v2830
base: feat/leftover-map-plot-axis-singular-v2810
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
cf7bb55
feat(reports): leftover-map comparison graphic leftover-map axis left…
seonghobae ab24e79
test(red): reconstruct comparison-graphic axis badge contract
seonghobae d9f3a11
chore(stack): converge comparison-graphic axis-badge lane
seonghobae 862a6e5
chore(stack): converge comparison-graphic axis-badge lane on document…
seonghobae c888b28
chore(stack): converge #867 onto repaired #866 head
seonghobae 86d2471
chore(stack): converge #867 onto repaired #866
seonghobae 3e338bc
chore(stack): converge #867 onto repaired ancestry
seonghobae f8ff09f
chore(stack): converge #867 onto repaired #866
seonghobae cf5056e
chore(stack): converge #867 onto repaired #866
seonghobae bfc4005
merge: converge v2.83.0 onto current v2.82.0 parent
seonghobae 6d55624
fix(reports): compose comparison plot axis evidence
seonghobae e467095
test(reports): pin comparison graphic axis badge wiring
seonghobae 9e9e38d
fix(reports): render comparison graphic axis badges with graphic copy
seonghobae a812976
test(reports): execute comparison graphic axis badge state matrix
seonghobae b70c2a3
merge(reports): converge report-axis missingness repair into comparis…
seonghobae 8ba4063
merge(reports): converge #867 onto #866 RED contract head
seonghobae 8e76dc8
chore(stack): adopt current comparison tick contract
seonghobae a05cf72
chore(stack): adopt current comparison tick composition
github-actions[bot] 1d5e0d7
chore(stack): converge current #866 into #867
github-actions[bot] 42fee51
chore(stack): converge semantic RED harness onto #867
seonghobae 09ee432
chore(stack): converge #866 product repair into #867
seonghobae bbbb7f4
merge: converge #867 on report contract repairs
seonghobae fc19017
chore(stack): converge #867 onto #866 owner stack
seonghobae 6b2611c
chore(stack): converge #867 onto repaired #865 head
seonghobae File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
tests/test_grouping_comparison_graphic_axis_badge_contract.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| """Executable contract for comparison-graphic axis singular/share composition.""" | ||
|
|
||
| from pathlib import Path | ||
|
|
||
|
|
||
| ROOT = Path(__file__).resolve().parents[1] | ||
| SINGULAR_SOURCE = ROOT / "frontend" / "src" / "leftoverMapPlotAxisSingular.ts" | ||
| PLOT_SOURCE = ROOT / "frontend" / "src" / "components" / "LeftoverMapPlot.tsx" | ||
|
|
||
|
|
||
| def test_comparison_graphic_axis_badge_preserves_singular_when_share_is_missing() -> None: | ||
| """Valid persisted σ remains visible on the comparison graphic without share.""" | ||
| assert SINGULAR_SOURCE.exists(), "comparison singular-value helper is missing" | ||
| source = SINGULAR_SOURCE.read_text(encoding="utf-8") | ||
|
|
||
| assert "leftoverMapComparePlotAxisBadge" in source | ||
| assert ( | ||
| 'LEFTOVER_MAP_COMPARE_PLOT_AXIS_SINGULAR =\n' | ||
| ' "leftover map comparison graphic leftover-map axis {axis} σ {value}"' | ||
| in source | ||
| ) | ||
| assert "LEFTOVER_MAP_COMPARE_PLOT_AXIS_SINGULAR_SHARE" in source | ||
| assert "LEFTOVER_MAP_COMPARE_PLOT_AXIS_SHARE" in source | ||
|
|
||
|
|
||
| def test_comparison_graphic_axis_badge_keeps_sigma_and_share_independent() -> None: | ||
| """σ-only, share-only, combined, and empty states remain persisted-data decisions.""" | ||
| assert SINGULAR_SOURCE.exists(), "comparison singular-value helper is missing" | ||
| source = SINGULAR_SOURCE.read_text(encoding="utf-8") | ||
|
|
||
| assert "formatLeftoverMapPlotAxisSingular" in source | ||
| assert "Number.isFinite" in source | ||
| assert "Math.sqrt" not in source | ||
| assert "Math.max" not in source | ||
|
|
||
|
|
||
| def test_comparison_graphic_renders_graphic_specific_axis_badges() -> None: | ||
| """Comparison plot badges must use graphic naming, not comparison-strip naming.""" | ||
| assert PLOT_SOURCE.exists(), "comparison plot component is missing" | ||
| source = PLOT_SOURCE.read_text(encoding="utf-8") | ||
|
|
||
| assert "leftoverMapComparePlotAxisBadge" in source | ||
| assert ".map((axis) => leftoverMapComparePlotAxisBadge(axis))" in source | ||
| assert ".map((axis) => leftoverMapCompareAxisBadge(axis))" not in source |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.