S2a status: rebased on main d5a328a, force-pushed at f20b4d2
The rebase onto d5a328a ("Docs' screens on the spacing scale") had no conflicts: main's change is web-only. Its rule now covers the new native chrome too. DocsSpacing mirrors Fiesta's --rst-sp-1…6 (4, 8, 12, 16, 24, 40pt), and two values stay off the scale, each saying why with spacing-allow:: the 1pt between title and subtitle, and the 2pt inset of the segmented well.
What's built (commits on the branch)
- One title.
.navigationTitlestays set and.toolbar(removing: .title)hides the system's. Docs' title area is the.navigationitem: 15pt semibold title, with the §6 subtitle under it. The.principalitem is deleted. Rename happens in place in a small AppKit field, because SwiftUI focus doesn't reach a toolbar item's hosting view (see the spike post above). - Subtitle.
DocsSubtitleRowis one pure function covering every §6 row. The 1 s "Saving…" debounce runs in a.task, and the announcements follow the kit's rule plus rows 1 and 10 mid-session. The subtitle is its own view, so the body hosting the text view no longer readssyncStatuson the Mac. - Header controls. Undo/redo pill, the Format
Toggleand Share… (today's sheet until S2b) are three toolbar items, so they overflow one at a time. Readers get none of them. - Floating Format inspector. 248pt glass panel with an accent rim, opaque under Reduce Transparency. It has Style, Text, Alignment and Lists, plus the second Lists row (§13 Q2). It is open by default, app-wide via
docs.inspector.open, and never shown to a reader. - Page centring by translation.
DocsDeskViewis the scroll view's document view. The page is a fixed 612pt band placed by the web's clamp, so a toggle or a resize moves one frame origin and the text never reflows. - refreshAccess. - 403 and 404 give "No longer available", and a later 200 leaves it and calls
retry(). - 401 pauses input and leavescan_writealone.retry()no longer resumes input under a 401; the re-minted session's stream opening does. - A 200 withoutcan_writegives View only in place. - Callouts under the header. No longer available (Close, Discard), the
errorKeycallout, and Sign in for rows 5 and 6. - Menus. - View: Show/Hide Format ⌥⌘I, Paged/Infinite, Zoom. - Format: on the web's keys, with Headings 1–3. - Tools: Word count. Help: Keyboard shortcuts, then Colophon. - File: Open a document… ⌘K, a sheet that opens or focuses the result's window. Rename is absent for readers.
- Strings. The §8 keys this slice uses are in all 12 languages. The Mac.strings keys this slice orphaned are deleted.
Tests
- New: -
DocsSubtitleTests: every row, its words, styles and announcements, and every key resolving in all 12 tables. -DocsAccessTests: 401, 403, 404, the later 200, and View only in place. -DocsDeskLayoutTests: the six widths × two zooms, open and closed, the 1,108pt boundary, and RTL. -DocumentWindowChromeTests(hosted, toolbar bridged): one title and no.principal, the page frame at the six widths open and closed, the app-wide state across two windows, a reader's window, and the debounce. - Each new test was seen red with its mechanism broken: 401 treated as 403, row 1 never left, the desk ignoring the inspector, the inspector shown to readers.
swift test: 192 tests, 0 failures (4 skipped as before).WorkspaceInitTests,SignedInLaunchTestsandEditorRenderLoopTestsare green.test-document-window.py: all PASS. The smoke now toggles View ▸ Hide/Show Format and checks that the page slides while the editor's space stays put.- The iOS build of DocsKit is green, and the iPhone snapshot half passes.
- From check-native: the interpolated-key grep is clean and sync-fonts matches. The cargo half was not rerun because S2a touches no Rust.
- Hub CI:
amadan ci status oficina/docs -branch feat/native-s2a-mac-windowreports CI passed at f20b4d2 (exit 0).
Snapshots (snapshots.sh compare all, after the rebase and before the final recording)
- Mac
docsanddocs-editor: pass, including the six 150% screens re-recorded in their own commit. - iPhone
docs,docs-editoranddocs-editor-ax3: pass. - Mac
docs-window: 12 differ, all from this polish. They are re-recorded in their own commit (f20b4d2), and the commit message lists each. - The 150% re-record: the page is 1,224pt in a 1000pt window. Before, it sat 24pt in because of the old 636-unit minimum; the rule puts it at 16pt, so it moves 8pt left. Nothing reflows, and every 100% baseline is pixel-identical.
- New
docs-windowbaselines, light and dark: - Format open at 1280, closed, and open at 1000 (the page under the inspector) - reader - no longer available - ar and ru - every subtitle row in en, ar and ru - Published for Paul at
https://pauls-macbook-pro-2.tail76ffb7.ts.net:10007/s2a/. - The header in these screens is the real title-area and controls views, laid out as the toolbar lays them out. The kit draws a borderless window, which has no toolbar.
real-window.pngthere is the real window from the smoke run. - Under machine load (loadavg 700–1000 on 11-22) the gate reports "still changing" across the board, because the kit's 3 s settle limit can't be met. Recording needed a quiet window.
Copy review
New English: native.subtitle.{saved, viewOnly, unavailable, signedOut, joined}, native.unavailable.body, native.format.{show, hide}.
- Status: not reviewed yet. The review page (hand-built preview, skill
serve.sh) sat for 24 h without a submit and exited as abandoned. There was no result.json. - It is relaunched at
http://100.101.233.54:54277. - Both fallback reviewers were unavailable today: Luna (Codex limit until 11-25) and Sonnet (weekly limit until 11-27).
- The drafts are in all 12 catalogs. They must not land until a review result is applied.
Deviations and spec notes
- SyncStatusAnnouncer. The kit export and re-pin (spec §1, "Kit dependency") is not done. Docs carries the rule itself, at row level, extended for rows 1 and 10 (
DocsSubtitleRow.announces/sameKind). The export is a small rastrillo/native branch; then Docs re-pins and deletes its copy. - Row 13 (Loading) can't be reached in the table's order, because a loading document is
.savedto the outbox. The code checks it before rows 10 and 11. - The desk is still
windowBackgroundColor, which is white in light mode on macOS 27, so the page edge is invisible in light. The mock-ups' desk tint (#e3e7ee / #0e1015, spec D5) would change every editor baseline, so it's left for its own slice. - Inspector toggle and live resize cost. Both still re-evaluate the editor body, which renders the whole projection, because the body reads the inspector state. S1a's render isolation removes that cost. The page move itself is O(1).
- Physical-Mac checks still to do (§11 device pass): - dragging the window by the title area (hit view is draggable; a posted drag can't prove it) - VoiceOver reading order, title then subtitle
Expected conflicts with S1a (perf/native-s1a, eef9b9c)
DocsWorkspace.editor(certain). S1a replacesNativeDocumentTextView(content:…)withDocumentEditorHost(surface:paged:zoom:)andEditorToolbar(model:). - S2a's.inspectorSide(...)must become an identity-level input ofDocumentEditorHost. - The inspector overlay'scontent:goes away onceDocumentCommandsreads the live storage. - S1a'srequestJump()(opens home on the Mac) gives way to S2a's sheet. - The init gains bothconnectivity:andteam:.NativeDocumentTextView. makeNSView/updateNSView wrap the text view inDocsDeskView(3 lines). S1a moves the representable.DocsModel.refreshAccess, theretry()guard, andlisten'sonOpen(sessionReopened).DocsFormatInspector/DocsUndoRedoPill. These useDocumentCommands(model:content:),DocumentToolbarSelection(commands:)andprojection?.canUndo. They should move to S1a's single observedDocumentToolbarSelection.DocsEditorContext/DocsToolsControls. S2a added bindings and extracted the sheets; S1a changes how they read content.- S1b.
DocsPagedTextView.viewportWidthis now the fixed paper band, which S1b's full path assumes.