Repository navigation
feat: auto-expand projects that need attention - #60
Merged
Merged
Conversation
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.
Closes #59.
What
A project row opens on its own when it goes 🔴, 🟡, or ⏸, and closes when it recovers. An all-green fleet sits fully collapsed, one line per project.
Dashboard.lastStoplightrecords the stoplight each project was last seen at; expansion changes only when that value changes, or on a project's first sighting. Level-triggering would re-open a row on every poll and fight a user who collapsed it deliberately.d.expandedis what moves. Stage expansion (d.stagesExpanded) stays manual.applySnapshot, which resolves the cursor back to the same logicalnavItemafter the rebuild instead of clamping the index. A stage row that disappeared falls back to its project row.a/xhint should be on screen.Nothing kicks a refresh on expand — aws-green already fetches everything each poll, and the ECS detail call keys off service health rather than expansion.
Testing
Unit tests cover: first sighting per stoplight; green→red expands; red→green collapses; a hand-collapsed row surviving repeated identical snapshots; a status change overriding a manual collapse; the cursor staying on the same row when a project above it expands; and pruning on removal.
go test ./...andgolangci-lintclean.Docs: README feature bullet, and a new Auto-expansion section in
CONTEXT.md.