Mark everything read
An identity holder wants to clear every unread marker at once after catching up.

As an identity holder, I want to clear every unread marker in one tap, so that the next time I look, anything marked is truly new.

Situation

I have skimmed my Activity inbox. Several rows still carry an unread dot, and I do not want to open each one just to clear it.

What I do

    Open the Activity tab.

    Look at the first row, which says how many are unread.

    Tap "Mark all read".

What I should see

    The first row of the inbox reads, for example, "2 unread", with the button "Mark all read" on the right.

    After I tap it, every unread dot disappears and the row reads "All caught up".

    The change shows as soon as the service confirms it; I do not need to refresh.

    "Mark all read" is dimmed when nothing is unread.

    "Mark all read" is dimmed while a change is being saved, so I cannot send it twice.

    The rows themselves stay in the list, in the same order and under the same days.

    Only the selected identity is affected. Another identity on this phone keeps its own unread rows, for example still showing "2 unread" after I switch to it.

    The read state is kept by the notification service for my identity, so it holds after I close the app.

    A notification that arrives afterwards shows a dot and the count starts again from "1 unread".

    The summary row and the button are not shown when the inbox is empty.

When something goes wrong

    If the change cannot be saved, a red line appears at the top of the list with the reason, for example "Notification server not responding (hyper.media)." The dots and the count stay as they were, and I tap "Mark all read" again.

    If the selected identity's key is no longer on this phone, the inbox is replaced by "No identity selected" with "Open Me".

Not included

    No undo, and no confirmation before clearing. A row cannot be marked unread again.

    No clearing by day, by document or by kind: it is one row at a time by opening it, or everything.

    Marking read does not remove rows from the list. The inbox's other limits are in Current limits.

Trace

Story US-ACT-03, status Shipped. These links are kept in step with the traceability matrix and with the "User stories" section of every page listed here.

Design

Page

Part it plays

Activity inbox

The summary row with the count and "Mark all read"

Activity row and day sections

The summary row and the unread dot it clears

button

The plain button and its disabled state

list and section

The grouped list section that holds the summary

Buttons and actions

A plain row action that acts at once

Badges, countdowns and connection status

Disabled while saving; the count as confirmation

Loading, failure and empty states

The red action-failed section

Honest state: loading, failure and empty

"All caught up" says the state in words

Platform colour roles in use

The brand dot and system red for a failed action

Representative strings

"N unread", "All caught up", "Mark all read"

Implementation

Page

Part it plays

Activity: screens, tasks and email settings

The summary section and activityMarkAll

Activity: sources, the ask stamp and the committed snapshot

activityApply mark-all-read; the committed snapshot shown without a second request

Activity: snapshot model and grouping

isRead: the mark-all watermark and explicit read ids; the unread count

Activity: notify client and signed requests

The signed write and the another-identity refusal

Crypto: signed envelopes

The signed notify envelope

Identity: key storage

The signer for the selected identity

Notify service

mark-all-read and the read state it returns

Root declarations: Activity and Agents

The activityChanged mutation refreshes activityData

State, refresh and stale-reply patterns

A mutation hands its snapshot to the refresh

Contract UI tests

The mark-all steps of the inbox test

Mock notify service

The fixture that keeps read state per account

Bun unit tests

Read-state unit tests

Code

File

What

activity.contract L87-92

the summary row: unread count and "Mark all read"

activity.contract L81-83

the red action-failed section

app.contract L400-401

activityMarkAll

app.contract L134-138

activityChanged, activityReady, activitySaveError

src/activity/sources.ts L22-44

activityApply

src/activity/model.ts L138-144

isRead

src/activity/model.ts L151-193

present (the unread count)

src/activity/client.ts L47-80

notificationRequest

Tests

File

What it checks

activity.test.contract

activity: grouped days, unread dots, mark all read and push a document

activity.test.contract

activity: switching identities scopes the inbox and email draft

src/activity/__tests__/activity.test.ts

mark-event-read and mark-all-read return canonical snapshots; a successful mutation becomes visible from its snapshot even if the next network read fails

Delivery

Delivered by #1470.

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime

Attributes
Epic
Activity
name
Mark everything read
Story
US-ACT-03
Status
Shipped
summary
An identity holder wants to clear every unread marker at once after catching up.