Skip to content

Try the features of Symfony UX 3.7, and the rest of UX - #120

Merged
lyrixx merged 23 commits into
mainfrom
ux-3-7-features
Nov 7, 2026
Merged

lyrixx merged 23 commits into
mainfrom
ux-3-7-features

Conversation

@lyrixx

@lyrixx lyrixx commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

This project is the sandbox for Symfony UX: follow-up of #119, this tries what 3.7 brings and the packages not used yet. One commit per feature.

New: live votes and new QOTD banner (Mercure), French interface, personal top, images on a QOTD, several authors in the filter, paginated search with CSV export, stats and details modal reworked.

Before deploying

  • Run the migrations: new my_top table.
  • Live updates are off (LIVE_UPDATES_ENABLED=0): they need a Mercure hub and a Messenger worker, only the dev stack has them.
  • Production keeps serving the original images (UX_IMAGE_DSN=null://null).

Behaviour changes

  • The interface follows the language of the browser: French users get it in French.
  • The author filter moves from ?author=x to ?authors[]=x: old links lose the filter.
  • "Not voted yet" has no total nor page numbers anymore (cursor pagination).
  • The edit form is saved by a LiveAction, without CSRF token, like the votes: a re-render and a submission cannot share a stateless token field.

Screenshots

From the dev fixtures: one QOTD per author, so the rankings are flat.

Stats: ranked bars, and one chart per measure

Stats page, with three rankings and two trend charts

Details of a QOTD

Details modal, with the raw message in a tab

My top

Personal top, with its drag handles

Images, with Dropzone

Dropzone with four previews in a row and a rejected file

Live validation

Edit form showing the error and the remaining length while typing

lyrixx added 23 commits November 7, 2026 21:06
The next page no longer skips QOTD when the ones already displayed get voted.
Only the pages that use them need these libraries.
The font is 97 KB of CSS, plus the font file, for three icons.
Filtering no longer scrolls back to the top. The filters are permanent, morphing would remove the DOM added by Tom Select.
The search stopped at the first 15 results.
The formulas are neutralized: a QOTD is what anyone wrote on Slack, and spreadsheets run such cells.
A LiveComponent refreshed by an event emitted on each vote.
The form is saved by a LiveAction: a re-render and a form submission cannot share a stateless CSRF field. Its change event would start a re-render with the previous value during the submission.
The charts no longer block the page. The period is a single chart bound to the URL, and a click on a slice lists the QOTD of its author.
AutocompleteChoiceType replaces the custom autocompleter and its choice loader. The preferred choices are the authors the user votes for the most: the authors were already sorted by number of QOTD.
They replace the hand-made modal and notification, and the Clipboard recipe copies a QOTD.
The images are resized in the browser before the upload, and the rejected files are explained.
The dev stack resizes them with an IPX service. The default DSN renders the originals: production needs nothing new.
Each user keeps up to 10 favorite QOTD and reorders them by drag and drop.
A worker publishes on private topics, and every open page updates through Turbo Streams, with a native notification from UX Notify. Disabled by default: only the dev stack comes with a hub and a worker.
The locale comes from the browser, or from the switcher in the navbar. UX Translator only dumps the "js" domain, the messages of the JavaScript.
It was 2600px high: nl2br doubled the line breaks of a <pre>, and the useful details came last. The raw data now lives in tabs, and a cancelled vote no longer counts as a vote.
Ranked bars replace the doughnuts, without the slice of the other users that crushed the rest. Two charts replace the dual axis, whose scales suggested a correlation. The periods are the latest 100 ones: the query kept the oldest.
The context of the QOTD comes first, then its tools, then the top and the votes.
Event listeners, commands, Messenger routing, Twig functions and templates are declared where they apply. The subscribers become listeners, and a constraint validates the position in the top.
@lyrixx
lyrixx marked this pull request as ready for review November 7, 2026 20:19
@lyrixx
lyrixx merged commit e6927c6 into main Nov 7, 2026
3 checks passed
@lyrixx
lyrixx deleted the ux-3-7-features branch November 7, 2026 20:19
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