Skip to content

Unify room touch controls and the trusted-network website - #1

Closed
diyanko wants to merge 85 commits into
mainfrom
experiment/fresh-pi-setup-20261013
Closed

diyanko wants to merge 85 commits into
mainfrom
experiment/fresh-pi-setup-20261013

Conversation

@diyanko

@diyanko diyanko commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

What changes for room users

  • Touch panel: a simpler Home (lights on/off, clock, weather), one Room tools sidebar, a screen saver, and Legacy still one tap away with a Home button back.
  • Website (trusted room network): the same Home, lighting, preferences and help from a laptop or phone, through the panel itself, never as a second controller.
  • Lighting: White light, Scenes (Fid, Sat, Dul as before), and Channels. Gradient, Sun and Circ are listed as not available yet.
  • Blinds: shown but locked. No blind adapter is installed, so nothing can move them yet.
  • Safety: uncertain light results block further changes until someone checks the room. Restart and shutdown need explicit confirmation.

Not done yet

  • Blind adapter, Gradient/Sun/Circ programmes, per-window or per-fixture addressing, and the experiment recorder.
  • Physical touch feel, power stability and full Legacy workflows still need a researcher's hands-on check in the room.

How it was checked

  • python -m pytest tests runs in CI on every push.
  • The panel was checked at 1280×800 and the website at phone, tablet and desktop widths, in light and dark.
  • The deployed Pi runs this source. Control commands were blocked during browser checks.
Technical evidence

Move timings, screenshot counts and audit details here, or link to the private handoff.

Draft for researcher review. Do not merge to main without approval.

🤖 Generated with Claude Code

Copilot AI balanced review requested due to automatic review settings October 14, 2026 15:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@diyanko diyanko changed the title Set up modern cabinet panel with Legacy access and room guidance Set up modern cabinet panel with everyday controls and Legacy access Oct 15, 2026
@diyanko diyanko changed the title Set up modern cabinet panel with everyday controls and Legacy access Unify room touch controls and the trusted-network website Oct 16, 2026
diyanko and others added 11 commits October 16, 2026 14:57
The website JavaScript and CSS were written as long compressed lines,
which made small changes hard for room maintainers. Prettier now lays
them out conventionally; .prettierrc keeps future edits consistent.
Rendering is unchanged: 85 light/dark page screenshots at 1280 and
390 px are pixel-identical before and after.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Room users: if the panel accepts a command but its reply cannot be read,
the website now says the result is unknown (and blocks repeats) instead
of claiming the command was rejected.

Room host: refused or failed requests are logged as one line each, a
missing website file returns a clear 500, fonts and artwork are cached
for a day, and /tools and /guide reuse index.html instead of two
identical copies.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Header status is a pill with a green/amber dot and says Connecting,
  Website offline or Panel unavailable accurately.
- Current page is underlined in the main navigation; unavailable buttons
  are visibly dimmed; the Blinds heading only folds on phones.
- A change that cannot be sent puts sliders back to confirmed values.
- Routine confirmations fade after six seconds; warnings stay.
- After a panel restart, an old unknown receipt no longer locks the page.
- Choosing a programme keeps focus; page titles and focus follow
  navigation; unknown links open Home; polling slows while offline.
- Screen readers hear lighting status and slider units.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings the readable website source, unknown-reply handling, request
logging, artwork caching and the status/navigation polish onto c27fcdb.
Programme selection changes were dropped because this branch already
replaces the unconnected programme controls with a short explanation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each selector is now defined once per screen size, grouped by page area,
so changes no longer need hunting through later overrides. Rendering is
unchanged (pixel-identical screenshots at 1280, 768 and 390 px, light and dark).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Visitors at the panel can scan it to open the room website on a phone
or laptop on the room network. The address lives in room_controls.py
with a one-line command to regenerate the image.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AGENTS.md now says the same things in plain, shorter terms, and drops the
gallery-refresh step. Compiled .pyc files from the original app were
tracked despite .gitignore; Python regenerates them automatically.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The header navigation already offers both, so Home on the website ends
with the weather instead of a second set of links. The touch panel keeps
its own buttons.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Room users: the website no longer opens Legacy, which switched the touch
panel to the original app and reset the lights for people in the room. If
the panel is in Legacy, a banner pauses website controls and offers Return
panel to Home. Browsing the website no longer wakes or switches the panel.

Settings now use one pattern: title and note on the left, a compact
segmented control on the right, stacked on phones. The weather icon is
sturdier, the daylight bar has a clear now marker, and the phone menu
fits on one row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The website now moves theme times by one hour, like the panel buttons,
and the panel's remote API accepts the same step. Settings sections on
the touch panel get even spacing between groups. Temperature labels match
on both screens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@diyanko

diyanko commented Nov 10, 2026

Copy link
Copy Markdown
Member Author

Superseded by #6, which carries this history forward as one release PR to main.

@diyanko diyanko closed this Nov 10, 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.

2 participants