feat: add workflow actions, admin enhancements, and comprehensive test coverage

This commit is contained in:
2026-03-09 02:14:08 -05:00
parent 5169107a04
commit 7073f5aa33
71 changed files with 12902 additions and 541 deletions
@@ -96,6 +96,10 @@
const res = await fetch("/api/cw/members");
const json = await res.json();
members = json.data ?? [];
// Auto-select first member as primary sales rep if not already set
if (!primarySalesRepId && members.length > 0) {
primarySalesRepId = String(members[0].id);
}
} catch (err) {
console.error("Failed to load members:", err);
} finally {