Skip to content

fix: policy detail page bug fixes and improvements - #659

Merged
nonsobethel0-dev merged 4 commits into
Parashield-Protocol:mainfrom
DeFiVC:fix/all-four-issues
Sep 24, 2026
Merged

nonsobethel0-dev merged 4 commits into
Parashield-Protocol:mainfrom
DeFiVC:fix/all-four-issues

Conversation

@DeFiVC

@DeFiVC DeFiVC commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Closes #568, Closes #569, Closes #570, Closes #571

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • Performance improvement

Summary

Four targeted fixes for the policy detail page: refetching indicator positioning, accessible copy button labels, policy caching, and error logging security.

Changes

Testing

  • Visual: Verified refetching indicator stays within page flow on scroll
  • Manual: Confirmed copy buttons announce unique labels via screen reader inspection
  • Build: Lint and type checks pass (pre-existing errors in unrelated files only)

Tradeoffs

  • Cache TTL of 30s is a reasonable default — long enough to prevent redundant fetches on quick navigation, short enough to not serve stale data
  • Sticky indicator may not be visible if user scrolls past the top of the main container; this is acceptable behavior

…to sticky positioning

The policy detail page refetching indicator used fixed positioning which
overlapped with the navbar on scroll. Changed to sticky so it stays
within the page flow.
…ncated values

Screen readers couldn't distinguish between multiple copy buttons with
generic labels. Now includes the truncated wallet address or oracle key
in each button's label for better accessibility.
Avoids redundant fetches when the user navigates away and back quickly.
Policies are cached in a module-level Map with a 30-second TTL, so
recently loaded data is reused on re-mount.
…opment mode

Raw error details (XDR, simulation results) were logged to console in
production, potentially leaking sensitive contract data. Now only logs
when import.meta.env.DEV is true.
@drips-wave

drips-wave Bot commented Sep 24, 2026

Copy link
Copy Markdown

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

@netlify

netlify Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for boisterous-sunshine-dd4c4c failed.

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

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