fix(microblog): publish sheet opens unfocused
Since the categories field landed, the Micro.blog publish sheet opened with that field focused and its completion menu popping. A sheet window takes its initial first responder like any window — its first text input — and textInputSuggestions shows its list when the editing interface is activated, so the menu popped the moment the sheet opened. The sheet now rides the launch-focus-reset rider from r8, once per window: it resigns the auto-focus at the sheet's first become-key, and a later re-key keeps whatever the writer focused. The rider is InitialFocusReset(scope:) in the shared chrome; the library column mounts the once-per-process scope exactly as before. The SwiftUI door is closed: defaultFocus with false or nil changes nothing for this assignment on macOS 27.2.1. Verified with a bundle-launched OS-behaviour probe kept under prototypes/ (re-run it after every macOS point release): the three non-fix variants reproduce the auto-focus and the suggestions window, the rider variant never shows either, and a run whose sheet never became key exits 2 instead of printing the green verdict. Owner live check passed. Reviewed (three-reviewer finish-audit): the probe's false-green verdict, a snippet missing its scope label, and duplicated mechanism comments were found and fixed before this commit. Rail 814/814; SwiftFormat and SwiftLint clean. Docs: Museion/AGENTS.md bullets, an AGENTS.md learning, CHANGELOG [Unreleased], the devlog, and the swift wiki (a sheet hands its initial focus to its first text input). Unticketed follow-up to the Micro.blog categories work; owner report 2026-12-05.
This commit is contained in:
1 parent
36393a9e8e
commit
eca90a981c
9 files changed
+438
-64
No files matched your search
@@ -20,6 +20,8 @@ All notable changes to this project will be documented in this file. The format
|
||||
|
||||
### Fixed
|
||||
|
||||
- **publish:** The publish sheet opens with nothing focused (unticketed; owner report 2026-12-05; #207 follow-up) — the **Categories** field was the sheet's first text input, and a sheet window hands its initial focus to that field exactly as a window does at launch, so the completion menu popped the moment the sheet opened. The sheet now rides the launch-focus-reset rider (once per window) and resigns that auto-focus at its first become-key; the menu still appears the moment you click into the field. `.defaultFocus(…, false)` does not stop the assignment on macOS 27.2.1 (probed), and the rider is the same one the library search field has used since launch. No new pins (view wiring; the OS-behaviour probe is `prototypes/MicropubSheetFocusProbe.swift`). Suite 814
|
||||
|
||||
- **publish:** A Micro.blog 5xx names their outage instead of a bare `HTTP 503` (unticketed; owner report 2026-12-04) — their errors arrive as HTML pages, never Micropub JSON, so `decodeFailure` fell through to the status code and the sheet read "Micro.blog said 503: HTTP 503", which says nothing about whose side it is on. A live probe at report time found the endpoint healthy (25/25 tokenless POSTs answered the usual 400; their news feed logs repeated 503 incidents), so the 503 was theirs and transient. The decode now answers `unavailable on their side — retry in a few minutes (status.micro.blog)` for any 5xx that carries no JSON description — ONE decode, so create, publish, q=config, and media uploads all speak it; a described 5xx keeps its description, a 4xx keeps the bare status. +1 test (a 503 over an HTML body → the their-side wording; a 422 over the same body → `HTTP 422`; a 502 with `error_description` → the description), flip-verified — the guard off reddens exactly that pin with `detail → "HTTP 503"`. Suite 736
|
||||
|
||||
## [0.1.2] - 2026-12-03
|
||||
|
||||
Reference in new issue
Block a user