feat: add raw payload viewer, payload copy action, and centralized ev… - #770
Open
whiteghost0001 wants to merge 1 commit into
Conversation
…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
|
@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! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…ent type presentation mapping
Resolves Issues #609, #610, and #611 simultaneously:
Add Raw Event Payload Viewer (closes Add Raw Event Payload Viewer #609):
Add Event Payload Copy Action (closes Add Event Payload Copy Action #610):
Add Event Type Presentation Mapping (closes Add Event Type Presentation Mapping #611):
Closes #609
Closes #610
Closes #611