Skip to content

feat: Implement warning modal component with multiple alert states - #833

Open
barani-2502 wants to merge 4 commits into
session_monitorfrom
warning_widget
Open

feat: Implement warning modal component with multiple alert states#833
barani-2502 wants to merge 4 commits into
session_monitorfrom
warning_widget

Conversation

@barani-2502

@barani-2502 barani-2502 commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

This PR introduces a new reusable warning modal component for the sentinel system to handle user-facing alerts during proctoring sessions.

  • Supports multiple alert types - warning (default), danger (critical alerts), info (system notifications)
  • Adds dark mode support.

@barani-2502 barani-2502 changed the title feat: Implement warning modal component feat: Implement warning modal component with multiple alert states Apr 28, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new warning modal component and a corresponding demo page for the Sentinel module. The modal is built using Alpine.js and supports warning, danger, and info alert types with specific icons and styling. Review feedback focuses on correcting grammatical errors in the default messages, removing an unused 'icon' property from the component state, improving the robustness of the show method with a default parameter, and enhancing accessibility by adding support for the Escape key to close the modal.

Comment thread src/sentinel/warning_widget/includes/warning_modal.html Outdated
Comment thread src/sentinel/warning_widget/includes/warning_modal.html Outdated
Comment thread src/sentinel/sdk_v2/warning_widget/includes/warning_modal.html
Comment thread src/sentinel/sdk_v2/warning_widget/includes/warning_modal.html
Comment thread src/sentinel/warning_widget/includes/warning_modal.html Outdated
@github-actions

github-actions Bot commented Apr 28, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://testpress.github.io/design/pr-preview/pr-833/

Built to branch gh-pages at 2026-05-21 11:34 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@barani-2502
barani-2502 force-pushed the warning_widget branch 2 times, most recently from a0c4bf7 to 3aef285 Compare April 28, 2026 07:02
@barani-2502
barani-2502 force-pushed the session_monitor branch 3 times, most recently from 0259c4e to e8ce46b Compare May 19, 2026 07:42
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.

1 participant