Conversation
- Keep current view instead of popping stack to find refreshable view - Extract viewStack helpers (popView, navigateBack, pushOrClearStack) - Call Init() on back navigation to ensure view is properly initialized - Add nil guard to refreshCurrentView for safety - Add doc comments and debug logging per code review - Add edge case tests (empty stack, nil view, refreshable verification)
…) (#100) * feat: add --service and --resource-id flags for startup navigation (#97) - Add CLI flags: -s/--service, -i/--resource-id - Add DefaultResource() for sensible service defaults (ec2→instances, etc) - Add SetDefaultResource() for future config support - Show startup resource errors in StatusLine with flash message - Extract ReadOnlyBadgeStyle() to ui package - Refactor command_input.go to use DefaultResource() * docs: add --service and --resource-id flags to Quick Start * fix: address PR review - clarify DAO handling, add alias override test * fix: add concurrency safety to DefaultResource, edge case tests, trim resource ID * fix: trim service input, add nil check, validate multi-slash * fix: add leading slash test, improve error message with example
Pull Request Review - PR #101: Merge develop to mainSummaryThis PR introduces two key features:
Code Quality & Best Practices ✅Strengths:
Minor Suggestions:1. Registry default resources map location (cmd/claws/main.go:243-292)
2. Error message consistency (cmd/claws/main.go:237-271) Potential Bugs/Issues
|
Summary
Merge Strategy
MERGE COMMIT (not squash - per AGENTS.md)