fix(desktop): nested hidden files not showing when toggle enabled#1230
Conversation
- Update ref synchronously before invalidation so getChildren uses correct includeHidden value - Invalidate all expanded directories on toggle, not just root, so nested hidden files appear when setting is enabled Closes #1193
# Conflicts: # apps/desktop/src/renderer/screens/main/components/WorkspaceView/RightSidebar/FilesView/FilesView.tsx
invalidateChildrenIds doesn't cascade, so toggling hidden files must invalidate every expanded directory node, not just root, for nested hidden files to appear. Closes #1193
📝 WalkthroughWalkthroughThis change addresses a bug where nested hidden files and folders were not displaying when the "Show Hidden Files" toggle was enabled. The fix implements full tree invalidation cascading through all directory items instead of partial invalidation, ensuring hidden content at any nesting level appears correctly. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Duplicate of #1220 |
🧹 Preview Cleanup CompleteThe following preview resources have been cleaned up:
Thank you for your contribution! 🎉 |
Summary
invalidateChildrenIdsdoesn't cascade to child nodesBased on the original work by @de1mat in #1220.
Closes #1193
Test plan