Skip to content

fix(AccountCard): sequence label/tooltip, subentry reserve indicator, aria-labelledby (#168)#240

Open
KayProject wants to merge 1 commit into
Sorokit:mainfrom
KayProject:fix/accountcard-sequence-subentry-a11y
Open

fix(AccountCard): sequence label/tooltip, subentry reserve indicator, aria-labelledby (#168)#240
KayProject wants to merge 1 commit into
Sorokit:mainfrom
KayProject:fix/accountcard-sequence-subentry-a11y

Conversation

@KayProject

Copy link
Copy Markdown
Contributor

Summary

Resolves the three issues in AccountCard described in #168.

  1. Sequence number now has descriptive context. A Sequence Number sublabel with a tooltip: "Used to prevent duplicate transactions".
  2. Subentry count shows reserve impact. Renders Subentries: N (+N*0.5 XLM reserved) below the count.
  3. Heading/content association. The <h3> carries id="account-card-heading" and the content region carries aria-labelledby="account-card-heading".

Acceptance criteria

  • Sequence number has a descriptive label and tooltip
  • Subentry count shows XLM reserve impact
  • Card content div has aria-labelledby pointing to the heading
  • npm run build passes

Tests

Added AccountCard.test.tsx cases for the sublabel + tooltip, the XLM reserve string, and the aria-labelledby association. Also added vitest.config.ts wiring jsdom + the previously-orphaned src/setupTests.ts, so the component suite runs.

Closes #168

…tor, aria-labelledby

- Add a 'Sequence Number' sublabel with a tooltip explaining the field is
  'Used to prevent duplicate transactions'
- Show the base reserve impact under subentryCount:
  'Subentries: N (+N*0.5 XLM reserved)'
- Wire the content region to the card heading via id='account-card-heading'
  and aria-labelledby for screen-reader association
- Add vitest.config.ts wiring jsdom + the (previously orphaned) src/setupTests.ts
  so the component test suite actually runs

Closes Sorokit#168
@drips-wave

drips-wave Bot commented Jun 30, 2026

Copy link
Copy Markdown

@KayProject 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

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.

fix(AccountCard): sequence number lacks context, subentryCount missing reserve indicator, no aria-labelledby on content region

1 participant