Commit Graph

93 Commits

Author SHA1 Message Date
203fbc2175 feat: add admin settings UI and integrate dynamic configuration
Add settings page with 4 tabs (Logo, Company, Visibility, Theme) for
managing company branding, social links, sidebar section visibility, and
color themes. Integrate settings store globally so sidebar, footer,
header, and theme respond to admin configuration. Add active/dedicated
customer stat cards to dashboard. Wire up quick-call contacts and
Google review links from settings.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-27 18:45:12 -05:00
1a53e50d91 feat: 5-tier pricing UI, market ticker, delivery map, and stats dashboard
Full frontend companion to the API updates:

- Pricing: Oil price admin page now supports 5-tier configuration for
  same-day/prime/emergency fees with collapsible tier sections
- Market Ticker: Add GlobalMarketTicker and OilPriceTicker components
  with real-time commodity + competitor prices in header bar
- Delivery Map: New interactive Leaflet map view for daily deliveries
- Stats: Add PricingHistoryChart component and info pages for market
  trends with daily/weekly/monthly gallon charts and YoY comparisons
- Layout: Refactor header navbar to separate search into navbar-center,
  add oilPrice Pinia store with polling, update sidebar navigation
- Forms: Wire tier selection into delivery create/edit flows, update
  types and services for new pricing and scraper API endpoints

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-08 17:54:30 -05:00
6c28c0c2d2 feat(ui): Massive frontend modernization including customer table redesign, new map features, and consistent styling 2026-02-06 20:35:18 -05:00
421ba896a0 fix(home): replace revenue stat with tomorrow's deliveries
Remove profit/revenue display from home page dashboard as this
information should not be visible to all employees. Replace with
tomorrow's deliveries count which is more useful for daily planning.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 21:05:04 -05:00
9a4d5dd07b feat(frontend): redesign home page with charts, map, and pricing dropdown
- Header: Replace date with oil price dropdown showing all pricing tiers
  (regular, same day, prime, emergency) and service pricing
- Footer: Add search shortcuts reference (@, !, #, $)
- Home page complete redesign:
  - Animated stat cards (today's deliveries, week gallons, deliveries, revenue)
  - 28-day delivery trend chart using Chart.js
  - Mini map showing today's delivery routes with Leaflet
  - Quick actions grid for common tasks
  - Town distribution visualization with progress bars
  - Gradient styling and fade-in animations

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 20:57:11 -05:00
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
5060ca8d9b Update capture endpoint to match backend refactor
- Update capture URL from /api/capture/ to /api/payments/capture
2026-02-01 12:32:05 -05:00
53086515ba fix: resolve TypeScript build errors for production builds
- Add local AxiosResponse/AxiosError interfaces to models.ts as workaround
  for bundler moduleResolution issues with axios types
- Update 7 payment Vue files to import axios types from local models
- Convert axios.get<T>() generic calls to typed .then() response callbacks
- Fix type narrowing in getTypeColor(), getEmployeeTypeName() functions
- Add Number() conversion for tank_size arithmetic in auto preauth
- Use 'as unknown as' for Delivery to DeliveryFormData type assertions
- Fix incorrect import paths for sidebar/footer in delivery/create.vue

Production build (npm run build) now completes successfully.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 15:33:13 -05:00
079c2ac50f Updated claude big changes 2026-01-29 08:44:06 -05:00
f9b5364c53 major claude changes 2026-01-28 21:55:14 -05:00
f9d0e4c0fd updated readme 2026-01-18 19:04:01 -05:00
68f5b6eafc Added totals to delivery 2026-01-05 09:14:13 -05:00
65cfd0c463 Working site 2026-01-05 08:44:20 -05:00
623cbf8c4c fixes for docker local 2025-11-03 20:55:06 -05:00
661aaf39b0 fixed auto query profile 2025-10-30 20:39:14 -04:00
e70ae887f3 added cancel button 2025-10-20 12:01:16 -04:00
78e959883d bug autyo 2025-10-13 11:10:21 -04:00
4a40bffbd5 Small ui fixes 2025-10-13 10:40:37 -04:00
cf7e5299b8 Updated auto finalize button 2025-10-12 12:10:51 -04:00
f42444e81d added hot water 2025-10-06 21:13:28 -04:00
91d6d708dc fixed auto pathing 2025-09-28 12:24:29 -04:00
9cbb2954b5 config issues prod 2025-09-27 14:25:45 -04:00
d6525f2d24 working auto 2025-09-27 00:13:40 -04:00
99eacbb51d working auto 2025-09-26 20:30:59 -04:00
c57ceb7e47 Added call dropdown 2025-09-24 16:38:56 -04:00
a9ee292b23 updated user customer list 2025-09-21 19:10:23 -04:00
279f0d9deb Working API CHARGING! 2025-09-20 15:33:25 -04:00
b77e5b4b9d updated pay oil 2025-09-20 08:38:32 -04:00
ce86bab1dc added popup 2025-09-19 19:08:13 -04:00
481420e795 Fixed bug edit delivery 2025-09-19 17:37:17 -04:00
16da5bf1c0 Working payment accopunts 2025-09-19 17:27:34 -04:00
886e7ed3ff small routing changes 2025-09-18 19:31:13 -04:00
f7bc23d9ed fixes to amounts 2025-09-18 14:12:41 -04:00
dc71eee4db working charge 2025-09-18 13:20:03 -04:00
6baefe9f50 Good progress 2025-09-18 13:02:28 -04:00
827debd1cc small frontend changed 2025-09-16 13:52:16 -04:00
bd95e14bb3 Working flow authorize 2025-09-16 12:45:42 -04:00
3cf6d1911a Adding authnet not tested 2025-09-15 15:30:50 -04:00
7d59c07881 Updated office 2025-09-14 12:00:23 -04:00
98fe855e65 Updated charge close to working 2025-09-09 18:26:21 -04:00
fd11c9e794 work 2025-09-07 18:29:42 -04:00
ea52f7ba62 Working authorize needs work 2025-09-07 17:52:47 -04:00
6978ed30e1 fixed profile 2025-09-06 14:55:02 -04:00
e74f5510f0 small fixes routing 2025-09-06 13:40:58 -04:00
8649c3815c Updated sidebar 2025-09-06 12:42:34 -04:00
3282229116 Added service plan. Password change 2025-09-06 12:28:44 -04:00
9d86b4a60e Fixed page layout and edit delivery 2025-09-06 09:44:01 -04:00
45b536baca Updated sibar 2025-09-05 11:39:35 -04:00
af9e6882ba Updated form for creating delivery 2025-09-04 15:07:21 -04:00