Skip to content

Board state in the portal, enroll command fix, rename, and master merged in - #10

Merged
IbraTech04 merged 10 commits into
developfrom
claude/awesome-turing-bdgpfd
Sep 25, 2026
Merged

IbraTech04 merged 10 commits into
developfrom
claude/awesome-turing-bdgpfd

Conversation

@IbraTech04

@IbraTech04 IbraTech04 commented Sep 25, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Board card on the device page, from the report each board sends with its heartbeat (OTA and update UX: nightly installs, update now, banners, honest outcomes, clock trust, board report agent#3, stored by Store each board's report of itself from its heartbeat LensBridgeBackend#20):
    • board app version
    • content range, days left and how it arrived
    • software waiting to install, at board time
    • update checks failing, or automatic updates off
    • the last agent update, with a rollback shown in red
    • clock and sync status
  • Days left are worked out again from lastDay, in the board's zone, so an offline board's old report does not keep saying "6 days left".
  • Device list: a Board column of issue chips, most serious first. They include a missing board app, content that ran out or is ending, an unconfirmed clock, a rollback, failing sync or update checks, and "Report Nd old".
  • Enroll dialog: the command uses this console's real API URL instead of http://localhost:8080, starts with sudo, and has a Copy command button.
  • Rename a board from the device page (the backend PATCH already existed).
  • Merged master into this branch. It brings the offline bundle download and the Cloudflare config, so develop and master no longer drift. The bundle card's help now describes the USB and service-port routes rather than "mbpush with the zip".
  • Saving config or the ticker now says that online boards update within a minute and offline boards need a new bundle.
  • Update Now no longer says "up to date" after a failed check.

Test plan

  • npm test passes (38, including 9 for boardState).
  • npm run build passes.
  • ESLint is clean on the changed files. Errors in the gallery pages were already there.
  • Not yet checked in a browser against a live board.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VUxfdFFUkL7SmAEUvUzspy

cloudflare-workers-and-pages Bot and others added 6 commits May 17, 2026 20:04
Brings in OpenAPI client, new permissions system, device management,
socials editor, and backend API modernization.

Conflict resolution: kept wrangler deploy scripts from master,
API/typecheck scripts from develop, newer compat date, and both
sides' dependencies.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Downloads the board's offline content bundle (GET
/api/admin/board/devices/{id}/offline-bundle) through the authenticated
client, with a days picker (default 14), busy state and plain-English errors.
Shown to BOARD_DEVICE_READ holders on non-revoked devices. Regenerated
schema.d.ts from the backend's openapi.yaml.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Boards (agent 0.3.0 on) report their state with every heartbeat and the
backend returns it as `board` on each device. The device page gets a
Board card: board app version, content range and days left (and how it
arrived), software waiting for the install window with its board-time
install time, the last agent update (a rollback in red), whether the
clock is confirmed, and content sync. The device list gets a Board
column of issue chips: content ran out or ending, clock unconfirmed,
agent update rolled back or refused, sync failing, update waiting.
Heartbeat events update both live.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VUxfdFFUkL7SmAEUvUzspy
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
lensbridgefrontend d28e2fa Commit Preview URL

Branch Preview URL
Sep 25 2026, 08:10 PM

The command it showed pointed the board at http://localhost:8080, which on
a Pi is the agent's own local server, and left out sudo, so enrollment
failed with a confusing error. It is now built from this console's API
base URL (API_BASE_URL from api/client), starts with sudo, and has its own
"Copy command" button beside it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VUxfdFFUkL7SmAEUvUzspy
- A pencil beside the board's name edits it in place (PATCH
  /api/admin/board/devices/{id}, board:config:write), which the backend
  already supported but the console never offered.
- The offline bundle card no longer tells people to push "the downloaded
  zip" with mbpush: it describes the signed .mbu, the USB stick and
  service-port routes, that one stick can carry many boards' bundles, and
  that later edits need a new bundle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VUxfdFFUkL7SmAEUvUzspy
- Days of content left are worked out from lastDay and today, in the
  board's time zone, not taken from the report: an offline board's last
  report said "6 days left" a week ago.
- A report older than a day gets a "Report Nd old" chip.
- "Update check failing" and "Automatic updates are off" instead of
  claiming the board is up to date, and a "No board app" chip.
- After saving config or the ticker: "Online boards update within a
  minute; offline boards need a new offline bundle."
- Update Now no longer says "up to date" after a failed check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VUxfdFFUkL7SmAEUvUzspy
@IbraTech04 IbraTech04 changed the title Show what each board runs and shows, from its own report Board state in the portal, enroll command fix, rename, and master merged in Sep 25, 2026
@IbraTech04
IbraTech04 merged commit 09f7eae into develop Sep 25, 2026
1 of 3 checks passed
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