Skip to content

fix: "No items" screen on marking filtered item#179

Merged
guyfedwards merged 2 commits intoguyfedwards:masterfrom
majiayu000:fix-154-no-items-screen-on-marking-fil-1231-0734
Jan 9, 2026
Merged

fix: "No items" screen on marking filtered item#179
guyfedwards merged 2 commits intoguyfedwards:masterfrom
majiayu000:fix-154-no-items-screen-on-marking-fil-1231-0734

Conversation

@majiayu000
Copy link
Contributor

Fixes #154

Changes

  • Use SetItem() instead of UpdateList() when marking items as read/favourite
  • This preserves the filter state by updating items in place rather than replacing all items

When marking an item as read or favourite while the list is filtered,
the UI incorrectly showed "No items" because UpdateList() replaced
all items and cleared the filter state.

This fix updates only the specific item in place using SetItem(),
which preserves the active filter and remaining filtered items.

Fixes guyfedwards#154

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: majiayu000 <1835304752@qq.com>
@guyfedwards
Copy link
Owner

guyfedwards commented Dec 31, 2025

If you submit AI written code please verify that the issue is fixed. This 'fix' creates several more issues and does not fix the underlying issue as illustrated in this gif.
demo

I will leave this open for you to review/remedy but please include a gif showing the fixed state.

@guyfedwards guyfedwards merged commit c9546e2 into guyfedwards:master Jan 9, 2026
2 checks passed
@guyfedwards
Copy link
Owner

Thanks @majiayu000 🎉

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.

"No items" screen on marking filtered item

2 participants