Skip to content

fix(ui): respect explicit hide-deleted toggle when soft-deleting rows#774

Merged
cpcloud merged 3 commits intomainfrom
worktree-adaptive-conjuring-metcalfe
Mar 14, 2026
Merged

fix(ui): respect explicit hide-deleted toggle when soft-deleting rows#774
cpcloud merged 3 commits intomainfrom
worktree-adaptive-conjuring-metcalfe

Conversation

@cpcloud
Copy link
Owner

@cpcloud cpcloud commented Mar 14, 2026

Summary

  • toggleDeleteSelected() unconditionally set ShowDeleted=true after every soft-delete, overriding the user's explicit "hide deleted" preference
  • Added showDeletedExplicit field to Tab to track when the user has explicitly toggled via x; skip auto-enable on delete when set
  • Added TestDeleteRespectsExplicitHideDeleted covering the exact reproduction steps: toggle hide-deleted, delete a row, verify the row is hidden

closes #768

cpcloud and others added 3 commits March 14, 2026 09:08
toggleDeleteSelected() unconditionally set ShowDeleted=true after every
soft-delete, overriding the user's explicit "hide deleted" preference.
Track whether the user has explicitly toggled via 'x' and skip the
auto-enable when they have.

closes #768

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cpcloud cpcloud merged commit f9f0968 into main Mar 14, 2026
25 checks passed
@cpcloud cpcloud deleted the worktree-adaptive-conjuring-metcalfe branch March 14, 2026 14:04
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.

fix(ui): toggling hide-deleted before any deletions doesn't hide subsequently deleted rows

1 participant