Skip to content

Add button to reset prominence to defaults #9431

Description

@garethrees

We often have requests or child content in a temporarily reduced prominence state (primarily analyzer reports, but also when quickly making something safe before further investigation). It would be useful to have a button to reset the prominence back to the defaults.

Image
  • When the record is normal prominence, we'd disable the button
  • When the record is something other than normal prominence, the button would set the request to normal prominence and clear the reason

Currently only FoiAttachment has its own prominence form and controller. This is the key record type to add this functionality to.

It would also be good to extract out a similar controller for the other prominenceable records:

  • OutgoingMessage
  • IncomingMessage
  • InfoRequest

Ideally we'd take a polymorphic approach and create something like an Admin::ProminenceableController that can share the behaviour across record types.

Its not worth loads of time though, so if it gets complicated just adding the clear button to attachments in the first instance would be a big help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    easier-adminMake issues easier to resolvef:adminf:attachmentsimprovementImproves existing functionality (UI tweaks, refactoring, performance, etc)x:uk

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions