Skip to content

fix: EmptyState icon size, WalletButton error persistence, policy premium rate - #640

Merged
nonsobethel0-dev merged 1 commit into
Parashield-Protocol:mainfrom
OpenSourceCOntr:fix/issues-584-587
Sep 24, 2026
Merged

nonsobethel0-dev merged 1 commit into
Parashield-Protocol:mainfrom
OpenSourceCOntr:fix/issues-584-587

Conversation

@Uchechukwu-Ekezie

@Uchechukwu-Ekezie Uchechukwu-Ekezie commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Closes #584
Closes #585
Closes #586
Closes #587

What changed

#584: EmptyState custom icon sizes

  • Added iconSize prop with default text-5xl
  • Allows different empty states to use different icon sizes for visual hierarchy

#585: WalletButton error persistence

  • Added dismissedError state to track errors dismissed by user action
  • Error now persists until:
    • A new error occurs
    • Connection succeeds
    • User explicitly dismisses it

#587: Policy premium rate display

  • Added premium rate percentage to policy detail page
  • Shows rate as (premiumPaid / coverage) * 100 with 2 decimal places
  • Displays "N/A" if coverage is 0

#586: NetworkBanner

  • Already validates wallet network using networkPassphrase from wallet context (lines 12-14)
  • No changes needed - the issue described outdated behavior

Files changed

  • src/components/EmptyState.tsx — Added iconSize prop
  • src/components/WalletButton.tsx — Fixed error persistence
  • src/app/policies/[id]/policy-detail-client.tsx — Added premium rate display

…mium rate (Parashield-Protocol#584-Parashield-Protocol#587)

- Add iconSize prop to EmptyState component (Parashield-Protocol#584)
- Fix WalletButton error disappearing on reconnect (Parashield-Protocol#585)
- Add premium rate percentage to policy detail page (Parashield-Protocol#587)

Closes Parashield-Protocol#584
Closes Parashield-Protocol#585
Closes Parashield-Protocol#587
@netlify

netlify Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for boisterous-sunshine-dd4c4c failed.

Name Link
🔨 Latest commit 2a30a67
🔍 Latest deploy log https://app.netlify.com/projects/boisterous-sunshine-dd4c4c/deploys/6ab46ddcb36e820008d9a6be

@drips-wave

drips-wave Bot commented Sep 24, 2026

Copy link
Copy Markdown

@Uchechukwu-Ekezie 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

@nonsobethel0-dev
nonsobethel0-dev merged commit d6537d2 into Parashield-Protocol:main Sep 24, 2026
0 of 5 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

2 participants