hubmapconsortium / antibody-api

API for the Antibody DB.
https://avr.hubmapconsortium.org/
0 stars 0 forks source link

[AVR] Configurable banner message #160

Closed yuanzhou closed 6 months ago

yuanzhou commented 9 months ago

For announcement purposes, we need a new config item that can be parsed by the App and shows a banner message without rebuilding the image.

ChuckKollar commented 7 months ago

Zhou Yuan [1:40 PM] Feb 19, 2024 Here are some quick examples. Essentially we wanted to have a config item that can take some HTML so show as a banner on top of the AVR site when we need to announce something. Depending on how AVR handles the UI piece vs Python antibody-api, it can read from the Python app config or it can be part of the React UI with some dynamic loading from a public asset, whichever works easier for you. Both Lisa-Ann and Jes had hard times loading from a config file during runtime, so we don't need to rebuild a new docker image for any banner update. They ended up with using some React public asset file for such use cases, not ideal but serves for the purpose.

ChuckKollar commented 6 months ago

PR: https://github.com/hubmapconsortium/antibody-api/pull/164