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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
refactor: reuse shared TabPills for the editorial mobile section switch (#1611)
[._.]/ Adam Eivy1788016dbed8
diff --git a/client/src/pages/PipelineEditorialChecks.jsx b/client/src/pages/PipelineEditorialChecks.jsxindex bff04a2aad..9063ad046a 100644--- a/client/src/pages/PipelineEditorialChecks.jsx+++ b/client/src/pages/PipelineEditorialChecks.jsx@@ -20,6 +20,7 @@ import EditorialCustomCheckForm from '../components/pipeline/editorial/Editorialimport EditorialFindingsTriage from '../components/pipeline/editorial/EditorialFindingsTriage';import EditorialHealthPanel from '../components/pipeline/editorial/EditorialHealthPanel';import ProviderModelSelector from '../components/ProviderModelSelector';+import TabPills from '../components/ui/TabPills';import { groupChecksByScope, normCategory } from '../lib/editorialChecks';import { usePipelineProgress } from '../hooks/usePipelineProgress';import useProviderModels from '../hooks/useProviderModels';@@ -538,31 +539,21 @@ export default function PipelineEditorialChecks() {<p className="flex items-center gap-2 text-sm text-gray-400"><Loader2 size={16} className="animate-spin" /> Loading checks…</p>) : (<div className="space-y-4">- {/* Below `lg` the two columns stack — this segmented switch picks which- one shows. Hidden on `lg+`, where both render side-by-side. */}- <div className="flex gap-1 rounded-lg border border-port-border p-1 lg:hidden" role="tablist" aria-label="Editorial sections">- <button- type="button"- role="tab"- aria-selected={mobileTab === 'catalog'}- onClick={() => setMobileTab('catalog')}- className={`flex-1 rounded px-3 py-1.5 text-xs font-medium transition-colors ${mobileTab === 'catalog' ? 'bg-port-accent text-white' : 'text-gray-400 hover:text-gray-200'}`}- >- Catalog- </button>- <button- type="button"- role="tab"- aria-selected={mobileTab === 'findings'}- onClick={() => setMobileTab('findings')}- className={`flex-1 rounded px-3 py-1.5 text-xs font-medium transition-colors ${mobileTab === 'findings' ? 'bg-port-accent text-white' : 'text-gray-400 hover:text-gray-200'}`}- >- Findings- </button>+ {/* Below `lg` the two columns stack — this switch picks which one+ shows. Hidden on `lg+`, where both render side-by-side. */}+ <div className="lg:hidden">+ <TabPills+ variant="pills"+ size="sm"+ ariaLabel="Editorial sections"+ tabs={[{ id: 'catalog', label: 'Catalog' }, { id: 'findings', label: 'Findings' }]}+ activeTab={mobileTab}+ onChange={setMobileTab}+ /></div><div className="grid gap-6 lg:grid-cols-2">{/* Catalog */}- <section className={`space-y-3 ${mobileTab === 'catalog' ? '' : 'hidden'} lg:block`}>+ <section className={`space-y-3 ${mobileTab !== 'catalog' ? 'hidden' : ''} lg:block`}><div className="flex items-center justify-between gap-2"><h2 className="text-sm font-semibold uppercase tracking-wide text-gray-400">Catalog</h2>{!formOpen ? (@@ -630,7 +621,7 @@ export default function PipelineEditorialChecks() {</section>{/* Findings */}- <section className={`space-y-3 ${mobileTab === 'findings' ? '' : 'hidden'} lg:block`}>+ <section className={`space-y-3 ${mobileTab !== 'findings' ? 'hidden' : ''} lg:block`}><h2 className="text-sm font-semibold uppercase tracking-wide text-gray-400">Findings</h2>{!seriesId ? (<p className="rounded-lg border border-dashed border-port-border p-4 text-center text-xs text-gray-500">Select a series to view its findings.</p>diff --git a/client/src/pages/PipelineEditorialChecks.responsive.test.jsx b/client/src/pages/PipelineEditorialChecks.responsive.test.jsxindex b11acdb30a..c8a07db0a5 100644--- a/client/src/pages/PipelineEditorialChecks.responsive.test.jsx+++ b/client/src/pages/PipelineEditorialChecks.responsive.test.jsx@@ -69,7 +69,9 @@ describe('PipelineEditorialChecks responsive switch (#1611)', () => {renderPage();const tablist = await screen.findByRole('tablist', { name: /editorial sections/i });- expect(tablist).toHaveClass('lg:hidden');+ // The switch (a shared TabPills) is wrapped in an `lg:hidden` div so it only+ // appears below the breakpoint where the two columns stack.+ expect(tablist.parentElement).toHaveClass('lg:hidden');const catalogTab = screen.getByRole('tab', { name: 'Catalog' });const findingsTab = screen.getByRole('tab', { name: 'Findings' });