Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
🟡 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)
weastler
approved these changes
Nov 11, 2026
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
force-pushed
the
nshki/feat/hub/prototype-index-build-status
branch
from
November 11, 2026 19:00
485d920 to
7d00141
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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
Hub/Pages/Repositories/Show / Real Index - light, 1440x900
Hub/Pages/Repositories/Show / Real Index Single - light, 1440x900