This project is a React + TypeScript frontend that guides data product teams through the heuristics outlined in data_product_cut_decision_canvas.md. The UI focuses on one heuristic at a time, surfaces summaries between sections, and ends with a transparent score table. Local storage keeps answers between sessions, and a dedicated button clears all saved data instantly.
- React 18 with TypeScript
- Vite for development/build
- Tailwind CSS for styling
- Jest + React Testing Library for unit tests
- Install dependencies:
npm install
- Start the development server:
npm run dev
- Run the type-safe production build:
npm run build
- Preview the production bundle locally:
npm run preview
Unit tests cover the wizard navigation, persistence behaviour, and outcome summary rendering.
npm testUse npm run test:watch for an interactive workflow.
src/data/heuristics.ts– Canonical representation of every heuristic, summary step, scoring helpers, and recommendation logic.src/components/– Presentation components (QuestionCard,SummaryCard,FinalSummary).src/App.tsx– Stepper experience, storage hydration, and navigation controls.src/__tests__/– Jest + RTL test suites.
Answers live under the data-product-cut-answers key. Click Start over in the header to reset the questionnaire and wipe the key from the browser.