feat: Migrate to ultrathin monolith architecture

Consolidate 3 separate applications (reports-app, data-entry-app, telegram-bot) into a unified
architecture with single backend and frontend:

Backend Changes:
- Unified FastAPI backend at backend/ with modular structure
- Modules: reports, data_entry, telegram in backend/modules/
- Centralized config.py and main.py with all routers registered
- Single worker mode (--workers 1) for Telegram bot compatibility
- Shared Oracle connection pool and JWT authentication
- Unified requirements.txt and environment configuration

Frontend Changes:
- Single Vue.js SPA with module-based routing
- Unified frontend at src/ with modules in src/modules/{reports,data-entry}/
- Shared components and stores in src/shared/
- Error boundaries for module isolation
- Dual API proxy in Vite for module communication

Infrastructure:
- New unified startup scripts: start-prod.sh, start-test.sh, start-backend.sh
- Environment templates: .env.dev.example, .env.test.example, .env.prod.example
- Updated deployment scripts for Windows IIS
- Simplified SSH tunnel management

Documentation:
- Comprehensive CLAUDE.md with architecture overview
- Module-specific docs in docs/{data-entry,telegram}/
- Architecture decision records in docs/ARCHITECTURE-DECISIONS.md
- Deployment guides consolidated in deployment/windows/docs/

This migration reduces complexity, improves maintainability, and enables easier
deployment while maintaining all existing functionality.

🤖 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-29 23:48:14 +02:00
parent 2a101f1ef5
commit c5e051ad80
378 changed files with 7566 additions and 73730 deletions

View File

@@ -96,7 +96,6 @@
size="small"
class="download-btn"
@click="downloadAttachment(att)"
v-tooltip.top="'Descarca'"
/>
</div>
</div>
@@ -177,7 +176,6 @@
size="small"
:loading="ocrRescanningId === att.id"
@click="rescanAttachmentOCR(att)"
v-tooltip.top="'Rescanare OCR'"
/>
<Button
icon="pi pi-download"
@@ -185,7 +183,6 @@
rounded
size="small"
@click="downloadAttachment(att)"
v-tooltip.top="'Descarca'"
/>
<Button
icon="pi pi-times"
@@ -193,7 +190,6 @@
rounded
size="small"
@click="removeExistingAttachment(att.id)"
v-tooltip.top="'Sterge'"
/>
</div>
</div>
@@ -321,7 +317,6 @@
v-if="directionAutoDetected"
severity="info"
value="Auto"
v-tooltip="directionAutoReason"
class="auto-tag"
/>
</div>
@@ -529,7 +524,7 @@
icon="pi pi-arrow-left"
label="Inapoi"
severity="secondary"
@click="$router.push('/')"
@click="$router.push('/data-entry')"
/>
<!-- View mode buttons -->
@@ -538,7 +533,7 @@
v-if="receipt?.status === 'draft' || receipt?.status === 'rejected'"
icon="pi pi-pencil"
label="Editeaza"
@click="$router.push(`/receipt/${receipt.id}/edit`)"
@click="$router.push(`/data-entry/${receipt.id}/edit`)"
/>
<Button
v-if="receipt?.status === 'draft'"
@@ -909,7 +904,7 @@ const loadReceipt = async () => {
detail: 'Nu s-a putut incarca bonul',
life: 5000,
})
router.push('/')
router.push('/data-entry')
}
}
@@ -1769,7 +1764,7 @@ const saveReceipt = async () => {
life: 3000,
})
router.push(`/receipt/${savedReceipt.id}`)
router.push(`/data-entry/${savedReceipt.id}`)
} catch (error) {
toast.add({
severity: 'error',
@@ -1802,7 +1797,7 @@ const submitForReview = async () => {
detail: 'Bonul a fost trimis spre aprobare',
life: 3000,
})
router.push('/')
router.push('/data-entry')
} else {
toast.add({
severity: 'error',