Repository navigation
feat: touch to start (one touch home asset per playlist) - #3540
Conversation
There was a problem hiding this comment.
Copilot encountered an error: Your billing is not configured or you have Copilot licenses from multiple standalone organizations or enterprises. To use premium requests, select a billing entity via the GitHub site, under Settings > Copilot > Features.
There was a problem hiding this comment.
Copilot encountered an error: Your billing is not configured or you have Copilot licenses from multiple standalone organizations or enterprises. To use premium requests, select a billing entity via the GitHub site, under Settings > Copilot > Features.
There was a problem hiding this comment.
🔵 Needs a closer look
The cross-stack Qt input, D-Bus, viewer-wake, and managed-screen changes lack Raspberry Pi end-to-end validation, leaving real touch delivery, wake-tap swallowing, and rotated-display behavior unverified.
No open issues 🎉
2 resolved since last review
Review effort: Lite
There was a problem hiding this comment.
🟡 Changes recommended
Approval is blocked by two critical correctness issues involving concurrent role moves and webview capability handling, plus a moderate touch-event double-counting bug that causes inaccurate telemetry.
5 open issues
Concurrent role moves can fail with an unhandled integrity error · New Missing blockedTapCount disables support for all interactive methods · New Touch and synthesized mouse events double-count a single tap · New Refresh the playlist before choosing the touch-home target Admin edits can leave ineligible assets marked as touch home
Review effort: Lite
There was a problem hiding this comment.
🟡 Changes recommended
A critical active finding remains because the new touch regression test uses the Qt 6-only QPointingDevice type and therefore fails to compile for the supported Qt 5 target.
1 open issue
5 resolved since last review
Missing blockedTapCount disables support for all interactive methods Concurrent role moves can fail with an unhandled integrity error Touch and synthesized mouse events double-count a single tap Refresh the playlist before choosing the touch-home target Admin edits can leave ineligible assets marked as touch home
Review effort: Lite
There was a problem hiding this comment.
🔵 Needs a closer look
Human approval is warranted because the cross-layer Qt5/Qt6, D-Bus, viewer scheduling, and mirroring changes were validated only on x86, leaving Raspberry Pi touchscreen delivery and playlist-resume behavior unverified.
1 open issue
Review effort: Lite
c9626a4 to
27d76c6
Compare
e9c8516 to
c6d6a40
Compare
There was a problem hiding this comment.
🔵 Needs a closer look
The cross-stack Qt input, viewer wake, capability fallback, and controller changes still require end-to-end Raspberry Pi touchscreen validation to verify event ordering and behavior across linuxfb, eglfs, and Wayland.
No open issues 🎉
1 resolved since last review
Review effort: Lite
c6d6a40 to
e3fb05f
Compare
The base branch was changed.
One interactive asset can be marked "Start here on touch": a touch on any other asset jumps to it, with the first touch only waking the screen. The database allows only one such asset. Adds the touch to start telemetry counts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
e3fb05f to
e1ccd32
Compare
The wake path checks the home asset before queuing it, but the scheduler consumed extra_asset without checking the schedule. A home disabled or out of schedule in between would still play. Touch jumps are now queued with from_playlist=True: get_next_asset rebuilds the active playlist and only plays the asset if it is still in it. Operator jumps keep their unconditional meaning. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>
b2dd00d to
e3d2218
Compare
|






Issues Fixed
Follow-up to PR 3533 (interactive touch assets), internal tracker SIRI-2498. Stacked on that PR: the base is
feat/interactive-touch-assets, so the diff shows only this feature. Merge 3533 first.Description
Touch to start. Without this, a touch on an image, a video or an ordinary page is ignored, and a visitor has to wait for the kiosk page to come round. With one interactive asset marked Start here on touch, any touch jumps straight to it.
Asset.touch_homeboolean with a partial unique constraint (single_touch_home_asset), so the database allows only one. Migration 0013.set_touch_home(), which clears the previous home in the same transaction. It only accepts interactive web assets.touch_homeon/api/v2/assets(additive). A 400 if the asset isn't an interactive web page. Setting it on one asset moves it from the other.blockedTapCount), and the wake tap never reaches the page.navigate_to_assetpath.skip_event.wait.Usage statistics
On top of the touch telemetry in the base PR:
device_activeaddstouch_home_set;touch_activityaddstouch_home_wakes(a touch on another asset that jumped to the touch home page) andtouch_ignored_taps(touches dropped because no interactive page was on screen).Ignored taps show how often people try to touch a screen that has nothing to touch. The webview's blocked-press counter is read around each non-interactive wait. When there's no touch home page and usage statistics are opted out, it isn't read at all.
Testing
pytest -m "not integration": 3446 passed.tests/test_touch_home.pycovers:IntegrityErroron a second home);set_touch_homemoving the role and checking eligibility;UNIQUE INDEX single_touch_home_asset … WHERE touch_home;UNIQUE constraint failed);touch_homemoved the role from the other kiosk;Checklist
🤖 Generated with Claude Code