refactor: split app.go into per-screen files#45
Merged
Conversation
- Extract message types to messages.go - Extract styles, status bar, fitToHeight, viewLoading, viewError to styles.go - Extract EC2/SSM screen logic to screen_ec2.go - Extract VPC/Subnet screen logic to screen_vpc.go - Extract RDS screen logic to screen_rds.go - Extract Route53 screen logic to screen_route53.go - Extract context picker logic to screen_context.go - Reduce app.go from 2,127 to 563 lines (core Model, Update, View dispatch) Pure file split — no logic or interface changes.
YoungJinJung
approved these changes
Mar 26, 2026
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
Split
internal/app/app.go(2,127 lines) into 7 focused files by screen/resource. Pure file split with no logic or interface changes.app.gomessages.gostyles.goscreen_ec2.goscreen_vpc.goscreen_rds.goscreen_route53.goscreen_context.goRelated Issues
Closes #44
Validation
make buildpassesmake testpasses — all existing tests ininternal/apppass unchangedChecklist