Skip to content

Frontend renders stale backend fields after agent refactor #6

@Par-t

Description

@Par-t

Context

Branch feat/agent-refine-v2 (from commit c636708) refactored the hackathon_novelty pipeline:

  • Removed quick_node / analyze_node → single score_node
  • Removed percentile and cluster from output (were never in ALLOWED_OUTPUT_KEYS)
  • Removed quick_scored status and quick analysis_depth
  • Added relevance_score, aligned to output
  • Added user_output_keys to SkillCard for role-based filtering

TS types and mock data updated. Rendering code still references removed fields.

Broken references

client/apps/web/app/dashboard/[id]/page.tsx (admin view)

  • L194-196: CSV export uses percentile, cluster
  • L327: Renders result.percentile
  • L330: Renders result.cluster

client/apps/web/app/i/[id]/page.tsx (participant view)

  • L394: 100 - result.percentile calculation
  • L402: Renders result.percentile
  • L407: Renders result.cluster

Marketing copy

  • components/ui/feature-section-with-hover-effects.tsx L24
  • app/page.tsx L161, L308
  • All mention "percentiles" and "cluster labels"

What needs to change

  1. Dashboard (admin): Replace percentile/cluster columns with relevance_score/aligned. Update CSV export.
  2. Participant view: Show novelty_score + aligned flag only (matches user_output_keys).
  3. Marketing copy: Update "percentiles, cluster labels" to match actual output fields.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions