Skip to content

'[Bug] 'Value Proposition panel shows no content' #9

Description

@davidhawdale

Describe the bug

Value Proposition panel shows no content

To Reproduce

Open http://localhost:5173/
Observe that the Value Proposition Panel has no content
Click the panel
Observe that the Value Proposition Page has no content

Expected behavior

Value Proposition content

Claude thinks:

Value Proposition panel shows no content

User impact: Clicking the Value Proposition card on the Readiness page shows UNKNOWN confidence, no evidence, no assumptions, and no content — even though the strategy/hypotheses.md file has a fully written Value Proposition section with a Claim, Confidence, Jobs Addressed, and Clause Validation table.

Root cause — two bugs working together:

Bug 1: parser/index.ts never calls parseValueProposition

The parseValueProposition function exists in src/parser/value-proposition.ts and works correctly, but parser/index.ts never imports or calls it. The Value Proposition is always set to empty and the markdown is never read.

File to fix: tools/dashboard/src/parser/index.ts

Change 1 — add the import at the top of the file alongside the other imports:

import { parseValueProposition } from './value-proposition';

Change 2 — after the for loop that parses Problem, Segment, and Unit Economics (around line 94), add:

// Parse Value Proposition
const vpSection = sections.get('valueProposition');
if (vpSection) {
  const { valueProposition: vp, warnings: vpWarnings } = parseValueProposition(vpSection);
  hypotheses.valueProposition = vp;
  warnings.push(...vpWarnings);
} else {
  warnings.push({
    section: 'valueProposition',
    field: 'section',
    message: 'Value Proposition section not found',
    severity: 'info',
  });
}

Bug 2: views/hypothesis-detail.ts doesn't pass VP-specific fields to the panel

Even after Bug 1 is fixed, clicking the Value Proposition detail page will show the Claim and Confidence, but the Jobs Addressed and Clause Validation sections will still be missing. This is because computeHypothesisDetail in hypothesis-detail.ts builds the view object but never includes jobs or clauseValidation.

File to fix: tools/dashboard/src/views/hypothesis-detail.ts

Before (the return statement at the end of computeHypothesisDetail, after Group B fix applied):

return {
  id,
  label: LABELS[id] ?? id,
  claim: h.claim,
  confidence: h.confidence,
  desiredState: h.desiredState,
  currentState: h.currentState,
  possibilitySpace,
  evidence: h.evidence,
  researchSources: h.researchSources,
  assumptions: h.assumptions,
  killCondition: h.killCondition,
  lastUpdated: h.lastUpdated,
  updateRationale: h.updateRationale,
  observableFilters: (h as any).observableCharacteristics,
  relatedGaps: relatedGaps && relatedGaps.length > 0 ? relatedGaps : undefined,
};

After:

const vp = id === 'valueProposition' ? (h as import('../model/types').ValueProposition) : undefined;

return {
  id,
  label: LABELS[id] ?? id,
  claim: h.claim,
  confidence: h.confidence,
  desiredState: h.desiredState,
  currentState: h.currentState,
  possibilitySpace,
  evidence: h.evidence,
  researchSources: (h as any).researchSources,
  assumptions: h.assumptions,
  killCondition: (h as any).killCondition,
  lastUpdated: h.lastUpdated,
  updateRationale: h.updateRationale,
  jobs: vp?.jobs,
  clauseValidation: vp?.clauseValidation,
  relatedGaps: relatedGaps && relatedGaps.length > 0 ? relatedGaps : undefined,
};

To verify the fix worked: After applying both changes, open the dashboard, click the Value Proposition card, and check that the Claim, Confidence, Jobs Addressed, and Clause Validation table all appear.

Environment

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

Additional context

Any other context, screenshots, or error messages.

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