Skip to content

Refresh a project's documents in the sidebar without saying so - #995

Merged
lavaman131 merged 1 commit into
mainfrom
sidebar-quiet-refresh
Nov 22, 2026
Merged

lavaman131 merged 1 commit into
mainfrom
sidebar-quiet-refresh

Conversation

@lavaman131

Copy link
Copy Markdown
Collaborator

The Projects sidebar showed Loading more… under a project's documents every time it read the project's catalogue again, which it does whenever a document in the repository is created, renamed or archived. The rows were already on screen, so the words came and went for nothing.

  • The words are gone. While a read is under way the list keeps its rows and carries aria-busy, the way GitHub's and Linear's lists refresh in place.
  • Loading documents… still shows while a project has no rows yet, and Load more still pages.
  • e2e/document-navigation.e2e.ts: the two specs that used the words as their signal now wait on aria-busy, and one also checks that no "Loading" text appears while the read is held.
  • project-sidebar.tsx's reviewed design-contract hash is renewed; its class flow is unchanged.

Verification: bun run fix, bun run ci, bun run types, and e2e/document-navigation.e2e.ts locally.

A project's list read its catalogue again whenever a document was created,
renamed or archived anywhere in its repository, and each read put
"Loading more…" under the rows until it landed, so the words came and went
under a list that was already showing. The rows stay as they are while the
read is under way, and the list carries aria-busy instead, as GitHub's and
Linear's lists refresh in place. "Loading documents…" still shows while a
project has no rows yet, and "Load more" still pages.

The two navigation specs that waited on the words wait on aria-busy, and the
reviewed hash of project-sidebar.tsx is renewed: its class flow is unchanged.

Co-authored-by: Alex Lavaee <lavaman131@github.com>
@lavaman131
lavaman131 merged commit 980d20f into main Nov 22, 2026
51 of 52 checks passed
@lavaman131
lavaman131 deleted the sidebar-quiet-refresh branch November 22, 2026 18:31
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.

1 participant