Skip to content

Quiet save status with details on hover and focus #615

Open

Description

@HMarzban

Summary

Make the desktop save status quiet. When everything is saved, the bar shows only a small cloud-check icon, the hover target. Hover or focus opens a small card with the details. Selecting the status opens Version history. Only three states are announced: Offline, back online and the content-fork Reload state. This follows Google Docs, which keeps its save state small beside the title.

What the user sees

The status sits beside the title, where ProviderSyncStatus sits today (apps/webapp/src/components/TipTap/pad-title-section/PadTitle.tsx:79).

State In the bar Card title Card lines
Saved cloud-check icon only All changes saved Last saved at 10:42. · Connected. 3 people here. · Select to open Version history.
Saving spinner + "Saving…" Saving your changes… Some changes are not saved yet. · Last saved at 10:42.
Offline warning ink, "Offline" You are offline. Your changes will save when you are back online. Your changes stay on this device until then. · Last saved at 10:42.
  • The card stays open while the pointer is on it. Escape closes it (WCAG 1.4.13). It opens on keyboard focus too.
  • Selecting the status opens Version history, like the history button (PadTitle.tsx:105).
  • The status region announces only three things. Offline: "Offline. Your changes will save when you are back online." Back online: "Back online." The content-fork Reload state: the chip's existing tooltip text, "This tab is out of date and stopped syncing to protect your work. Reload the page to keep editing." Saving and saved are never announced.
  • "Last saved at …" is left out until the first save in this session.
  • Copy: "Saving your changes…", never today's "Syncing changes to server...".

Maintainer rulings, 2026-10-25

  • Nothing in the bar when saved except the cloud-check icon; the details show on hover and focus.
  • Keep the cloud-check icon when saved, so a mouse user has something to hover.
  • No exact unsaved count. The card says "Some changes are not saved yet."
  • Announce the content-fork Reload state too.
  • The back-online copy is "Back online."

Build steps

  1. States. Map every state in apps/webapp/src/components/TipTap/pad-title-section/ProviderSyncStatus.tsx:34-101:
    • saved → Saved. Today it shows Icons.cloud (:53-59); use a cloud-check icon. Add LuCloudCheck to apps/webapp/src/components/icons/registry.ts.
    • saving and synced → Saving. synced is a 300 ms timer (read from code, not measured) after a local update (apps/webapp/src/hooks/useYdocAndProvider.ts:339-345), not a server answer. Remote edits never set saving (useYdocAndProvider.ts:327), so "Saving…" means your own edits.
    • offline → Offline. When mirrorWriteFailed is true, keep today's line (:64-66); "stay on this device" would be false.
    • error, the content-fork "Reload" chip and unauthenticated keep their visible text and copy. Their tooltip text moves into the same card. The sign-in chip still opens sign-in on click.
    • The pre-sync "Connecting" chip (:150-161) and the mirror warning (:103-116) stay as they are.
  2. People here. "Connected. 3 people here." counts the same faces as apps/webapp/src/components/TipTap/pad-title-section/PresentUsers.tsx.
  3. Last saved time. Nothing stamps it today; a grep for a last-saved field finds none. Stamp the time when the document:saved stateless message arrives (useYdocAndProvider.ts:211-213). That is the server's confirmation that the database has the document.
  4. Unsaved changes. HocuspocusProvider 3.4.4 has unsyncedChanges and an onUnsyncedChanges callback (@hocuspocus/provider dist/packages/provider/src/HocuspocusProvider.d.ts:53,61). No webapp code reads them today; a grep finds no use. Read the count only to show or hide "Some changes are not saved yet." The count is never shown, because unsyncedChanges counts update messages, not edits a person would count.
  5. Control. Make the status a button (it opens Version history). A button cannot keep role=status (ProviderSyncStatus.tsx:184). Add one separate sr-only role=status region for the three announcements: Offline, back online and the content-fork Reload state.
  6. Card. The house Tooltip fails WCAG 1.4.13 here. It is pointer-events-none, uses move: false, and has no focus trigger (apps/webapp/src/components/ui/Tooltip.tsx:78-87,145). Use an anchored L1 card (popoverPanelClassName, the species of the rail preview card). Open it with Floating UI useHover plus safePolygon, useFocus and useDismiss.
  7. Catalog. Update .cursor/docs/design-system.md §Pad status chips (line 326): the saved icon, the "Saving…" text, the card and the status region. No new token.

Decisions (ruled 2026-10-25)

  1. Should the card show the exact unsaved count ("2 changes are not saved yet")? No. It says "Some changes are not saved yet."
  2. Is the content-fork "Reload" state announced too? Yes. It needs action, and a silent chip is easy to miss.
  3. Is "Back online." the right copy? Yes. The design has no back-online line, and this is the shortest true sentence.
  4. Keep the cloud-check icon when saved? Yes. Without it, a mouse user has nothing to hover.

Out of scope

  • The phone compact chip (apps/webapp/src/components/TipTap/pad-title-section/MobilePadTitle.tsx:311).
  • Any change to the save pipeline or the server.

Checks

  • Browser at 1280px or wider, light, dark and dark-HC.
  • Type, wait for save, then hover: the card shows a last-saved time.
  • Move the pointer from the icon onto the card: it stays. Escape closes it.
  • Tab to the status: the card opens. Enter opens Version history.
  • Go offline in DevTools: "Offline" shows and is announced once. Back online is announced once.
  • When the content-fork "Reload" chip shows, a screen reader announces "This tab is out of date and stopped syncing to protect your work. Reload the page to keep editing." once.
  • With a screen reader, typing announces nothing.
  • Tests: opt-in; none planned.

Activity

  1. added this to the v2.4.0 milestone on Oct 25, 2026
  2. added
    enhancement
    on Oct 25, 2026
  3. removed this from the v2.4.0 milestone on Oct 25, 2026
  4. HMarzban commented on Oct 25, 2026

    @HMarzban
    CollaboratorAuthor

    Maintainer ruling, 2026-10-25

    Open decision 4: keep the cloud-check icon when saved, so a mouse user has something to hover. This is now part of the ruled quiet save status.

  5. HMarzban commented on Oct 25, 2026

    @HMarzban
    CollaboratorAuthor

    Maintainer ruling, 2026-10-25

    The maintainer accepted every remaining recommended answer ("all picks").

    1. Unsaved count: no exact number. The card says "Some changes are not saved yet."
    2. The content-fork "Reload" state: announce it too.
    3. Back-online copy: "Back online."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    DesktopUIenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions