feat: unread-only inbox toggle - #16
Open
benni-rogge wants to merge 1 commit into
Open
Conversation
Add a `u` key toggle in the inbox view to switch between all messages and unread-only. When active, the inbox query appends is:unread, the list title shows an unread-only suffix, and marking an email read removes it from the filtered list. The removal and title recompute are gated on an active inbox listing (listIsInbox) so search and label results are unaffected. Pagination state resets on toggle. Refresh (R) remains a separate key that refetches without toggling the filter.
benni-rogge
force-pushed
the
feat/unread-toggle
branch
3 times, most recently
from
August 13, 2026 18:25
30f1af2 to
577ba37
Compare
benni-rogge
force-pushed
the
feat/unread-toggle
branch
from
August 13, 2026 18:33
577ba37 to
95f516f
Compare
benni-rogge
force-pushed
the
feat/unread-toggle
branch
from
August 13, 2026 18:35
95f516f to
21917b2
Compare
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.
Summary
Add a
ukey toggle in the inbox view to switch between all messages and unread-only.is:unread; the list title shows an unread-only suffix.m) while in unread-only mode removes it from the filtered list and decrements the count.listIsInbox), so search and label results are never affected.R) remains a separate key that refetches without toggling the filter.Testing
go test -race -count=1 ./...passes (api + ui).go build,go vet,gofmtclean.