Repository navigation
fix: history count on delete, SQLite Design Table, tests - #899
Merged
Merged
Conversation
Removing a history entry dropped the row but left the match count and the filter facets as they were, so the panel kept reading "N of M" for the old total. Lower the count when the removed entry was a loaded match, re-read the facets after the delete succeeds, and restore the count if the delete fails. Closes #887. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
The table designer reads and writes MySQL DDL, but the schema tree's table menu offered "Design Table" on tables in an open SQLite file. Hide it there, as "New Table…" already is (#818). Closes #889. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
SchemaTree tests replaced useResultStore's executeQuery with a mock and never put it back, so every later test in the file ran against the mock. Capture the real action and restore it after each test. The TableDesigner "removes a column on trash click" test assigned an unused count and asserted a length >= 0, which cannot fail. It now clicks the trash button and asserts one column fewer. Closes #890. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WTypK4RjzzdjoFxd3qk14g
71 tasks
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three follow-ups filed during the UX batches, one commit each. Written by an
implementer-frontendsubagent.SchemaTree.test.tsxnow restores the realexecuteQueryafter each test. Three tests replaced it with a mock and never put it back, so later tests ran against the mock.>= 0, which can never fail.Closes #887. Closes #889. Closes #890.
Test plan
npm run type-checkand dprint are clean. Lint shows one warning fewer (the unusedinitialCount).executeQueryleak, I used a temporary probe test, now removed.One small race is left as it was: a history read that is already in flight when you delete can bring the deleted row back. Fixing it properly means refreshing after the delete, because bumping the read generation would also discard a legitimate filter change.
Generated by Claude Code