Draft
Conversation
|
Connected to Huly®: MBM-18 |
# Conflicts: # src/main.rs # src/ui/screens/databases.rs # src/utils/config.rs
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.
This pull request refactors the TUI (terminal user interface) to replace the old "Databases" screen with a new "Backups" screen, updates navigation and UI hints, and improves configuration struct accessibility. The changes also clean up unused code and make the configuration available throughout the app.
Screen and Navigation Refactor:
BackupsScreen, updating all references and navigation logic to use "Backups" instead of "Databases" (src/ui/app.rs,src/ui/screens/home.rs,src/ui/screens/mod.rs,src/ui/screens/backups.rs,src/ui/screens/databases.rs) [1] [2] [3] [4] [5] [6] [7].src/ui/app.rs).UI and Layout Improvements:
Appstruct to all screen draw functions for more flexible rendering (src/ui/screens/layout.rs,src/ui/screens/home.rs,src/ui/screens/settings.rs) [1] [2] [3] [4].Configuration Struct Accessibility:
Configand related backup structs (Backup,BackupDatastore,BackupSchedule) public, allowing screens to access backup configuration data for display and logic (src/utils/config.rs) [1] [2].App Initialization:
Appinitialization to accept and store theConfigobject, making configuration available to all UI components (src/main.rs,src/ui/app.rs) [1] [2].Code Cleanup:
DatabasesScreenand its module (src/ui/screens/databases.rs,src/ui/screens/mod.rs) [1] [2].