Skip to content

Side-by-side run compare view (diff two arbitrary runs) #17

Description

@royalpinto007

Problem

CI only returns scalar regressed counts and the run page only compares against the immediate predecessor. Bisecting "which change broke case X" across 10 runs is manual.

Pattern

Follow app/runs/[id]/page.tsx (prev-run pass-map fetch + per-case table) and test/runs-route.test.mjs (boots next dev, asserts on JSON). Add GET /api/runs/compare?a=<id>&b=<id> returning per-case {before, after, verdict: held|regressed|fixed|added|removed} plus a compare UI section. Pure function over two result sets, Supabase reads only.

Acceptance

Route GET /api/runs/compare + test asserting a flipped case yields verdict: "regressed" and an added case yields "added".

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions