mnemo_cards/mnemo_cards_backend/TODO.md

50 lines
2.3 KiB
Markdown
Raw Normal View History

2025-11-16 11:25:27 +00:00
# TODO List
## High Priority
- [x] Fix MnemoShelf routing so the v2 pipeline mounts at `/api/v2` (restores public packs listing)
- [x] **COMPLETED** - Implement User Tasks System Backend API (6 endpoints, 3 models, data seeding)
2025-11-16 12:52:07 +00:00
- [x] **COMPLETED** - Set up Forgejo domain (code.mnemo-cards.online) with SSL, IP blocking, and ROOT_URL fix
2025-11-16 11:25:27 +00:00
- [ ] Verify project builds successfully (`flutter build`)
- [ ] Run all existing tests (`flutter test`)
- [ ] Check code generation (`./codegen.sh`)
- [ ] Review linter issues (`dart analyze`)
- [ ] Investigate Isar collection-id failure when running `dart test` for the whole suite
## Medium Priority
- [ ] Review existing codebase architecture
2025-11-16 16:31:22 +00:00
- [x] **COMPLETED** - Set up Let's Encrypt SSL certificates for api.memo-cards.online with automatic renewal
- [ ] Verify HTTPS functionality and test API endpoints over SSL
2025-11-16 11:25:27 +00:00
- [ ] Verify database operations
- [x] Review API endpoints and documentation (v1 removal & v2 surface audit)
## Low Priority
- [ ] Update README.md with proper project description
- [ ] Review backup strategy and retention
- [ ] Check Python utilities integration
- [ ] Review deployment scripts
## Architecture Tasks
- [x] Replace dynamic user handling with typed `UserModel` references in access policies
- [ ] Implement `yx_state` and `yx_scope` if not already present
- [ ] Ensure clean architecture principles are followed
- [ ] Review dependency injection setup
- [ ] Check error handling implementation
## Testing Tasks
- [ ] Write unit tests for missing functionalities
- [ ] Add integration tests for new v2 endpoints (ads, users, promocodes, admin)
- [ ] Review test coverage
- [ ] Add mock tests for external dependencies
- [x] Refresh Packs API v2 test coverage and ensure access control context is provided
- [x] Add regression tests for authorizeV2 optional authentication handling on pack routes
- [x] Cover anonymous and authenticated buy-page fallbacks for private packs in Packs API v2
## Telegram Bot
- [x] Allow Telegram bot to override backend API base URL via `--backend-url` CLI flag and env vars
- [ ] Document production bot startup command with new backend URL option
## Notes
- Reference `../mnemo_cards` app for design and features
- Do not copy architecture from reference app
- Follow Flutter/Dart best practices
- Use Shelf framework patterns