Skip to content

Conversation

@simonLeary42
Copy link
Collaborator

@simonLeary42 simonLeary42 commented Dec 19, 2025

Screen.Recording.2025-12-19.at.10.03.53.AM.mov
Screen.Recording.2025-12-19.at.10.11.33.AM.mov

if message_delete.php has uncaught exception:

Screen.Recording.2025-12-19.at.11.49.01.AM.mov

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a "Clear All Messages" button that allows users to dismiss all displayed messages at once when there are 3 or more messages present.

Key changes:

  • Refactored inline onclick handlers to event delegation pattern using jQuery
  • Added a clear all button that triggers individual message deletions
  • Updated CSS to use flexbox layout for message container

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
webroot/js/messages.js New JavaScript file implementing event handlers for individual and bulk message deletion
webroot/css/messages.css Updated styling to support flexbox layout and position the clear all button, removed problematic width calculation
resources/templates/header.php Refactored message buttons to use data attributes instead of inline JavaScript, added conditional clear all button
resources/templates/footer.php Added messages.js to the list of loaded scripts

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@simonLeary42 simonLeary42 merged commit 36a072b into main Dec 19, 2025
3 checks passed
@simonLeary42 simonLeary42 deleted the clear-messages branch December 19, 2025 16:58
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.

2 participants