Skip to content

Prod - restrict challenge type filters#7225

Merged
jmgasper merged 8 commits into
masterfrom
develop
Jun 22, 2026
Merged

Prod - restrict challenge type filters#7225
jmgasper merged 8 commits into
masterfrom
develop

Conversation

@jmgasper

Copy link
Copy Markdown
Collaborator

PM-5416 / PM-5393

jmgasper added 8 commits June 19, 2026 09:30
What was broken
The community challenge listing Type filter displayed challenge types that should not be selectable, including AI, AI Engineering, test/generated types, and duplicate Marathon Match entries.

Root cause
The filter panel used the raw challenge type list returned by the API, only excluding Topgear Task by name. New or duplicated API challenge type records were therefore rendered directly and persisted in the selected type query state.

What was changed
Added a visible challenge type whitelist for Challenge, First2Finish, Marathon Match, and Task. The listing filter panel now derives its visible type list from that whitelist, preserves the expected order, removes duplicate type records, and sanitizes selected type values before they reach filter state or query handling.

Any added/updated tests
Added coverage for visible challenge type derivation and selected type sanitization, including AI, AI Engineering, generated type values, and duplicate Marathon Match values.
PM-5393: Restrict challenge type filters
Fix for terms issue noted in dev
What was broken
Markdown-rendered bullet and numbered lists in challenge specifications sat too close to the left edge, making list content look cramped.

Root cause (if identifiable)
The markdown specification component only provided custom table styling and did not add list indentation after the app's global/list reset styles.

What was changed
Added scoped left padding for ordered and unordered lists inside the challenge specification markdown renderer.

Any added/updated tests
No automated tests were added because this is a visual CSS-only spacing change and the existing Jest setup does not assert compiled SCSS layout. Validated with npm run lint, npm test, and npm run build.
PM-5416: Indent markdown challenge spec lists
@jmgasper jmgasper requested a review from kkartunov as a code owner June 22, 2026 05:49
@jmgasper jmgasper merged commit c72355c into master Jun 22, 2026
9 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