Skip to content

Fix Internet Commute rider lifecycle and Slow Mode boarding - #440

Merged
spencerc99 merged 6 commits into
mainfrom
cx/commute-presence-boarding
Aug 28, 2026
Merged

Fix Internet Commute rider lifecycle and Slow Mode boarding#440
spencerc99 merged 6 commits into
mainfrom
cx/commute-presence-boarding

Conversation

@spencerc99

Copy link
Copy Markdown
Owner

Summary

  • Count active PlayHTML users instead of retained train assignments so departed riders disappear from the carriage count.
  • Show every Slow Mode rider the full local train pull-up and boarding intro, including riders joining a train already in progress. Keep the cursor on the platform and let the train occlude it at the doorway.
  • Reboard riders after a completed route so the page does not remain at home station with “a fresh route is forming.”

Root cause

The UI used the dispatcher assignment count for live occupancy. Slow Mode also derived its intro from the shared train creation time, so late riders skipped it, while the boarding phase immediately hid the cursor. Completed assignments were refreshed with the same rider token and returned the completed route instead of starting the next trip.

Verification

  • bun run test:extension (140 files, 903 tests)
  • bun run check:extension
  • bun run check:extension-website
  • Built the MV3 extension and automated the persisted Slow Mode ride, service worker, content-script bridge, hosted commute, production train assignment, train arrival, cursor boarding, and carriage handoff in isolated Chromium.
  • Captured waiting, arrival, and boarding states at 1440 × 1100. Visual evidence is attached in the PR Evidence comment.

Release notes

Updated extension/PENDING.md. No extension permissions changed.

@pkg-pr-new

pkg-pr-new Bot commented Aug 28, 2026

Copy link
Copy Markdown

Open in StackBlitz

bun add https://pkg.pr.new/@playhtml/common@440
bun add https://pkg.pr.new/playhtml@440
bun add https://pkg.pr.new/@playhtml/react@440

commit: bb21a1a

@spencerc99

Copy link
Copy Markdown
Owner Author

Preview evidence

Fixes live rider cleanup, Slow Mode boarding, platform cursor placement, and completed-route restart.

Open preview · Review all evidence · Commit bb21a1a

Waiting on the platform

Waiting on the platform

The local cursor is fully above the yellow platform edge before the train arrives.

Open captured page · 1440×1100

Train arriving

Train arriving

The train pulls in front of the cursor while the cursor remains on the platform side of the yellow edge.

Open captured page · 1440×1100

Cursor boarding

Cursor boarding

The train occludes the cursor at the doorway; no cursor is drawn on the train body or on the track side of the yellow edge.

Open captured page · 1440×1100

Published by PR Evidence. Media is temporary and is removed after retention expires.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying we-were-online-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: bb21a1a
Status: ✅  Deploy successful!
Preview URL: https://b5594c5a.we-were-online-website.pages.dev
Branch Preview URL: https://cx-commute-presence-boarding.we-were-online-website.pages.dev

View logs

@spencerc99

Copy link
Copy Markdown
Owner Author

Code review

No issues found. Checked for bugs and project-instruction compliance.

@spencerc99
spencerc99 merged commit 292730b into main Aug 28, 2026
7 checks passed
@spencerc99
spencerc99 deleted the cx/commute-presence-boarding branch August 28, 2026 16:21
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