Repository navigation
Delete dead Pro residue: sync:* log listeners and the Recovered Items seed script - #3373
Conversation
|
Automated pragmatic-code-review (initial review, medium) PR #3373, closes #3328. Diff: 3 files, 201 deletions, 0 additions. Acceptance criteria (#3328)
On the BASELINES deviationReasonable, and I would not block on it. It is forced: #3299's ratchet is not on main, so there is nothing to edit. The PR body documents the exact deltas ( Dependency check (nothing else relied on the deleted code)
Scope and tidiness
Findings
No Critical/Blocker or Improvement findings. Recommendation: APPROVEClean, minimal, pure deletion. Every acceptance criterion is met except the |
mstomar125
left a comment
There was a problem hiding this comment.
Automated pragmatic-code-review: APPROVE (posted as a comment - GitHub blocks self-approval). Full findings in the review comment above.
|
Address-review summary (PR #3373) Review verdict: APPROVE, 0 Critical, 0 Improvement, 1 Nit.
Checks after the fix: Re-Review DecisionDecision: NO RE-REVIEW NEEDED Rationale: The only change since the review is a one-line comment reword. No logic, tests or scripts changed. |
… seed script (closes #3328) Remove the log-only sync:error and sync:status listeners from initializeTauriSyncListeners(), with the registration assertions and the two log-only tests that covered them. Nothing emits sync:error, and the sync:status listener read fields the Pro emitter never sends, so it logged "undefined". Delete scripts/seed-recovered-item.ts, a dev script for a Recovered Items UI that core no longer has. Co-Authored-By: Claude Sonnet 5 <[email protected]>
The doc called these "logging/debugging sync events" listeners. With the log-only sync:* listeners gone, every remaining handler mutates stores, so say what they actually do. Co-Authored-By: Claude Sonnet 5 <[email protected]>
5444f9e to
ebfaf5a
Compare
Closes #3328
Summary
sync:errorandsync:statuslisteners (and their comments) frominitializeTauriSyncListeners()intauri-sync-listener.ts.sync:error.sync:statusis emitted only by the Pro command layer with{state, detail, user_email, database_id}. The listener readpayload.status/payload.reason, so it always loggedSync status: undefined.sync:statuslistener, so the Pro app loses nothing.tauri-sync-listener.test.ts: drop the twosync:*registration assertions and the two log-only tests (should handle sync:error events,should handle sync:status events). The registration test is not turned into an absence assertion, so no quotedsync:*name comes back.git rm scripts/seed-recovered-item.ts, a dev script for a Recovered Items UI core no longer has. Nothing references it (rg seed-recovered-itemfinds nothing outside.claude).Ratchet (#3299)
scripts/check-pro-boundary.tsis not onorigin/mainyet, soBASELINEScannot be lowered in this PR. I ran #3299's committed script (branchworktree-issue-3299-pro-boundary-ratchet@ 99caa1d) against this tree as a temporary, uncommitted copy. Its counts against that branch's baselines:proEventsproWordingcloudWordingAll other markers are unchanged. These match the issue's expected numbers exactly.
Whichever of this PR and #3299 lands second must lower
BASELINESto these values (the check fails when a count drops below its baseline).Leftover search
rg "'sync:(error|status)'" packages/desktop-app/srcstill finds only files other issues own:stores/pro-sync.svelte.tsandtests/stores/pro-sync*.test.ts(#3332),add-synced-database-dialog.svelteand its test (#3326).Testing
bun run --cwd packages/desktop-app test src/tests/services/tauri-sync-listener.test.ts: 50 passed.bun run test:changed: frontend, scripts and browser tiers passed (rust and skill tiers skipped, nothing reaches them).bun run quality:scripts:checkandbun run --cwd packages/desktop-app quality:fix: clean (0 errors, 0 warnings).🤖 Generated with Claude Code