Skip to content

Add step sequence (cycle) widget with Styleable support#44

Closed
basmilius with Copilot wants to merge 3 commits into
mainfrom
copilot/add-step-sequence-widget-again
Closed

Add step sequence (cycle) widget with Styleable support#44
basmilius with Copilot wants to merge 3 commits into
mainfrom
copilot/add-step-sequence-widget-again

Conversation

Copilot AI commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

Introduces a dashboard widget for the step sequence (cycle) feature, upgrades Cycles to implement Styleable for per-sequence icon/color, and aligns all naming with the terminology already used in the flow cards ("Stappenreeks" in Dutch, "Sequence" in English, etc.).

Cycles: Styleable

  • Cycle type is now WithLook<{name, step}> — carries color and icon
  • Cycles implements Styleable: looks getter/setter persisted as SETTING_CYCLE_LOOKS, getLook (default #204ef6), setLook triggers realtime
  • findAll() hydrates look per cycle; cleanup() prunes stale look entries
  • setCycleLook wired through brain API, root api.ts, and .homeycompose/app.json

Widget (widgets/cycle/)

  • widget.compose.json: autocomplete setting to pick the sequence + opt-in show_controls checkbox; widget name uses flow-card terminology in all 13 locales (nl: Stappenreeks, en: Sequence, de: Sequenz, …)
  • api.ts: GET /?cycle=Cycle | null; POST /?cycle= with {action: 'next' | 'previous'} calls cycleTo(step ± 1)
  • public/index.html: step formatted via Intl.NumberFormat(navigator.language), icon/color from look, live updates via flowbits-cycle-update; optional stacked angle-up/down control buttons when show_controls is enabled

Settings UI

  • useCycles composable + 'cycle' added to FeatureType
  • Sequences category in App.vue with icon/color editing via /cycles/look
  • settings.cycles.{title,description,empty} added to all 13 locale files under .homeycompose/locales/

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: basmilius <978257+basmilius@users.noreply.github.com>
Copilot AI changed the title [WIP] Add new widget for step sequence feature Add counter (cycle) widget with Styleable support Feb 26, 2026
…rom flow cards

Co-authored-by: basmilius <978257+basmilius@users.noreply.github.com>
Copilot AI changed the title Add counter (cycle) widget with Styleable support Add step sequence (cycle) widget with Styleable support Feb 26, 2026
@basmilius basmilius marked this pull request as ready for review February 26, 2026 14:32
Copilot stopped work on behalf of basmilius due to an error February 26, 2026 22:27
@basmilius basmilius closed this Mar 9, 2026
@basmilius basmilius deleted the copilot/add-step-sequence-widget-again branch April 10, 2026 06:46
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.

2 participants