No description
Find a file
Leivur Djurhuus ec420f79d6 Fix dynamic pipeline stages: form submissions, unique constraint, and stage name resolution
Three related bugs fixed:

1. Form save buttons silently failing — valueAsNumber on empty number inputs
   produced NaN, which Zod rejected without visible errors on hidden tabs.
   Replaced with setValueAs that converts empty strings to undefined.

2. Unique constraint violation on deliverable stage creation — dynamic pipeline
   stages without matching global template slugs all fell back to
   globalTemplates[0], creating duplicate (deliverableId, templateId) pairs.
   Changed constraint from @@unique([deliverableId, templateId]) to
   @@unique([deliverableId, stageDefinitionId]).

3. Stage names showing wrong template — all UI components read
   stage.template.name exclusively, ignoring stageDefinition from the dynamic
   pipeline system. Updated 13 components, 6 services, and all relevant Prisma
   queries to prefer stageDefinition over template for display.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-18 12:19:00 -05:00
.agents/skills Initial scaffold: Next.js 16, TypeScript, Tailwind CSS 4, ESLint, Prettier 2026-02-28 20:58:48 -06:00
.claude feat(calendar): implement calendar view with event filtering and detail display 2026-03-12 21:20:11 -05:00
assets/temp chore: remove Promptfoo integration plan and related configuration files 2026-03-12 22:00:25 -05:00
docker feat: Implement automation event bus and rule engine 2026-03-12 11:20:21 -05:00
docs/archive Refactor code structure for improved readability and maintainability 2026-03-14 13:17:19 -05:00
prisma Fix dynamic pipeline stages: form submissions, unique constraint, and stage name resolution 2026-03-18 12:19:00 -05:00
scripts feat: add pipeline stage resolver and organization access control 2026-03-14 22:43:43 -05:00
src Fix dynamic pipeline stages: form submissions, unique constraint, and stage name resolution 2026-03-18 12:19:00 -05:00
tests/llm feat(calendar): implement calendar view with event filtering and detail display 2026-03-12 21:20:11 -05:00
.dockerignore feat: add Smart Search Panel with semantic search capabilities 2026-03-06 16:13:36 -06:00
.env.example Add video upload with HLS streaming infrastructure (A7.1) 2026-03-17 23:52:40 -05:00
.gitignore Add video upload with HLS streaming infrastructure (A7.1) 2026-03-17 23:52:40 -05:00
.nvmrc Initial scaffold: Next.js 16, TypeScript, Tailwind CSS 4, ESLint, Prettier 2026-02-28 20:58:48 -06:00
.prettierignore Initial scaffold: Next.js 16, TypeScript, Tailwind CSS 4, ESLint, Prettier 2026-02-28 20:58:48 -06:00
.prettierrc Initial scaffold: Next.js 16, TypeScript, Tailwind CSS 4, ESLint, Prettier 2026-02-28 20:58:48 -06:00
CLAUDE.md feat(calendar): implement calendar view with event filtering and detail display 2026-03-12 21:20:11 -05:00
components.json Add shadcn/ui components and TooltipProvider 2026-02-28 21:00:51 -06:00
docker-compose.yml Add video upload with HLS streaming infrastructure (A7.1) 2026-03-17 23:52:40 -05:00
Dockerfile Add video upload with HLS streaming infrastructure (A7.1) 2026-03-17 23:52:40 -05:00
EXECUTIVE_OVERVIEW.md feat: implement stage date override and scheduling features 2026-03-12 23:13:29 -05:00
next.config.ts Initial scaffold: Next.js 16, TypeScript, Tailwind CSS 4, ESLint, Prettier 2026-02-28 20:58:48 -06:00
package-lock.json Add video player component with HLS streaming and review page integration (A7.2) 2026-03-17 23:52:40 -05:00
package.json Add video player component with HLS streaming and review page integration (A7.2) 2026-03-17 23:52:40 -05:00
pinecone-research.md feat(pinecone): add research document assessing relevance of Pinecone for HP Prod Tracker 2026-03-06 15:25:52 -06:00
postcss.config.mjs Initial scaffold: Next.js 16, TypeScript, Tailwind CSS 4, ESLint, Prettier 2026-02-28 20:58:48 -06:00
prisma.config.ts feat: add validators for PowerPoint and Word documents, and Excel recalculation script 2026-03-02 12:23:09 -06:00
PRODUCER_GUIDE.md feat: implement stage date override and scheduling features 2026-03-12 23:13:29 -05:00
ROADMAP.md Update ROADMAP: mark D1.1-D1.3 and A7.1-A7.2 as complete 2026-03-17 23:52:34 -05:00
SETUP.md feat: add development setup guide and instructions for local environment configuration 2026-03-01 12:16:17 -06:00
skills-lock.json Initial scaffold: Next.js 16, TypeScript, Tailwind CSS 4, ESLint, Prettier 2026-02-28 20:58:48 -06:00
tsconfig.json Add Prisma 7 schema with full data model and seed script 2026-02-28 21:06:17 -06:00