0015 — Tablet rail
Status: Accepted · Date: 2026-10-28 · Revised: 2026-11-20
Context
On tablets the workouts screen showed a 64 px spine of eight unlabelled icons plus an expandable 280 px sidebar. The sidebar repeated the same list the spine already offered, and it mixed drawers, a link out, maintenance actions (Refresh, Load workouts) and two controls under one noun: "Add station" (a screen column) and "Manage stations" (what the plan counts).
Decision
D10 = B. One rail on the iPad, header buttons and full-screen pages on the phone; no sidebar on either.
iPad: the rail
- A 64 px rail (
RAIL_WIDTH; owner's request, 2026-11-20 — it was a captioned 72 px rail) pinned left of the columns. Every item is icon-only (Live and Portal lost their word under the icon on 2026-11-23), its name and state inaria-labeland tooltip, status as a dot or badge on the icon. The icons are solid SF-style glyphs of one size (a 24 px box in the 48 px button,RAIL_ICON_CLASS): Livewaveform.circle.fill(LiveFillIcon), Stationsrectangle.split.3x1.fill(StationsFillIcon), bell, Portal globe. In debug builds a Debug item (bug icon) sits right above Account. - Collapsible like the iPadOS sidebar (2026-11-20): the sidebar button at
the top of the rail slides it off the left edge; while it is hidden, the
same button sits at the start of the first column's header
(
rail-header-toggle.tsx, with a dot while the hidden rail has a live session, unread notifications or uploads waiting). The choice persists on the device (rail-collapse.ts). A free-floating edge tab was rejected: it collides with column content. The collapse holds everywhere: on a screen (Settings and every page in it, e.g. Devices; Notifications; an account room) the same button sits at the start of the screen's head, throughScreenHeaderStartContext(drawer-stack.tsx), which only full-screen heads (presentation="screen") render — drawers and sheets opened from a screen don't. An earlier version showed the rail again on screens and offered no collapse there; the user rejected that as inconsistent. - The rail itself
(
tablet-rail.tsx): Live, Stations, Notifications and Portal (opens the Enode Portal, last since it leaves the app; was "History" until 2026-11-20) at the top, Account alone at the foot (owner's decision, 2026-11-23 — the common sidebar pattern: what you work with on top, the account below; until then Live and Portal sat at the top and the three menu items at the foot, a split only the code could explain). The item is named Stations (owner's decision, 2026-11-11; three-column icon since 2026-11-23): "This device" is the name of the Settings tab alone, so the rail and Settings no longer share a name. - One rule for Stations, Notifications and Account: a rail item opens a
small menu beside itself
(
RailPopover,rail-popover.tsx); an entry of that menu opens a screen in the content area right of the rail. The screens (Settings, Notifications, the account rooms) cover Today without unmounting the columns, BLE or a live session; Back returns to Today. The item whose menu or screen is open shows active (activeRailItemintablet-rail-model.ts). The menu sits beside its item: top edges aligned and growing down for an item in the upper half of the screen (Stations, Notifications), bottom edges aligned and growing up for Account at the foot (railPopoverPlace). - Stations (
stations-popover.tsx): two steppers and, under a divider, the schedule status. Athletes (one station) see a read-only line instead of the steppers, then the schedule status. Today's columns are the training stations plus the feedback stations, filled from the left.- Training stations − n + (
TrainingStationsRow,training-stations-row.tsx; logic inuse-training-stations-control.tsandstationStepper): a tablet icon, "Training stations" and a stepper, no sublabel. + asks the server for one station more after a fresh read — the left-most feedback station becomes a training station, or a column opens for it; a station-limit refusal opens the station-limit sheet with Take 1 from …. − gives one back — the right-most training station becomes a feedback station; it never closes a column. + is off, with a short reason, when this device holds every station of the plan, the device-class maximum, or as many stations as fit the screen ("No room for another station."); − is off while it would stop a running saving training ("Finish the training to free a station."). Other devices holding the stations never turn + off — the refusal names them. - Feedback stations − n + (
FeedbackStationsRow, logic inuse-feedback-stations-control.tsandfeedbackStationStepper): a tablet-with-pulse icon (TabletPulseIcon), "Feedback stations" and a stepper. + is the header +: one more column at the right while another fits ("No room for another station." otherwise). − closes the right-most column the way its × does, only when it is a feedback station that is not in use — a training, a past workout being logged, a workout being prepared or a Feedback training (columnInUse; "Finish the feedback training first."). − is off without a note at 0 feedback stations, at the last remaining column (0 training stations and 1 feedback station) and when the right-most column is a training station (a running training keeps its mode). Both are off while a station request runs. - Both steppers are one
StepperRow(title, step names, icon). - Schedule status (
ScheduleStatusRow): "Schedule up to date · Update" and what waits to upload; Update ("Load workouts" in the old app) refreshes the schedule, the offline copy and the uploads. It is an action and a status, not a setting. - No Settings link: every setting, device ones included, lives in one place — Account › Settings, device-only ones on its This device page.
- Training stations − n + (
- Alerts — an outstanding check-in and the latest notifications, Show all opens the Notifications screen.
- Account — identity, Profile, Plan & usage, Devices, Data & import, Help, Settings, Sign out.
Phone
- One column fills the screen. Its header has the sensor Connect pill and the account avatar (Account; Settings and Notifications live inside it). Notifications is the first row of the Account page, with the unread count; unread notifications put a red dot on the avatar.
- The same Training stations − n + row is on Settings → This device (on every device), above the device name; the schedule line ("Schedule up to date", what waits to upload, "Sync now") is a "Schedule" card on the same page — the phone's only place for it (the iPad also has it in the Stations menu). The phone has no Feedback stations stepper (one station).
- The stations footnote in Settings says "With a training station,
trainings on this device are saved." on the phone and "Training stations
save trainings. Feedback stations only show live feedback." from
mdup (CSS picks the line). On the phone + is simply off at the limit, without "No room for another station." - Notifications, Account and Settings are full-screen pages.
Stations and the save rule
- No UI text says "column" (owner's decision, 2026-11-10): users think in stations. A column that saves is a training station, one that doesn't is a feedback station. Code identifiers keep "column".
- Training stations fill the columns from the left. An idle column is
titled Training station or Feedback station (
stationLabelsandstationTitleintablet-rail-model.ts, fromcolumnsThatSave), numbered from the left only when there are several of a kind ("Training station 1", "Training station 2", "Feedback station"). The same rule holds on the phone and on an iPad with one column. A column running a training shows the workout in its header. There is no per-column choice. Athletes keep their own title ("Today"). - A feedback station shows no schedule: no week list, no read-only
workout cards, no "Log a past workout" (it saves). It shows one card
(
no-training-station-card.tsx): the feedback-station icon, "Trainings at a feedback station aren't saved." and Start feedback training. Only the left-most idle feedback station (stationOfferColumn) also offers a station — Use a training station, or Take 1 from … / a line on who holds them — since a station got there lands in it. The "Check-ins for your athletes" card stays in every station. A feedback station has no + button (FAB): its menu would only have repeated Start feedback training. - A lock makes idle columns feedback stations. After a refused station
(
useTodayStation().locked) every idle column shows the feedback-station card — also while the weight or the role is still unknown, whencolumnsThatSavealone would let every column save.columnsShownSavingturns those columns into feedback stations, so the title ("Feedback station") and the card agree. - Extra columns: a small round + at the right edge of the last column's
header (iPad, "Add a feedback station") opens one more column while
another fits (
columnCap: 2 at 1024 and 834 px); every column after the first has its close × ("Close station"). The Feedback stations stepper in the Stations menu does the same (+ opens, − closes the right-most idle feedback station). Raising the stations opens columns up to the station count, also beyond what fits the screen. - Columns follow the screen (
fitColumnsinopen-columns.ts): no column is ever hidden, so every station the Stations menu counts is a column on screen or one the rail scrolls to. When fewer columns fit (turning an iPad to portrait, Split View, Stage Manager), idle feedback stations close from the right; training stations and columns in use stay and the rail scrolls sideways to them, and the Stations menu says how many are off screen ("1 station is off screen."). When more fit again, the columns the user had open come back. Neither change is saved as the user's column count. Until 23.11.26 columns that didn't fit were hidden (display:none) with no notice since the P7 rail replaced the old sidebar's "Close hidden columns" warning, so the menu counted stations the screen did not show. - Save rule: the device's server weight (0–3) is how many columns may
save at the same time (
columnsThatSaveintablet-rail-model.ts): running trainings keep the mode they started with; the stations they leave go to the idle columns left to right. Never more saving columns than the known weight. Feedback stations offer Feedback training only. Athletes always save one column. An unknown weight (not loaded, offline) never limits saving. - Weight lowered elsewhere (portal, another device's Take 1): the right-most idle training stations become feedback stations; running trainings keep saving until they finish.
- No claim on open. Opening the app asks the server for no training
station (as the native app never did). A device without a station has
only feedback stations, and the user takes one deliberately in the
left-most one. When the card already knows the plan is full (plan total
against the weights it knows), it offers what will work up front:
Take 1 from … for the owner, and for a coach no Take button but the
line
Only the owner can move training stations. Ask the owner of {org} for one.(mayTakeStation: the owner withwriteDeviceSession; the backend refuses coaches lowering the owner's devices until P7-B04). When the plan is not known to be full — free, or unknown becauseGET /user_licenses/usageanswers 404 — it offers Use a training station; a refusal opens the station-limit sheet. The station goes to the left-most feedback station. The card learns who holds the stations from the plan count or the device-session list, read fresh when it mounts — not from a refused claim. - Take 1 asks first. "Take 1 from …" — in the station-limit sheet and on
the card — never acts on one tap. One confirmation, mounted once on Today
(
take-station-confirm.tsx), asksTake 1 training station from {device}?, says when that device was last used — with the date unless it was today ("Last used 28 Oct, 12:40" / "Last used today 12:40", in the app language;stationLastUsedinstation-limit-sheet.tsx) — and{device} can then save one training less., with Take 1 / Cancel. A done take closes the sheet and saysTook 1 training station from {device}.with Undo for 8 s. - Undo gives the station back with the take's own requests in reverse
(
undoTodayStationTake): this device's weight − 1, then the other device's + 1 (foreign-row update with its own values); if the second step fails, this device asks for its station again. Undo never stops a running saving training here (the stepper's − rule,takeUndoBlock). Only the owner gets Undo: P7-B04 lets a coach lower another device by one but never raise one. - The station-limit sheet ("All N training stations are in use") has a close button in its header; Escape, Back and a tap on the backdrop close it too. Its retry is Check again. Each holder row says when it was last used with the date unless today ("Rack 1 iPad · 2 training stations · last used 28 Oct, 12:40").
- Start gate. Start re-checks the server weight. When no station is free the station-limit sheet opens instead of starting; a refusal only locks recording, Today stays readable. The lock ends as soon as this device may save one more column.
- Open columns persist on this device (
open-columns.ts, the count) when the user changes them ("+", a column's ×, the Feedback stations stepper, raising the stations). A reload restores them, at least as many as the device holds stations. - Schedule refresh and the offline copy run by themselves on open, on return
and after each load (
use-auto-schedule-refresh.ts).
Consequences
- The spine, the sidebar and their actions are gone from the code; the debug
"Sidebar" gallery went with them. The store screenshots render the real
TabletRailView. - Station logic lives in
use-today-station.ts(explicit requests, the sheet, the lock) andno-training-station-card.tsx(the feedback-station card). - "Take 1 from …" lowers the other device by one with that device's own
values (
updateForeignDeviceSessionWeight; never this device'slastUsedAt), then asks for one more station for this device. The backend needs the full row, so the row comes from the device-session list or from the refusal that named the holder. Only the owner is offered it. Should the server still refuse lowering that device (403/404), the user is told: "Only the owner can free a training station. Ask them, or free one in the portal." — and sees no Take button after that. If this device then does not get the station, the owner's take puts it back; anyone else is told plainly what happened. - TODO: the feedback-station card knows who holds the stations before any
request only once
GET /user_licenses/usage(P7-B15) answers; today's backend lists only the caller's own devices, so the card offers "Use a training station" until a refusal names the holders. - TODO: coaches get Take 1 back once P7-B04 lets them lower the owner's
devices (decision D8); until then
mayTakeStationis owner-only.
Alternatives
- A — keep the spine and sidebar, relabel them. Rejected: it still shows two lists.
- C — not chosen.
- A radio list in the rail's device menu ("Feedback only / 1–3 stations" + "Add a column" + the schedule line). Replaced on 2026-11-09 by the stepper (the "Station n" / "Feedback only" column titles that followed were dropped for neutral "Column n" titles, which the station titles above replaced).
- Only the Training stations stepper in the rail's device menu (2026-11-09). Opening a feedback-only column took adding a station and giving it back, and the schedule's Update had left the menu. Replaced on 2026-11-10 by a Columns stepper above it and the schedule status below.
- A "Columns − n +" stepper and neutral "Column n" titles (2026-11-10, morning). Users don't think in columns, and a feedback-only column still listed the schedule read-only next to a banner. Replaced the same day by the owner's decision: station-named columns ("Training station" / "Feedback station"), a "Feedback stations − n +" stepper under the Training stations one, and feedback stations without the schedule.
- A per-column save chip ("Saves" / "Feedback only" pill with a menu in each column header, per-column intent). Built and dropped on 2026-11-09 after the mock round: a pill in every header read as odd, and a choice per column added state without need — filling from the left is enough.
- Claim a station when Today opens (the first build). Rejected: a device that only gives feedback took a station from a rack without anyone choosing it, and the refusal was the only source of who held the stations.
- "This device" as the rail item's name (until 2026-11-11). Settings has a tab of the same name with other contents; in the tree test all four iPad users opened the rail item looking for a Settings › This device setting. Renamed Stations.
- "Take 1 from …" on one tap (until 2026-11-11). It lowered another device at once, and the sheet's "last used 12:40" without a date made a two-week-old device look in use today. Replaced by the confirmation with the dated last use and Undo.
- A bell in the phone header (until 2026-11-12, owner's decision). Bell, avatar and the station's Connect pill did not fit beside the title, so the pill shrank to a bare Enode mark that did not read as "connect a sensor". The bell moved into Account; the avatar carries its unread dot.