Commit Graph

36 Commits

Author SHA1 Message Date
HoloPanio 7073f5aa33 feat: add workflow actions, admin enhancements, and comprehensive test coverage 2026-03-09 02:14:08 -05:00
HoloPanio 5169107a04 feat(sales): enhance opportunity management and add CW integration 2026-03-07 18:16:14 -06:00
HoloPanio b735981b6b feat(sales): add quotes tab, PDF viewer, and opportunity sidebar enhancements 2026-03-06 23:49:27 -06:00
HoloPanio 762edd8eb7 feat(sales): update opportunity product and overview flows 2026-03-04 18:44:29 -06:00
HoloPanio e04a1ad746 Add special-order product flow and improve opportunity product sequencing 2026-03-04 00:11:36 -06:00
HoloPanio c628a78b27 feat: enhance opportunity detail and sales flow 2026-03-03 19:46:12 -06:00
HoloPanio 9145ea5ba4 feat(sales): cancellation awareness in forecast summary, productSequence ordering
- Show fully/partially cancelled products in forecast summary table
- Add cancellation KPI card with full/partial breakdown
- Fully cancelled rows: strikethrough + reduced opacity + red badge
- Partially cancelled rows: amber border + badge + effective/total qty
- Add productSequence prop to ProductsTab for custom ordering
- Fall back to CW sequenceNumber when no productSequence set
- Add productSequence field to SalesOpportunity interface
2026-03-01 18:02:46 -06:00
HoloPanio 4bec198db6 feat: sales opportunity detail, procurement filters, permission resilience
- Add sales opportunity detail page with tabs (overview, notes, contacts, products, forecasts, activity)
- Add sales note CRUD endpoints (create, update, delete) with server routes
- Add opportunity types, contacts, product sequencing, and refresh API methods
- Add AddProductModal component for catalog browsing
- Update procurement.fetchMany to accept CatalogItemFilters object
- Add procurement.fetchCategories and procurement.fetchFilters endpoints
- Add resilient permission check (no-token returns all-true with __checkFailed)
- Parallelize company detail data fetches for performance
- Remove stale console.log statements across modules
- Add comprehensive unit tests for all new API methods and permission edge cases
2026-03-01 13:08:58 -06:00
HoloPanio 27755d4a00 fix: default permissions to true on API failure to prevent UI hiding
- When the permission check API call fails (timeout, network error, etc.),
  permissions now default to true instead of false
- This prevents UI elements like the WiFi tab from disappearing when the
  permission check has a transient failure
- The API still enforces access server-side, so no security impact
- Added __checkFailed flag to PermissionMap for observability
2026-02-27 18:12:14 -06:00
HoloPanio 0e634c84ff fix: keep login spinner visible until auth callback completes
- Spinner was disappearing when the OAuth popup closed, but the server
  was still waiting for the socket callback (awaitAuthCallback)
- Now the spinner stays until BOTH the popup closes AND the form action
  finishes
- Handle popup-blocked case by resetting loading state immediately
2026-02-27 18:08:27 -06:00
HoloPanio 3b43393e5d fix: add /healthz endpoint to prevent K8s crash loop
- Added dedicated /healthz route returning 200 OK
- Skip API health check in hooks.server.ts for /healthz path
- Updated K8s liveness/readiness probes to use /healthz instead of /login
- The /login probe was returning 503 when the API was unreachable, causing
  Kubernetes to kill and restart the pod in a loop
2026-02-27 18:07:26 -06:00
HoloPanio cb8c6b3958 fix: restore permissions export compatibility and add regressions 2026-02-27 14:54:26 -06:00
HoloPanio 5a6970a4c5 feat: add procurement and sales sections 2026-02-27 14:42:19 -06:00
HoloPanio 7486bcf939 perf: bundle server with bun build to eliminate node_modules in production 2026-02-26 14:35:46 -06:00
HoloPanio 4814e67b19 fix: install production dependencies in Docker image 2026-02-26 14:23:53 -06:00
HoloPanio 5be32e0dcf fix: use npm instead of bun for Windows desktop build
Bun on Windows fails to install native modules like @electron/node-gyp
v0.1.0
2026-02-26 14:02:50 -06:00
HoloPanio 68000c8272 fix: add npm rebuild for native modules in desktop CI builds 2026-02-26 13:53:15 -06:00
HoloPanio bd5a54031e fix: add PUBLIC_API_URL env var to all build steps 2026-02-26 13:45:32 -06:00
HoloPanio f86ab35b32 chore: replace pnpm with bun across the project 2026-02-26 13:41:13 -06:00
Jackson e9e3451c2d Merge pull request #1 from Project-Optima/Proper-UI
Proper UI
2026-02-26 13:29:47 -06:00
HoloPanio ae5ac35058 feat: add server deployment, desktop builds, and CI/CD pipeline
- Add Dockerfile with adapter-node for server deployment
- Add Kubernetes deployment and ingress manifests
- Add GitHub Actions workflow (server build, desktop builds, K8s deploy)
- Electron now loads hosted URL (https://optima.osdci.net) in production
- Add macOS DMG maker and make:macos script
- Switch to static imports in lib/index.ts
- Add .dockerignore
2026-02-26 12:58:24 -06:00
HoloPanio 6791a6735b Setup unifi wlans 2026-02-22 19:12:13 -06:00
HoloPanio a99c9f5102 So many things 2026-02-17 21:52:59 -06:00
HoloPanio 8e225aa254 Company listing, authentication, and page error handling are all working 2026-02-17 17:29:17 -06:00
HoloPanio 6d046e90ed restructure and reorganize 2026-02-16 07:47:08 -06:00
HoloPanio 561aef8ee3 MAKING CREDENTIALS WORKS 2026-02-15 16:38:55 -06:00
HoloPanio 140e6c416a CREDENTIAL TYPE MANAGEMENT WORKS 2026-02-14 15:16:06 -06:00
HoloPanio 51db9de171 I GOT COMPANY API DATA ON THE PAGE AHHHHHHH 2026-02-13 18:02:35 -06:00
HoloPanio 6b176196d3 Companys are now listing on the companies page. 2026-02-13 17:01:42 -06:00
HoloPanio 1a45f708ec todo 2026-01-26 18:16:00 -06:00
HoloPanio 7fb53acfa4 Setup a companies list page with dummy data. 2026-01-26 18:15:09 -06:00
HoloPanio e517a45c0f Working User Authorization Flow 2026-01-26 15:56:30 -06:00
HoloPanio e9a7ded305 Comment 2026-01-25 16:55:42 -06:00
HoloPanio 7b04aa3116 got some lib exports done and WIP user login flow 2026-01-25 16:53:56 -06:00
HoloPanio a9bf8317f4 It works-ish 2026-01-24 17:02:42 -06:00
Jackson e219b5db4d Initial commit 2026-01-24 14:04:01 -06:00