Skip to content

Show unread count for each account #1160

@gnprice

Description

@gnprice

In the UI where we list your accounts, we should show your number of unreads in each account.

The eventual design for this is tracked in #1038, for an account-switcher modal. But this could also be implemented before such a modal — the unread counts would fit just as well on the existing choose-account page.

The semantics for how many unreads you have, and in particular for which messages count toward the total (in the presence of muting, etc.), should be the same as for the desktop app and for the favicon in the web app.

Implementation

Getting the data to know how many unreads the user has in each account will involve creating a PerAccountStore proactively for each account. To do this, we'll make a PerAccountStoreWidget for each account in this UI.

When the PerAccountStore for a given account isn't yet ready — for example because we haven't yet been able to reach that server and load data — we'll want to somehow let the user know that the unread count is still loading. We shouldn't just silently show no unreads, the same way we would if we did know the answer and the answer was zero, because that would mislead the user.

This feature won't be suitable for a contributor new to the project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a-modelImplementing our data model (PerAccountStore, etc.)beta feedbackThings beta users have specifically asked forlaunch feedbackThings users specifically asked for upon launch

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions