Repository navigation
fix(hub): restore gallery screenshots and polish browsing - #331
Merged
Merged
Conversation
Keep the gallery steady during navigation, make author links text-sized, and let repository and audit controls accommodate longer names. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Select one saved image per visible prototype without loading Build history. Keep a usable screenshot when a newer Build fails or its screenshot has not arrived. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The change combines PostgreSQL thumbnail selection, client API behavior, and live repository/session authorization for preview grants, requiring broader review of interacting data and access paths.
No open issues 🎉
What changed in this PR
Restores saved screenshots in Hub’s Prototypes gallery while preserving current Build status and improving browsing layout.
Changes:
- Selects the newest eligible Build with a screenshot and exposes its thumbnail through the gallery API, with current-authority checks for access.
- Removes the inline loading message, simplifies profile links, and improves long repository-name handling.
- Updates regression coverage, Storybook examples, and documentation.
| File | Description |
|---|---|
hub/test/local-smoke/seed-local-workspace/index.ts |
Seeds a saved screenshot for smoke coverage. |
hub/test/local-smoke/browser.js |
Checks that the gallery screenshot loads. |
hub/server/routes/api/repositories/prototypes/builds/access/get/index.ts |
Rechecks session authority and repository visibility before granting access. |
hub/server/routes/api/repositories/prototypes/builds/access/get/index.test.ts |
Covers loss of repository visibility. |
hub/server/routes/api/product/create-product-route-dependencies/index.ts |
Supplies artifact URL generation to the repository index. |
hub/server/routes/api/product-index/index.db.test.ts |
Covers thumbnail selection independently of current Build status. |
hub/server/repositories/prototype-index/find-repository-index/index.ts |
Selects one eligible preview Build per gallery card. |
hub/docs/github-actions-builds.md |
Documents thumbnail selection and missing-screenshot troubleshooting. |
hub/docs/frontend.md |
Documents stable gallery loading behavior. |
hub/client/utils/prototype-listing/types.ts |
Removes obsolete loading-message copy. |
hub/client/storybook/fixtures/prototype-listing.ts |
Removes the obsolete fixture message. |
hub/client/pages/security-audit-page/styles.css |
Lets scope controls grow while containing long labels. |
hub/client/pages/security-audit-page/stories.tsx |
Adds a long repository-name example. |
hub/client/pages/repositories-show-page/stories.tsx |
Updates preview fixtures and removes the obsolete Updating story. |
hub/client/pages/repositories-show-page/index.tsx |
Removes the layout-shifting inline loading message. |
hub/client/pages/repositories-show-page/index.test.tsx |
Updates loading and profile-link assertions. |
hub/client/components/repository-selector/styles.css |
Widens the menu within viewport limits. |
hub/client/components/repository-selector/stories.tsx |
Opens the long-name menu for visual coverage. |
hub/client/components/prototype-card/styles.css |
Adds bounded profile-link sizing and hover/focus underlines. |
hub/client/components/prototype-card/index.tsx |
Uses the user’s name as profile-link text. |
hub/client/application/hub/view-models/repository-show-data/index.ts |
Maps gallery preview summaries and removes unused loading copy. |
hub/client/application/hub/contracts/index.ts |
Accepts optional preview Build summaries in repository responses. |
Review effort: Balanced (adaptive)
weastler
approved these changes
Nov 21, 2026
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 imported Build screenshots, but the Prototypes gallery never received their URLs. The gallery also shifted during navigation, and repository names could wrap or truncate too early in its controls.
What changes
The gallery loads one saved thumbnail per prototype from the newest successful Build with a screenshot. A newer Build without a screenshot does not replace that thumbnail or hide the current Build status. Existing screenshots work without changing or rerunning the Actions workflow.
The top loading bar replaces the inline “Updating prototypes” message, so the cards stay in place. GitHub profile links use just the user’s name and underline it on hover or keyboard focus. The repository menu widens without changing the sidebar, and the audit scope button grows before truncating long names to fit the available space.
The separate Updating story was removed because it showed the deleted inline message.
Storybook screenshots
Components/Prototype Card
Components/Repository Selector
Hub/Pages/Inbox prototype
Hub/Pages/Repositories/Show
Hub/Pages/Security/Audit