Repository navigation
mac: Problems lists author errors first, then warnings, then FlashTeX gaps (ordering only, on #476) - #411
Conversation
Add DiagnosticsPanelTests that pin errors-then-warnings-then-gaps across two documents, Copy Diagnostics walking that order, and ⌘⌥] starting on the first author error rather than an earlier gap. What was run: `swift test --filter` of the three new methods in apps/mac. Result: Executed 3 tests, with 7 failures (0 unexpected) in 0.238 seconds. Current groups(of:) still sorts by first occurrence in source, so the tikz gap leads the list. Next: sort groups(of:) by bucket while keeping document order inside each bucket and inside each group's occurrences; add summary() for the header counts; wire ProblemsPanel VoiceOver. Open questions: whether ProblemsPanel.idealHeight 260 (~1/3 of a typical window) still needs a smaller default; overlap with #363/#367/#403. Implementation-Agent: cursor-agent cursor-grok-4.6 Commit-Executor: cursor-agent Lane-Owner: daniel-parent (mac-m5pro-dq222) Co-authored-by: Cursor <[email protected]>
groups(of:) lists author errors, then warnings, then FlashTeX gaps, keeping document order inside each bucket and inside each group's occurrences. result.diagnostics is not reordered. summary() reuses counts() for "2 errors · 5 warnings · 46 FlashTeX gaps"; the Problems header and VoiceOver label read that string. Opening height is 180 pt (was 260, ~1/3 of a typical window); the 40% cap is unchanged. What was run: swift test --filter DiagnosticsPanelTests| EditorDiagnostics*|WorkspaceShellTests in apps/mac. Result: Executed 54 tests, with 7 tests skipped and 0 failures (0 unexpected) in 2.107 seconds. Next: full `swift test` from apps/mac; overlap check; push. Open questions: none on ordering/header. Existing AppStorage values of 260 remain until the user resizes. Implementation-Agent: cursor-agent cursor-grok-4.6 Commit-Executor: cursor-agent Lane-Owner: daniel-parent (mac-m5pro-dq222) Co-authored-by: Cursor <[email protected]>
Restore the three SF Symbol count labels (errors red, warnings orange, gaps puzzle-piece secondary) including zeros so an all-gap document still shows the error column. VoiceOver uses summary() once via .ignore on the chips; the panel stays .contain so the list remains accessible. DiagnosticsListView caption matches. idealHeight stays 180; a stored AppStorage 260 cannot be told from a user resize, so it is left as-is. What was run: swift test --filter 'DiagnosticsPanelTests|EditorDiagnostics|WorkspaceShellTests' in apps/mac. Result: Executed 59 tests, with 7 tests skipped and 0 failures (0 unexpected) in 2.112 seconds. Next: daniel-parent review / PR. Open questions: none on the header. AppStorage 260 left as-is. Implementation-Agent: cursor-agent cursor-grok-4.6 Commit-Executor: cursor-agent Lane-Owner: daniel-parent (mac-m5pro-dq222) Co-authored-by: Cursor <[email protected]>
|
daniel-parent: after #471 and #476, main still doesn't order Problems groups by severity, so the core of this PR is still needed. It's being trimmed to ordering only (author errors, then warnings, then FlashTeX gaps) on top of #476's redesigned panel. The count chips and row UI are dropped in favour of #476's. I'll post the new head and test results when it's ready. |
…to Line / :N Merged origin/main (includes #471/#476 design system and scoped command palette). The only conflict was CommandPalette.swift. Resolution: keep #476's PaletteScope / PaletteEntry structure and DS tokens. Re-added this PR's Go to Line command in perform(), plus :N as a query prefix that emits a lineJump palette entry. No clash — #476 uses ':' only in internal ids (file:, cmd:), not as a typed prefix. GoToLineSheet restyled onto DS tokens. Tests (apps/mac): swift test --filter 'GoToLineTests|CommandTableTests|CommandPalette' Executed 18 tests, with 2 failures — both DesignSnapshots ShellSnapshotTests.testCommandPalette (known-failing class on this Mac). swift test --skip-build --filter 'GoToLineTests|CommandTableTests' --skip DesignSnapshots Executed 17 tests, with 0 failures (CommandTableTests 8, GoToLineTests 9). Next: push this branch; then PR #411 problems-order in its own worktree. Implementation-Agent: cursor-agent cursor-grok-4.6 Commit-Executor: cursor-agent Lane-Owner: daniel-parent (mac-m5pro-dq222) Co-authored-by: Cursor <[email protected]>
…rseded UI Merged origin/main (includes #471/#476 Problems panel). Conflicts were ProblemsPanel.swift and DiagnosticsPanel.swift. Kept only EditorDiagnostics.listBucket grouping: author errors (0), then warnings (1), then FlashTeX gaps (2), stable within each bucket. groups() feeds the panel, copy-text, and stepOccurrence, so next/previous occurrence and ⌘⌥] land on the first error rather than an earlier gap. goToDiagnostic still walks underlined marks in document order (it does not iterate groups). Status-bar badges remain counts, not a list. Dropped as superseded by #476: count chips (including zeros), the old header/row chrome, the DiagnosticsListView chip caption, and the 180 pt idealHeight (#476 already tokens this at DS.Layout.problemsIdealHeight). Kept #476's "N not implemented" gap count rendering. Adapted WorkspaceShellTests off the 180 pt assertion. Added testThreeGapsThenWarningThenErrorListsTheErrorFirst. Tests (apps/mac): swift test --filter 'EditorDiagnostics|ProblemsPanel|DiagnosticsPanel|CommandTable' Executed 60 tests, 7 skipped, 2 failures — both DesignSnapshots ShellSnapshotTests.testProblemsPanel (known-failing class on this Mac). Product suites all passed (DiagnosticsPanelTests 15, CommandTableTests 8, EditorDiagnostics* green). swift test --skip-build --skip NearbyInterfaceTests --skip NearbyLANInterfaceTests --skip DesignSnapshots Executed 1220 tests, with 135 tests skipped and 0 failures. RustPDFExportPipeTests: 4 passed including testTimeoutTerminatesAStuckWriter (1.002 s); no isolation re-run. Next: push this branch. Implementation-Agent: cursor-agent cursor-grok-4.6 Commit-Executor: cursor-agent Lane-Owner: daniel-parent (mac-m5pro-dq222) Co-authored-by: Cursor <[email protected]>
|
checkpoint done: merged results (
next: both #412 and #411 are on current main and pushed. Ready for daniel-parent review. |
daniel-parent (Cursor Grok lane
GH-76-ORDER, reviewed by daniel-parent). Rebased onto the design passes #471 and #476 and trimmed to the ordering only.What changes
EditorDiagnostics.listBucket).EditorDiagnostics.groups(), which the Problems panel, Copy Diagnostics as Text and occurrence stepping all use.Dropped as superseded by #476
DS.Layout.problemsIdealHeightis kept.Checked, unchanged
goToDiagnostic(⌘⇧]) walks underlined marks in document order, not groups.Tests
testThreeGapsThenWarningThenErrorListsTheErrorFirst(3 gaps, 1 warning, then 1 error, in source order; the error is listed first).swift test --filter 'EditorDiagnostics|ProblemsPanel|DiagnosticsPanel|CommandTable': every product suite passes (DiagnosticsPanelTests 15, CommandTableTests 8). The only failures are the 2DesignSnapshotsProblems-panel shots, which fail on clean main on this Mac too.swift test --skip NearbyInterfaceTests --skip NearbyLANInterfaceTests --skip DesignSnapshots:Executed 1220 tests, with 135 tests skipped and 0 failures.Overlap check
Clean merge with main (after #476). The ordering also changes which rows #476's Problems snapshot shows first, so that reference may need re-recording on the machine that owns the snapshots.
🤖 Generated with Claude Code
https://claude.ai/code/session_012c9XLkHjePPGBuarrmE2mz