Skip to content

feat(hub): show latest Build status in prototype index - #224

Merged
nshki merged 7 commits into
nshki/feat/hub/prototype-index-searchfrom
nshki/feat/hub/prototype-index-build-status
Nov 11, 2026
Merged

nshki merged 7 commits into
nshki/feat/hub/prototype-index-searchfrom
nshki/feat/hub/prototype-index-build-status

Conversation

@nshki

@nshki nshki commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Why

Hub's real prototype index lets members find prototypes but does not show the status of each prototype's latest Build. Members need that signal without opening Build history or detail pages.

What changes

The API returns a status summary for each prototype's current Build. If none is selected, it chooses the latest using workflow creation time, or creation time when that is unavailable. Build number breaks ties. The real list uses its existing status labels. The development seed shows every supported state and a prototype with no Build. Build execution, discovery, and history remain out of scope.

Storybook screenshots

Real-index stories, light theme at 1440x900

Hub/Pages/Repositories/Show / Real Index List - light, 1440x900

Real index list with passing and no-Build states

Hub/Pages/Repositories/Show / Real Index - light, 1440x900

Real index gallery with two prototypes

Hub/Pages/Repositories/Show / Real Index Single - light, 1440x900

Real index gallery with one prototype

@nshki
nshki requested a review from a team as a code owner November 10, 2026 23:37
Copilot AI dynamic review requested due to automatic review settings November 10, 2026 23:37
@nshki
nshki added this pull request to stack #222 November 10, 2026 23:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The Prisma model omits a migration-created index, while upgrade and ownership-guard tests and updated Build-status stories with required screenshots remain missing.

3 open issues
What changed in this PR

This PR connects latest Build status to Hub’s real prototype index, letting members see progress without opening Build details or history.

Changes:

  • Adds a minimal Build model and selects the current Build or a chronological fallback.
  • Displays Build summaries through the existing status labels, with API and UI coverage.
  • Expands local seed data to all five Build states plus no Build, and updates documentation.
File Description
hub/​server/​scripts/​seed-prototype-index/​index.ts Seeds six prototypes covering every Build state and no Build.
hub/​server/​routes/​api/​product-index/​index.db.test.ts Tests current-Build selection, chronological fallback, and no Build.
hub/​server/​repositories/​prototype-index/​find-repository-index/​index.ts Retrieves and returns Build summaries for listed prototypes.
hub/​schema/​prototype.prisma Adds Build relations and the current-Build pointer.
hub/​schema/​migrations/​20261110190000_prototype_build_status/​migration.sql Creates Build storage, indexes, and ownership constraints.
hub/​schema/​build.prisma Defines the minimal Build model.
hub/​schema/​build-state.enum.prisma Defines supported Build states.
hub/​docs/​frontend.md Documents Build summaries in the real index response.
hub/​docs/​development.md Updates index capabilities and seed instructions.
hub/​client/​application/​hub/​view-models/​repository-show-data/​index.ts Prefers explicit Build summaries while preserving mock fallback.
hub/​client/​application/​hub/​screens/​repository-screen/​index.tsx Enables Build status in real mode.
hub/​client/​application/​hub/​routes/​real-prototype-index.test.tsx Checks visible statuses and the no-Build fallback.
hub/​client/​application/​hub/​contracts/​index.ts Adds an optional nullable Build summary contract.

Review effort: Balanced (auto)

Comment thread hub/schema/prototype.prisma Resolved
nshki and others added 7 commits November 11, 2026 10:40
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: b60c01ad-40e3-4341-a27c-c1bff63a1ff0
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: b60c01ad-40e3-4341-a27c-c1bff63a1ff0
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: b60c01ad-40e3-4341-a27c-c1bff63a1ff0
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: b60c01ad-40e3-4341-a27c-c1bff63a1ff0
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: b60c01ad-40e3-4341-a27c-c1bff63a1ff0
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: b60c01ad-40e3-4341-a27c-c1bff63a1ff0
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: b60c01ad-40e3-4341-a27c-c1bff63a1ff0
@nshki
nshki force-pushed the nshki/feat/hub/prototype-index-build-status branch from 485d920 to 7d00141 Compare November 11, 2026 19:00
@nshki
nshki merged commit 80da066 into build/hub/new Nov 11, 2026
63 of 64 checks passed
@nshki
nshki deleted the nshki/feat/hub/prototype-index-build-status branch November 11, 2026 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants