Skip to content

feat(widgets): add a social bar widget - #346

Merged
egdev6 merged 2 commits into
mainfrom
feat/social-bar
Nov 25, 2026
Merged

egdev6 merged 2 commits into
mainfrom
feat/social-bar

Conversation

@egdev6

@egdev6 egdev6 commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Summary

New built-in widget «Redes sociales» (/widget/socials, 1600×80): your social profiles in a row, each as brand icon + nick.

  • Up to 12 ordered profiles (widgets.socials.items: { id, platform, handle }), optional label and custom CSS (.root, .label, .item, .item-<platform>, .ico, .handle). Profiles without a nick are not shown; no profiles = empty layer.
  • Platforms: Twitch, YouTube, X, Instagram, TikTok, GitHub, Discord, Kick, LinkedIn, Web. New icons from Simple Icons 16.38.1 (CC0-1.0); X, TikTok and GitHub drawn white to stay visible on dark backgrounds; Twitch/YouTube reuse platform-icons.js. public/social-icons.js is also the source of the schema's platform enum.
  • Nicks are rendered as text through the DOM, never as markup.
  • Registered like the other widgets: browser sources, custom overlay slot socials, MCP (ver_widgets, editar_widget), panel card and settings (14 widgets).
  • Profiles live in widgets.socials, so they travel with saved themes like the rotator messages.

Separate commit: test(widgets) fixes a race in the merged «Últimos»/Ticker panel test. It navigated while the panel was still saving, which the router blocks on purpose; it now waits for the save bar status «Todo guardado».

Validation

  • Focused checks passed: socials-widget (config, validation with rejected changes leaving data unchanged, registration, icon set), socials-widget-browser (icon + nick, markup in nicks stays text, empty list, panel add + save), updated count/registration tests. RED before implementation.
  • Full suite: 3371 tests, 3369 pass, 0 fail, 2 skipped. pnpm typecheck passes. The flaky panel test passed 10/10 parallel runs after the fix.
  • Screenshots checked: all 10 icons visible on a dark background; panel list with platform select and nick input.
  • Documentation and configuration are updated when needed: README.md / README.es.md (table, section, slot allowlist), docs/estado.md, MCP descriptions, SDK slot docs.

Linked issue

Closes #345

The router blocks navigation while a save is in flight (confirmLeave
returns false during isSaving), and both save-bar buttons are disabled
while saving, so waiting for them was racy under full-suite load. Wait
for the save-bar status «Todo guardado» instead.
New built-in widget «Redes sociales» (/widget/socials): an ordered list
of up to 12 profiles shown as brand icon + nick, with an optional label
and custom CSS. Platforms: Twitch, YouTube, X, Instagram, TikTok,
GitHub, Discord, Kick, LinkedIn and Web.

Icons come from Simple Icons 16.38.1 (CC0-1.0); Twitch and YouTube
reuse platform-icons.js. Nicks are rendered as text through the DOM.
The widget is listed as a browser source, usable as a custom overlay
slot and editable through MCP.
@egdev6 egdev6 added the type:feature New feature or enhancement label Nov 25, 2026
@egdev6
egdev6 merged commit 908fdee into main Nov 25, 2026
5 checks passed
@egdev6
egdev6 deleted the feat/social-bar branch November 25, 2026 10:54
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): social bar widget with platform icons and nicks

1 participant