Skip to content

refactor(hub): retire routed mock mode - #364

Merged
arniebradfo merged 5 commits into
build/hub/newfrom
hub/retire-routed-mock
Nov 24, 2026
Merged

arniebradfo merged 5 commits into
build/hub/newfrom
hub/retire-routed-mock

Conversation

@arniebradfo

@arniebradfo arniebradfo commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Why

Hub contributors need to inspect and exercise page states without starting the API, database, or sign-in. Maintaining a second routed app for that work made it harder to keep examples and the running app in sync. Related to #355.

What changes

Hub now uses the API in development and production. This removes the simulated API, its service worker and Test data toolbar, and the mock-only routes. The existing sign-in flow and compatibility redirects stay in place. API failures remain visible rather than falling back to sample data.

Storybook now shows Inbox paging, pinned Build history, route errors, review access and recovery, user filtering, and decision-model and security confirmations. Contributors can change the gallery's user filter, retry an edit or reply, and inspect confirmations without sending writes to Hub. The retired GitHub App screens are design references; guided setup is still part of Hub.

The contributor guides link each route to a representative story. Route and request tests use the current API contracts, with isolated test data and small HTTP or socket doubles where needed.

Storybook screenshots

Hub/Design/Legacy GitHub App/Installation

Hub/Design/Legacy GitHub App/Installation / Design Reference

Light theme, desktop viewport (1440 x 900).

Hub/Design/Legacy GitHub App/Installation / Design Reference

Hub/Design/Legacy GitHub App/Manual registration

Hub/Design/Legacy GitHub App/Manual registration / Design Reference

Light theme, desktop viewport (1440 x 900).

Hub/Design/Legacy GitHub App/Manual registration / Design Reference

Hub/Design/Legacy GitHub App/Settings

Hub/Design/Legacy GitHub App/Settings / Design Reference

Light theme, desktop viewport (1440 x 900).

Hub/Design/Legacy GitHub App/Settings / Design Reference

Hub/Features/Hub Administration Workspace

Hub/Features/Hub Administration Workspace / Collapsed

Light theme, desktop viewport (1440 x 900).

Hub/Features/Hub Administration Workspace / Collapsed

Hub/Features/Hub Administration Workspace / Expanded

Light theme, desktop viewport (1440 x 900).

Hub/Features/Hub Administration Workspace / Expanded

Hub/Features/Hub Administration Workspace / No Repositories

Light theme, desktop viewport (1440 x 900).

Hub/Features/Hub Administration Workspace / No Repositories

Hub/Features/Hub Workspace

Hub/Features/Hub Workspace / Repository Permissions Unavailable

Light theme, desktop viewport (1440 x 900).

Hub/Features/Hub Workspace / Repository Permissions Unavailable

Hub/Pages/Builds/Index

Hub/Pages/Builds/Index / Middle page with a pinned Build

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Builds/Index / Middle page with a pinned Build

Hub/Pages/Canvas/Connection

Hub/Pages/Canvas/Connection / Approval

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Canvas/Connection / Approval

Hub/Pages/Canvas/Connection / Approved Pending

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Canvas/Connection / Approved Pending

Hub/Pages/Canvas/Connection / Connected

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Canvas/Connection / Connected

Hub/Pages/Canvas/Connection / Empty

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Canvas/Connection / Empty

Hub/Pages/Canvas/Connection / Multiple

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Canvas/Connection / Multiple

Hub/Pages/Canvas/Connection / Revoked

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Canvas/Connection / Revoked

Hub/Pages/Inbox

Hub/Pages/Inbox / Cached Refresh

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Inbox / Cached Refresh

Hub/Pages/Inbox / Empty

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Inbox / Empty

Hub/Pages/Inbox / Failure

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Inbox / Failure

Hub/Pages/Inbox / Loading

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Inbox / Loading

Hub/Pages/Inbox / Multiple

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Inbox / Multiple

Hub/Pages/Inbox / No Repositories

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Inbox / No Repositories

Hub/Pages/Inbox / Single

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Inbox / Single

Hub/Pages/Learnings

Hub/Pages/Learnings / Access Denied

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Learnings / Access Denied

Hub/Pages/Learnings / Copilot Refused

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Learnings / Copilot Refused

Hub/Pages/Learnings / Daily Run Waiting

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Learnings / Daily Run Waiting

Hub/Pages/Learnings / Decision Candidate Promoted

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Learnings / Decision Candidate Promoted

Hub/Pages/Learnings / Decision Candidate Promoted Without Rollback

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Learnings / Decision Candidate Promoted Without Rollback

Hub/Pages/Learnings / Decision Candidate Rejected

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Learnings / Decision Candidate Rejected

Hub/Pages/Learnings / Decision Candidate Rolled Back

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Learnings / Decision Candidate Rolled Back

Hub/Pages/Learnings / Decision Runtime Not Configured

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Learnings / Decision Runtime Not Configured

Hub/Pages/Learnings / Decision Runtime Unavailable

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Learnings / Decision Runtime Unavailable

Hub/Pages/Learnings / Decision Training Blocked

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Learnings / Decision Training Blocked

Hub/Pages/Learnings / Decision Training Cancelled

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Learnings / Decision Training Cancelled

Hub/Pages/Learnings / Decision Training Failures

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Learnings / Decision Training Failures

Hub/Pages/Learnings / Decision Training Paused

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Learnings / Decision Training Paused

Hub/Pages/Learnings / Decision Training Preparing

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Learnings / Decision Training Preparing

Hub/Pages/Learnings / Decision Training Queued

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Learnings / Decision Training Queued

Hub/Pages/Learnings / Decision Training Running

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Learnings / Decision Training Running

Hub/Pages/Learnings / Default

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Learnings / Default

Hub/Pages/Learnings / Failed Run

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Learnings / Failed Run

Hub/Pages/Learnings / First Visit

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Learnings / First Visit

Hub/Pages/Learnings / Identity Revalidation

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Learnings / Identity Revalidation

Hub/Pages/Learnings / Legacy Build Evaluation

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Learnings / Legacy Build Evaluation

Hub/Pages/Learnings / Load Error

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Learnings / Load Error

Hub/Pages/Learnings / Missing Metadata

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Learnings / Missing Metadata

Hub/Pages/Learnings / Opposing Evidence

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Learnings / Opposing Evidence

Hub/Pages/Learnings / Removed Learning Text

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Learnings / Removed Learning Text

Hub/Pages/Learnings / Replacing Guidance

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Learnings / Replacing Guidance

Hub/Pages/Learnings / Repository Learning Authority Only

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Learnings / Repository Learning Authority Only

Hub/Pages/Learnings / Running

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Learnings / Running

Hub/Pages/Learnings / Runtime Deletion Pending

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Learnings / Runtime Deletion Pending

Hub/Pages/Prototype Review

Hub/Pages/Prototype Review / Details Save Retry

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Prototype Review / Details Save Retry

Hub/Pages/Prototype Review / Editing Details

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Prototype Review / Editing Details

Hub/Pages/Prototype Review / Editing Details Without Start Page

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Prototype Review / Editing Details Without Start Page

Hub/Pages/Prototype Review / Editing Draft

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Prototype Review / Editing Draft

Hub/Pages/Prototype Review / Member can edit details; review is unavailable

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Prototype Review / Member can edit details; review is unavailable

Hub/Pages/Prototype Review / Reply Retry

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Prototype Review / Reply Retry

Hub/Pages/Repositories

Hub/Pages/Repositories / Administrator

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Repositories / Administrator

Hub/Pages/Repositories / Empty

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Repositories / Empty

Hub/Pages/Repositories / Real Empty Workspace

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Repositories / Real Empty Workspace

Hub/Pages/Repositories/Show

Hub/Pages/Repositories/Show / User Filter Second Page

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Repositories/Show / User Filter Second Page

Hub/Pages/Route Feedback

Hub/Pages/Route Feedback / Access Denied

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Route Feedback / Access Denied

Hub/Pages/Route Feedback / Canvas Account Mismatch

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Route Feedback / Canvas Account Mismatch

Hub/Pages/Route Feedback / Canvas Account Retrying

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Route Feedback / Canvas Account Retrying

Hub/Pages/Route Feedback / Not Found

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Route Feedback / Not Found

Hub/Pages/Route Feedback / Unexpected API response

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Route Feedback / Unexpected API response

Hub/Pages/Security/Administrator enrollment

Hub/Pages/Security/Administrator enrollment / Enrollment

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Administrator enrollment / Enrollment

Hub/Pages/Security/Administrator enrollment / Git Hub And Microsoft Entra

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Administrator enrollment / Git Hub And Microsoft Entra

Hub/Pages/Security/Administrator enrollment / Invalid Secret

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Administrator enrollment / Invalid Secret

Hub/Pages/Security/Administrator enrollment / Microsoft Entra

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Administrator enrollment / Microsoft Entra

Hub/Pages/Security/Audit

Hub/Pages/Security/Audit / Authorization Succeeded

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Audit / Authorization Succeeded

Hub/Pages/Security/Audit / Empty

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Audit / Empty

Hub/Pages/Security/Audit / Hub Only

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Audit / Hub Only

Hub/Pages/Security/Audit / Long Repository Name

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Audit / Long Repository Name

Hub/Pages/Security/Audit / Multiple

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Audit / Multiple

Hub/Pages/Security/Audit / Repository

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Audit / Repository

Hub/Pages/Security/Audit / Repository And Hub Admin

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Audit / Repository And Hub Admin

Hub/Pages/Security/Audit / Repository Empty

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Audit / Repository Empty

Hub/Pages/Security/Audit / Scopes Unavailable

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Audit / Scopes Unavailable

Hub/Pages/Security/Audit / Single

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Audit / Single

Hub/Pages/Security/Copilot

Hub/Pages/Security/Copilot / Access Removed

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Copilot / Access Removed

Hub/Pages/Security/Copilot / Connected

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Copilot / Connected

Hub/Pages/Security/Copilot / Connected Organization Installation

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Copilot / Connected Organization Installation

Hub/Pages/Security/Copilot / No Token

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Copilot / No Token

Hub/Pages/Security/Copilot / Not Connected

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Copilot / Not Connected

Hub/Pages/Security/Copilot / Organization Installation

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Copilot / Organization Installation

Hub/Pages/Security/Copilot / Refused

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Copilot / Refused

Hub/Pages/Security/End all sessions

Hub/Pages/Security/End all sessions / Confirmation

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/End all sessions / Confirmation

Hub/Pages/Security/End all sessions / Denied

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/End all sessions / Denied

Hub/Pages/Security/End all sessions / Ended

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/End all sessions / Ended

Hub/Pages/Security/End all sessions / Only Your Session

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/End all sessions / Only Your Session

Hub/Pages/Security/End all sessions / Provider Verified

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/End all sessions / Provider Verified

Hub/Pages/Security/Fresh authorization

Hub/Pages/Security/Fresh authorization / Conflict

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Fresh authorization / Conflict

Hub/Pages/Security/Fresh authorization / Continuing

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Fresh authorization / Continuing

Hub/Pages/Security/Fresh authorization / Copilot Connection Confirmation

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Fresh authorization / Copilot Connection Confirmation

Hub/Pages/Security/Fresh authorization / Hub Administrator Change

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Fresh authorization / Hub Administrator Change

Hub/Pages/Security/Fresh authorization / Nothing To Authorize

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Fresh authorization / Nothing To Authorize

Hub/Pages/Security/Fresh authorization / Required

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Fresh authorization / Required

Hub/Pages/Security/Hub administrator confirmation

Hub/Pages/Security/Hub administrator confirmation / Designate

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Hub administrator confirmation / Designate

Hub/Pages/Security/Hub administrator confirmation / Final Administrator

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Hub administrator confirmation / Final Administrator

Hub/Pages/Security/Hub administrator confirmation / Remove

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Hub administrator confirmation / Remove

Hub/Pages/Security/Hub administrators

Hub/Pages/Security/Hub administrators / Access Removed

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Hub administrators / Access Removed

Hub/Pages/Security/Hub administrators / Denied

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Hub administrators / Denied

Hub/Pages/Security/Hub administrators / Empty

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Hub administrators / Empty

Hub/Pages/Security/Hub administrators / Multiple

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Hub administrators / Multiple

Hub/Pages/Security/Hub administrators / Profile Unavailable

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Hub administrators / Profile Unavailable

Hub/Pages/Security/Hub administrators / Single

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Hub administrators / Single

Hub/Pages/Security/No repository access

Hub/Pages/Security/No repository access / Signed In Account

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/No repository access / Signed In Account

Hub/Pages/Security/No repository access / Unknown Account

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/No repository access / Unknown Account

Hub/Pages/Security/Public sharing

Hub/Pages/Security/Public sharing / Access Removed

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Public sharing / Access Removed

Hub/Pages/Security/Public sharing / Disable Confirmation

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Public sharing / Disable Confirmation

Hub/Pages/Security/Public sharing / Disabled

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Security/Public sharing / Disabled

Hub/Pages/Welcome

Hub/Pages/Welcome / Hidden

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Welcome / Hidden

Hub/Pages/Welcome / Introduction

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Welcome / Introduction

Hub/Pages/Welcome / Local Repository

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Welcome / Local Repository

Hub/Pages/Welcome / No Repository

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Welcome / No Repository

Hub/Pages/Welcome / Video Not Configured

Light theme, desktop viewport (1440 x 900).

Hub/Pages/Welcome / Video Not Configured

arniebradfo and others added 2 commits November 24, 2026 13:38
Use the existing API path in development and production. Keep representative UI states in Storybook and verify routing and saved changes against the live contracts.

Related to #355.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Exercise load more and the Unread filter through the actual notifications route, including the cursor reset and visible results.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI adaptive review requested due to automatic review settings November 24, 2026 21:47

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.

🔵 Needs a closer look

Retiring the alternate routed app and replacing its test infrastructure affects interacting authentication, navigation, and review-recovery flows that require human cross-flow and Storybook evidence review.

No open issues 🎉

What changed in this PR

This PR retires Hub’s separate routed mock app, addressing the maintenance concern in #355. Hub uses the API, while Storybook provides backend-free page examples and tests cover routing, sessions, and request behavior.

Changes:

  • Removes mock startup, simulated sessions, mock-only routes, toolbar controls, and supporting assets.
  • Simplifies routes and view models to use API-backed behavior while retaining compatibility redirects.
  • Expands Storybook examples, replaces mock-store test dependencies with isolated fixtures, and updates contributor guidance.
File Description
hub/​vite.config.ts Removes the mock asset plugin.
hub/​README.md Clarifies API and Storybook workflows.
hub/​package.json Removes the mock command and MSW dependency.
hub/​docs/​testing-and-operations.md Separates Storybook inspection from integration testing.
hub/​docs/​README.md Updates frontend and Storybook guide descriptions.
hub/​docs/​development.md Directs backend-free UI work to Storybook.
hub/​docs/​architecture.md Documents the single API-backed application.
hub/​client/​test/​stub-hub-socket/​index.ts Adds a small WebSocket test double.
hub/​client/​test/​deferred/​index.ts Adds a controllable promise helper.
hub/​client/​storybook/​fixtures/​signed-in-workspace.ts Adds shared signed-in navigation fixtures.
hub/​client/​pages/​repositories-show-page/​stories.tsx Adds paginated user-filter interaction coverage.
hub/​client/​pages/​prototypes-show-page/​fixtures/​review-story/​index.tsx Keeps selected threads aligned with updated story data.
hub/​client/​pages/​notifications-page/​index.test.tsx Updates Inbox and empty-workspace navigation assertions.
hub/​client/​pages/​learnings-page/​stories.tsx Adds cancellation, promotion, and rollback examples.
hub/​client/​pages/​github-app-setup-register-page/​stories.tsx Converts registration into a disabled design reference.
hub/​client/​pages/​github-app-setup-install-page/​stories.tsx Consolidates installation into a disabled design reference.
hub/​client/​pages/​github-app-page/​index.test.tsx Checks that the design reference omits configuration forms.
hub/​client/​pages/​fresh-authorization-page/​stories.tsx Adds a non-submitting Copilot confirmation example.
hub/​client/​pages/​builds-index-page/​stories.tsx Models paginated history with a pinned Build.
hub/​client/​application/​hub/​view-models/​welcome-data/​index.ts Removes mock-specific Welcome mapping.
hub/​client/​application/​hub/​view-models/​settings-workspace/​types.ts Deletes mock settings navigation types.
hub/​client/​application/​hub/​view-models/​settings-workspace/​index.ts Deletes the mock settings workspace mapper.
hub/​client/​application/​hub/​view-models/​settings-repository-workspace/​index.ts Deletes the mock repository settings mapper.
hub/​client/​application/​hub/​view-models/​settings-notifications/​index.ts Deletes mock Inbox page mapping.
hub/​client/​application/​hub/​view-models/​settings-learnings/​index.ts Uses the simplified repository workspace mapper.
hub/​client/​application/​hub/​view-models/​settings-learnings/​index.test.ts Replaces mock-store data with isolated fixtures.
hub/​client/​application/​hub/​view-models/​settings-copilot/​index.ts Deletes mock Copilot connection mapping.
hub/​client/​application/​hub/​view-models/​settings-canvas/​index.ts Deletes mock canvas connection mapping.
hub/​client/​application/​hub/​view-models/​settings-audit/​index.ts Deletes mock security audit mapping.
hub/​client/​application/​hub/​view-models/​settings-admins/​index.ts Deletes mock administrator list mapping.
hub/​client/​application/​hub/​view-models/​settings-administration/​index.ts Deletes shared mock administration mapping.
hub/​client/​application/​hub/​view-models/​settings-admin-confirmation/​index.ts Deletes mock role-change confirmation mapping.
hub/​client/​application/​hub/​view-models/​security-audit-page-data/​index.ts Updates audit links to the simplified path helper.
hub/​client/​application/​hub/​view-models/​resource-path/​index.ts Removes mock-scenario query propagation.
hub/​client/​application/​hub/​view-models/​resource-path/​index.test.ts Updates path tests for the simplified signature.
hub/​client/​application/​hub/​view-models/​repository-workspace/​index.ts Removes mock navigation and capability branches.
hub/​client/​application/​hub/​view-models/​repository-show-data/​index.ts Uses API capabilities and author identifiers.
hub/​client/​application/​hub/​view-models/​repository-show-data/​index.test.ts Removes the real-mode test option.
hub/​client/​application/​hub/​view-models/​prototype-workspace/​index.ts Simplifies prototype navigation and Build links.
hub/​client/​application/​hub/​view-models/​prototype-show-data/​index.ts Uses API sharing and branching decisions directly.
hub/​client/​application/​hub/​view-models/​prototype-show-data/​index.test.ts Updates tests for the mode-free mapper.
hub/​client/​application/​hub/​view-models/​product-sharing-settings-data/​index.ts Removes mock navigation and sign-out paths.
hub/​client/​application/​hub/​view-models/​product-share-links-data/​index.ts Removes mock-specific share-link mapping.
hub/​client/​application/​hub/​view-models/​product-new-data/​index.ts Simplifies API-backed creation page data.
hub/​client/​application/​hub/​view-models/​product-management-data/​index.ts Uses API metadata limits and registration paths.
hub/​client/​application/​hub/​view-models/​product-browse-data/​index.ts Removes mock template browsing branches.
hub/​client/​application/​hub/​view-models/​hub-workspace/​index.ts Updates workspace mapping calls.
hub/​client/​application/​hub/​view-models/​build-history-data/​index.ts Simplifies history links and sharing visibility.
hub/​client/​application/​hub/​view-models/​analytics-page-data/​index.ts Deletes the mock analytics adapter.
hub/​client/​application/​hub/​view-models/​administrators-page-data/​index.ts Simplifies administrator navigation links.
hub/​client/​application/​hub/​view-models/​administrator-confirmation-page-data/​index.ts Updates confirmation cancellation link generation.
hub/​client/​application/​hub/​use-workspace-repository-permissions/​index.ts Removes retired diagnostic reporting.
hub/​client/​application/​hub/​settings-contracts/​types.ts Deletes mock settings contract types.
hub/​client/​application/​hub/​session-contracts/​types.ts Deletes the simulated session type.
hub/​client/​application/​hub/​session-contracts/​index.ts Deletes the simulated session schema.
hub/​client/​application/​hub/​screens/​settings-route-screen/​index.tsx Deletes the mock settings screen dispatcher.
hub/​client/​application/​hub/​screens/​settings-public-screen/​index.tsx Deletes the mock public settings dispatcher.
hub/​client/​application/​hub/​screens/​repository-screen/​index.tsx Removes mode selection from repository rendering.
hub/​client/​application/​hub/​screens/​prototype-screen/​index.test.tsx Uses isolated review fixtures and HTTP doubles.
hub/​client/​application/​hub/​screens/​product-form-boundary/​index.tsx Removes simulated sign-out handling.
hub/​client/​application/​hub/​screens/​notifications-screen/​index.tsx Deletes the mock Inbox screen.
hub/​client/​application/​hub/​screens/​build-history-screen/​index.tsx Removes mode selection from history rendering.
hub/​client/​application/​hub/​routes/​workspace/​index.tsx Uses API session restoration and signed-in layout directly.
hub/​client/​application/​hub/​routes/​workspace-content/​index.tsx Simplifies authentication redirects and embedded errors.
hub/​client/​application/​hub/​routes/​ui-feedback.test.tsx Uses explicit fixtures for pending-navigation checks.
hub/​client/​application/​hub/​routes/​sign-in/​index.tsx Retains only the compatibility redirect.
hub/​client/​application/​hub/​routes/​settings-welcome/​index.tsx Removes mock Welcome loading and rendering.
hub/​client/​application/​hub/​routes/​settings-session-revocation-authorization/​index.tsx Updates cancellation link generation.
hub/​client/​application/​hub/​routes/​settings-routes.ts Removes mock-only settings route registrations.
hub/​client/​application/​hub/​routes/​settings-notifications/​index.tsx Always renders the API-backed Inbox.
hub/​client/​application/​hub/​routes/​settings-meta/​index.ts Deletes mock settings metadata generation.
hub/​client/​application/​hub/​routes/​settings-learnings/​index.tsx Removes unused search-parameter plumbing.
hub/​client/​application/​hub/​routes/​settings-learnings/​index.test.ts Uses isolated Learnings response fixtures.
hub/​client/​application/​hub/​routes/​settings-github/​index.tsx Deletes the legacy mock GitHub settings route.
hub/​client/​application/​hub/​routes/​settings-github-setup/​index.tsx Uses the standard sign-in destination.
hub/​client/​application/​hub/​routes/​settings-github-register/​index.tsx Deletes the mock registration route.
hub/​client/​application/​hub/​routes/​settings-github-installed/​index.tsx Deletes the mock installation route.
hub/​client/​application/​hub/​routes/​settings-enrollment/​index.tsx Deletes the mock enrollment route.
hub/​client/​application/​hub/​routes/​settings-copilot/​index.tsx Keeps only API-backed Copilot connection behavior.
hub/​client/​application/​hub/​routes/​settings-copilot-authorization/​index.tsx Simplifies post-authorization navigation.
hub/​client/​application/​hub/​routes/​settings-controller/​types.ts Deletes mock settings route data types.
hub/​client/​application/​hub/​routes/​settings-canvas/​index.tsx Retains the canvas compatibility redirect.
hub/​client/​application/​hub/​routes/​settings-canvas-approval/​index.tsx Retains the approval compatibility redirect.
hub/​client/​application/​hub/​routes/​settings-authorize/​index.tsx Deletes the mock authorization route.
hub/​client/​application/​hub/​routes/​settings-admins/​index.tsx Retains the administrator compatibility redirect.
hub/​client/​application/​hub/​routes/​settings-administrator-authorization/​index.tsx Simplifies administrator return links.
hub/​client/​application/​hub/​routes/​settings-admin-confirmation/​index.tsx Retains validated role-change compatibility redirects.
hub/​client/​application/​hub/​routes/​session/​index.tsx Deletes simulated sign-in and sign-out actions.
hub/​client/​application/​hub/​routes/​prototype/​index.test.ts Replaces MSW with a focused HTTP double.
hub/​client/​application/​hub/​routes/​product-sharing-settings/​index.tsx Removes the mapper’s mode argument.
hub/​client/​application/​hub/​routes/​product-share-links/​index.tsx Removes the mapper’s mode argument.
hub/​client/​application/​hub/​routes/​product-new/​index.tsx Always uses authorized Copilot handoff behavior.
hub/​client/​application/​hub/​routes/​product-browse/​index.tsx Removes mock bypasses from template preview behavior.
hub/​client/​application/​hub/​routes/​legacy-repository-settings/​index.tsx Always requests API navigation data.
hub/​client/​application/​hub/​routes/​home/​index.tsx Removes mode-specific home navigation mapping.
hub/​client/​application/​hub/​routes/​fixtures/​review-records/​index.ts Adds isolated review comment fixtures.
hub/​client/​application/​hub/​routes/​fixtures/​render-hub-flow/​workspace-component/​index.tsx Removes the old workspace test wrapper.
hub/​client/​application/​hub/​routes/​fixtures/​render-hub-flow/​root-component/​index.tsx Removes the mock-aware root test wrapper.
hub/​client/​application/​hub/​routes/​fixtures/​render-hub-flow/​repository-component/​index.tsx Removes the old repository test wrapper.
hub/​client/​application/​hub/​routes/​fixtures/​render-hub-flow/​read-test-route-parameter/​index.ts Removes the old route-parameter test helper.
hub/​client/​application/​hub/​routes/​fixtures/​render-hub-flow/​prototype-component/​index.tsx Removes the old prototype test wrapper.
hub/​client/​application/​hub/​routes/​fixtures/​render-hub-flow/​error-with-tools/​index.tsx Removes the toolbar-enabled error test wrapper.
hub/​client/​application/​hub/​routes/​fixtures/​render-hub-flow/​build-history-component/​index.tsx Removes the old history test wrapper.
hub/​client/​application/​hub/​routes/​fixtures/​preview-records/​index.ts Adds configurable prototype and Build fixtures.
hub/​client/​application/​hub/​routes/​fixtures/​preview-handlers/​index.ts Adds focused preview and history HTTP handlers.
hub/​client/​application/​hub/​routes/​fixtures/​empty-learnings/​index.ts Adds a minimal Learnings response fixture.
hub/​client/​application/​hub/​routes/​fixtures/​authenticated-workspace/​index.ts Adds authenticated session and workspace handlers.
hub/​client/​application/​hub/​routes/​development-controls.test.tsx Deletes retired toolbar behavior tests.
hub/​client/​application/​hub/​routes/​admin-enrollment/​index.tsx Removes mock enrollment redirection.
hub/​client/​application/​hub/​routes.ts Removes the simulated session route.
hub/​client/​application/​hub/​route-feedback/​stories.tsx Adds permission and API error examples.
hub/​client/​application/​hub/​root.tsx Removes mock session loading and development tools.
hub/​client/​application/​hub/​requests/​settings-request/​index.ts Deletes the mock settings request adapter.
hub/​client/​application/​hub/​requests/​request-json/​index.ts Removes mock API startup from requests.
hub/​client/​application/​hub/​requests/​request-json/​index.test.ts Uses HTTP doubles for error and cancellation checks.
hub/​client/​application/​hub/​requests/​repository-analytics/​index.ts Makes analytics event validation independent of mock contracts.
hub/​client/​application/​hub/​requests/​get-session/​index.ts Deletes the simulated session request.
hub/​client/​application/​hub/​requests/​get-security-audits/​index.test.ts Replaces MSW in audit pagination tests.
hub/​client/​application/​hub/​requests/​get-prototype/​index.ts Removes the mode guard for Inbox-origin requests.
hub/​client/​application/​hub/​requests/​get-prototype/​index.test.ts Uses isolated preview fixtures and request doubles.
hub/​client/​application/​hub/​requests/​get-current-hub-session/​index.test.ts Uses an HTTP double for ended-session coverage.
hub/​client/​application/​hub/​report-client-issue/​index.ts Deletes the retired diagnostic event helper.
hub/​client/​application/​hub/​read-route-identifier/​index.ts Deletes the numeric mock identifier helper.
hub/​client/​application/​hub/​product-contracts/​types.ts Removes the unused mock metadata type.
hub/​client/​application/​hub/​product-contracts/​index.ts Removes mock metadata input validation.
hub/​client/​application/​hub/​mocks/​store-error/​index.ts Deletes the mock store error class.
hub/​client/​application/​hub/​mocks/​start-mock-api/​index.ts Deletes service-worker mock API startup.
hub/​client/​application/​hub/​mocks/​review-seed.json Deletes routed mock review data.
hub/​client/​application/​hub/​mocks/​respond-mock/​index.ts Deletes simulated response scenarios.
hub/​client/​application/​hub/​mocks/​respond-mock-operation/​index.ts Deletes mock operation response handling.
hub/​client/​application/​hub/​mocks/​read-mock-json/​index.ts Deletes mock request-body parsing.
hub/​client/​application/​hub/​mocks/​parse-mock-record-identifier/​index.ts Deletes mock record identifier validation.
hub/​client/​application/​hub/​mocks/​parse-mock-query/​index.ts Deletes mock query parsing.
hub/​client/​application/​hub/​mocks/​parse-mock-identifier/​index.ts Deletes numeric mock identifier parsing.
hub/​client/​application/​hub/​mocks/​paginate-mock-records/​index.ts Deletes mock pagination logic.
hub/​client/​application/​hub/​mocks/​mock-toolbar/​styles.css Deletes test toolbar styles.
hub/​client/​application/​hub/​mocks/​mock-toolbar/​stories.tsx Deletes the retired toolbar story.
hub/​client/​application/​hub/​mocks/​flow-context/​types.ts Deletes shared mock flow types.
hub/​client/​application/​hub/​mocks/​diagnostics/​types.ts Deletes mock diagnostic types.
hub/​client/​application/​hub/​mocks/​diagnostics/​index.ts Deletes mock scenario and diagnostic state.
hub/​client/​application/​hub/​mocks/​create-review-store/​types.ts Deletes the mock review store type.
hub/​client/​application/​hub/​mocks/​create-mock-store/​types.ts Deletes mock store configuration types.
hub/​client/​application/​hub/​mocks/​create-mock-store/​index.test.ts Deletes simulated store tests.
hub/​client/​application/​hub/​mocks/​create-mock-session/​types.ts Deletes the mock session type.
hub/​client/​application/​hub/​mocks/​create-mock-session/​index.ts Deletes simulated identities and capabilities.
hub/​client/​application/​hub/​mocks/​create-mock-session/​index.test.ts Deletes simulated session tests.
hub/​client/​application/​hub/​mocks/​create-learnings-handlers/​index.ts Deletes mock Learnings HTTP handlers.
hub/​client/​application/​hub/​mocks/​create-fixture-seed/​index.ts Deletes generated routed mock datasets.
hub/​client/​application/​hub/​mocks/​create-fixture-build/​types.ts Deletes generated mock Build types.
hub/​client/​application/​hub/​mocks/​create-fixture-build/​index.ts Deletes the routed mock Build generator.
hub/​client/​application/​hub/​mocks/​create-fixture-build/​constants.ts Deletes mock Build generation constants.
hub/​client/​application/​hub/​mocks/​contracts/​types.ts Deletes mock profile and scenario types.
hub/​client/​application/​hub/​mocks/​contracts/​index.ts Deletes mock profile and scenario schemas.
hub/​client/​application/​hub/​mocks/​contracts/​constants.ts Deletes mock profile and scenario definitions.
hub/​client/​application/​hub/​mocks/​assets/​narrow.svg Deletes the mock mobile preview image.
hub/​client/​application/​hub/​mocks/​assets/​example.html Deletes the mock interactive preview page.
hub/​client/​application/​hub/​mocks/​assets/​desktop.svg Deletes the mock desktop preview image.
hub/​client/​application/​hub/​mocks/​assets/​controls.replica.json Deletes mock preview Controls configuration.
hub/​client/​application/​hub/​mocks/​assets-plugin.ts Deletes mock asset and service-worker serving.
hub/​client/​application/​hub/​hub-navigation/​index.tsx Removes mock sign-out and diagnostic handling.
hub/​client/​application/​hub/​development-tools/​index.tsx Deletes lazy loading of the mock toolbar.
hub/​client/​application/​hub/​create-review-transport/​index.test.tsx Removes mock-store-dependent reply recovery tests.
hub/​client/​application/​hub/​contracts/​types.ts Removes the mock prototype details type.
hub/​client/​application/​hub/​contracts/​index.ts Removes mock navigation and metadata schemas.
hub/​client/​application/​hub/​bootstrap-hub-api/​index.ts Deletes conditional mock API initialization.
hub/​client/​application/​hub/​bootstrap-hub-api/​index.test.ts Deletes mock startup lifecycle tests.
hub/​AGENTS.md Directs UI work to Storybook and contract tests.
CONTRIBUTING.md Replaces mock startup instructions with Storybook.

Review effort: Balanced (adaptive)

arniebradfo and others added 3 commits November 24, 2026 15:03
Show editable details without a saved conversation when review is unavailable. Keep Storybook form submissions local and apply gallery user filters without a backend.

Exercise pinned review links, live refresh, and Canvas aliases with production-shaped IDs and responses. Related to #355.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Give each sample prototype a unique ID and exercise both filter changes so cards from a previous user cannot linger in the gallery.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Match exact accessible names with regular expressions in the Storybook test runner.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@arniebradfo
arniebradfo requested an adaptive review from Copilot November 24, 2026 23:46
@arniebradfo
arniebradfo marked this pull request as ready for review November 24, 2026 23:46
@arniebradfo
arniebradfo requested review from a team and nshki as code owners November 24, 2026 23:46

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 workspace stories leave the account menu’s sign-out form unguarded, allowing submission to the Storybook host and navigation away from the preview.

1 open issue

Review effort: Balanced (adaptive)

Comment on lines +46 to +48
<HubWorkspace data={signedInWorkspace}>
<Story />
</HubWorkspace>
@arniebradfo
arniebradfo merged commit 31d517f into build/hub/new Nov 24, 2026
59 checks passed
@arniebradfo
arniebradfo deleted the hub/retire-routed-mock branch November 24, 2026 23:56
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