Repository navigation
feat: improved chat widget with markdown, health status, and CI/CD - #18
Merged
Merged
Conversation
…, and config options - Add proper markdown parsing with table support (flushTable) - Add health status indicator using /health endpoint - Add resize handle (drag top-left corner) - Add configurable options: title, placeholder, initialMessage, suggestedQuestions - Add footer with 'Powered by Open Science Assistant' repo link - Add experimental badge toggle - Update demo page with feature list and configuration documentation
Security fixes: - Add URL protocol validation to prevent javascript: XSS in markdown links - Validate localStorage message structure before rendering - Add Turnstile error/expired callbacks for proper error handling Error handling improvements: - Handle non-JSON API error responses gracefully - Show user-friendly error messages for storage failures - Add null checks for DOM queries to prevent crashes CORS hardening: - Restrict pages.dev CORS to specific osa-demo project only
Member
Author
PR Review SummaryIssues Found and AddressedCritical Issues (Fixed):
Important Issues (Fixed): Issues Acknowledged (Not Fixed in this PR):
Commits Added
All critical and important security/error handling issues have been addressed. |
- Add copy icon button to code blocks in assistant responses - Add copy button next to assistant message labels to copy full markdown - Event listeners copy content to clipboard with visual feedback - Shows checkmark for 2 seconds after successful copy
3 tasks done
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
Changes
Test plan