Skip to content

Admin: a friendlier, segmented feed form - #121

Merged
loevgaard merged 1 commit into
1.xfrom
feature/feed-form-layout
Jul 2, 2026
Merged

Admin: a friendlier, segmented feed form#121
loevgaard merged 1 commit into
1.xfrom
feature/feed-form-layout

Conversation

@loevgaard

Copy link
Copy Markdown
Member

The feed create/edit form was a flat stack of fields. This points the resource's vars.templates.form at a custom _form.html.twig that:

  • groups fields into Semantic UI segments with dividing section headers — Details (code, enabled, name/slug), Output (target, format, channels), Sources, Delivery targets — in a two-column stackable grid for the compact fields and full width for the wide collections;
  • renders the name/slug translations through Sylius' translationForm macro (the per-locale accordion) instead of a flat list;
  • adds explanatory sub-headers under the Sources and Delivery targets sections.

Browser-verified against the running test app: the page renders, the translations accordion (8 locales) and all four collection add buttons work, and the form still submits and persists. No PHP changed.

The feed create/edit form rendered as a flat stack of fields. Point the resource's
vars.templates.form at a custom @SetonoSyliusFeedPlugin/admin/feed/_form.html.twig that:
- groups fields into Semantic UI segments with dividing section headers (Details /
  Output / Sources / Delivery targets), laid out in a two-column stackable grid for
  the compact fields and full width for the wide collections;
- renders the name/slug translations through Sylius' translationForm macro (the
  per-locale accordion) instead of a flat list;
- adds sub-header help under the Sources and Delivery targets sections.

New ui.* translation keys (details/output/translations/sources_help/delivery_targets_help).
Browser-verified: renders, the translations accordion + all four collection add
buttons work, and the form still submits and persists.
@codecov

codecov Bot commented Jul 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.17%. Comparing base (f453500) to head (1944bf7).

Additional details and impacted files
@@            Coverage Diff            @@
##                1.x     #121   +/-   ##
=========================================
  Coverage     92.17%   92.17%           
  Complexity     1727     1727           
=========================================
  Files           228      228           
  Lines          4382     4382           
=========================================
  Hits           4039     4039           
  Misses          343      343           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@loevgaard
loevgaard merged commit 9a20908 into 1.x Jul 2, 2026
29 of 30 checks passed
@loevgaard
loevgaard deleted the feature/feed-form-layout branch July 2, 2026 21:20
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