Christian Vidal Wolf
d17db2761b
fix user validation fallback
2026-05-20 14:04:02 +02:00
Christian Vidal Wolf
e8d05069f3
fix vercel load errors
2026-05-20 13:57:11 +02:00
Christian Vidal Wolf
47b9303202
feat: implement manual user validation and user deletion flow
2026-05-20 13:33:37 +02:00
Christian Vidal Wolf
143f655f3c
fix: commit all BC sync files missing from repo
2026-05-15 11:00:21 +02:00
Christian Vidal Wolf
b911ada50b
feat: add 6h automated backup to Dropbox via Vercel cron
2026-05-15 08:06:54 +02:00
Christian Vidal Wolf and claude-flow
9b5932920e
feat: add Business Central CPNP sync and expand history access
...
- Add bc-proxy and bc-export serverless API handlers
- Add businessCentral service with updateCpnpNoInBC and downloadBusinessCentralItemsExcel
- Sync cpnpNo to BC on save (CosmeticItemsView and handleSaveAll)
- Parallelize handleSaveAll with Promise.all
- Fix array index key, a11y click/keyboard handlers, autoFocus
- Grant Change History and Pending Validation access to jingying.shi@craze-group.com
Co-Authored-By: claude-flow <ruv@ruv.net >
2026-05-14 17:17:10 +02:00
Christian Vidal Wolf
e0508d50d6
fix: restore internal control columns and protect them from Dropbox sync overrides
2026-04-23 18:36:35 +02:00
Christian Vidal Wolf and Claude Sonnet 4.6
59e4bdeb92
fix: protect products with history from being overwritten by Dropbox sync
...
Products that have entries in products_history were edited at some point.
If their status was accidentally reset to 'excel', the sync would overwrite
their data. Now also check products_history to build the protected set.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-23 16:38:23 +02:00
Christian Vidal Wolf
605b93c445
fix: sync preserves manually edited items (status edited/pending)
2026-04-23 16:10:01 +02:00
Christian Vidal Wolf
ce343a1b1f
Fix: Debug API env check.
2026-04-23 15:51:40 +02:00
Christian Vidal Wolf
1b28399b76
Fix: Final attempt at migration script fix.
...
- Removed 'new' keyword before error object.
- Reverted to sequential processing to ensure stability.
- Improved error reporting.
2026-04-23 15:46:54 +02:00
Christian Vidal Wolf
31b2451835
Fix: Improve migration script for database re-alignment.
...
- Added robust error handling.
- Optimized database updates with Promise.all.
- Broadened status check to ensure all affected rows are captured.
2026-04-23 15:46:10 +02:00
Christian Vidal Wolf
54dfc24239
Fix: Re-align database indices after column insertion in Excel.
...
- Created a migration API route to shift data indices >= 12.
- Resolved discrepancy where UVP was showing LP Onl values due to column shift.
2026-04-23 15:43:40 +02:00
Christian Vidal Wolf
397023b00d
Fix: Restore missing user edits by refining the data merge logic.
...
- Migrated 126 manual edits to 'edited' status.
- Updated App.tsx to merge rows with 'edited' or 'synced' status.
- Protected manual edits from being overwritten by automated Dropbox syncs.
2026-04-23 15:04:43 +02:00
Christian Vidal Wolf
b14cfe00f0
feat: fullscreen mode for all tabs + fix Dropbox/Supabase sync priority
2026-04-23 14:53:43 +02:00
Christian Vidal Wolf
1c3da9024c
Fix: Update Dropbox sharing link to the new version provided by the user. Restores auto-load functionality in both dev and production.
2026-04-23 12:50:40 +02:00
Christian Vidal Wolf and Claude Sonnet 4.6
2e4ab35f37
Security: Restrict API endpoints to allowed origin (CORS)
...
Both Vercel serverless functions now enforce CORS, returning 403 for
requests from any origin other than craze-data-check.vercel.app.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-23 10:02:47 +02:00
Christian Vidal Wolf
81f0e76c3b
fix: update dropbox sharing link to the new version
2026-04-22 16:17:07 +02:00
Christian Vidal Wolf
eec500f737
fix: improve dropbox loading resilience and fix dev proxy
2026-04-22 16:09:00 +02:00
Christian Vidal Wolf
b4cb7cbe57
Add column resizing in Pricing table
...
Drag column borders to resize width like Excel
2026-04-21 08:40:54 +02:00
Christian Vidal Wolf
dcdf50593d
Comprehensive audit: Replace backend JWT dependency universally with anon key and strict cache rules
2026-04-10 19:56:42 +02:00
Christian Vidal Wolf
8849303f58
Fix data overwrite on reload by ignoring duplicates in dropbox-sync
2026-04-10 12:28:48 +02:00
Christian Vidal Wolf and Claude Sonnet 4.6
a92e136372
fix: update Dropbox file path to correct location
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-10 11:51:41 +02:00
Christian Vidal Wolf and Claude Sonnet 4.6
1bff4f11a6
fix: use refresh token flow for permanent Dropbox access
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-10 11:24:28 +02:00
Christian Vidal Wolf and Claude Sonnet 4.6
8e5cc6745a
fix: use DROPBOX_ACCESS_TOKEN directly in proxy (skip refresh flow)
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-10 11:20:16 +02:00
Christian Vidal Wolf
1aaf454ba5
fix: use raw fetch for Dropbox API instead of SDK, add better error logging
2026-04-10 11:01:55 +02:00
Christian Vidal Wolf
90e60017da
feat: sync Excel data to Supabase on load - detect new Dropbox files automatically
2026-04-10 10:54:50 +02:00
christian.vidal
750e25db89
feat: show EOL not neccessary for OOC products with 0 stock
2026-03-27 13:26:16 +01:00