visual indication of completion - #1137
Open
philocalyst wants to merge 7 commits into
Open
Conversation
…king indicator tests
philocalyst
force-pushed
the
visual-working-indicator
branch
from
July 31, 2026 23:43
803dc85 to
29ddc62
Compare
philocalyst
marked this pull request as ready for review
July 31, 2026 23:43
Contributor
|
I'm fine with this as long as there's a way to turn it off/disable it. Some people don't like things like this. |
There was a problem hiding this comment.
Pull request overview
Adds a richer “completion in progress” model to Reedline menus, enabling animated working indicators and optional delayed “working…” messaging while background completion work is pending/stale.
Changes:
- Introduces
WorkingIndicator,WorkingPhase, andCompletionProgressto represent and render in-flight completion state. - Updates
IdeMenuandColumnarMenuto track completion progress (replacing the previous boolean “awaiting results” approach) and to render a working message instead of flashing “NO RECORDS FOUND”. - Updates the engine loop to repaint when the active menu’s working phase advances (to animate the indicator), and re-exports the new types from the crate root.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/menu/mod.rs | Adds the new working-indicator/progress types and integrates them into the Menu/MenuSettings API. |
| src/menu/ide_menu.rs | Replaces awaiting_results with CompletionProgress and updates empty-state rendering while working. |
| src/menu/columnar_menu.rs | Same progress-driven behavior as IDE menu; adds/updates tests for working indicator and empty-state behavior. |
| src/lib.rs | Re-exports CompletionProgress, WorkingIndicator, and WorkingPhase as part of the public API. |
| src/engine.rs | Repaints on working-phase changes to animate the in-flight indicator while polling background completion. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| impl Default for WorkingIndicator { | ||
| fn default() -> Self { | ||
| // ASCII spinner: single-column in all terminals |
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.
Summary
This adds really cute completion indicators to reedline! Effectively a series of dots, pulsating in/out. Included with this is a clearer APIs around completion status, through workingphase and completion progress.
Before
After
Additional notes