Skip to content

Preview: gap between adjacent slots, one slot per detail line, no flicker while writing - #16

Merged
citoki merged 7 commits into
mainfrom
feature/adjacent-slot-gap
Dec 1, 2026
Merged

citoki merged 7 commits into
mainfrom
feature/adjacent-slot-gap

Conversation

@citoki

@citoki citoki commented Nov 24, 2026

Copy link
Copy Markdown
Owner

Changes

  • Gap between adjacent slots: when one slot ends exactly where the next starts (e.g. only the temperature changes), the bars keep a 1px gap so the boundary stays visible.
  • Detail line: one slot per line next to the day, aligned (tabular numbers). The block reserves room for the day with the most slots, so hovering days does not resize the card.
  • No flicker while writing: during Apply, every card on the page keeps showing the days being written with their old values until each day is written and read back (src/held-days.ts). Days that are briefly unreadable while ebusd re-reads them keep their last value (not when offline). The preview in the edit card is no longer dimmed while writing (still inert).
  • Dev page: preview cards (week, today + tomorrow, today) next to the edit cards.
  • README screenshots updated.
  • Version 0.6.3 (no tag / release yet).

Tests

  • npm run typecheck, npm test (191 passed, incl. new test/held-days.test.ts), npm run test:e2e passed.

- improve selected day time slots details in preview mode
…uching slots

- Edit mode: the week chart shows temperatures inside the bars like preview
  mode; temp_labels now applies to both modes (auto: one shared temperature
  goes into the heading).
- Days with more slots than the ebusd configuration can read (e.g. 7 slots,
  read messages only up to …2) no longer load forever: the card names the
  day and the first missing message (MQTT) or the incomplete days (service
  sources). Such days are never filled from their last value, so stale
  slots cannot be written back over the controller's (#18).
- Touching slots: a 1px line at the joint towards the theme's text colour
  (lighter on dark themes, darker on light ones) instead of a 1px gap.
- Dev page: scenario "Z1 Mo 7 slots, 3 messages" and sample=touching.
@citoki
citoki merged commit 86ad7d2 into main Dec 1, 2026
6 checks passed
@citoki
citoki deleted the feature/adjacent-slot-gap branch December 1, 2026 19:02
@citoki citoki mentioned this pull request Dec 1, 2026
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