Skip to content

feat: add raw payload viewer, payload copy action, and centralized ev… - #770

Open
whiteghost0001 wants to merge 1 commit into
Core-Foundry:mainfrom
whiteghost0001:feature/609-610-611-payload-viewer-copy-presentation-mapping
Open

feat: add raw payload viewer, payload copy action, and centralized ev…#770
whiteghost0001 wants to merge 1 commit into
Core-Foundry:mainfrom
whiteghost0001:feature/609-610-611-payload-viewer-copy-presentation-mapping

Conversation

@whiteghost0001

Copy link
Copy Markdown

…ent type presentation mapping

Resolves Issues #609, #610, and #611 simultaneously:

  1. Add Raw Event Payload Viewer (closes Add Raw Event Payload Viewer #609):

    • Introduced raw JSON payload viewer mode in NotificationDetailsDrawer with a view toggle (Standard View vs Raw JSON View).
    • Formatted JSON payloads for maximum readability with indentation via formatRawPayload helper.
    • Wrapped JSON parsing in safe try/catch fallbacks so invalid payloads never crash the UI.
    • Automatically redacts sensitive keys (apiKey, secret, password, privateKey, token, auth, credentials, etc.) to prevent exposing sensitive configuration values.
  2. Add Event Payload Copy Action (closes Add Event Payload Copy Action #610):

    • Implemented dedicated "Copy Payload" action in event detail interface and NotificationDetailsDrawer.
    • Formats payloads as valid JSON prior to clipboard copying where possible.
    • Provides user feedback via toast notifications ("Payload copied as valid JSON" / "Payload copied").
    • Handles clipboard API rejections and permissions errors gracefully without throwing unhandled exceptions.
  3. Add Event Type Presentation Mapping (closes Add Event Type Presentation Mapping #611):

    • Created centralized event type presentation utility in dashboard/src/utils/eventTypeMapping.ts mapping event names and types to visual representations (labels, badge styling, icons, colors, and category descriptions).
    • Refactored EventCard, EventExplorerCard, and NotificationDetailsDrawer to use the centralized presentation mapping instead of ad-hoc local styling objects.
    • Added safe fallback representations (UNKNOWN_EVENT_TYPE_PRESENTATION) for unmapped or custom event types.

Closes #609
Closes #610
Closes #611

…ent type presentation mapping

Resolves Issues Core-Foundry#609, Core-Foundry#610, and Core-Foundry#611 simultaneously:

1. Add Raw Event Payload Viewer (closes Core-Foundry#609):
   - Introduced raw JSON payload viewer mode in NotificationDetailsDrawer with a view toggle (Standard View vs Raw JSON View).
   - Formatted JSON payloads for maximum readability with indentation via formatRawPayload helper.
   - Wrapped JSON parsing in safe try/catch fallbacks so invalid payloads never crash the UI.
   - Automatically redacts sensitive keys (apiKey, secret, password, privateKey, token, auth, credentials, etc.) to prevent exposing sensitive configuration values.

2. Add Event Payload Copy Action (closes Core-Foundry#610):
   - Implemented dedicated "Copy Payload" action in event detail interface and NotificationDetailsDrawer.
   - Formats payloads as valid JSON prior to clipboard copying where possible.
   - Provides user feedback via toast notifications ("Payload copied as valid JSON" / "Payload copied").
   - Handles clipboard API rejections and permissions errors gracefully without throwing unhandled exceptions.

3. Add Event Type Presentation Mapping (closes Core-Foundry#611):
   - Created centralized event type presentation utility in dashboard/src/utils/eventTypeMapping.ts mapping event names and types to visual representations (labels, badge styling, icons, colors, and category descriptions).
   - Refactored EventCard, EventExplorerCard, and NotificationDetailsDrawer to use the centralized presentation mapping instead of ad-hoc local styling objects.
   - Added safe fallback representations (UNKNOWN_EVENT_TYPE_PRESENTATION) for unmapped or custom event types.

Closes Core-Foundry#609
Closes Core-Foundry#610
Closes Core-Foundry#611
@drips-wave

drips-wave Bot commented Aug 30, 2026

Copy link
Copy Markdown

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

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.

Add Event Type Presentation Mapping Add Event Payload Copy Action Add Raw Event Payload Viewer

1 participant