Implement a step scoped flagging system
Description
As a Participant or Moderator on an active step, I want to flag the step with a severity level and a comment, So that I can alert stakeholders of pending issues or missing requirements without formally rejecting the item or stopping the workflow.
Core Functionality & Permissions
-
Access: Flagging is only available on the active step.
-
Roles:
-
Standard Steps: The Participant can flag.
-
Voting Steps: Only the Moderator can flag (Voters cannot).
-
-
Inputs: The user must select a Flag Type/Severity and provide a Comment (this field can be configured as optional or mandatory by the Admin).
-
Workflow: The flow must not halt; the flag is purely informational for now.
-
Management: Flags can be removed/updated by the user who created them or an Admin.
-
Audit: All flag creation and removal actions must be recorded in the Activity Tab.
UI & Visibility Requirements
-
Header Indicator: Display a flag icon on the Approval Header if any step inside contains an active flag.
-
Add information about flagged approvals to the list (icon).
-
Step Indicator: Visually distinguish the specific flagged step so it can be identified and expanded.
-
Search/Filter: Add a "View Flagged" tick box in the main list view to filter and isolate approvals with active flags.