Skip to content

'[Bug] 'Problem, Segment, Unit Economics, and Value Proposition detail pages all blank when opened from Readiness Page Panels #6

Description

@davidhawdale

Describe the bug

Problem, Segment, Unit Economics, and Value Proposition detail pages all blank when opened from Readiness Page Panels

To Reproduce

Open http://localhost:5173/
Click on any of the panels - Problem, Segment, Unit Economics, and Value Proposition

Expected behavior

Content pages

Claude tells me ... (usual note about me not being developer...)

2. Hypothesis Detail Panel pages crash — undefined arrays and status on incomplete hypotheses — undefined arrays and status on incomplete hypotheses

File: tools/dashboard/src/components/panels/HypothesisDetailPanel.tsx

Problem, Segment, Unit Economics, and Value Proposition detail pages all crashed when clicked. The Value Proposition hypothesis is incomplete (no evidence, no assumptions) so several array properties were undefined. The panel accessed .length and .toLowerCase() on them directly without guards.

Seven lines changed:

// Before
{view.possibilitySpace.entries.length > 0 && (
  <li className={`possibility-item--${e.status.toLowerCase()}`}>
{view.possibilitySpace.eliminations.length > 0 && (
{view.evidence.length > 0 && (
  <span>{view.evidence.length}</span>
{view.researchSources.length > 0 && (
{view.assumptions.length > 0 && (
  <span>{view.assumptions.length}</span>
{view.channelStrategy && view.channelStrategy.channels.length > 0 && (

// After
{(view.possibilitySpace.entries?.length ?? 0) > 0 && (
  <li className={`possibility-item--${(e.status ?? '').toLowerCase()}`}>
{(view.possibilitySpace.eliminations?.length ?? 0) > 0 && (
{(view.evidence?.length ?? 0) > 0 && (
  <span>{view.evidence?.length}</span>
{(view.researchSources?.length ?? 0) > 0 && (
{(view.assumptions?.length ?? 0) > 0 && (
  <span>{view.assumptions?.length}</span>
{view.channelStrategy && (view.channelStrategy.channels?.length ?? 0) > 0 && (

Environment

  • OS: Mac Tahoe
  • Claude Code version: Sonnet
  • LeanOS version: Core

Additional context

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions