Skip to content

Dive cards: the mix, and the preparation from AI Diving Monitor - #43

Merged
Torgh merged 1 commit into
mainfrom
dive-prep-link
Oct 25, 2026
Merged

Torgh merged 1 commit into
mainfrom
dive-prep-link

Conversation

@Torgh

@Torgh Torgh commented Oct 25, 2026

Copy link
Copy Markdown
Owner

Summary

Stage 6c of AI Diving Monitor's roadmap: TripDeck dive cards show how ready the diver is.

  • Mix: dive.mix ("EAN32", "Tx 18/45") next to dive.gas (the kind). The card, the printout, get_trip and the phone app show the mix when it is known. Editor: a Mix field. MCP: add_item / update_item take dive.mix ("" removes it).
  • Preparation: dive.prep = { status: "ready" | "check", summary, url?, updatedAt }, written by the coach of AI Diving Monitor through the new MCP tool save_dive_prep (status: "none" removes it). The board shows a ✅ Prepared / ⚠️ Check prep badge with the summary as its tooltip, linking to the full preparation (http://localhost:3001/trips/<trip>#card-<item>); the editor shows it with Open in AI Diving Monitor and Remove; the printout, get_trip and the phone app show it too.
  • Only http(s) links open, checked when saving and when rendering (divePrepUrl), since the link comes from the agent.
  • update_item with dive keeps the preparation, and the mix unless a new one is sent (it used to replace the whole dive object).
  • Server instructions: a line on the mix and on saving the preparation.
  • Demo: Cirkewwa is prepared (EAN32), the Blue Hole has something to check.
  • README: dive planning, the tool table, the demo.

Checked in the browser on a production build with a temporary TRIPDECK_HOME: the demo's two dive cards show the badges with their summaries, the editor shows the Mix field and the preparation, no page errors. Headless Edge here couldn't capture a screenshot, so none is attached.

Checklist

  • bun run check passes locally (typecheck, lint, 320 tests with coverage, web and phone builds)
  • New behaviour has tests (MCP save_dive_prep / mix round trip, diveGas, divePrepUrl)
  • Storage, sync or OAuth changes: none (two optional fields on a dive card)
  • README updated
  • UI changes: checked in the browser (rendered content, see above)

🤖 Generated with Claude Code

A dive card keeps the mix once it is known (EAN32, Tx 18/45) next to its kind of gas, and shows how
ready the diver is: the coach of AI Diving Monitor, connected to the same Claude Code or Codex,
prepares each dive card from the diver's own log and saves its verdict with the new save_dive_prep
tool. The card shows "Prepared" or "Check prep" with a one-line summary, linking to the full
preparation in AI Diving Monitor; the editor, the printout, get_trip and the phone app show it too.
Only http(s) links open. Changing the dive in update_item keeps the preparation, and the mix unless
a new one is given. The demo has one dive prepared and one with something to check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Torgh added a commit to Torgh/divedeck that referenced this pull request Oct 25, 2026
After saving a trip's preparation, the coach saves its verdict on each TripDeck dive card with
TripDeck's new save_dive_prep (ready, or check when something is still to sort out, a one-line
summary and the link to the card's preparation here), and a gas mix the diver told it with
update_item dive.mix. save_trip_plan now answers each card's link (http://localhost:3001/trips/
<trip>#card-<item>), so the coach never builds one. The trip-prep prompt and the server
instructions say so.

Goes with Torgh/tripdeck#43.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@Torgh
Torgh merged commit bd03d0f into main Oct 25, 2026
6 checks passed
@Torgh
Torgh deleted the dive-prep-link branch October 25, 2026 15:18
Torgh added a commit to Torgh/divedeck that referenced this pull request Oct 25, 2026
* Stage 6c: the coach puts its verdict on the TripDeck dive cards

After saving a trip's preparation, the coach saves its verdict on each TripDeck dive card with
TripDeck's new save_dive_prep (ready, or check when something is still to sort out, a one-line
summary and the link to the card's preparation here), and a gas mix the diver told it with
update_item dive.mix. save_trip_plan now answers each card's link (http://localhost:3001/trips/
<trip>#card-<item>), so the coach never builds one. The trip-prep prompt and the server
instructions say so.

Goes with Torgh/tripdeck#43.

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

* Cloud folder: AiDive in Google Drive and OneDrive

The dive log in the cloud now lives in a folder named AiDive (My Drive ›
AiDive, or AiDive in the OneDrive folder). The README says TripDeck's
Google OAuth client can be reused by adding this app's redirect URI.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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