Skip to content

Add accessible description for creator price chart data points#384

Merged
Chucks1093 merged 2 commits into
accesslayerorg:mainfrom
Johnpii1:main
May 30, 2026
Merged

Add accessible description for creator price chart data points#384
Chucks1093 merged 2 commits into
accesslayerorg:mainfrom
Johnpii1:main

Conversation

@Johnpii1

Copy link
Copy Markdown
Contributor

Summary

Description
Add a display-only normaliser normalizeCreatorDisplayName that trims and collapses internal whitespace without mutating stored values (src/utils/creatorDisplayName.utils.ts).
Add getCreatorPriceChartAccessibilityCopy to derive a screen-reader summary and hidden data points from the same price inputs used by the chart (src/utils/creatorPriceChartAccessibility.utils.ts).
Wire the display-name normaliser into card/profile/trade/breadcrumb surfaces (CreatorCard, CreatorProfileHeader, TradeDialog, CreatorBreadcrumb) so UI copy and share titles use the cleaned name while source values remain unchanged.
Render accessible chart markup in the creator card by adding an role="img" with an aria-label driven by the accessibility helper and an sr-only HTML table containing the chart points so non-visual users can access the underlying values (src/components/common/CreatorCard.tsx).
Add targeted unit/component tests for the new helpers and the card accessibility integration (src/utils/tests/creatorDisplayName.utils.test.ts, src/utils/tests/creatorPriceChartAccessibility.utils.test.ts, src/components/common/tests/CreatorCard.accessibility.test.tsx).

Testing

Testing
Ran the new targeted tests with pnpm exec vitest run src/utils/tests/creatorDisplayName.utils.test.ts src/utils/tests/creatorPriceChartAccessibility.utils.test.ts src/components/common/tests/CreatorCard.accessibility.test.tsx and they passed.
Type-checking with pnpm exec tsc -b completed successfully.
Linting with pnpm lint succeeded and prettier formatting was applied.
Production build with pnpm build completed successfully (Vite emitted size/annotation warnings only).
A full pnpm test run surfaced unrelated existing failures/timeouts in other test files outside this change set, but these failures are pre-existing and not caused by this PR.

  • pnpm lint
  • pnpm build

Checklist

  • Linked issue or backlog item
  • Scope is limited to the stated change
  • Updated docs if behavior or setup changed
  • Added screenshots for UI changes when relevant

close #369

Johnpii1 added 2 commits May 30, 2026 18:01
…for-price-chart

Add accessible creator chart descriptions and display name normalization
@drips-wave

drips-wave Bot commented May 30, 2026

Copy link
Copy Markdown

@Johnpii1 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Chucks1093 Chucks1093 merged commit f708480 into accesslayerorg:main May 30, 2026
2 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.

Add accessible description for creator price chart data points

2 participants