Skip to content

feat(#354): add information tooltips for financial terms#570

Merged
Wilfred007 merged 2 commits intoGildado:mainfrom
playground-ogazboiz:feature/354-financial-tooltips
Mar 30, 2026
Merged

feat(#354): add information tooltips for financial terms#570
Wilfred007 merged 2 commits intoGildado:mainfrom
playground-ogazboiz:feature/354-financial-tooltips

Conversation

@ogazboiz
Copy link
Copy Markdown
Contributor

Summary

  • Creates a reusable InfoTooltip component — a small ⓘ button that shows a descriptive panel on hover or focus, using CSS variable-based theming (works in both light and dark modes)
  • Adds tooltips for three key financial terms at every UI location where they appear:
    • ORGUSD — all three "Asset Code" input labels in AdminPanel
    • Trustline — the "Trustline Status" section heading in AdminPanel
    • Ledger Sequence — the "Last Ledger" stat row in FeeEstimationPanel
  • Fully keyboard-accessible (aria-label, aria-expanded, aria-haspopup, role="tooltip")

Test plan

  • InfoTooltip hidden by default
  • Tooltip appears on mouse enter / focus, disappears on mouse leave / blur
  • Default label "More information" is used when none supplied
  • Tooltips visible in both light and dark theme
  • All 5 unit tests pass

Closes #354

Replace blank table body with animated pulse skeleton rows while data
is loading. Add `isLoading` prop to `EmployeeList` and a separate
`EmployeeSkeletonRow` component that mirrors the column layout of the
real rows using Tailwind's `animate-pulse`.

Adds two new tests:
- skeleton rows are rendered (not employee data) when isLoading=true
- empty-state message appears when not loading and list is empty
Add a reusable InfoTooltip component (ⓘ button, hover/focus activated,
keyboard accessible, themed) and wire it up at every occurrence of the
three key financial terms in the dashboard:

- ORGUSD – explains the org's custom Stellar payroll asset
- Trustline – explains the Stellar trustline concept (requirement, 0.5 XLM reserve)
- Ledger Sequence – explains what a Stellar ledger number is

Locations:
- AdminPanel.tsx: all three "Asset Code" inputs + "Trustline Status" heading
- FeeEstimationPanel.tsx: "Last Ledger" stat row

Adds 5 unit tests covering hover, focus, blur, click, and default label.
@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 30, 2026

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

@Wilfred007 Wilfred007 merged commit ff3072c into Gildado:main Mar 30, 2026
1 check failed
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.

#103: Add Information Tooltips for Financial Terms

2 participants