Skip to content

PM-5402: Stack extreme rating markers#1980

Merged
jmgasper merged 1 commit into
devfrom
PM-5402-2
Jun 22, 2026
Merged

PM-5402: Stack extreme rating markers#1980
jmgasper merged 1 commit into
devfrom
PM-5402-2

Conversation

@jmgasper

Copy link
Copy Markdown
Collaborator

What was broken
The earlier PM-5402 follow-ups stacked the marker only after it crossed a chart-position threshold. QA had already shown the 3664 tourist score staying inline and clipped after the first threshold-based fix, and the regression coverage still only proved a clamped right-edge case.

Root cause
The inline avatar-and-score badge can run out of room for extreme ratings when the distribution tail or compact viewport leaves less horizontal space than a percentage threshold assumes. The existing test did not exercise a high rating before that threshold.

What was changed
Stack marker labels for extreme ratings in addition to the existing right-edge threshold, so very high scores move below the avatar before the inline badge can crowd the chart edge.

Any added/updated tests
Updated the MemberRatingInfoModal regression test with an expanded-tail distribution that places rating 3664 before the 80% threshold and verifies the marker still uses the stacked layout.

Validation
Passed: yarn test:no-watch --runTestsByPath src/apps/profiles/src/member-profile/about-me/MemberRatingCard/MemberRatingInfoModal/MemberRatingInfoModal.spec.tsx
Passed: yarn lint
Passed: yarn run build, with existing CRA build warnings
Not passed: yarn test:no-watch still fails in unrelated work and wallet-admin suites outside this profiles change.

What was broken
The previous follow-up still depended on the marker reaching a chart-position threshold before stacking the avatar and score. The regression test only covered a clamped right-edge case, so it did not prove that a 3664-style rating would stack when a wider distribution tail placed the marker before that threshold.

Root cause
The inline marker layout can still run out of horizontal room for extreme ratings when the distribution range or viewport leaves less usable space than the threshold assumes.

What was changed
Stack marker labels for extreme ratings in addition to the existing right-edge position threshold, keeping high scores below the avatar before the inline badge can crowd the chart edge.

Any added/updated tests
Updated the MemberRatingInfoModal regression test with an expanded-tail distribution that places rating 3664 before the 80% threshold and verifies the stacked marker layout still applies.
@jmgasper jmgasper requested a review from kkartunov as a code owner June 22, 2026 06:58
@jmgasper jmgasper merged commit 5ce65c6 into dev Jun 22, 2026
7 checks passed
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