Skip to content

PM-4685: remove submission limit section#1755

Closed
jmgasper wants to merge 2 commits intodevelopfrom
PM-4685-2
Closed

PM-4685: remove submission limit section#1755
jmgasper wants to merge 2 commits intodevelopfrom
PM-4685-2

Conversation

@jmgasper
Copy link
Copy Markdown
Collaborator

@jmgasper jmgasper commented Apr 6, 2026

What was broken
The previous fix only removed the editable Unlimited toggle. Design challenges still showed the submission limit section, accepted a limit value that was not enforced, and continued to show a submission limit summary in read-only views.

Root cause
TextEditorField still rendered MaximumSubmissionsField for design challenges in both edit and read-only flows, and ChallengeEditor still carried dead submissionLimit metadata update logic for that removed behavior.

What was changed
Removed the submission limit section from design challenge text rendering.
Deleted the unused MaximumSubmissionsField component and styles.
Removed the obsolete submissionLimit metadata handling path from ChallengeEditor.

Any added/updated tests
Added TextEditorField tests that verify the submission limit section is hidden in both edit and read-only design challenge views.
Removed the obsolete MaximumSubmissionsField component tests with the deleted component.

jmgasper added 2 commits April 4, 2026 06:31
What was broken
The design challenge editor still showed an Unlimited submissions option even though that control is no longer used and did not work as expected.

Root cause
The maximum submissions field still rendered the legacy Unlimited checkbox and the editor still carried an update path for that unused metadata toggle.

What was changed
Removed the editable Unlimited checkbox from the design challenge maximum submissions field.
Removed the unused unlimited update branch from challenge metadata handling.
Kept the existing read-only display for legacy unlimited metadata so older challenge data still renders consistently.

Any added/updated tests
Added a MaximumSubmissionsField component test that covers removing the editable Unlimited option, preserving the legacy read-only display, and sanitizing the count input.
What was broken
The previous fix only removed the editable Unlimited toggle. Design challenges still showed the submission limit section, accepted a limit value that was not enforced, and continued to show a submission limit summary in read-only views.

Root cause
TextEditorField still rendered MaximumSubmissionsField for design challenges in both edit and read-only flows, and ChallengeEditor still carried dead submissionLimit metadata update logic for that removed behavior.

What was changed
Removed the submission limit section from design challenge text rendering.
Deleted the unused MaximumSubmissionsField component and styles.
Removed the obsolete submissionLimit metadata handling path from ChallengeEditor.

Any added/updated tests
Added TextEditorField tests that verify the submission limit section is hidden in both edit and read-only design challenge views.
Removed the obsolete MaximumSubmissionsField component tests with the deleted component.
@jmgasper jmgasper closed this Apr 6, 2026
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