feat(ui): design-council polish overhaul
CI / ci (push) Canceled after 0s
CI / ci (pull_request) Canceled after 0s
CI / ci (push) Canceled after 0s
CI / ci (pull_request) Canceled after 0s
Eight arbitrated rounds over the workspace surface: piece-scoped Mentor hosting, conversation-voice system messages, glyph-measured roster truncation, bounded learnings/archive columns, symmetric trends grid, top-aligned settings forms, serif editor titles, outline rail rhythm, launch auto-focus root fix. New seams pinned by SessionScopeTests + WordBoundaryTruncationTests; full suite green.
This commit is contained in:
1 parent
b2db859887
commit
3a7d495b4b
21 files changed
+2287
-516
No files matched your search
@@ -444,6 +444,35 @@ struct ACPClientTests {
|
||||
#expect(SessionTranscriptView.speaker(of: "A = Pass 1 start snapshot · B = current document") == .system)
|
||||
}
|
||||
|
||||
/// Round-6 ui-polish (all seats): the warning row's headline/detail
|
||||
/// split — speaker prefix dropped, then the first ": " separates the
|
||||
/// headline from the muted detail line (no ": " → headline only).
|
||||
@Test func `warningParts splits headline from detail`() {
|
||||
let interrupted = SessionTranscriptView.warningParts(
|
||||
"Mentor: Operation interrupted: waiting for model response (61.6s elapsed).",
|
||||
)
|
||||
#expect(interrupted.headline == "Operation interrupted")
|
||||
#expect(interrupted.detail == "waiting for model response (61.6s elapsed).")
|
||||
let lost = SessionTranscriptView.warningParts("connection lost")
|
||||
#expect(lost.headline == "connection lost")
|
||||
#expect(lost.detail == nil)
|
||||
}
|
||||
|
||||
/// Round-8 ui-polish (argon#8 — calm copy): the engine's own
|
||||
/// interruption detail, rephrased verbatim-safe — only the known
|
||||
/// "waiting for model response (X elapsed)" phrasing rewrites; any
|
||||
/// other detail passes through untouched (no invented states).
|
||||
@Test func `calmDetail rephrases only the engine's known phrasing`() {
|
||||
#expect(SessionTranscriptView.calmDetail("waiting for model response (61.6s elapsed).")
|
||||
== "waiting on the model — 61.6s")
|
||||
#expect(SessionTranscriptView.calmDetail("waiting for model response (2m 10s elapsed)")
|
||||
== "waiting on the model — 2m 10s")
|
||||
#expect(SessionTranscriptView.calmDetail("the engine process exited")
|
||||
== "the engine process exited")
|
||||
#expect(SessionTranscriptView.calmDetail("waiting for model response ( elapsed)")
|
||||
== "waiting for model response ( elapsed)")
|
||||
}
|
||||
|
||||
/// #155 audit (security): the link-open gate — interpreted markdown
|
||||
/// opens http(s) only; every other scheme (file:, mailto:, custom app
|
||||
/// schemes) is discarded. Engine prose echoes imported content, so a
|
||||
|
||||
Reference in new issue
Block a user