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
const readiness = repositoryReadiness(selectedRepository); const revision = report?.source.actual_revision || selectedRepository.latest_revision
- return {selectedRepository.provider} repository · {selectedRepository.private ? 'private' : 'public'}{selectedRepository.full_name}
{selectedRepository.description || 'No repository description provided.'}
{selectedRepository.default_branch}{shortRevision(revision)}{stateLabel(selectedRepository.state)}
{report?.health_score ?? selectedRepository.last_scan_health ?? '—'}health score{report?.release_readiness ?? readinessLabel(readiness)}
Reports
More
{error && {error}
}{notice && {notice}
}{activeJob && {activeJob.message || 'Analysis in progress'}{activeJob.phase.replaceAll('_', ' ')} · {activeJob.progress}%
}{advancedOpen && Advanced repository info
Identity and policy
Provider ID{selectedRepository.provider_repository_id}Visibility{selectedRepository.private ? 'Private' : 'Public'}Auto scan{selectedRepository.policy.auto_scan ? 'Enabled' : 'Disabled'}Minimum health{selectedRepository.policy.min_health_score}Latest revision{shortRevision(selectedRepository.latest_revision)}Catalog sync{formatDate(selectedRepository.last_synced_at)}
}{selectedDetailsLoading ? : report ? {currentView === 'overview' && }{currentView === 'architecture' && }{currentView === 'hotspots' && }{currentView === 'dependencies' && }{currentView === 'findings' && }{currentView === 'history' && }{currentView === 'scans' && void selectScan(summary)} />} : Ready to analyze{selectedRepository.full_name} has no persisted scan yet.
RepoPulse will fetch the default branch, pin the exact commit, analyze it in an isolated worktree and retain the report by revision.
{selectedRepository.private ? 'Private' : 'Public'}{selectedRepository.default_branch}{shortRevision(selectedRepository.latest_revision)}
}
+ return {selectedRepository.provider} repository · {selectedRepository.private ? 'private' : 'public'}{selectedRepository.full_name}
{selectedRepository.description || 'No repository description provided.'}
{selectedRepository.default_branch}{shortRevision(revision)}{stateLabel(selectedRepository.state)}
{report?.health_score ?? selectedRepository.last_scan_health ?? '—'}health score{report?.release_readiness ?? readinessLabel(readiness)}
Reports
More
{error && {error}
}{notice && {notice}
}{activeJob && {activeJob.message || 'Analysis in progress'}{activeJob.phase.replaceAll('_', ' ')} · {activeJob.progress}%
}{advancedOpen && Advanced repository info
Identity and policy
Provider ID{selectedRepository.provider_repository_id}Visibility{selectedRepository.private ? 'Private' : 'Public'}Auto scan{selectedRepository.policy.auto_scan ? 'Enabled' : 'Disabled'}Minimum health{selectedRepository.policy.min_health_score}Latest revision{shortRevision(selectedRepository.latest_revision)}Catalog sync{formatDate(selectedRepository.last_synced_at)}
}{selectedDetailsLoading ? : report ? {currentView === 'overview' && }{currentView === 'architecture' && Loading architecture view…}>}{currentView === 'hotspots' && }{currentView === 'dependencies' && }{currentView === 'findings' && }{currentView === 'history' && }{currentView === 'scans' && void selectScan(summary)} />} : Ready to analyze{selectedRepository.full_name} has no persisted scan yet.
RepoPulse will fetch the default branch, pin the exact commit, analyze it in an isolated worktree and retain the report by revision.
{selectedRepository.private ? 'Private' : 'Public'}{selectedRepository.default_branch}{shortRevision(selectedRepository.latest_revision)}
}
}
const renderActivityPage = () => { const activity = [...repositories].filter((repository) => repository.last_scan_at || repository.state === 'scanning' || repository.state === 'queued').sort((left, right) => (Date.parse(right.last_scan_at ?? '') || 0) - (Date.parse(left.last_scan_at ?? '') || 0)); return Operational timelineActivity
A visual event feed derived from actual catalog state and persisted scan activity.
Catalog{repositories.length}
Current{repositories.filter((repository) => repository.state === 'current').length}
Needs attention{repositories.filter((repository) => repositoryReadiness(repository) !== 'ready').length}
Latest scan{activity[0] ? formatRelativeDate(activity[0].last_scan_at) : '—'}
Latest changes
Repository activity
Each event opens its repository workspace. {activity.length ? activity.slice(0, 30).map((repository) => ) : No activity yet
Scan a repository to start building its operational timeline.
} }
diff --git a/frontend/src/components/DashboardView.test.tsx b/frontend/src/components/DashboardView.test.tsx
index c339ffe..0944be4 100644
--- a/frontend/src/components/DashboardView.test.tsx
+++ b/frontend/src/components/DashboardView.test.tsx
@@ -18,7 +18,8 @@ describe('DashboardView', () => {
render()
- expect(screen.getByRole('heading', { name: '80/100 portfolio signal' })).toBeTruthy()
+ expect(screen.getByRole('heading', { name: 'Dashboard' })).toBeTruthy()
+ expect(screen.queryByText(/portfolio signal/i)).toBeNull()
expect(screen.getByText('Why attention is needed')).toBeTruthy()
expect(screen.getByRole('heading', { name: 'Remediation Center' })).toBeTruthy()
expect(screen.getAllByText('No lockfile was retained for the declared dependencies.')).toHaveLength(2)
diff --git a/frontend/src/components/DashboardView.tsx b/frontend/src/components/DashboardView.tsx
index 5b0ce92..91597c9 100644
--- a/frontend/src/components/DashboardView.tsx
+++ b/frontend/src/components/DashboardView.tsx
@@ -56,23 +56,14 @@ export function DashboardView({ repositories, pinnedIds, onOpenRepository, onExp
result[repositoryReadiness(repository)] += 1
return result
}, { ready: 0, warnings: 0, blocked: 0 })
- const scored = portfolio.filter((repository) => repository.last_scan_health != null)
- const averageHealth = scored.length ? Math.round(scored.reduce((sum, repository) => sum + (repository.last_scan_health ?? 0), 0) / scored.length) : 0
const attention = [...portfolio].filter((repository) => repositoryReadiness(repository) !== 'ready').sort((left, right) => triagePriority(right) - triagePriority(left) || (left.last_scan_health ?? -1) - (right.last_scan_health ?? -1) || (Date.parse(right.last_scan_at ?? '') || 0) - (Date.parse(left.last_scan_at ?? '') || 0)).slice(0, 5)
const recent = [...portfolio].filter((repository) => repository.last_scan_at).sort((left, right) => (Date.parse(right.last_scan_at ?? '') || 0) - (Date.parse(left.last_scan_at ?? '') || 0)).slice(0, 4)
const pinned = pinnedIds.map((id) => portfolio.find((repository) => repository.id === id)).filter((repository): repository is RepositorySummary => Boolean(repository)).slice(0, 3)
- const stale = portfolio.filter((repository) => repository.stale).length
const nextRepository = attention[0] ?? recent[0]
- const improved = portfolio.filter((repository) => repository.last_scan_resolved_findings > repository.last_scan_added_findings || (repository.last_scan_health_delta ?? 0) > 0).length
- const regressed = portfolio.filter((repository) => repository.last_scan_added_findings > 0 || (repository.last_scan_health_delta ?? 0) < 0).length
return (
-
+ Dashboard