Repository navigation
feat(widgets): split «Últimos» and the ticker - #343
Merged
Merged
Conversation
The ticker now keeps its own event types (widgets.ticker.items) and falls back to the «Últimos» types until they are chosen, so existing setups do not change. All seven support types offered in the panel and MCP (follow, sub, cheer, raid, superchat, member, any) are now valid for both widgets. Before, raid, member and any were saved through /api/widgets but reset on the next load and rejected by /api/config and saved themes. PUT /api/widgets validates only these new fields and keeps its legacy partial validation for the rest.
The ticker is now its own widget in Widgets, with its own source, preview and settings. Its type checkboxes start from the «Últimos» types and the first change saves its own list. «Últimos» gets an optional label (widgets.latest.label, class .label) rendered by the widget; empty shows nothing, so existing sources do not change.
…idation Adds the independent verifier's probes as regression tests and drops the outdated «Últimos y ticker» example from the UI patterns guide.
This was referenced Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
«Últimos» and the ticker are now separate widgets.
widgets.ticker.items). Until they are edited it uses the «Últimos» types, so existing setups do not change;nullbrings the fallback back.widgets.latest.label, class.label), rendered by the widget; empty shows nothing./api/widgets, reset to the default on the next start and rejected by/api/configand saved themes.PUT /api/widgetsvalidates onlylatest.items,latest.labelandticker.items; every other field keeps the legacy partial validation (pinned bysaved-themes.test.mjs).Known limitation: a hand-edited invalid
ticker.itemsinconfig.jsonis sanitized to[](generic list default) instead of falling back to «Últimos».Validation
latest-ticker-types(5 tests, RED before the change),ticker-types-browser, newlatest-ticker-panel-browser(RED against the previous panel build), updated count/layout tests.pnpm typecheckpasses.mainshowed only the documented differences. It did not run the browser tests or the typecheck in isolation.editar_widget,docs/ui-patterns.md.Linked issue
Closes #342