# ROA2WEB Features & Planning Acest director conține documentația detaliată pentru toate feature-urile și refactorizările majore ale proiectului ROA2WEB. ## 📁 Structură Director ``` features/ ├── README.md # Acest fișier ├── CSS_REFACTORING_REQUIREMENTS.md # Cerințe detaliate CSS refactoring ├── CSS_REFACTORING_PLAN.md # Plan general implementare ├── PROGRESS_TRACKER.md # Tracker central progres (LIVE) └── phases/ # Faze detaliate ├── phase-1-forms.md # Faza 1: Standardizare formulare (18 tasks) ├── phase-2-foundation.md # Faza 2: Fundație pattern-uri (15 tasks) ├── phase-3-primevue.md # Faza 3: PrimeVue centralizare (12 tasks) ├── phase-4-cards.md # Faza 4: Card components (22 tasks) ├── phase-5-dashboard.md # Faza 5: DashboardView major (28 tasks) ├── phase-6-views.md # Faza 6: View-uri rămase (16 tasks) └── phase-7-documentation.md # Faza 7: Documentare (12 tasks) ``` --- ## 🎯 Current Project: CSS Architecture Refactoring ### Status: 🔄 **IN PROGRESS** (Phase 1 Complete) ### Quick Stats | Metric | Value | |--------|-------| | **Total Phases** | 7 | | **Total Tasks** | 123 tasks | | **Estimated Duration** | 5-6 weeks | | **Estimated Effort** | 92-120 hours | | **Target CSS Reduction** | ~3,260 lines (40-50%) | | **Current Progress** | 14% (Phase 1 complete: 16/123 tasks, ~116 lines eliminated) | --- ## 📖 How to Use This Documentation ### For Project Managers 1. **Start here:** Read `CSS_REFACTORING_PLAN.md` for high-level overview 2. **Track progress:** Monitor `PROGRESS_TRACKER.md` (updated in real-time) 3. **Review phases:** Each phase document has detailed task breakdown 4. **Check metrics:** Progress tracker shows completion percentages ### For Developers 1. **Understand requirements:** Read `CSS_REFACTORING_REQUIREMENTS.md` 2. **Find current phase:** Check `PROGRESS_TRACKER.md` → Current Sprint 3. **Get task details:** Open relevant `phases/phase-X-*.md` file 4. **Follow instructions:** Each task has: - Status indicator - Time estimate - Detailed instructions - Code examples - Acceptance criteria - Testing requirements ### For QA/Testing 1. **Review testing strategy:** See `CSS_REFACTORING_PLAN.md` → Testing Checklist 2. **Phase-specific tests:** Each phase document has testing section 3. **Track test results:** Update in `PROGRESS_TRACKER.md` --- ## 🚀 Quick Start ### Step 1: Approve the Plan ```bash # Review the plan cat features/CSS_REFACTORING_PLAN.md # Review requirements cat features/CSS_REFACTORING_REQUIREMENTS.md # Approve or provide feedback ``` ### Step 2: Start Phase 1 ```bash # Read Phase 1 tasks cat features/phases/phase-1-forms.md # Create feature branch git checkout -b feature/css-refactoring # Capture baseline snapshots cd reports-app/frontend npm run test:e2e -- --update-snapshots # Start working on tasks ``` ### Step 3: Track Progress Update `PROGRESS_TRACKER.md` after completing each task: ```markdown #### Task 1.1: Create Feature Branch **Status:** ✅ Complete | **Est:** 5 min | **Actual:** 3 min ``` ### Step 4: Commit After Each Phase ```bash # See commit message template in each phase-X-*.md file git add . git commit -m "feat(css): Phase 1 - ..." git push origin feature/css-refactoring ``` --- ## 📊 Progress Tracking System ### Task Status Indicators - ⏸️ **Not Started** - Task not begun - 🔄 **In Progress** - Currently working on task - ⏸️ **Paused** - Task started but blocked/paused - ✅ **Complete** - Task finished and tested - ❌ **Blocked** - Cannot proceed (blocker documented) ### Phase Status Indicators - ⏸️ **Not Started** - Phase awaiting start - 🔄 **In Progress** - Active development - ⏸️ **Testing** - Implementation complete, testing phase - ✅ **Complete** - All tasks complete, tested, committed - ❌ **Blocked** - Phase blocked (see PROGRESS_TRACKER.md) ### How to Update Progress **Option 1: Manual Update (Simple)** Edit `PROGRESS_TRACKER.md` directly: ```markdown ### Phase 1: Standardizare Formulare ⚡ **Status:** 🔄 In Progress | **Progress:** 5/18 tasks (28%)
View Tasks (5/18 complete) #### Setup & Preparation (3/3) - [x] Create feature branch - [x] Capture Playwright baseline snapshots - [x] Review existing forms.css #### LoginView.vue Refactoring (2/6) - [x] Update template: `.field` → `.form-group` - [x] Update template: `.field-label` → `.form-label` - [ ] Remove custom form CSS ``` **Option 2: Automated Script (Advanced)** ```bash # Mark task as complete ./scripts/update-progress.sh phase-1 task-1.1 complete # Update phase status ./scripts/update-progress.sh phase-1 status in-progress ``` --- ## 📋 Phase Overview ### Phase 1: Standardizare Formulare ⚡ - **Duration:** 10-12 hours - **Tasks:** 18 - **Impact:** ~150 lines eliminated, consistent forms - **Risk:** Medium - **Dependencies:** None (can start immediately) ### Phase 2: Fundație Pattern-uri Globale 🏗️ - **Duration:** 8-10 hours - **Tasks:** 15 - **Impact:** Foundation for all other phases - **Risk:** Low - **Dependencies:** None (parallel with Phase 1) ### Phase 3: PrimeVue Centralizare 🎨 - **Duration:** 6-8 hours - **Tasks:** 12 - **Impact:** ~150 lines eliminated, 0 `:deep()` overrides - **Risk:** Medium - **Dependencies:** Phase 2 (needs primevue-overrides.css) ### Phase 4: Card Components 📊 - **Duration:** 16-20 hours - **Tasks:** 22 - **Impact:** ~800 lines eliminated - **Risk:** High - **Dependencies:** Phase 2 (needs patterns), Phase 3 (needs PrimeVue) ### Phase 5: DashboardView Major Refactoring 🚀 - **Duration:** 24-32 hours - **Tasks:** 28 - **Impact:** ~1,710 lines eliminated (85% reduction) - **Risk:** ⚠️ VERY HIGH (most critical phase) - **Dependencies:** Phases 2, 3, 4 (needs all foundations) ### Phase 6: View-uri Rămase 📄 - **Duration:** 16-20 hours - **Tasks:** 16 - **Impact:** ~400 lines eliminated - **Risk:** Medium - **Dependencies:** Phases 1-5 (apply all learnings) ### Phase 7: Documentare & Finalizare 📚 - **Duration:** 12-16 hours - **Tasks:** 12 - **Impact:** Complete documentation, performance report - **Risk:** Low - **Dependencies:** Phases 1-6 (documents all work) --- ## 🔧 Tools & Scripts ### Progress Tracking ```bash # View current progress cat features/PROGRESS_TRACKER.md # Update task status (manual) vim features/PROGRESS_TRACKER.md # Generate progress report ./scripts/generate-progress-report.sh ``` ### Testing ```bash # Run visual regression tests cd reports-app/frontend npm run test:e2e # Compare snapshots npm run test:e2e:report # Update snapshots (after approved changes) npm run test:e2e -- --update-snapshots ``` ### Metrics ```bash # Count CSS lines in components find src/components src/views -name "*.vue" -exec sh -c \ 'sed -n "/