Skip to content

campaigns: notify the user upon fresher specs

Administrator requested to merge aharvey/updated-preview into main

Created by: LawnGnome

This adds a banner to the preview and campaign pages that shows up if the user has uploaded a newer campaign spec with the same name and namespace.

The backend work for this is complete, as is the GraphQL and component plumbing underpinning the UI (except for the remaining type warnings, which I'm going to knock off this evening), but this definitely still needs some design love from @rrhyne in terms of what this actually should look like. However, as discussed in the sprint 6 planning meeting, let's get this merged and we can work on the design issues later in the sprint.

The storybook has been updated (make sure you enable the supersedingCampaignSpec knob!), but here are a couple of screenshots:

image

image

(Side note: that link colour on an info alert in dark mode isn't ideal.)

Closes #14532.

Merge request reports

Loading