Skip to content

fix: ComplianceBadge fallback, distribution auto-refresh, dual-path docs, engines field - #342

Merged
valoryyaa-byte merged 1 commit into
RWA-ToolKit:mainfrom
ofodumchristopher32-web:fix/compliance-badge-fallback-distribution-refresh-dual-path-engines
Aug 31, 2026
Merged

fix: ComplianceBadge fallback, distribution auto-refresh, dual-path docs, engines field#342
valoryyaa-byte merged 1 commit into
RWA-ToolKit:mainfrom
ofodumchristopher32-web:fix/compliance-badge-fallback-distribution-refresh-dual-path-engines

Conversation

@ofodumchristopher32-web

Copy link
Copy Markdown

…ocs, engines field

- fix(compliance): guard STYLES lookup with ?? STYLES['None'] so unknown
  runtime status strings (e.g. via the as-never cast in AllowlistRow) degrade
  to a neutral badge instead of crashing. Closes RWA-ToolKit#315

- test(compliance): add test asserting ComplianceBadge renders the neutral
  'Not Registered' fallback for a status value outside the known union.
  Closes RWA-ToolKit#316

- feat(distribution): add 30-second auto-refresh and staleness indicator to
  ExistingDistributionsCard. Background refreshes show a spinner; a footer
  displays 'Updated Xs ago · auto-refreshes every 30 s' and a manual Refresh
  button so issuers always know whether the claimed percentage is current.
  Closes RWA-ToolKit#318

- docs: document the indexer API fast-path vs Soroban RPC fallback strategy
  in README (new subsection with decision tree, per-hook table, and debugging
  tip) and add inline JSDoc to useAssets, useHolders, useHolderTotals.
  Closes RWA-ToolKit#319

- chore: add engines field to package.json (node >=20.0.0, npm >=10.0.0)
  matching the Node 20 pin in CI so npm warns locally on unsupported toolchains
@drips-wave

drips-wave Bot commented Aug 30, 2026

Copy link
Copy Markdown

@ofodumchristopher32-web 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

@valoryyaa-byte
valoryyaa-byte merged commit 987582d into RWA-ToolKit:main Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment