|
| 1 | +# D3ploy Briefcase Conversion Roadmap |
| 2 | + |
| 3 | +This roadmap outlines the complete conversion of d3ploy from a traditional Python package to a Briefcase console application with Textual interface. |
| 4 | + |
| 5 | +## Phase 1: Breaking Change Warning Release |
| 6 | + |
| 7 | +### 1.1 Current Version Patch Release |
| 8 | + |
| 9 | +- [x] Update update notification text to warn about upcoming major changes |
| 10 | +- [x] Test warning message displays correctly |
| 11 | +- [ ] Release patch version (4.4.3) to PyPI |
| 12 | +- [ ] Monitor user feedback and questions |
| 13 | +- [ ] Document migration timeline and what's changing |
| 14 | + |
| 15 | +### 1.2 User Communication |
| 16 | + |
| 17 | +- [ ] Update GitHub README with migration notice |
| 18 | +- [ ] Create GitHub issue/discussion about upcoming changes |
| 19 | +- [ ] Provide clear timeline for new version |
| 20 | +- [ ] Document what will break and how to prepare |
| 21 | + |
| 22 | +## Phase 2: Project Setup & Foundation |
| 23 | + |
| 24 | +### 2.1 Briefcase Configuration |
| 25 | + |
| 26 | +- [x] Create initial `briefcase.toml` configuration |
| 27 | +- [ ] Install Briefcase and verify setup |
| 28 | +- [ ] Test basic Briefcase build process |
| 29 | +- [ ] Configure platform-specific settings |
| 30 | + |
| 31 | +### 2.2 Dependencies & Environment |
| 32 | + |
| 33 | +- [ ] Add Textual to dependencies |
| 34 | +- [ ] Update `pyproject.toml` with new dependency structure |
| 35 | +- [ ] Remove colorama and tqdm from requirements |
| 36 | +- [ ] Test dependency resolution |
| 37 | + |
| 38 | +### 2.3 Project Structure Planning |
| 39 | + |
| 40 | +- [ ] Design new modular package structure |
| 41 | +- [ ] Plan module responsibilities and interfaces |
| 42 | +- [ ] Create placeholder modules and **init**.py files |
| 43 | + |
| 44 | +## Phase 2: Code Refactoring & Modularization |
| 45 | + |
| 46 | +### 2.1 Configuration System |
| 47 | + |
| 48 | +- [ ] Create `d3ploy/config/` module |
| 49 | +- [ ] Implement config versioning system |
| 50 | +- [ ] Add support for both `d3ploy.json` and `.d3ploy.json` |
| 51 | +- [ ] Implement environment variable support |
| 52 | +- [ ] Create config migration logic for old formats |
| 53 | +- [ ] Add priority system: CLI flags > env vars > config file > defaults |
| 54 | + |
| 55 | +### 2.2 AWS Operations Module |
| 56 | + |
| 57 | +- [ ] Create `d3ploy/aws/` module |
| 58 | +- [ ] Extract S3 operations from main file |
| 59 | +- [ ] Extract CloudFront operations from main file |
| 60 | +- [ ] Maintain boto3 compatibility |
| 61 | +- [ ] Add proper error handling and retries |
| 62 | + |
| 63 | +### 2.3 File Synchronization Module |
| 64 | + |
| 65 | +- [ ] Create `d3ploy/sync/` module |
| 66 | +- [ ] Extract file discovery logic |
| 67 | +- [ ] Extract upload/download logic |
| 68 | +- [ ] Extract deletion logic |
| 69 | +- [ ] Implement pathspec-based filtering |
| 70 | +- [ ] Add gitignore support |
| 71 | + |
| 72 | +### 2.4 Core Application Logic |
| 73 | + |
| 74 | +- [ ] Create `d3ploy/core/` module |
| 75 | +- [ ] Extract main application coordination logic |
| 76 | +- [ ] Implement proper signal handling |
| 77 | +- [ ] Add graceful shutdown mechanisms |
| 78 | + |
| 79 | +## Phase 3: Textual Interface Implementation |
| 80 | + |
| 81 | +### 3.1 Basic UI Components |
| 82 | + |
| 83 | +- [ ] Create `d3ploy/ui/` module |
| 84 | +- [ ] Design Textual application structure |
| 85 | +- [ ] Implement progress bars to replace tqdm |
| 86 | +- [ ] Create status display components |
| 87 | +- [ ] Add colored output to replace colorama |
| 88 | + |
| 89 | +### 3.2 Interactive Features |
| 90 | + |
| 91 | +- [ ] Implement confirmation dialogs |
| 92 | +- [ ] Add real-time progress updates |
| 93 | +- [ ] Create error display components |
| 94 | +- [ ] Add update notification UI |
| 95 | + |
| 96 | +### 3.3 CLI Integration |
| 97 | + |
| 98 | +- [ ] Maintain command-line argument compatibility |
| 99 | +- [ ] Integrate Textual with argparse |
| 100 | +- [ ] Implement quiet mode for automated usage |
| 101 | +- [ ] Add proper exit codes and error handling |
| 102 | + |
| 103 | +## Phase 4: Data Management & Standards |
| 104 | + |
| 105 | +### 4.1 App Data Directories |
| 106 | + |
| 107 | +- [ ] Implement platform-specific app data paths |
| 108 | +- [ ] Move cache files to standard locations |
| 109 | +- [ ] Move log files to standard locations |
| 110 | +- [ ] Move temporary files to standard locations |
| 111 | +- [ ] Maintain backward compatibility for existing users |
| 112 | + |
| 113 | +### 4.2 Update System Enhancement |
| 114 | + |
| 115 | +- [ ] Modify update checker for new architecture |
| 116 | +- [ ] Implement Textual-based update notifications |
| 117 | +- [ ] Add breaking change warning system |
| 118 | +- [ ] Test PyPI version checking |
| 119 | + |
| 120 | +## Phase 5: Testing & Quality Assurance |
| 121 | + |
| 122 | +### 5.1 Unit Testing |
| 123 | + |
| 124 | +- [ ] Create tests for config module |
| 125 | +- [ ] Create tests for AWS operations module |
| 126 | +- [ ] Create tests for sync module |
| 127 | +- [ ] Create tests for core logic |
| 128 | +- [ ] Create tests for UI components (where applicable) |
| 129 | +- [ ] Ensure 100% test coverage maintenance |
| 130 | + |
| 131 | +### 5.2 Integration Testing |
| 132 | + |
| 133 | +- [ ] Test Briefcase build process |
| 134 | +- [ ] Test cross-platform compatibility |
| 135 | +- [ ] Test config migration scenarios |
| 136 | +- [ ] Test environment variable handling |
| 137 | +- [ ] Test real AWS operations (with mocking) |
| 138 | + |
| 139 | +### 5.3 Performance Testing |
| 140 | + |
| 141 | +- [ ] Benchmark new vs old performance |
| 142 | +- [ ] Test memory usage of bundled app |
| 143 | +- [ ] Test startup time |
| 144 | +- [ ] Test large file synchronization |
| 145 | + |
| 146 | +## Phase 6: Briefcase Build & Distribution |
| 147 | + |
| 148 | +### 6.1 Build Configuration |
| 149 | + |
| 150 | +- [ ] Finalize Briefcase configuration for all platforms |
| 151 | +- [ ] Configure app icons and metadata |
| 152 | +- [ ] Set up code signing (if needed) |
| 153 | +- [ ] Test builds on all target platforms |
| 154 | + |
| 155 | +### 6.2 Distribution Setup |
| 156 | + |
| 157 | +- [ ] Configure GitHub Actions for automated builds |
| 158 | +- [ ] Set up PyPI wheel distribution with binaries |
| 159 | +- [ ] Configure GitHub releases for direct downloads |
| 160 | +- [ ] Test installation from both sources |
| 161 | + |
| 162 | +### 6.3 Documentation Updates |
| 163 | + |
| 164 | +- [ ] Update README.md for new installation methods |
| 165 | +- [ ] Update configuration documentation |
| 166 | +- [ ] Add migration guide from old version |
| 167 | +- [ ] Document new features and breaking changes |
| 168 | + |
| 169 | +## Phase 7: Release Preparation |
| 170 | + |
| 171 | +### 7.1 Breaking Change Warning Release |
| 172 | + |
| 173 | +- [ ] Create patch release (e.g., 4.4.3) with breaking change warning |
| 174 | +- [ ] Update existing users about upcoming changes |
| 175 | +- [ ] Provide timeline for new version release |
| 176 | +- [ ] Ensure clear migration path documentation |
| 177 | + |
| 178 | +### 7.2 Final Release |
| 179 | + |
| 180 | +- [ ] Complete all testing and validation |
| 181 | +- [ ] Prepare release notes with full changelog |
| 182 | +- [ ] Tag new major version release |
| 183 | +- [ ] Deploy to PyPI and GitHub releases |
| 184 | +- [ ] Monitor for issues and provide support |
| 185 | + |
| 186 | +## Phase 8: Post-Release |
| 187 | + |
| 188 | +### 8.1 User Support |
| 189 | + |
| 190 | +- [ ] Monitor for bug reports |
| 191 | +- [ ] Help users with migration issues |
| 192 | +- [ ] Address any platform-specific problems |
| 193 | +- [ ] Collect feedback for future improvements |
| 194 | + |
| 195 | +### 8.2 Future Planning |
| 196 | + |
| 197 | +- [ ] Plan custom AWS library to replace boto3 |
| 198 | +- [ ] Evaluate additional Textual features to implement |
| 199 | +- [ ] Consider new features for next release |
| 200 | +- [ ] Document lessons learned |
| 201 | + |
| 202 | +--- |
| 203 | + |
| 204 | +## Current Status: Phase 1.1 - Breaking Change Warning Release |
| 205 | + |
| 206 | +**Next Steps:** |
| 207 | + |
| 208 | +1. Update update notification text with breaking change warning |
| 209 | +2. Test the warning message |
| 210 | +3. Release patch version 4.4.3 to PyPI |
| 211 | + |
| 212 | +**Blockers:** None currently identified |
| 213 | + |
| 214 | +**Notes:** |
| 215 | + |
| 216 | +- Keep AGENTS.md updated with any preference changes |
| 217 | +- Each phase should be tested before moving to the next |
| 218 | +- Breaking change warning gives users time to prepare |
0 commit comments