Skip to content

Conversation

@lucaspar
Copy link
Member

User alerts weren't being displayed in most situations due to an incorrect block override in the template.

image

@lucaspar lucaspar self-assigned this Jan 13, 2026
Copilot AI review requested due to automatic review settings January 13, 2026 17:26
@lucaspar lucaspar added bug Something isn't working gateway Gateway component styling Special focus on styling of front-end components javascript Pull requests that update non-trivial javascript code labels Jan 13, 2026
@semanticdiff-com
Copy link

semanticdiff-com bot commented Jan 13, 2026

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 fixes user alerts not being displayed due to incorrect template block structure. The main issue was that messages and notifications were rendered inside the {% block body %} in base.html, which meant child templates that overrode this block wouldn't display alerts.

Changes:

  • Moved message and notification rendering in base.html outside the body block to ensure they appear on all pages
  • Added support for "danger" tag in toast component to align with Bootstrap conventions
  • Restructured file_list.html template blocks (changed from body to content block)
  • Updated allauth alert styling to use Bootstrap's standard alert-danger class

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
gateway/sds_gateway/users/mixins.py Added extra_tags="danger" to error message for Bootstrap compatibility
gateway/sds_gateway/templates/users/file_list.html Restructured template blocks and added CSS/JS resources
gateway/sds_gateway/templates/users/components/toast.html Added support for "danger" type and increased toast display duration
gateway/sds_gateway/templates/base.html Moved messages/notifications outside body block and added Font Awesome globally
gateway/sds_gateway/templates/allauth/elements/alert.html Changed from alert-error to Bootstrap-standard alert-danger class

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

@lucaspar lucaspar requested a review from klpoland January 13, 2026 17:51
Copy link
Collaborator

@klpoland klpoland left a comment

Choose a reason for hiding this comment

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

Yes, I noticed this too and didn't get around to fixing it. Thanks for cleaning this up.

@lucaspar lucaspar merged commit dfa9007 into master Jan 15, 2026
2 checks passed
@lucaspar lucaspar deleted the lp/alert-fixes branch January 15, 2026 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working gateway Gateway component javascript Pull requests that update non-trivial javascript code styling Special focus on styling of front-end components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants