Skip to content

fix: resolve 4 Stellar Wave issues (#564-567) - #634

Merged
nonsobethel0-dev merged 4 commits into
Parashield-Protocol:mainfrom
oomokaro1:fix/stellar-wave-issues
Sep 23, 2026
Merged

nonsobethel0-dev merged 4 commits into
Parashield-Protocol:mainfrom
oomokaro1:fix/stellar-wave-issues

Conversation

@oomokaro1

Copy link
Copy Markdown
Contributor

Closes #564, Closes #565, Closes #566, Closes #567

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • Refactoring (no functional or behavioral changes)

Summary

This PR addresses 4 issues from the Stellar Wave program:

  1. [security] signAuthMessage casts kit to untyped object to access signMessage #567: Replaced unsafe as unknown as type cast with a named SignMessageCapable interface in signAuthMessage, preserving TypeScript type safety while maintaining runtime compatibility.

  2. [ux] Policy detail page does not show product category icon in breadcrumb #566: Fixed policy detail breadcrumb to always show the category icon with a fallback shield icon when product category data is missing, ensuring visual consistency.

  3. [bug] ProductCard compare checkbox does not prevent card click propagation #565: Added onPointerDown stopPropagation handler to the ProductCard compare checkbox to prevent touch events from bubbling up and triggering the buy modal.

  4. [bug] usePolicies does not expose pollingError like useClaims does #564: Added pollingError state to usePolicies hook (matching the pattern in useClaims) so background poll failures don't overwrite the policies list with a blocking error.

Motivation / Context

These issues improve type safety, UI consistency, touch device usability, and error handling resilience across the Parashield frontend.

Closes #564, Closes #565, Closes #566, Closes #567

Define a SignMessageCapable interface instead of using 'as unknown as' to
access kit.signMessage. This preserves TypeScript type safety while still
supporting the runtime method that may not be declared in all package
versions.
The policy detail breadcrumb only included the category icon when the
product had a category. Now it uses a fallback shield icon for visual
consistency when category data is missing.
… devices

Add onPointerDown stopPropagation handler to the compare checkbox label
to ensure touch events don't bubble up and open the buy modal.
Separate initial load errors from background poll failures in usePolicies.
Background poll errors now set pollingError instead of error, preventing
the policies list from being replaced with a blocking error state when
only a background refresh fails.
@drips-wave

drips-wave Bot commented Sep 23, 2026

Copy link
Copy Markdown

@oomokaro1 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 23, 2026 •

Copy link
Copy Markdown

❌ Deploy Preview for boisterous-sunshine-dd4c4c failed.

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

@nonsobethel0-dev
nonsobethel0-dev merged commit 7bb0f41 into Parashield-Protocol:main Sep 23, 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