chore: Remove obsolete microservices directories and update all references

- Delete data-entry-app/ (1.6GB), reports-app/ (447MB), .auto-build-data/
- Saved ~1.4GB disk space (64% reduction: 2.2GB → 845MB)

Updated references across 38 files:
- .claude/rules/ paths: backend/modules/, src/modules/
- .claude/commands/validate.md: all validation paths
- docs/ (13 files): data-entry, telegram, README, CLAUDE.md
- scripts/ (3 files): backup-secrets, restore-secrets, test-docker
- security/ (2 files): git_cleanup, SECURITY_PROCEDURES
- deployment/ & shared/: updated all stale comments

All paths now reflect ultrathin monolith architecture:
- Backend: backend/modules/{reports,data_entry,telegram}/
- Frontend: src/modules/{reports,data-entry}/
- Shared: shared/{auth,database,routes}/

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-30 12:08:20 +02:00
parent c5e051ad80
commit 9008876b16
33 changed files with 1300 additions and 125 deletions

View File

@@ -24,7 +24,7 @@ Aplicatie separata pentru introducere date in ERP, cu workflow de aprobare si st
### 2. Separare de Reports-App
**Alegere**: Aplicatie separata in `data-entry-app/`
**Alegere**: Aplicatie separata in `backend/modules/data_entry/`
**Motivatie**:
- Responsabilitati diferite: reports = read-only, data-entry = write

View File

@@ -33,7 +33,7 @@ Aplicatie pentru introducere bonuri fiscale cu workflow de aprobare si extragere
#### Backend Setup
```bash
cd data-entry-app/backend
cd backend/modules/data_entry/backend
# Create virtual environment
python -m venv venv
@@ -57,7 +57,7 @@ uvicorn app.main:app --reload --port 8003
#### Frontend Setup
```bash
cd data-entry-app/frontend
cd backend/modules/data_entry/frontend
# Install dependencies
npm install
@@ -212,7 +212,7 @@ DRAFT → PENDING_REVIEW → APPROVED/REJECTED → (SYNCED in Oracle)
## Project Structure
```
data-entry-app/
backend/modules/data_entry/
├── backend/
│ ├── app/
│ │ ├── main.py # FastAPI entry point
@@ -274,7 +274,7 @@ ORACLE_HOST=localhost
ORACLE_PORT=1526
ORACLE_SID=ROA
# JWT (shared with reports-app)
# JWT (shared with Reports module)
JWT_SECRET_KEY=your_secret_key
JWT_ALGORITHM=HS256
```

View File

@@ -96,7 +96,7 @@ Preluate din Oracle (read-only):
- Paginare pentru liste > 50 elemente
### Securitate
- Autentificare JWT (shared cu reports-app)
- Autentificare JWT (shared cu Reports module)
- Validare MIME type pentru fisiere
- Sanitizare nume fisiere
- Acces bazat pe rol

View File

@@ -83,7 +83,7 @@ The bot uses a standalone SQLite database for:
```bash
# Navigate to telegram-bot directory
cd reports-app/telegram-bot
cd backend/modules/telegram
# Create virtual environment
python3 -m venv venv
@@ -331,7 +331,7 @@ application.add_handler(CommandHandler("mycommand", my_command))
- **Implementation Summary:** [FAZA1_IMPLEMENTATION_SUMMARY.md](./FAZA1_IMPLEMENTATION_SUMMARY.md)
**Frontend Changes:**
- `reports-app/frontend/src/views/TelegramView.vue` - Complete UI refactor
- `src/modules/reports/views/TelegramView.vue` - Complete UI refactor
- Added `qrcode.vue` dependency for QR generation
- Environment variable: `VITE_TELEGRAM_BOT_USERNAME`

View File

@@ -49,7 +49,7 @@ Transformarea Telegram bot ROA2WEB dintr-o interfață bazată pe comenzi text
### Structură Fișiere Noi/Modificate
```
roa2web/reports-app/telegram-bot/
roa2web/backend/modules/telegram/
├── app/
│ ├── bot/
│ │ ├── menus.py ⭐ NOU - Builders pentru tastaturi butoane
@@ -343,7 +343,7 @@ def test_create_navigation_buttons():
**Rulare teste FAZA 1:**
```bash
cd /mnt/e/proiecte/roa2web/roa2web/reports-app/telegram-bot
cd /mnt/e/proiecte/roa2web/roa2web/backend/modules/telegram
source venv/bin/activate
pytest tests/test_menus.py -v
```
@@ -1868,11 +1868,11 @@ Documentație:
- Backend API endpoints (vezi CLAUDE.md)
### Fișiere Relevante în Proiect
- `roa2web/reports-app/telegram-bot/app/bot/handlers.py` - Handlers principale
- `roa2web/reports-app/telegram-bot/app/bot/formatters.py` - Formatteri răspunsuri
- `roa2web/reports-app/telegram-bot/app/bot/helpers.py` - Helper functions
- `roa2web/reports-app/telegram-bot/app/main.py` - Setup aplicație
- `roa2web/reports-app/telegram-bot/TELEGRAM_COMMANDS.md` - Documentație comenzi
- `roa2web/backend/modules/telegram/app/bot/handlers.py` - Handlers principale
- `roa2web/backend/modules/telegram/app/bot/formatters.py` - Formatteri răspunsuri
- `roa2web/backend/modules/telegram/app/bot/helpers.py` - Helper functions
- `roa2web/backend/modules/telegram/app/main.py` - Setup aplicație
- `roa2web/backend/modules/telegram/TELEGRAM_COMMANDS.md` - Documentație comenzi
### Screenshots Pentru Referință
- BotFather interface (screenshot.jpg în root) - Model pentru layout butoane

View File

@@ -16,7 +16,7 @@ Before testing Docker deployment:
### 1. Check Dockerfile Syntax
```bash
cd /path/to/roa2web/reports-app/telegram-bot
cd /path/to/roa2web/backend/modules/telegram
# Verify Dockerfile exists and is valid
cat Dockerfile
@@ -71,7 +71,7 @@ cat .dockerignore
### Test 1: Build Telegram Bot Image
```bash
cd /path/to/roa2web/reports-app/telegram-bot
cd /path/to/roa2web/backend/modules/telegram
# Build the image
docker build -t roa2web/telegram-bot:test --target production .

View File

@@ -19,12 +19,12 @@ Before starting manual tests:
```bash
# Terminal 1: Start backend API (from roa2web/)
cd reports-app/backend
cd backend
source venv/bin/activate
uvicorn app.main:app --reload --port 8001
# Terminal 2: Start Telegram bot
cd reports-app/telegram-bot
cd backend/modules/telegram
source venv/bin/activate
python -m app.main
```

View File

@@ -79,7 +79,7 @@ pytest -m ""
### 1. Start Backend API
```bash
cd roa2web/reports-app/backend
cd roa2web/backend
source venv/bin/activate
uvicorn app.main:app --reload --port 8001
```
@@ -93,7 +93,7 @@ export TEST_PASSWORD="your_password" # Your Oracle password
### 3. Run Integration Tests
```bash
cd roa2web/reports-app/telegram-bot
cd roa2web/backend/modules/telegram
source venv/bin/activate
pytest -m integration -v
```
@@ -169,7 +169,7 @@ pytest -m "not slow" # Skip slow tests
### Import Errors
```bash
# Make sure you're in the right directory
cd /mnt/e/proiecte/roa2web/roa2web/reports-app/telegram-bot
cd /mnt/e/proiecte/roa2web/roa2web/backend/modules/telegram
# Activate virtual environment
source venv/bin/activate