Page MenuHomePhabricator

Mentor list cleaner: Disable threshold field when parent checkbox is unchecked
Open, Needs TriagePublic

Description

User story & summary:

As an admin, I want the threshold field to be greyed out when its parent checkbox is unchecked so that I cannot set values that have no effect.

Background & research:

When the parent checkbox is off, any value entered in the threshold field is ignored — but the UI currently allows admins to interact with it anyway. This creates confusion about the relationship between the two fields and allows silent misconfigurations. Community feedback (see Slack) flagged this inconsistency with the existing AC, which already specifies "If yes:" as a precondition for the threshold field.

Design:

image.png (800×600 px, 60 KB)

Acceptance Criteria:

Given the parent checkbox is unchecked
When an admin views the threshold field
Then the threshold field is greyed out and non-interactive

Given the parent checkbox is checked
When an admin views the threshold field
Then the threshold field is enabled and editable

Given the parent checkbox is unchecked and the threshold field has a previously saved value
When an admin views the settings
Then the threshold field is greyed out (value may be retained but ignored until the checkbox is re-enabled)

All tasks should also meet the Growth Team's task completion definition.