Ensure that client "Review X changes" is updated periodically

Created on 9 June 2025, about 1 month ago

Overview

In πŸ“Œ When publishing only require the client to send information for the subset of changes they want to publish Active we will not longer require to the client to send all of the auto-saved entries, just the ones they want to publish. Before this we could be sure the client knew about all of the entities that had auto-saved entries because we required the client to send the back-end the complete.

After πŸ“Œ When publishing only require the client to send information for the subset of changes they want to publish Active if the client has not refreshed their browser or made addition/edit to a component then their list of "Review X Changes" could be minutes, hours or days old.

Proposed resolution

We should make sure the "Review X changes" list is never more than 10 seconds old

User interface changes

πŸ“Œ Task
Status

Active

Version

0.0

Component

Auto-save

Created by

πŸ‡ΊπŸ‡ΈUnited States tedbow Ithaca, NY, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @tedbow
  • πŸ‡§πŸ‡ͺBelgium wim leers Ghent πŸ‡§πŸ‡ͺπŸ‡ͺπŸ‡Ί

    We should make sure the "Review X changes" list is never more than 10 seconds old

    Should we re-check upon A) approaching (if using a pointer device), B) interacting with the "Review X changes" list?

  • πŸ‡¬πŸ‡§United Kingdom jessebaker

    The X in "Review x changes" is currently updated by the GET call to /xb/api/v0/auto-saves/pending

    We already call that every time...

    1. The user makes a change
    2. Every 10 seconds on a poll
    3. Every time the "Review x changes" button is clicked and the list popover is opened

    While the list is open, the poll is suspended but if a user attempts to publish and they are out-of-sync with the server, the response to that will update the X again.

    Is there some scenario where this is not adequately keeping that number up to date that I'm missing?

  • πŸ‡ΊπŸ‡ΈUnited States tedbow Ithaca, NY, USA

    yep #3 sounds good

Production build 0.71.5 2024