-
-
Notifications
You must be signed in to change notification settings - Fork 24
Feat: Added Terminal User Interface (TUI) for Sugar #165
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
Implement a TUI for Sugar using the Textual library to provide a visual and interactive way to manage containers. The interface includes: - Dashboard for overview of profiles and services - Profile management screen with detailed configuration view - Services management with status and control capabilities - Real-time log viewer with filtering and auto-refresh functionality - Clean dark UI theme with consistent styling across screens Currently uses mock data for development and demonstration purposes. Integration with the Sugar backend will be implemented in future updates. This feature allows users to manage their containers with a more intuitive interface directly from the terminal, similar to k9s for Kubernetes.
@xmnlab Please review |
Hey @akshayw1 , Ivan is planning to make stats.py ( ie .. there is a extra is available under poetry install named |
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.
@akshayw1 , thanks for working on that.
I added a few comments here, but I realized that there are a bunch of small issues, so please fix that first and ping me again for a new round of review.
- all the files need to have an empty line at the end of the file. you probably should configure that in your IDE. Ref: https://dev.to/documendous/why-you-should-end-your-source-files-with-a-new-line-156g
- avoid adding unnecessary comments in the code (usually created by llvms)
This pull request has been marked as stale because it has been |
hi @akshayw1 , thanks for working on that. |
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.
hi @akshayw1 ,
in general it looks good to me!
it seems that the linter is failing. other than that it is ready to go.
please ping me on discord when you fix the linting issue.
Thanks!
|
||
class SugarTUI(SugarBase): | ||
"""Terminal User Interface extension for Sugar.""" | ||
|
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.
def _load_backend(self) -> None: | |
"""Load backend and backend parameters""" | |
pass | |
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.
Thanks for working on that @akshayw1
🎉 This PR is included in version 1.17.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Pull Request description
This PR adds a new Terminal User Interface (TUI) for Sugar, providing a visual and interactive way to manage containers directly from the terminal. The design was inspired by k9s for Kubernetes and aims to make Sugar's functionality more accessible through an intuitive interface.
Solves #42
How to test these changes
pip install -e .
sugar tui
p
)s
)l
)I have added screenshots demonstrating UI and functionality.




Pull Request checklists
This PR is a:
About this PR:
Author's checklist:
Additional information
Currently, the TUI uses mock data for development and demonstration purposes. Integration with the actual Sugar backend will be implemented in future updates.
The new TUI features include: