Geo: Improve flash message in secondary nodes for actionable screens
Problem to solve
The banner message here is actually misleading now because the Resync
and Recheck
buttons do something on the secondary:
Also with the introductions of the Batch operations in the same screen by !7806 (merged) became clear that this screen does have functionality in the Secondary node.
The same can be said for the Geo widget inside Admin > Projects
which has actions that can work in a secondary Geo node.
So we need different message for these specific cases.
Further details
The current Geo flash message is implemented on a Global level, we should make the text customizable per controller, so we can provide slightly different messages for the specific cases in Geo.
Proposal
Refactor the way we handle the flash message and make it customizable via an internal API that can redefine a controller variable which will override the text. It should be optional to have the redirect link to the primary.
What does success look like, and how can we measure that?
The specified pages should have a custom message