Open
Conversation
Splits the ~1900-line src/ui/app.rs into 5 focused modules: - app/mod.rs: Core App struct, types, enums, new(), tick(), utilities - app/connection.rs: Connection dialog input handling, connect/disconnect - app/sidebar.rs: Sidebar navigation, table inspector, schema refresh - app/editor.rs: Editor input, query execution, autocomplete, boundaries - app/results.rs: Results navigation, table inspector input, export Pure refactor with no behavioral changes. All existing tests pass. Closes #39 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Run cargo fmt for consistent code formatting. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
src/ui/app.rsmonolith into 5 focused submodules undersrc/ui/app/Module Structure
What moved where
handle_connection_dialog_input,start_connect,finish_connect,try_auto_connecthandle_sidebar_input,handle_sidebar_select,open_table_inspector,refresh_schemahandle_editor_input,execute_query,update_autocomplete,find_query_boundarieshandle_results_input,handle_export_input,handle_table_inspector_input,perform_export,copy_selected_cellAppstruct,new(),handle_input(),tick(), utility methodsDesign Decisions
implblock pattern - each submodule adds methods toAppviaimpl App {}pub(super)orpub(crate)visibility to keep the public API unchangeddialog_field_len) stay private to their moduleui/mod.rsstill usesmod app; pub use app::*;- no changes needed to external importsTest plan
cargo buildcompiles without warningscargo test- all 225 tests pass (zero behavioral changes)Closes #39
🤖 Generated with Claude Code