Skip to content

PM-5454: Add score direction radios to MM scorer config#1989

Merged
jmgasper merged 1 commit into
devfrom
PM-5454
Jun 25, 2026
Merged

PM-5454: Add score direction radios to MM scorer config#1989
jmgasper merged 1 commit into
devfrom
PM-5454

Conversation

@jmgasper

Copy link
Copy Markdown
Collaborator

What was broken

The Marathon Match scorer config editor already loaded and saved scoreDirection, but operators had no field in the Work app to choose MAXIMIZE or MINIMIZE.

Root cause (if identifiable)

The UI draft and API payload included scoreDirection defaults, but the Scorer Settings form did not render a control for it.

What was changed

Added a Score Direction radio group with Maximize and Minimize options, defaulting to Maximize when the draft has no saved direction. Wired the radio choice into the existing scorer config draft and save payload. Added local styles matching the existing settings grid.

Any added/updated tests

Added a MarathonMatchScorerSection test covering the default Maximize selection and saving Minimize to the create config payload.

Validation note: the targeted MarathonMatchScorerSection spec passes. yarn lint and yarn run build pass. The full yarn test:no-watch --runInBand command was run and fails in unrelated existing suites outside this change, including wallet-admin module-resolution specs, ReviewersField mocked-service specs, and existing engagements/payment validation specs.

What was broken

The Marathon Match scorer config editor already loaded and saved scoreDirection, but operators had no field in the Work app to choose MAXIMIZE or MINIMIZE.

Root cause (if identifiable)

The UI draft and API payload included scoreDirection defaults, but the Scorer Settings form did not render a control for it.

What was changed

Added a Score Direction radio group with Maximize and Minimize options, defaulting to Maximize when the draft has no saved direction. Wired the radio choice into the existing scorer config draft and save payload. Added local styles matching the existing settings grid.

Any added/updated tests

Added a MarathonMatchScorerSection test covering the default Maximize selection and saving Minimize to the create config payload.
@jmgasper jmgasper requested a review from kkartunov as a code owner June 24, 2026 23:36
@jmgasper jmgasper merged commit 8248775 into dev Jun 25, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant