Skip to content

Social card: change summary and the Version card #669

Closed

Description

@HMarzban

Part of #663 (slice 6b, R7 and R-D). Needs slice 6a.

Goal

The Version card: "Version from ", the version's own title, and its change numbers. The kind stays off.

Scope

  • Column. Documents.changeSummary (jsonb, null = not computed). The version's own Title, words added and removed, and sections added, removed, changed and moved, against the previous version.
  • Own job. A BullMQ queue at concurrency 1, enqueued after the persist commit. Never on the persist path: the summary costs up to 94.8 ms on a 3.7 MB head. A late or failed job leaves null.
  • No backfill. Old versions keep the Document card.
  • Card. The approved r4c stack: eyebrow, title, and the labelled stat row. REST never reads the Yjs data column on the request path.
  • Page head. ?version=<n> gives og:title "Version from {date} — {pad}".

Acceptance checks

  • A thinned or missing row gives the Document card.
  • change_summary write failures stay 0 in local runs.
  • The card matches its approved r4c PNG.

Activity

  1. added
    enhancement
    on Nov 1, 2026
  2. HMarzban commented on Nov 1, 2026

    @HMarzban
    CollaboratorAuthor

    Built on main and checked locally, not committed yet. Status and the checks owed before switch-on are in #663 (comment of 2026-11-01).

  3. HMarzban commented on Nov 3, 2026

    @HMarzban
    CollaboratorAuthor

    The Version card shipped in 34116d296, and the change summary job and the Documents.changeSummary column shipped in 674dfc189. Both are deployed with the version kind off. Old versions keep the Document card, so there is no backfill. Switch-on stays on #663.

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

    Featureenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions