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

Support external banner messages #89

Open
adam-collins opened this issue Mar 4, 2024 · 0 comments
Open

Support external banner messages #89

adam-collins opened this issue Mar 4, 2024 · 0 comments

Comments

@adam-collins
Copy link
Contributor

Single page applications need a mechanism for displaying banner messages. For other ALA applications the ala-admin-plugin is used to set a message and severity.

Task

  • Display an externally defined banner message.

For testing use https://www-test.ala.org.au/status.json. This is managed in home-static.

It has

  • a global message
  • application specific messages, "species-lists"
  • test messages

Properties are

  • "message", the html message. Can be empty.
  • "severity", one of INFO, WARNING, DANGER.
  • "updated", date/time to be used if the message is dismissible. e.g. is dismissible for the rest of the day.

The inclusion of messages for other applications provides for the ability to display dependency messages in context. Additional applications will be added as they are converted to single page or when there is a dependency message requirement.

The use of a single status.json for all applications is not mandatory, but is the starting point.

Partial bootstrap css in use for severity; alert-info, alert-warning, alert-danger

.alert-info {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1
}

.alert-info hr {
    border-top-color: #a6e1ec
}

.alert-info .alert-link {
    color: #245269
}

.alert-warning {
    color: #8a6d3b;
    background-color: #fcf8e3;
    border-color: #faebcc
}

.alert-warning hr {
    border-top-color: #f7e1b5
}

.alert-warning .alert-link {
    color: #66512c
}

.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1
}

.alert-danger hr {
    border-top-color: #e4b9c0
}

.alert-danger .alert-link {
    color: #843534
}
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

No branches or pull requests

1 participant