Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: style quality actions as buttons and add table cell padding

Adam Eivy7dc1bf2314f2
diff --git a/client/src/components/apps/AppQuality.jsx b/client/src/components/apps/AppQuality.jsx
index 742fb7ef93..a15e470a51 100644
--- a/client/src/components/apps/AppQuality.jsx
+++ b/client/src/components/apps/AppQuality.jsx
@@ -83,11 +83,30 @@ export default function AppQuality({ app, detail = false }) {
: 'No audit assessment has been saved. Completed maintenance tasks only supply a score when they return a valid quality report. Earlier runs are not scored retroactively; run a scheduled audit to collect an assessment.'}
</p>
)}
- <div className="flex flex-wrap items-center gap-4 text-sm text-port-accent"><Link to="/cos/schedule" className="hover:underline">Scheduled audit runners</Link><Link to="/cos/agents" className="hover:underline">View agents</Link>{app.publishQualitySnapshot === true && (
- <button type="button" onClick={publishSnapshot} disabled={publishing} className="hover:underline disabled:opacity-40 disabled:no-underline">
- {publishing ? 'Publishing snapshot…' : 'Publish snapshot now'}
- </button>
- )}</div>
+ <div className="flex flex-wrap items-center gap-2">
+ <Link
+ to="/cos/schedule"
+ className="inline-flex items-center rounded border border-port-border bg-port-bg/60 px-2.5 py-1.5 text-xs font-medium text-gray-200 transition-colors hover:border-port-accent hover:text-white"
+ >
+ Scheduled audit runners
+ </Link>
+ <Link
+ to="/cos/agents"
+ className="inline-flex items-center rounded border border-port-border bg-port-bg/60 px-2.5 py-1.5 text-xs font-medium text-gray-200 transition-colors hover:border-port-accent hover:text-white"
+ >
+ View agents
+ </Link>
+ {app.publishQualitySnapshot === true && (
+ <button
+ type="button"
+ onClick={publishSnapshot}
+ disabled={publishing}
+ className="inline-flex items-center rounded border border-port-accent bg-port-accent/15 px-2.5 py-1.5 text-xs font-medium text-port-accent transition-colors hover:bg-port-accent/25 disabled:opacity-40 disabled:cursor-not-allowed"
+ >
+ {publishing ? 'Publishing snapshot…' : 'Publish snapshot now'}
+ </button>
+ )}
+ </div>
<div className="grid grid-cols-1 xl:grid-cols-2 gap-5 items-start">
<div className="min-w-0 space-y-4">
{!selectedCategory && runner}
@@ -97,12 +116,18 @@ export default function AppQuality({ app, detail = false }) {
<section aria-label="Category breakdown" className="min-w-0">
<h4 className="text-sm font-medium mb-2">Category breakdown</h4>
<table className="w-full text-sm text-left">
- <thead className="text-gray-400 sticky top-0 bg-port-card"><tr><th className="py-2 pr-3">Category</th><th className="pr-3">Score</th><th>Evidence</th></tr></thead>
+ <thead className="text-gray-400 sticky top-0 bg-port-card">
+ <tr>
+ <th className="py-2 px-3">Category</th>
+ <th className="py-2 px-3">Score</th>
+ <th className="py-2 px-3">Evidence</th>
+ </tr>
+ </thead>
<tbody>{sortedCategories.map(category => (
<Fragment key={category.id}><tr className={`border-t border-port-border align-top${score != null && category.score != null && category.coverage !== 'not-applicable' && category.score < score ? ' bg-port-warning/10' : ''}`}>
- <th scope="row" className="py-2 pr-3 font-medium">{category.label}<Link className="block text-xs font-normal text-port-accent hover:underline" to={`/cos/schedule?task=${encodeURIComponent(category.id)}`} aria-label={`${category.label} runner`}>Runner settings</Link></th>
- <td className="py-2 pr-3 whitespace-nowrap">{category.score == null ? '—' : `${category.score}/100`}</td>
- <td className="py-2 text-xs text-gray-400">
+ <th scope="row" className="py-2.5 px-3 font-medium">{category.label}<Link className="block text-xs font-normal text-port-accent hover:underline" to={`/cos/schedule?task=${encodeURIComponent(category.id)}`} aria-label={`${category.label} runner`}>Runner settings</Link></th>
+ <td className="py-2.5 px-3 whitespace-nowrap">{category.score == null ? '—' : `${category.score}/100`}</td>
+ <td className="py-2.5 px-3 text-xs text-gray-400">
<div>{category.stale ? 'Stale · ' : ''}{category.coverage}{category.confidence && ` · ${category.confidence} confidence`}
{category.assessedAt && ` · ${formatDateShort(category.assessedAt)}`}</div>
<Link to={runnerLink(category.id)} aria-label={`Configure and run ${category.label}`} className="mt-2 inline-flex items-center rounded border border-port-accent bg-port-accent/15 px-2.5 py-1.5 text-xs font-medium text-port-accent transition-colors hover:bg-port-accent/25">Configure and run</Link>
@@ -118,7 +143,7 @@ export default function AppQuality({ app, detail = false }) {
{!category.sourcePeerId && category.agentId && <Link className="mt-2 inline-flex items-center rounded border border-port-border bg-port-bg/40 px-2.5 py-1.5 text-xs font-medium text-port-text-muted transition-colors hover:border-port-accent/60 hover:text-port-accent" to={`/cos/agents/${category.agentId}`} aria-label={`View audit run for ${category.label}`}>View audit run</Link>}
</td>
</tr>
- {selectedCategory?.id === category.id && <tr><td colSpan={3} className="pb-3">
+ {selectedCategory?.id === category.id && <tr><td colSpan={3} className="px-3 pb-3">
{runner}
</td></tr>}
</Fragment>
diff --git a/client/src/components/apps/AppQuality.test.jsx b/client/src/components/apps/AppQuality.test.jsx
index a42131c187..95f7728069 100644
--- a/client/src/components/apps/AppQuality.test.jsx
+++ b/client/src/components/apps/AppQuality.test.jsx
@@ -61,14 +61,18 @@ it('identifies federated evidence and incomplete scores without linking to a loc
expect(screen.queryByRole('link', { name: 'Audit run' })).not.toBeInTheDocument();
});
-it('makes the category actions look like distinct clickable controls', async () => {
- const app = { id: 'example', quality: { categories: [
+it('makes the category actions and header navigation look like distinct clickable controls', async () => {
+ const app = { id: 'example', publishQualitySnapshot: true, quality: { categories: [
{ id: 'security', label: 'Security', score: 80, coverage: 'broad', confidence: 'high', agentId: 'run-1' },
] } };
render(<MemoryRouter><AppQuality app={app} detail /></MemoryRouter>);
await screen.findByText(/No scored assessments/);
+ expect(screen.getByRole('link', { name: 'Scheduled audit runners' })).toHaveClass('inline-flex', 'border', 'rounded');
+ expect(screen.getByRole('link', { name: 'View agents' })).toHaveClass('inline-flex', 'border', 'rounded');
+ expect(screen.getByRole('button', { name: 'Publish snapshot now' })).toHaveClass('inline-flex', 'border', 'rounded');
expect(screen.getByRole('link', { name: 'Configure and run Security' })).toHaveClass('inline-flex', 'bg-port-accent/15', 'border', 'rounded');
expect(screen.getByRole('link', { name: 'View audit run for Security' })).toHaveClass('inline-flex', 'border', 'bg-port-bg/40', 'rounded');
+ expect(screen.getByRole('rowheader', { name: /Security/ })).toHaveClass('px-3', 'py-2.5');
});
it('orders the category breakdown from lowest score to highest, with unscored categories last', async () => {