Open SuaYoo opened 3 weeks ago
Backend work is already done for this in https://github.com/webrecorder/browsertrix/pull/1871 (OrgOut will return the paymentSuspended
field, which will be either a boolean or None). We'll want to display the banner when the value is true.
After talking with Ilya, we're going to modify this so there's just an Organization.readOnly
bool and a separate field Cashew can set with the reason, which we can display in the banner. This will get tricky later with localization but is a better compromise for now.
Maybe one solution to the localization issue would be to have a set of preset string that cause the frontend to display a localized message if it matches its key? It's not ideal in terms of separation between Browsertrix and Cashew, but it'd allow us to make use of our existing localization setup
Maybe one solution to the localization issue would be to have a set of preset string that cause the frontend to display a localized message if it matches its key? It's not ideal in terms of separation between Browsertrix and Cashew, but it'd allow us to make use of our existing localization setup
Yeah that could work for now! And the backend is flexible enough to allow any reason, so if there's not a match in the frontend for a string we can just display it as-is as a fallback?
Yeah, works for me!
Backend changes
Frontend changes
Details
A single banner should be shown depending on priority: