Commit Graph

14 Commits

Author SHA1 Message Date
61f93ec4e8 Refactor frontend to Composition API and improve UI/UX
Major Changes:
- Migrate components from Options API to Composition API with <script setup>
- Add centralized service layer (serviceService, deliveryService, adminService)
- Implement new reusable components (EnhancedButton, EnhancedModal, StatCard, etc.)
- Add theme store for consistent theming across application
- Improve ServiceCalendar with federal holidays and better styling
- Refactor customer profile and tank estimation components
- Update all delivery and payment pages to use centralized services
- Add utility functions for formatting and validation
- Update Dockerfiles for better environment configuration
- Enhance Tailwind config with custom design tokens

UI Improvements:
- Modern, premium design with glassmorphism effects
- Improved form layouts with FloatingInput components
- Better loading states and empty states
- Enhanced modals and tables with consistent styling
- Responsive design improvements across all pages

Technical Improvements:
- Strict TypeScript types throughout
- Better error handling and validation
- Removed deprecated api.js in favor of TypeScript services
- Improved code organization and maintainability
2026-02-01 19:04:07 -05:00
72d8e35e06 refactor(frontend): migrate Customer domain to centralized API services
- Replaced all direct axios imports with service layer calls across 8 customer files
- Migrated core pages: home.vue, create.vue, edit.vue
- Migrated profile pages: profile.vue (1100+ lines), TankEstimation.vue
- Migrated supporting pages: ServicePlanEdit.vue, tank/edit.vue, list.vue

Services integrated:
- customerService: CRUD, descriptions, tank info, automatic status
- authService: authentication and Authorize.net account management
- paymentService: credit cards, transactions, payment authorization
- deliveryService: delivery records and automatic delivery data
- serviceService: service calls, parts, and service plans
- adminService: statistics, social comments, and reports
- queryService: dropdown data (customer types, states)

Type safety improvements:
- Updated paymentService.ts with accurate AxiosResponse types
- Fixed response unwrapping to match api.ts interceptor behavior
- Resolved all TypeScript errors in customer domain (0 errors)

Benefits:
- Consistent authentication via centralized interceptors
- Standardized error handling across all API calls
- Improved type safety with proper TypeScript interfaces
- Single source of truth for API endpoints
- Better testability through mockable services

Verified with vue-tsc --noEmit - all customer domain files pass type checking
2026-02-01 13:00:21 -05:00
f9b5364c53 major claude changes 2026-01-28 21:55:14 -05:00
af9e6882ba Updated form for creating delivery 2025-09-04 15:07:21 -04:00
dc1ee95827 Working log in/route guard 2025-09-04 08:03:24 -04:00
992a1a217d Major Refactor 2025-09-01 16:42:44 -04:00
bf49bf5711 updated customer profile. added maps 2024-11-20 18:00:17 -05:00
b62d45da5d Added delivery notes. changed waiting/pending 2024-10-30 17:04:41 -04:00
c6f806f733 major update 2024-10-17 17:01:42 -04:00
52a02c7595 updated 2024-05-16 14:36:52 -04:00
7164e41aa1 Updated looks 2024-04-04 16:38:35 -04:00
2d9fce2e89 added print button and finalize 2024-03-29 19:57:34 -04:00
5b13032cd6 changes untested 2024-03-28 10:33:56 -04:00
54ee44ba66 first commit 2024-02-28 16:03:19 -05:00