auto-open chat window on email submission#1545
Merged
Conversation
Contributor
📝 WalkthroughSummary by CodeRabbit
WalkthroughTwo distinct additions: a support widget enhancement that automatically opens the chat interface once the Pylon service is available using polling with retry logic, and a new audit logging configuration schema defining CADF-compliant audit event settings with HMAC signing capabilities. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 3❌ Failed checks (3 warnings)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Comment |
Contributor
🧪 Test Suite AvailableThis PR can be tested by a repository admin. |
Contributor
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@transports/config.schema.json`:
- Around line 2539-2553: The audit_logs_config currently allows missing or short
hmac_key values despite the description; add "minLength": 32 to the "hmac_key"
property and enforce that hmac_key is required when audit logging is enabled
(i.e., when "disabled" is false or absent). Implement this via a JSON Schema
conditional on audit_logs_config: add "hmac_key":
{"type":"string","minLength":32,...} and add an "if":
{"properties":{"disabled":{"const":false}},"then":{"required":["hmac_key"]}} (or
equivalent where missing defaults to false) so that audit_logs_config.hmac_key
must be present and at least 32 bytes when logging is enabled.
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.

Summary
Added automatic chat opening after email submission in the support widget and introduced audit logs configuration schema.
Changes
openChatWhenReady()function to the support widget that attempts to open the Pylon chat window once the widget is readyType of change
Affected areas
How to test
Test the support widget chat auto-opening:
Test the audit logs configuration:
Breaking changes
Security considerations
The audit logs feature introduces an HMAC key configuration for signing audit events. This key should be kept secure and should be at least 32 bytes long. The configuration supports loading the key from environment variables for better security practices.
Checklist