|
| 1 | +# Repository Cleanup Plan - CalorieAppTestnet Main Branch |
| 2 | + |
| 3 | +## Executive Summary |
| 4 | + |
| 5 | +The main branch currently contains **Universal App Builder** development material that should be **removed from public GitHub**. Only the finished CalorieApp code and essential documentation should remain public. |
| 6 | + |
| 7 | +## Current Issues |
| 8 | + |
| 9 | +1. **Universal App Builder directory is public** (`universal_app_builder/`) |
| 10 | + - Contains incomplete development work |
| 11 | + - Includes test projects, temporary workspaces, automation scripts |
| 12 | + - Should remain private until finished |
| 13 | + |
| 14 | +2. **Development/test artifacts are public**: |
| 15 | + - Test logs (`ux_tour_phase1_*.log`) |
| 16 | + - Python cache (`__pycache__/`) |
| 17 | + - Coverage files (`.coverage`) |
| 18 | + - Local wallet data files |
| 19 | + |
| 20 | +3. **Excessive documentation** for public consumption: |
| 21 | + - Many internal development checkpoint files |
| 22 | + - Detailed development progress documents |
| 23 | + - Technical implementation details meant for development |
| 24 | + |
| 25 | +## Recommended Actions |
| 26 | + |
| 27 | +### 🗑️ Files/Directories to DELETE from main branch |
| 28 | + |
| 29 | +#### 1. Universal App Builder (Entire Directory) |
| 30 | +``` |
| 31 | +universal_app_builder/ # DELETE - All unfinished work |
| 32 | +``` |
| 33 | + |
| 34 | +#### 2. Test/Development Artifacts |
| 35 | +``` |
| 36 | +ux_tour_phase1_20251119_070640.log # DELETE |
| 37 | +ux_tour_phase1_20251119_070729.log # DELETE |
| 38 | +.coverage # DELETE (already in .gitignore) |
| 39 | +__pycache__/ # DELETE (already in .gitignore) |
| 40 | +wallet_data.bak # DELETE (user data) |
| 41 | +wallet_data.dat # DELETE (user data) |
| 42 | +wallet_data.dir # DELETE (user data) |
| 43 | +wallet_state.json # DELETE (user data) |
| 44 | +``` |
| 45 | + |
| 46 | +#### 3. Development Documentation (Internal Progress Tracking) |
| 47 | +``` |
| 48 | +docs/development-progress/ # DELETE - Internal checkpoints |
| 49 | +DEVELOPMENT_CHECKPOINT.md # DELETE (if exists) |
| 50 | +FINAL_PROJECT_STATUS.md # DELETE (if exists) |
| 51 | +FINAL_SUMMARY.md # DELETE (if exists) |
| 52 | +FRESH_USER_TEST_SUCCESS.md # DELETE (if exists) |
| 53 | +MNEMONIC_FEATURE_COMPLETE.md # DELETE (if exists) |
| 54 | +MNEMONIC_SCREENS_COMPLETE.md # DELETE (if exists) |
| 55 | +PROJECT_ORGANIZATION.md # DELETE (if exists) |
| 56 | +REORGANIZATION_COMPLETE.md # DELETE (if exists) |
| 57 | +COMMIT_QUICK_REFERENCE.md # DELETE - Internal dev reference |
| 58 | +COMPREHENSIVE_TODO_LIST.md # DELETE - Internal planning |
| 59 | +GIT_COMMIT_GUIDE.md # DELETE - Internal process |
| 60 | +``` |
| 61 | + |
| 62 | +#### 4. Internal Test Files (Keep in private repo only) |
| 63 | +``` |
| 64 | +test_calorie_linking.py # DELETE - Internal test |
| 65 | +test_keypair_import_screen.py # DELETE - Internal test |
| 66 | +test_fresh_user_mnemonic.py # DELETE (if exists) |
| 67 | +test_mnemonic_app.py # DELETE (if exists) |
| 68 | +test_mnemonic_standalone.py # DELETE (if exists) |
| 69 | +demo_mnemonic_improvements.py # DELETE (if exists) |
| 70 | +``` |
| 71 | + |
| 72 | +### ✅ Files/Directories to KEEP (Public-Facing) |
| 73 | + |
| 74 | +#### Essential Application Files |
| 75 | +``` |
| 76 | +main.py # Core app |
| 77 | +run.py # Run script |
| 78 | +setup.py # Package setup |
| 79 | +buildozer.spec # Build config |
| 80 | +requirements.txt # Dependencies |
| 81 | +requirements.in # Dependency sources |
| 82 | +pyproject.toml # Project config |
| 83 | +LICENSE # License |
| 84 | +``` |
| 85 | + |
| 86 | +#### Source Code (Finished Features) |
| 87 | +``` |
| 88 | +src/ # All finished CalorieApp source code |
| 89 | + ├── core/ # App core |
| 90 | + ├── screens/ # All screens |
| 91 | + ├── utils/ # Utilities |
| 92 | + └── VERSION.py # Version info |
| 93 | +``` |
| 94 | + |
| 95 | +#### Essential Resources |
| 96 | +``` |
| 97 | +assets/ # App assets (images, etc.) |
| 98 | +config/ # Configuration files |
| 99 | +data/ # App data structures |
| 100 | +scripts/ # Public utility scripts (run.py, etc.) |
| 101 | +``` |
| 102 | + |
| 103 | +#### Public-Safe Documentation ONLY |
| 104 | +``` |
| 105 | +README.md # Main readme |
| 106 | +docs/ |
| 107 | + ├── CHANGELOG.md # Version history |
| 108 | + ├── CONTRIBUTING.md # Contribution guide |
| 109 | + ├── TODO.md # Public roadmap |
| 110 | + ├── QUICK_START.md # Getting started |
| 111 | + ├── TRADEMARK.md # Trademark info |
| 112 | + ├── UX_TOUR_GUIDE.md # Public tour overview |
| 113 | + ├── TOKEN_SYSTEM_GUIDE.md # Token usage |
| 114 | + ├── TRANSACTION_DISPLAY_GUIDE.md # Transaction UI |
| 115 | + ├── FAUCET_TROUBLESHOOTING.md # Faucet help |
| 116 | + ├── LEGAL_DISCLAIMER.md # Legal info (if exists) |
| 117 | + └── OFFICIAL_PROJECT_DOCS.md # Doc index |
| 118 | +``` |
| 119 | + |
| 120 | +#### CI/CD & Quality |
| 121 | +``` |
| 122 | +.github/ # GitHub Actions workflows (CI/CD) |
| 123 | +.gitignore # Git ignore rules |
| 124 | +.editorconfig # Editor config |
| 125 | +.pre-commit-config.yaml # Pre-commit hooks |
| 126 | +tests/ # PUBLIC unit tests only (not internal dev tests) |
| 127 | +``` |
| 128 | + |
| 129 | +#### Marketing/Release Materials |
| 130 | +``` |
| 131 | +CHANGELOG.md # KEEP |
| 132 | +RELEASE_STRATEGY_SUMMARY.md # KEEP |
| 133 | +SOCIAL_MEDIA_ANNOUNCEMENT_KIT.md # KEEP |
| 134 | +``` |
| 135 | + |
| 136 | +### 📝 Documentation to Simplify/Consolidate |
| 137 | + |
| 138 | +Some docs contain too much internal detail. Consider: |
| 139 | + |
| 140 | +1. **UX Tour docs** - Keep high-level guide, remove implementation details |
| 141 | +2. **Development progress docs** - Merge relevant info into CHANGELOG, delete originals |
| 142 | +3. **Internal guides** - Move to private notes or delete |
| 143 | + |
| 144 | +## Implementation Steps |
| 145 | + |
| 146 | +### Option 1: Clean Main Branch Directly (Recommended) |
| 147 | + |
| 148 | +```powershell |
| 149 | +# 1. Switch to main branch |
| 150 | +git checkout main |
| 151 | +
|
| 152 | +# 2. Remove Universal App Builder completely |
| 153 | +git rm -rf universal_app_builder/ |
| 154 | +
|
| 155 | +# 3. Remove development artifacts |
| 156 | +git rm ux_tour_phase1_*.log |
| 157 | +git rm test_calorie_linking.py test_keypair_import_screen.py |
| 158 | +git rm wallet_data.* wallet_state.json |
| 159 | +
|
| 160 | +# 4. Remove internal documentation |
| 161 | +git rm COMMIT_QUICK_REFERENCE.md |
| 162 | +git rm COMPREHENSIVE_TODO_LIST.md |
| 163 | +git rm GIT_COMMIT_GUIDE.md |
| 164 | +git rm -rf docs/development-progress/ |
| 165 | +
|
| 166 | +# 5. Update .gitignore to prevent re-adding |
| 167 | +# Add patterns for: |
| 168 | +# - *.log (test logs) |
| 169 | +# - wallet_data.* (local wallet files) |
| 170 | +# - wallet_state.json |
| 171 | +# - __pycache__/ |
| 172 | +# - .coverage |
| 173 | +
|
| 174 | +# 6. Commit the cleanup |
| 175 | +git commit -m "chore: clean repository - remove development artifacts and unfinished Universal App Builder |
| 176 | +
|
| 177 | +- Remove universal_app_builder/ directory (development work, not ready for public) |
| 178 | +- Remove internal development documentation and progress tracking |
| 179 | +- Remove test artifacts and logs |
| 180 | +- Remove local wallet data files |
| 181 | +- Update .gitignore to prevent re-adding sensitive files |
| 182 | +
|
| 183 | +This cleanup ensures only finished CalorieApp code and essential documentation |
| 184 | +remain public, while development work stays private until ready for release." |
| 185 | +
|
| 186 | +# 7. Force push to GitHub (THIS REWRITES HISTORY) |
| 187 | +git push origin main --force-with-lease |
| 188 | +``` |
| 189 | + |
| 190 | +### Option 2: Create Clean Public Branch |
| 191 | + |
| 192 | +If you want to preserve history: |
| 193 | + |
| 194 | +```powershell |
| 195 | +# 1. Create new clean branch from main |
| 196 | +git checkout main |
| 197 | +git checkout -b public-release |
| 198 | +
|
| 199 | +# 2. Remove unwanted files (same as Option 1 steps 2-5) |
| 200 | +# ... (same removal commands) |
| 201 | +
|
| 202 | +# 3. Commit |
| 203 | +git commit -m "chore: prepare public release branch - remove internal development" |
| 204 | +
|
| 205 | +# 4. Push new branch |
| 206 | +git push origin public-release |
| 207 | +
|
| 208 | +# 5. Update default branch on GitHub to public-release |
| 209 | +# Then delete old main branch and rename public-release to main |
| 210 | +``` |
| 211 | + |
| 212 | +## Risk Assessment |
| 213 | + |
| 214 | +### Low Risk (Safe to Delete) |
| 215 | +- `universal_app_builder/` - Exists on feature branch |
| 216 | +- Test logs - Reproducible |
| 217 | +- Cache files - Automatically regenerated |
| 218 | +- Internal docs - Preserved in feature branch |
| 219 | + |
| 220 | +### Medium Risk (Verify First) |
| 221 | +- Test files in root - Check if needed for CI |
| 222 | +- Some docs - May be referenced elsewhere |
| 223 | + |
| 224 | +### High Risk (DO NOT DELETE) |
| 225 | +- `src/` directory - Core application |
| 226 | +- `README.md` - Primary documentation |
| 227 | +- `LICENSE` - Legal requirement |
| 228 | +- `.github/` - CI/CD |
| 229 | + |
| 230 | +## Post-Cleanup Verification |
| 231 | + |
| 232 | +After cleanup, main branch should contain: |
| 233 | + |
| 234 | +1. ✅ Only **CalorieApp** source code |
| 235 | +2. ✅ Essential **public documentation** |
| 236 | +3. ✅ **Build/deployment** configs |
| 237 | +4. ✅ **CI/CD** workflows |
| 238 | +5. ✅ **License** and legal files |
| 239 | +6. ✅ **Public assets** only |
| 240 | + |
| 241 | +7. ❌ NO **Universal App Builder** code |
| 242 | +8. ❌ NO **internal development** docs |
| 243 | +9. ❌ NO **test artifacts** or logs |
| 244 | +10. ❌ NO **user data** files |
| 245 | + |
| 246 | +## GitHub Settings Recommendations |
| 247 | + |
| 248 | +After cleanup, configure repository: |
| 249 | + |
| 250 | +1. **Branch Protection** for main: |
| 251 | + - Require pull request reviews |
| 252 | + - Require status checks |
| 253 | + - Prevent force pushes (after initial cleanup) |
| 254 | + |
| 255 | +2. **Secrets Management**: |
| 256 | + - Ensure no API keys in code |
| 257 | + - Use GitHub Secrets for CI/CD |
| 258 | + |
| 259 | +3. **Collaborator Access**: |
| 260 | + - Review who has write access |
| 261 | + - Use teams for organization |
| 262 | + |
| 263 | +## Summary |
| 264 | + |
| 265 | +**Total files/directories to remove: ~50+** |
| 266 | +- 1 major directory (`universal_app_builder/`) |
| 267 | +- Multiple development documentation files |
| 268 | +- Test artifacts and logs |
| 269 | +- Local wallet data |
| 270 | + |
| 271 | +**Remaining: Clean, professional public repository** |
| 272 | +- Focused on finished CalorieApp |
| 273 | +- Essential documentation only |
| 274 | +- Ready for public consumption |
0 commit comments