Skip to content

feat(widgets): split «Últimos» and the ticker - #343

Merged
egdev6 merged 3 commits into
mainfrom
feat/latest-ticker-split
Nov 25, 2026
Merged

egdev6 merged 3 commits into
mainfrom
feat/latest-ticker-split

Conversation

@egdev6

@egdev6 egdev6 commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Summary

«Últimos» and the ticker are now separate widgets.

  • Ticker: its own card and page in Widgets (source URL, preview, settings) and its own type checkboxes (widgets.ticker.items). Until they are edited it uses the «Últimos» types, so existing setups do not change; null brings the fallback back.
  • «Últimos»: optional label (widgets.latest.label, class .label), rendered by the widget; empty shows nothing.
  • Fix: raid, member and «any» are now valid for both widgets. Before, they were saved through /api/widgets, reset to the default on the next start and rejected by /api/config and saved themes.
  • PUT /api/widgets validates only latest.items, latest.label and ticker.items; every other field keeps the legacy partial validation (pinned by saved-themes.test.mjs).

Known limitation: a hand-edited invalid ticker.items in config.json is sanitized to [] (generic list default) instead of falling back to «Últimos».

Validation

  • Focused checks passed: latest-ticker-types (5 tests, RED before the change), ticker-types-browser, new latest-ticker-panel-browser (RED against the previous panel build), updated count/layout tests.
  • Full suite: 3364 tests, 3362 pass, 0 fail, 2 skipped. pnpm typecheck passes.
  • Independent verification: PASS for the split and the type fix. Its differential against main showed only the documented differences. It did not run the browser tests or the typecheck in isolation.
  • Documentation and configuration are updated when needed: README.md / README.es.md, MCP editar_widget, docs/ui-patterns.md.

Linked issue

Closes #342

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.
@egdev6 egdev6 added the type:feature New feature or enhancement label Nov 25, 2026
@egdev6
egdev6 merged commit 64a3b1e into main Nov 25, 2026
5 checks passed
@egdev6
egdev6 deleted the feat/latest-ticker-split branch November 25, 2026 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:feature New feature or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(widgets): split «Últimos» and the ticker

1 participant