HoloPanio
30b408e0db
feat: add product to opportunity route, local product sequencing
...
- Add POST /v1/sales/opportunities/:identifier/products with field-level permission gating
- Add CWForecastItemCreate type for forecast item creation
- Store product display order locally (productSequence Int[] on Opportunity)
- Rewrite resequenceProducts to be local-only (no CW PUT, stable IDs)
- Remove reorderProducts CW util (PUT regenerated IDs & broke procurement)
- Update fetchProducts to apply local ordering with CW sequenceNumber fallback
- Add productSequence to OpportunityController.toJson()
- Update API_ROUTES.md, PERMISSIONS.md, PermissionNodes.ts
2026-03-01 18:01:02 -06:00
HoloPanio
d7b374f8ab
feat: sales activities, forecast products, catalog categories, member cache, procurement filters, and comprehensive tests
...
New features:
- ActivityController and manager for CW sales activities (CRUD)
- ForecastProductController for opportunity forecast/product lines
- CW member cache with dual-layer (in-memory + Redis) resolution
- Catalog category/subcategory/ecosystem taxonomy module
- Quote statuses type definitions with CW mapping
- User-defined fields (UDF) module with cache and event refresh
- Company sites CW module with serialization
- Procurement manager filters (category, ecosystem, manufacturer, price, stock)
- Opportunity notes CRUD and product line management via CW API
- Opportunity type definitions endpoint
Updates:
- OpportunityController: CW refresh, company hydration, activities, custom fields
- UserController: cwIdentifier field for CW member linking
- CatalogItemController: category/subcategory fields from CW
- PermissionNodes: sales note/product CRUD nodes, subCategories, collectPermissions
- API routes: procurement categories/filters, sales notes/products, opportunity types
- Global events: UDF and member refresh intervals on startup
Tests (414 passing):
- ActivityController, ForecastProductController, OpportunityController unit tests
- UserController cwIdentifier tests
- catalogCategories, companySites, memberCache, procurement module tests
- activityTypes, opportunityTypes, quoteStatuses type tests
- permissionNodes subCategories and getAllPermissionNodes tests
- Updated test setup with redis mock, API method mocks, and builder helpers
2026-03-01 13:19:00 -06:00
HoloPanio
b787120461
fix: start HTTP server before background init to prevent bad gateway
2026-02-27 17:06:36 -06:00
HoloPanio
1326725995
fix: resolve failed migrations before deploying
2026-02-27 16:26:31 -06:00
HoloPanio
508fa39835
fix: crash loop recovery, auto-migrations, CI test pipeline
...
- Wrap startup syncs in safeStartup() to prevent crash on external service failure
- Add migrate-entrypoint.sh for auto-generating migrations from schema diff
- Update Dockerfile migration stage to use entrypoint script
- Add test job to build-and-publish workflow (runs before build)
- Add tests.yaml workflow to run tests on every push
- Fix test setup to use real RSA key pair instead of plain strings
- Add test script to package.json
2026-02-27 16:11:28 -06:00
HoloPanio
b1f6462ac3
Fix UserController permission serialization and include current updates
2026-02-27 14:38:22 -06:00
HoloPanio
827b018f25
auto-create admin role on startup, use API_BASE_URL for auth redirects
2026-02-25 23:00:51 -06:00
HoloPanio
49faf97c9b
switch to PKCS#8 key format for Bun compatibility
2026-02-25 22:14:19 -06:00
HoloPanio
05bab2c90f
convert PKCS#1 keys to PKCS#8 at load time
2026-02-25 21:56:09 -06:00
HoloPanio
29b5c986cd
convert PKCS#1 keys to PKCS#8 at load time
2026-02-25 21:55:09 -06:00
HoloPanio
cf16c8af49
pkcs1 err
2026-02-25 21:40:35 -06:00
HoloPanio
3779cdc379
fix tls and key secrets
2026-02-25 21:17:00 -06:00
HoloPanio
06e021f8a1
Version
2026-02-24 17:53:43 -06:00
HoloPanio
3c89f24189
setup unifi wlans
2026-02-22 19:12:34 -06:00
HoloPanio
70284bc14e
a lot of things
2026-02-20 11:46:30 -06:00
HoloPanio
987a1c8a6a
roles
2026-02-17 21:53:14 -06:00
HoloPanio
6d951e426d
MAKING CREDENTIALS WORKS
2026-02-15 16:38:04 -06:00
HoloPanio
cdae4d47a4
CREDENTIAL TYPE MANAGEMENT WORKS
2026-02-14 15:15:49 -06:00
HoloPanio
3ab443790c
Lots of updates and cleaning up.
2026-02-14 12:08:23 -06:00
HoloPanio
7466bbdeac
Something changed idk
2026-02-13 18:02:52 -06:00
HoloPanio
628dc35dea
Companies are now listing properly
2026-02-13 17:02:03 -06:00
HoloPanio
24d0c066fd
Setup fetch and wip fetchall route for getting companies.
2026-01-26 18:14:28 -06:00
HoloPanio
7748e6171b
Added Connectwise Compnay Syncing
2026-01-26 17:09:18 -06:00
HoloPanio
4524c0258a
Working User Authorization Flow
2026-01-26 15:56:10 -06:00
HoloPanio
8ee7dc15e5
Got Authorization flow working (Untested)
2026-01-25 16:53:18 -06:00
HoloPanio
d96f18e6cf
Fixed UserController errors
2026-01-25 15:09:55 -06:00
HoloPanio
e76caa68f1
User Authentication Flow Works
2026-01-25 15:03:17 -06:00
HoloPanio
4be36e6ca0
untested WIP
2026-01-24 16:59:50 -06:00
HoloPanio
916e5a7ada
bun init
2026-01-24 11:00:35 -06:00