Skip to content

Add dispute evidence preview component and normalization logic - #913

Merged
greatest0fallt1me merged 3 commits into
Predictify-org:mainfrom
Johnsource-hub:Render-dispute-evidence-with-privacy-safe-previews
Aug 30, 2026
Merged

Add dispute evidence preview component and normalization logic#913
greatest0fallt1me merged 3 commits into
Predictify-org:mainfrom
Johnsource-hub:Render-dispute-evidence-with-privacy-safe-previews

Conversation

@Johnsource-hub

@Johnsource-hub Johnsource-hub commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

closes #895

I added the evidence normalization and safe preview path at the boundary where raw evidence URLs are rendered:

Safe URL normalization and deduplication: dispute-evidence.ts
Privacy-safe UI preview: DisputeEvidencePreview.tsx
Review modal now uses the sanitized preview instead of raw external links: app/(dashboard)/disputes/page.tsx/disputes/page.tsx)
Existing executed audit references are also filtered through the same safe path: ExecutedState.tsx
I also added focused regression coverage for valid, duplicate, and unsafe evidence cases here:

- Implement DisputeEvidencePreview component for displaying evidence links with safety checks.
- Introduce normalization functions for dispute evidence to handle various input formats and ensure valid URLs.
- Update DisputesPage to utilize the new DisputeEvidencePreview component.
- Add tests for evidence normalization to validate functionality and edge cases.
@drips-wave

drips-wave Bot commented Aug 28, 2026

Copy link
Copy Markdown

@Johnsource-hub 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

@vercel

vercel Bot commented Aug 28, 2026

Copy link
Copy Markdown

@renoschubert is attempting to deploy a commit to the Jagadeesh B's projects Team on Vercel.

A member of the Team first needs to authorize it.

@greatest0fallt1me

Copy link
Copy Markdown
Contributor

The implementation appears substantive, but please first add a valid issue-closing reference in the PR description, such as Closes #895. The current #close/#895 text is not recognized by GitHub as a linked issue.

@Johnsource-hub

Copy link
Copy Markdown
Contributor Author

done

@greatest0fallt1me
greatest0fallt1me merged commit 95e6e27 into Predictify-org:main Aug 30, 2026
0 of 2 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

Development

Successfully merging this pull request may close these issues.

[Quality-2][High] Render dispute evidence with privacy-safe previews

2 participants