Conversation
* feat: auto-generate ServiceResourcePath constants for consistent error strings Fixes #75 - extends gen-imports to generate constants.go in each resource package with ServiceResourcePath constant, updates all 163 DAO files to use it instead of hardcoded strings. * test: add genimports tests and build verification - Add unit tests for GenerateConstantsFile, GetServiceDisplayName, GroupByService, GetPackageInfo functions - Add build verification step to gen-imports script to catch compilation errors early * refactor: rename cfn to cloudformation and unify display names - Rename custom/cfn/ to custom/cloudformation/ (AWS CLI convention) - Add registry.DefaultDisplayNames() as single source of truth - Remove duplicate ServiceDisplayNames map from genimports (-70 lines) - genimports now imports registry for display name lookup * refactor: unify cloudformation package name with directory * fix: transit-gateways BaseDAO consistency and improve genimports test coverage - Fix vpc/transit-gateways BaseDAO: ec2 -> vpc (match ServiceResourcePath) - Apply strings.CutPrefix modernization in readPackageName - Add comprehensive tests for FindRegisterPackages, GetProjectRoot, readPackageName - Improve genimports test coverage: 48.3% -> 94.8% * docs: add generated files section to adding-resources.md
* refactor: display selectors as modals instead of full-screen views - ProfileSelector, RegionSelector, HelpView now use Modal overlay - q/Esc closes modal (no longer quits app) - Background remains visible (dimmed) for context - Closes #62 * refactor: consolidate modal tests, add width constants - Add newTestApp() helper to reduce test boilerplate - Consolidate modal open/close tests into table-driven patterns - Extract modal width magic numbers into named constants * fix: restore Command key handler accidentally deleted in 68af343 - Add test to prevent future regression * refactor: centralize modal width constants in view package * fix: modal improvements and persistence bug - add modal stack for nested modals (ProfileDetail back to ProfileSelector) - add ModalWidthActionMenu=60, ModalWidthProfileDetail=65 - fix persistence overwriting unrelated config on region/profile change - remove dead ProfileSelector viewStack check * refactor: unify ShowModalMsg handling, add modal tests and docs - Consolidate ShowModalMsg handler logic (both paths now push to stack) - Add tests: TestShowModalFromNormalState, TestModalStackClearedOnRegion/ProfileChange - Document modal system in docs/architecture.md (stack flow, width constants) * fix: add profile region instead of replacing existing regions * refactor: extract helpers to eliminate duplicate msg handling and recursion - Add clearModalState(), showModal(), handleNavigate() helpers - Add handleRegionChanged(), handleProfilesChanged(), popToRefreshableView() - Eliminate recursive Update() calls in handleModalUpdate - Reduce ShowModalMsg/NavigateMsg/RegionChangedMsg duplication
PR Review: Merge develop into main (#85)Conducted a comprehensive code review of this large PR (351 files, +2,284/-450 lines). Overall assessment: High quality, safe to merge with minor suggestions for future refinement. SummaryThis PR successfully merges two major features from develop:
Feature 1: ServiceResourcePath Constants (#83)Strengths ✅
Minor Issues
|
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
Changes
constants.gofiles auto-generated for 163 resources withServiceResourcePathconstantcfn/→cloudformation/for consistency