diff --git a/PUBLIC_SOURCE_EXPORT.md b/PUBLIC_SOURCE_EXPORT.md index efad914..ddf3d5f 100644 --- a/PUBLIC_SOURCE_EXPORT.md +++ b/PUBLIC_SOURCE_EXPORT.md @@ -1,3 +1,3 @@ # Public source export -This source snapshot was generated from the private canonical repository at revision `8289b14839a3a15821f740964de132664f655ee2`. It contains no private Git history or operational evidence. Changes are published from the canonical repository. +This source snapshot was generated from the private canonical repository at revision `b1c0935a15f5b37e107c7e8764044711415f14e1`. It contains no private Git history or operational evidence. Changes are published from the canonical repository. diff --git a/PUBLIC_SOURCE_MANIFEST.json b/PUBLIC_SOURCE_MANIFEST.json index 8770307..be32d30 100644 --- a/PUBLIC_SOURCE_MANIFEST.json +++ b/PUBLIC_SOURCE_MANIFEST.json @@ -1,6 +1,6 @@ { "schemaVersion": 1, - "sourceRevision": "8289b14839a3a15821f740964de132664f655ee2", + "sourceRevision": "b1c0935a15f5b37e107c7e8764044711415f14e1", "files": [ { "path": ".dockerignore", @@ -229,8 +229,8 @@ }, { "path": "frontend/e2e/repopulse.spec.ts", - "sha256": "cf68a95b29709c55986600665ba00589a44a979ce10cb2f04bac824e4a01909a", - "bytes": 2770 + "sha256": "59e570c786e92b7f1a4cd5c33889cdaf8a20d6a8c5a5630498b3e49c5bda8129", + "bytes": 2776 }, { "path": "frontend/e2e/start-vite.mjs", @@ -299,8 +299,8 @@ }, { "path": "frontend/src/App.tsx", - "sha256": "dcc4fce53c8ffe11c042994126b7d6fc79bbc35ff96d81967b0e4fa5ba4d2a6a", - "bytes": 46436 + "sha256": "ff1d4c047772383148bc7a82a762fb5822ea1bfdb8814d97dfc0e980903f7fa3", + "bytes": 46711 }, { "path": "frontend/src/FindingsView.test.tsx", @@ -344,13 +344,13 @@ }, { "path": "frontend/src/components/DashboardView.test.tsx", - "sha256": "7a159a972434a28970516a13ec39a3a094ea45c3611f3e2f2cba53d9d9a9b7e2", - "bytes": 2372 + "sha256": "888a84291cadbf1217007d723d58f96939031fe96edbc46aa9342db2bff8432e", + "bytes": 2421 }, { "path": "frontend/src/components/DashboardView.tsx", - "sha256": "1c5f054040d322ee7bf291ef3b26da1ff9ead2e069acd384bff84ed7d6c2b573", - "bytes": 10901 + "sha256": "d5992db6a78aa4ec5f69220bdb4ccc0f964d5180112a0a772e750322ead883a6", + "bytes": 9042 }, { "path": "frontend/src/components/DependenciesView.tsx", @@ -379,8 +379,8 @@ }, { "path": "frontend/src/components/PortfolioAtlas.test.tsx", - "sha256": "00f862a4cd6e1086ed6b80dd04f5fb45f489e8820be0857eb8ba5fd869bb6844", - "bytes": 1227 + "sha256": "9c3d3b01576e0e2f1cca9f23c1775e4c59790744af897010ae2f17648475fc53", + "bytes": 1305 }, { "path": "frontend/src/components/PortfolioAtlas.tsx", @@ -424,8 +424,8 @@ }, { "path": "frontend/src/styles.css", - "sha256": "a26702bd17aa0db2f06fad0575976499677aaabc857c7f7d680475c3409a6a52", - "bytes": 97005 + "sha256": "93418ab9fa63bde731c390890a17c1494cae0c96f383423c6160c25d74650a43", + "bytes": 92024 }, { "path": "frontend/src/test-fixtures.ts", diff --git a/frontend/e2e/repopulse.spec.ts b/frontend/e2e/repopulse.spec.ts index 9d5b759..e8e5be5 100644 --- a/frontend/e2e/repopulse.spec.ts +++ b/frontend/e2e/repopulse.spec.ts @@ -2,7 +2,7 @@ import { expect, test } from '@playwright/test' test('portfolio workflow covers navigation, remediation, a scan lifecycle and export', async ({ page }) => { await page.goto('/') - await expect(page.getByRole('heading', { name: /portfolio signal/i })).toBeVisible() + await expect(page.getByRole('heading', { name: 'Why attention is needed' })).toBeVisible() await expect(page.getByRole('heading', { name: 'Remediation Center' })).toBeVisible() await expect(page.getByText('A deterministic package-manager lockfile was not found for this workspace.')).toBeVisible() await page.locator('.remediation-center').getByRole('button', { name: /Jens\/Alpha/ }).click() diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index b89cb2d..ddcd153 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -1,8 +1,7 @@ -import { type FormEvent, useCallback, useEffect, useMemo, useRef, useState } from 'react' +import { type FormEvent, lazy, Suspense, useCallback, useEffect, useMemo, useRef, useState } from 'react' import { api, type AppMeta, type RepositorySummary, type ScanComparison, type ScanJob, type ScanReport, type ScanSummary, type TrendPoint } from './api' import { filterRepositories, orderSwitcherRepositories, paginateRepositories, readinessLabel, repositoryReadiness, sortRepositories, stateLabel, type CatalogFilters, type CatalogSort, type CatalogSortKey, type Readiness } from './catalog' -import { ArchitectureView } from './components/ArchitectureView' import { BrandLockup, BrandMark } from './components/Brand' import { DashboardView } from './components/DashboardView' import { DependenciesView } from './components/DependenciesView' @@ -14,6 +13,9 @@ import { RepositoryVisual } from './components/RepositoryVisual' import { ScanRunsView } from './components/ScanRunsView' import { DETAIL_VIEWS, parseRoute, routePath, type DetailView, type Route } from './navigation' +// React Flow is only needed on the Architecture tab; keep it out of the initial bundle. +const ArchitectureView = lazy(() => import('./components/ArchitectureView').then((module) => ({ default: module.ArchitectureView }))) + const ACTIVE_JOB_STATES: ScanJob['status'][] = ['queued', 'acquiring_source', 'scanning', 'analyzing', 'persisting'] const PINNED_STORAGE_KEY = 'repopulse:pinned-repositories' const RECENT_STORAGE_KEY = 'repopulse:recent-repositories' @@ -168,7 +170,7 @@ export default function App() { const renderDetailPage = () => { if (!selectedRepository) return

This repository is not in the current catalog.

It may have been archived, removed or the link may be stale.

handleNavigation(event, { page: 'repositories' })}>Back to repositories
const readiness = repositoryReadiness(selectedRepository); const revision = report?.source.actual_revision || selectedRepository.latest_revision - return
handleNavigation(event, { page: 'repositories' })}>Repository explorer
{selectedRepository.provider} repository · {selectedRepository.private ? 'private' : 'public'}

{selectedRepository.full_name}

{selectedRepository.description || 'No repository description provided.'}

{selectedRepository.default_branch}{shortRevision(revision)}