Skip to content

feature/Jump to Last Change #1137

@BeckettFrey

Description

@BeckettFrey

Problem

Currently, users must manually iterate to find the most recent prior version of a page where any change occurred. This is inefficient, especially for pages with many versions, and makes it hard to track specific updates or regressions.

Proposed Solution

Add a function and/or API endpoint (e.g., getMostRecentChange(pageId, currentVersionId, diffType)):

  • Iterate backwards from the current version (selected to version) and find the most recent version whose contents differ (using body_hash, or by calling the diff API with a fast diffType such as html_text_dmp).
  • Return the UUID and basic metadata of the previous version where a change actually occurred.
  • Expose this function in the frontend and/or backend API so it can be used to power a "Jump to Last Change" feature in the UI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Inbox

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions