Repository navigation
feat(presentation): app state and the repository session - #143
Merged
Merged
Conversation
WindowState keeps windows and tabs, opening a repository once in whichever window shows it. OperationsState tracks background work for the status bar. A GitRepositorySession keeps each open repository's snapshot (refs, status) current from the file watcher, queues writes one at a time, and runs from its first tab to its last under RepositorySessionsService, which also reads a window's repositories again when it comes to the front. Closes #12 Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Dwiki Riyadi <[email protected]>
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.
G1 Task 9 (closes #12).
What
:module:presentationWindowState: windows, their tabs in order, and the tab in front.openRepositoriesis the set of repositories the sessions follow.OperationsState: running background work, by kind, target and percent. An entry is removed however its work ends.RepoSnapshot: refs, the status summary, which parts are loaded or refreshing, the last failure per part, and whether the watcher fell back to polling.RepositorySessionandRepositorySessions: the interfaces features observe.:app:desktopGitRepositorySession, a SinewAppServicewith Session lifetime.WriteQueue, one at a time per repository.RepositorySessionsService, with App lifetime.windowFocusedreads a window's repositories again.sinew-presentation1.1.0 is added to the version catalog. It's already listed in the Libraries note.Tests
./gradlew checkpasses.Rulings (in
plans/progress.md)AppServiceHosttakes a fixed list of services.:module:presentationexposes:module:data:gitas anapidependency.🤖 Generated with Claude Code