Skip to content

Demo follow-up: track arrows, course & speed chart with detected turns, drop-downs, waypoint drag keeps speed - #62

Merged
IanMayo merged 3 commits into
mainfrom
ccr-b839f6e2-uq5z0i
Nov 22, 2026
Merged

IanMayo merged 3 commits into
mainfrom
ccr-b839f6e2-uq5z0i

Conversation

@IanMayo

@IanMayo IanMayo commented Nov 22, 2026

Copy link
Copy Markdown
Member

Summary

Changes requested in the owner's review of the merged leg-splitter demo (PR #61):

  • Arrows: an arrowhead at the end of each track shows its final heading. It sits just past the end waypoint's circle so the circle doesn't hide it.
  • Course & speed chart: a fourth chart, which can be hidden like the other three. A drop-down picks course, speed or both, for both vessels, with the estimated target's course or speed dashed.
    • True turns are shaded: blue for ownship, red for the target.
    • Turns the chosen splitter detected are solid edge strips: target turns orange on the right edge, ownship turns teal on the left.
    • Only Debrief's slicing detects ownship turns, as the gaps between its steady ownship legs. The new detects_target / detects_ownship flags on each splitter say which kinds it reports.
    • The learned model's own manoeuvres show as purple strips.
  • Error chart: the quantity radio buttons are now a drop-down over the title row, so the chart is as tall as its neighbours and their time axes line up.
  • Preset drop-down: it shows the preset the scenario matches, or "custom (edited)", instead of always "choose…".
  • Leg length:
    • Dragging a waypoint (circle) keeps the adjacent legs' speeds, so their durations follow their new lengths. Later waypoints stay where they are but are reached earlier or later.
    • Dragging a leg's square keeps its duration, so its speed changes; this is unchanged.
    • The default of moveWaypoint is still "keep time", for the existing callers.
  • Ctrl-click (⌘-click) deletes a waypoint.
  • Schema 0.39.0: TmaSolution.splitter_ownship_spans, and the DemoSplitterInfo flags detects_target and detects_ownship.

Two things work differently from the request:

  • One chart with a selector, not two side by side. With four charts in the column, two charts side by side were too narrow to draw at 1366 px, so course and speed share one chart. "Both" splits it in two on a wider screen.
  • Ownship detection only for Debrief. C has an ownship component but doesn't use it, and C″'s zig veto isn't in the demo, so only Debrief's slicing reports ownship turns.

Checks

  • Node: 25 tests in conformance/onnx/demo_node.mjs, all passing. Two are new: a waypoint drag that keeps speed changes only the durations, and Debrief's ownship turns match the true ones within 30 s.
  • Chromium (demo_page.mjs):
    • a waypoint drag keeps the adjacent legs' speeds;
    • ctrl-click deletes a waypoint;
    • there are two arrowheads;
    • the preset drop-down shows "custom" after an edit and the preset's name after loading it;
    • the error chart is the same height as the bearings chart (541 px);
    • the course and speed charts render;
    • no page errors.
  • ruff, gen_types --check and demo_schema --check pass.
  • Written up as a dated update in the kickoff post and in the AGENTS.md entry for spec 036, as the repo's practice for small follow-ups.

Generated by Claude Code

…rns, error quantity drop-down, preset shown, waypoint drag keeps speed, ctrl-click delete; schema 0.39.0

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019erPakLqRJK8qWeKCiwrGV
@github-actions

github-actions Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Preview: https://debrief.github.io/gitma2/pr/62/

Posts added or changed in this PR:

Built from b4a0322 · all previews: https://debrief.github.io/gitma2/previews

Rebuilt on every push to this PR and kept after it closes. GitHub Pages can take a minute or two to update.

…ndle and cursor; drag read-out above-left of the cursor

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019erPakLqRJK8qWeKCiwrGV
…s, leg by leg; hover tooltips to match

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019erPakLqRJK8qWeKCiwrGV
@IanMayo
IanMayo merged commit d478a05 into main Nov 22, 2026
13 checks passed
@IanMayo
IanMayo deleted the ccr-b839f6e2-uq5z0i branch November 22, 2026 21:27
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