Skip to content

🐛 Fix: render format + latestSet at the right spot in deck forms#514

Merged
jbourdin merged 1 commit intodevelopfrom
fix/deck-form-field-order
May 3, 2026
Merged

🐛 Fix: render format + latestSet at the right spot in deck forms#514
jbourdin merged 1 commit intodevelopfrom
fix/deck-form-field-order

Conversation

@jbourdin
Copy link
Copy Markdown
Owner

@jbourdin jbourdin commented May 3, 2026

Summary

Both fields were missing from the explicit form_row calls in the deck templates, so form_end(form) was emitting them after the submit button (or wherever Symfony's auto-render dropped them):

  • templates/deck/new.html.twig was missing both format and latestSet.
  • templates/deck/edit.html.twig was missing only formatlatestSet was already in the template.

Fix

  • format rendered right after name on both forms.
  • latestSet rendered between the languages React island and the public checkbox on the new template (matching the edit template's existing position).

Test plan

  • make twig-cs-check — all 103 templates clean
  • make test.functional filtered to DeckControllerTest — 28 / 28 pass (covers both new + edit form render and submit)
  • Visual smoke test: make start, click "New deck" and "Edit deck" to confirm both fields appear in the right place

🤖 Generated with Claude Code

Both fields were missing from the explicit form_row calls in the deck
new and edit templates, so form_end was emitting them at the bottom of
the form (after the submit button area in some layouts).

- new.html.twig: format goes right after name; latestSet sits between
  the languages island and the public checkbox (matching edit.html.twig).
- edit.html.twig: format added right after name. latestSet was already
  in place.
@sentry
Copy link
Copy Markdown

sentry Bot commented May 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@jbourdin jbourdin merged commit b8663f1 into develop May 3, 2026
6 checks passed
@jbourdin jbourdin deleted the fix/deck-form-field-order branch May 3, 2026 21:30
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