Skip to content

mac: Problems lists author errors first, then warnings, then FlashTeX gaps (ordering only, on #476) - #411

Merged
GoKubar merged 4 commits into
mainfrom
agent/daniel-parent/problems-order
Sep 15, 2026
Merged

GoKubar merged 4 commits into
mainfrom
agent/daniel-parent/problems-order

Conversation

@d-q222

@d-q222 d-q222 commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Problems groups are ordered by severity bucket: author errors (0), then warnings (1), then FlashTeX gaps and not-implemented (2), stable within each bucket (EditorDiagnostics.listBucket).
  • Where it applies: EditorDiagnostics.groups(), which the Problems panel, Copy Diagnostics as Text and occurrence stepping all use.
  • Why: before this, groups kept the compiler's report order, so a document with 30 unsupported-command gaps could bury its one real error below the fold.

Dropped as superseded by #476

Checked, unchanged

  • The status-bar badges are counts.
  • goToDiagnostic (⌘⇧]) walks underlined marks in document order, not groups.

Tests

  • New: 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 2 DesignSnapshots Problems-panel shots, which fail on clean main on this Mac too.
  • Full 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

d-q222 and others added 3 commits September 14, 2026 09:14
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]>
@d-q222

d-q222 commented Sep 14, 2026

Copy link
Copy Markdown
Contributor Author

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.

d-q222 added a commit that referenced this pull request Sep 14, 2026
…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]>
@d-q222

d-q222 commented Sep 14, 2026

Copy link
Copy Markdown
Contributor Author

checkpoint b067127f on agent/daniel-parent/problems-order

done: merged origin/main (includes #471/#476). Conflicts were ProblemsPanel.swift and DiagnosticsPanel.swift. Kept only EditorDiagnostics.listBucket group order (errors 0, warnings 1, gaps 2). Dropped this PR's count chips, old header/row chrome, DiagnosticsListView chips, and the 180 pt height — #476 already provides header counts (including "N not implemented") and DS.Layout.problemsIdealHeight. stepOccurrence / copy-text follow groups(). goToDiagnostic still walks marks in document order (not groups). Status-bar badges are counts, not a list.

results (apps/mac):

  • swift test --filter 'EditorDiagnostics|ProblemsPanel|DiagnosticsPanel|CommandTable': Executed 60 tests, 7 skipped, 2 failures — both DesignSnapshots.ShellSnapshotTests.testProblemsPanel (known-failing class). Product suites green (DiagnosticsPanelTests 15 including the 3-gap/1-warning/1-error case).
  • swift test --skip-build --skip NearbyInterfaceTests --skip NearbyLANInterfaceTests --skip DesignSnapshots: Executed 1220 tests, 135 skipped, 0 failures.
  • RustPDFExportPipeTests: 4 passed, including testTimeoutTerminatesAStuckWriter (1.002 s).

next: both #412 and #411 are on current main and pushed. Ready for daniel-parent review.

@d-q222 d-q222 changed the title mac: Problems lists errors, then warnings, then FlashTeX gaps; smaller default height (#76) mac: Problems lists author errors first, then warnings, then FlashTeX gaps (ordering only, on #476) Sep 14, 2026
@GoKubar
GoKubar merged commit d347fd4 into main Sep 15, 2026
21 checks passed
@GoKubar
GoKubar deleted the agent/daniel-parent/problems-order branch September 16, 2026 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants