-
Notifications
You must be signed in to change notification settings - Fork 238
Feat!: improve signal CLI UX #4812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
df7ddfb
to
caacc77
Compare
sqlmesh/core/console.py
Outdated
tree.add(f"check: {check}") | ||
|
||
ready = ", ".join(formatted_ready_intervals) | ||
tree.add(f"[{color}]ready: {ready}[/{color}]") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, the legend is always ready
and its actual status is conveyed through colour. Personally, along with the corresponding colours I’d prefer more explicit messaging for the three cases as well for example:
- All intervals ready
- Some intervals unready
- No intervals ready
and then list which intervals are ready below. It’s a minor preference, but relying solely on colour feels a bit implicit, especially from an accessibility perspective and distinguishing green and yellow in some terminals
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be curious to hear @sungchun12's take on this. I hear you, esp. the bit regarding accessibility. I think trying to improve the messaging may be the better thing here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aligned with the new images
9bd9e05
to
0634bbc
Compare
2bec393
to
2a08f0f
Compare
duration: float, | ||
) -> None: | ||
"""Updates the signal checking progress.""" | ||
tree = Tree(f"[{signal_idx + 1}/{total_signals}] {signal_name} {duration:.2f}s") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm leaving the right-justification of the duration for a followup PR (if we think it's worth it), as it will require some width calculations similar to what we do in the evaluation stage.
7ebfaea
to
54ced6e
Compare
98754b2
to
d0285d3
Compare
Current state of the CLI UX for signals on this branch: