Commit Graph

24 Commits

Author SHA1 Message Date
Johngreen
febdbdc4f0 feat: add equipment area grouping, criticality, and batch inspection
All checks were successful
Deploy to Production / deploy (push) Successful in 1m7s
- Add area and criticality fields to Machine model with DB migration
- Add batch inspection endpoint (POST /inspections/batch) for area-wide inspection creation
- Rewrite MachineList with area grouping, criticality badges, and batch inspect button
- Update machine create/edit forms with area and criticality fields
- Update seed data with area/criticality values for all tenants
2026-02-10 22:38:55 +09:00
Johngreen
4c42f7aff8 ops: change postgres external port from 5433 to 8200
All checks were successful
Deploy to Production / deploy (push) Successful in 46s
2026-02-10 17:43:46 +09:00
Johngreen
b8217543c4 ops: expose production postgres on port 5433 for local dev access
All checks were successful
Deploy to Production / deploy (push) Successful in 51s
2026-02-10 17:19:49 +09:00
Johngreen
b9513897fc fix: prevent horizontal scroll in inspection item modal by adding flex-wrap and overflow-x hidden
All checks were successful
Deploy to Production / deploy (push) Successful in 1m4s
2026-02-10 17:10:53 +09:00
Johngreen
b9e97cc9c8 fix: resolve machine deletion failure after parts removal by nullifying orphaned FK references
All checks were successful
Deploy to Production / deploy (push) Successful in 46s
2026-02-10 17:04:42 +09:00
Johngreen
a4ddc1991e fix: rename nav label from 대시보드 to 설비 관리
All checks were successful
Deploy to Production / deploy (push) Successful in 1m7s
2026-02-10 16:52:40 +09:00
Johngreen
0c61e7a895 feat: Material Design 3 redesign — elevation-based cards, M3 color system, Google-style navigation, smooth transitions
All checks were successful
Deploy to Production / deploy (push) Successful in 1m9s
2026-02-10 16:42:40 +09:00
Johngreen
c67f114cde fix: custom select dropdown, modal styling, memo label wrap, modal button padding
All checks were successful
Deploy to Production / deploy (push) Successful in 1m5s
2026-02-10 16:28:10 +09:00
Johngreen
00a17c0b86 feat: complete 5 GAP requirements — auto counters, inspection alarms, machine specs, responsive CSS
All checks were successful
Deploy to Production / deploy (push) Successful in 1m8s
- GAP 2+4: auto_time/date counter auto-computation with manual update blocking
- GAP 3: auto-generate alarms on inspection completion for failed items
- GAP 1: machine spec fields (manufacturer, location, capacity, power, description)
- GAP 5: enhanced mobile responsive CSS (768px/480px breakpoints)
- Alembic migration for new columns, seed data enriched with specs and date-type parts
2026-02-10 15:45:51 +09:00
Johngreen
ca29e5b809 feat: Phase 7 — enriched seed data and E2E integration tests
All checks were successful
Deploy to Production / deploy (push) Successful in 49s
- Seed: 9 machines, 24 parts with counters, 6 inspection templates (per tenant)
- Realistic industry data: semiconductor (SpiFox), manufacturing (Enkid), chemical (Alpet)
- E2E tests: full lifecycle flow, tenant isolation, spec-based pass/fail validation
- 70/70 tests passing

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
2026-02-10 14:49:20 +09:00
Johngreen
843f72e048 feat: Phase 6 — alarm system (auto-generate, list, acknowledge)
All checks were successful
Deploy to Production / deploy (push) Successful in 1m17s
- Add Alarm model with tenant/part/machine relationships and 3 indexes
- Add alembic migration c5d6e7f8a9b0_add_alarms
- Add alarms API: list (filter by ack/severity), summary, acknowledge
- Auto-generate alarms on counter update (threshold warning, critical at 100%)
- Duplicate alarm prevention for same part+alarm_type
- Add alarms frontend page with active/acknowledged tabs, summary badges
- 9 new tests (67/67 total passing)

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
2026-02-10 14:39:03 +09:00
Johngreen
035d62f0e0 feat: Phase 5 — part counter update, replacement, replacement history
All checks were successful
Deploy to Production / deploy (push) Successful in 1m5s
2026-02-10 13:55:49 +09:00
Johngreen
581c845f54 feat: Phase 4 — inspection sessions (create, execute, complete)
All checks were successful
Deploy to Production / deploy (push) Successful in 1m5s
Backend:
- InspectionSession + InspectionRecord models with alembic migration
- 6 API endpoints: create, list, get detail, save records, complete, delete
- Auto pass/fail judgment for numeric (spec range) and boolean items
- Completed inspections are immutable, required items enforced on complete
- 14 new tests (total 53/53 passed)

Frontend:
- Inspection list page with in_progress/completed tabs
- Template select modal for starting new inspections
- Inspection execution page with data-type-specific inputs
- Auto-save with 1.5s debounce, manual save button
- Completion modal with notes and required item validation
- Read-only view for completed inspections
- Pass/fail badges and color-coded item cards

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
2026-02-10 13:46:23 +09:00
Johngreen
180cc5b163 fix(ui): improve template editor modal and card-body spacing
All checks were successful
Deploy to Production / deploy (push) Successful in 1m4s
- Add gap to card-body for consistent field spacing
- Wrap modal content in modal-body-form with proper gap
- Use modal-lg for item add modal to prevent field overflow

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
2026-02-10 13:28:44 +09:00
Johngreen
7de011621d feat: Phase 3 — inspection templates (backend + frontend)
All checks were successful
Deploy to Production / deploy (push) Successful in 1m7s
- Add InspectionTemplate and InspectionTemplateItem models
- Add 9 API endpoints for template CRUD and item management
- Add Alembic migration for inspection_templates tables
- Add 15 backend tests (39/39 total pass)
- Add TemplateEditor component with item management UI
- Add templates list, create, and edit pages
- Add tab bar, template grid, form row CSS classes
- Fix CORS middleware ordering in main.py
- Move CORS middleware before router registration

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
2026-02-10 13:24:30 +09:00
Johngreen
ee691be3ce chore: update seed credentials (admin@vexplor.com) and reset DB for re-seed
All checks were successful
Deploy to Production / deploy (push) Successful in 47s
2026-02-10 12:56:23 +09:00
Johngreen
7fc1b767f4 chore(ci): remove one-time volume reset from deploy
All checks were successful
Deploy to Production / deploy (push) Successful in 48s
2026-02-10 12:49:03 +09:00
Johngreen
eb3dd0a4ab fix(ci): reset stale DB volume, skip create_all in prod, handle alembic stamp fallback
All checks were successful
Deploy to Production / deploy (push) Successful in 47s
2026-02-10 12:46:49 +09:00
Johngreen
6b7a2f2b26 fix(ci): add container health check and log output after deploy
All checks were successful
Deploy to Production / deploy (push) Successful in 1m14s
2026-02-10 12:43:36 +09:00
Johngreen
782dc225bf feat(ci): auto-run alembic migrations and seed on container start
All checks were successful
Deploy to Production / deploy (push) Successful in 44s
- Add entrypoint.sh (migrate → seed → uvicorn)
- Add python-dotenv to requirements.txt
- Backend container uses entrypoint instead of direct uvicorn

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
2026-02-10 12:36:01 +09:00
Johngreen
741c868367 fix(ci): stop v1 containers before starting v2 to free ports 8100/4000
All checks were successful
Deploy to Production / deploy (push) Successful in 59s
2026-02-10 12:33:20 +09:00
Johngreen
42f8b8131d ci: retry deploy with PEM format SSH key
All checks were successful
Deploy to Production / deploy (push) Successful in 1m51s
2026-02-10 12:30:32 +09:00
Johngreen
fcff23cd7c chore: add CI/CD pipeline and container configs for production deployment
Some checks failed
Deploy to Production / deploy (push) Failing after 1m24s
- Containerfile.backend/frontend for Docker builds
- docker-compose.prod.yml (PostgreSQL + API:8100 + Dashboard:4000)
- Gitea Actions workflow for auto-deploy on push to main
- Frontend dev port changed to 3100

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
2026-02-10 12:21:07 +09:00
Johngreen
ab2a3e35b2 feat: Phase 0-2 complete — auth, machines, equipment parts with full CRUD
Multi-tenant factory inspection system (SpiFox, Enkid, Alpet):
- FastAPI backend with JWT auth, PostgreSQL (asyncpg)
- Next.js 16 frontend with App Router, SWR data fetching
- Machines CRUD with equipment parts management
- Part lifecycle tracking (hours/count/date) with counters
- Partial unique index for soft-delete support
- 24 pytest tests passing, E2E verified

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
2026-02-10 12:05:22 +09:00