Skip to content

chore(ui): a11y skip-link, useMemo, hook fixes, dead-code cleanup#249

Merged
jinglescode merged 1 commit into
mainfrom
chore/ui-cleanup-and-hooks
May 10, 2026
Merged

chore(ui): a11y skip-link, useMemo, hook fixes, dead-code cleanup#249
jinglescode merged 1 commit into
mainfrom
chore/ui-cleanup-and-hooks

Conversation

@jinglescode
Copy link
Copy Markdown
Member

Summary

Re-opening as new PR — original #239 was auto-closed when its base branch (feat/server-hardening-and-audit-log) was deleted on merge of #237. Same diff, now targeting main.

UI hygiene: a11y skip-link, JSON.parse memoization in transaction-card, hook dependency fixes, removal of dead example component (107 lines) and orphan client-bundle imports.

See original #239 for full discussion.

Test plan

  • Tab key reveals skip-to-content link on layout
  • Transaction list renders without re-parsing txJson on every render
  • No console warnings about missing hook deps
  • Example component (ProxyControlExample) is fully removed

🤖 Generated with Claude Code

Small UI/hook cleanup that fell out of the audit:

- overall-layout: add skip-link + main-content anchor; aria-label on the
  main form. Trims unused legacy nav code.
- transaction-card: useMemo the JSON.parse(transaction.txJson) so the
  parse only runs when txJson changes, not on every render. Removes a
  dead `import { get } from \"http\"` that was sneaking into the client
  bundle.
- signable-card: defensive parse for legacy payload shapes.
- card-show-signers, signing/index: small render fixes.
- ImgDragAndDrop, MeshProviderClient, BotManagementCard, background.tsx:
  drop dead state vars / unused imports surfaced by the audit.
- useAppWallet, useMultisigWallet: stable returns; missing-wallet path
  no longer spins indefinitely.
- Delete `src/components/multisig/proxy/ProxyControlExample.tsx`. It was
  example-only code, not exported from the proxy index, never rendered
  anywhere. The barrel import is updated.

Test plan
- 165/165 staged-suite tests pass on top of #237
- Typecheck clean

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@jinglescode jinglescode merged commit c376851 into main May 10, 2026
5 checks passed
@jinglescode jinglescode deleted the chore/ui-cleanup-and-hooks branch May 10, 2026 09:00
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