Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

866 alert banner #868

Merged
merged 3 commits into from
Nov 13, 2024
Merged

866 alert banner #868

merged 3 commits into from
Nov 13, 2024

Conversation

jlandiseigsti
Copy link
Contributor

Closes #866

Uses the config gem for an alert that can be created with changes to a YAML file.

Using the config gem for an alert that can be created with changes to a YAML file.
Copy link
Contributor

@ajkiessl ajkiessl left a comment

Choose a reason for hiding this comment

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

Just one thing, but otherwise looks good. I've never implemented anything like this, but will you inject the yml from the config repo? Like in catalog?

@@ -0,0 +1,7 @@
<div class="announcement container-fluid <%= Settings.announcement&.html_class || "yoo doggie" %>">
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the OR operator needed here? It can just be nil if html_class is not defined.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ha ha, absolutely not necessary. Glad you caught this.

Yes, my plan was to inject the yml from config like in catalog. Planning to try this out in the QA environment.

@jlandiseigsti jlandiseigsti merged commit ca04f0b into main Nov 13, 2024
1 check passed
@jlandiseigsti jlandiseigsti deleted the 866-alert-banner branch November 13, 2024 16:11
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.

Create Capability for Alerts
2 participants