Repository navigation
Refresh a project's documents in the sidebar without saying so - #995
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
aria-busy, the way GitHub's and Linear's lists refresh in place.e2e/document-navigation.e2e.ts: the two specs that used the words as their signal now wait onaria-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, ande2e/document-navigation.e2e.tslocally.