Skip to content

Fix Review showing Git changes read before the page came back - #465

Merged
panarch merged 2 commits into
mainfrom
review-reread-after-return
Oct 22, 2026
Merged

panarch merged 2 commits into
mainfrom
review-reread-after-return

Conversation

@panarch

@panarch panarch commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

After the browser page came back to the foreground or Review was opened again, the list on screen kept what it had read before until its reread finished, and the other list was never read again. Branch could keep saying "No changes compared with origin/main." after new commits.

  • Choosing Working Tree or Branch after a return reads its changes again.
  • While they are read again, the places that said nothing changed show loading, or the read's error if it fails: the Branch and Working Tree lists, the "Review branch changes" box, and the viewer's "No changes in this scope." Lists with files and an open diff stay on screen.
  • After a reread, an open diff, Source, or Preview reloads in place, keeping its scroll position and without showing loading.
  • Review's Working Tree list, Branch list, and file viewer are separate components. The layout keeps the route, selection, and Git watch, and the read state after a return is an explicit model. The Compare tree moves to components/git-compare-tree.js.
  • frontend.md describes the new components and the reread after a return.

Closes #461

After the page or Review came back, the scope on screen kept its old list
until the reread finished, and the other scope was never read again, so
Branch could keep saying "No changes" after new commits. Choosing a scope now
reads data from before the return again, places that said nothing changed
show loading or the read's error meanwhile, and a reread reloads the open
diff, source, or preview in place.
The Review layout read Working Tree status, the Branch compare, and the open
file itself. Each now has its own component with the read state after a
return as an explicit model, and the layout keeps the route, selection, and
Git watch. Retrying a failed Branch reread now shows loading in the viewer
instead of the last error, and Working Tree's loading text is not redrawn when
another reread starts.
@panarch panarch self-assigned this Oct 22, 2026
@panarch
panarch merged commit c471f91 into main Oct 22, 2026
10 checks passed
@panarch
panarch deleted the review-reread-after-return branch October 22, 2026 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show current Branch changes after returning to Review, not the list read before

1 participant