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
feat: add filed-by filter option on app issues page
[._.]/ Adam Eivycc010441e466
diff --git a/client/src/components/apps/tabs/IssuesTab.jsx b/client/src/components/apps/tabs/IssuesTab.jsxindex 0d6716f6c3..fb78e004aa 100644--- a/client/src/components/apps/tabs/IssuesTab.jsx+++ b/client/src/components/apps/tabs/IssuesTab.jsx@@ -228,12 +228,14 @@ function LabelFilterChip({ facet, hidden, onToggle }) {*/export default function IssuesTab({ appId, appName }) {const searchId = useId();+ const filedById = useId();const overrideContextId = useId();const [data, setData] = useState(null);const [loading, setLoading] = useState(true);const [error, setError] = useState('');const [query, setQuery] = useState('');const [unassignedOnly, setUnassignedOnly] = useState(false);+ const [filedBy, setFiledBy] = useState('');// Exclude mode tracks labels to hide (a later refresh's new label stays// visible). Include mode — entered by Hide all labels — tracks labels to// keep, so turning `critical` back on lists every issue that carries it,@@ -296,6 +298,7 @@ export default function IssuesTab({ appId, appName }) {setOverrideContext('');setLabelFilter(defaultLabelFilter());setUnassignedOnly(false);+ setFiledBy('');}, [appId]);const applyTaskUpdate = useCallback((task) => {@@ -393,15 +396,24 @@ export default function IssuesTab({ appId, appName }) {return [...byName.values()].sort((a, b) => a.name.localeCompare(b.name));}, [data]);+ const authorOptions = useMemo(() => {+ const authors = new Set();+ for (const issue of data?.issues || []) {+ if (issue.author) authors.add(issue.author);+ }+ return [...authors].sort((a, b) => a.localeCompare(b));+ }, [data]);+const issues = useMemo(() => {const q = query.trim().toLowerCase();const rows = haystacks.filter(h =>issuePassesLabelFilter(h.issue, labelFilter)&& (!unassignedOnly || h.issue.assignees.length === 0)+ && (!filedBy || h.issue.author === filedBy)&& (!q || h.hay.includes(q)));return rows.map(h => h.issue);- }, [haystacks, query, labelFilter, unassignedOnly]);+ }, [haystacks, query, labelFilter, unassignedOnly, filedBy]);const total = data?.issues?.length ?? 0;// Only labels actually on this tracker count as "filtering something" — the@@ -520,6 +532,23 @@ export default function IssuesTab({ appId, appName }) {><User size={13} /> Unassigned only</button>+ <div className="flex items-center gap-1.5">+ <label htmlFor={filedById} className="text-xs text-gray-400 shrink-0">+ Filed by+ </label>+ <select+ id={filedById}+ aria-label="Filed by"+ value={filedBy}+ onChange={e => setFiledBy(e.target.value)}+ className="px-2.5 py-1.5 bg-port-bg border border-port-border rounded-lg text-xs text-white focus:border-port-accent focus:outline-hidden"+ >+ <option value="">All</option>+ {authorOptions.map(author => (+ <option key={author} value={author}>{author}</option>+ ))}+ </select>+ </div><div className="relative ml-auto"><label htmlFor={searchId} className="sr-only">Filter issues</label><Search size={14} className="absolute left-2.5 top-1/2 -translate-y-1/2 text-gray-500" />@@ -697,9 +726,13 @@ export default function IssuesTab({ appId, appName }) {<div className="px-3 py-2 text-sm text-gray-500 bg-port-card border border-port-border rounded-lg">{query.trim()? <>No open issues match “{query}”{hidingByLabel ? ' with the current label filters' : ''}.</>- : unassignedOnly- ? <>No unassigned open issues{hidingByLabel ? ' match the current label filters' : ''}.</>- : 'No open issues match the current label filters.'}+ : unassignedOnly && filedBy+ ? <>No unassigned open issues filed by {filedBy}{hidingByLabel ? ' match the current label filters' : ''}.</>+ : unassignedOnly+ ? <>No unassigned open issues{hidingByLabel ? ' match the current label filters' : ''}.</>+ : filedBy+ ? <>No open issues filed by {filedBy}{hidingByLabel ? ' match the current label filters' : ''}.</>+ : 'No open issues match the current label filters.'}</div>)}diff --git a/client/src/components/apps/tabs/IssuesTab.test.jsx b/client/src/components/apps/tabs/IssuesTab.test.jsxindex f67cf941a1..d3792af37f 100644--- a/client/src/components/apps/tabs/IssuesTab.test.jsx+++ b/client/src/components/apps/tabs/IssuesTab.test.jsx@@ -466,6 +466,48 @@ describe('IssuesTab', () => {expect(await screen.findByText('Crash on save')).toBeInTheDocument();});+ it('filters issues by the selected filed-by author and restores all when cleared', async () => {+ api.getAppIssues.mockResolvedValue(okPayload([+ { ...ISSUE, number: 42, title: 'Crash on save', author: 'carol' },+ { ...ISSUE, number: 43, title: 'Add CSV export', author: 'alice' },+ { ...ISSUE, number: 44, title: 'Fix styling', author: 'bob' },+ ]));+ await renderTab();++ await screen.findByText('Crash on save');+ const filedBySelect = screen.getByLabelText('Filed by');+ expect(filedBySelect).toHaveValue('');++ // Authors are ordered alphabetically with 'All' first+ const options = Array.from(filedBySelect.querySelectorAll('option')).map(o => ({ value: o.value, text: o.textContent }));+ expect(options).toEqual([+ { value: '', text: 'All' },+ { value: 'alice', text: 'alice' },+ { value: 'bob', text: 'bob' },+ { value: 'carol', text: 'carol' },+ ]);++ // Select alice+ fireEvent.change(filedBySelect, { target: { value: 'alice' } });+ expect(await screen.findByText('Add CSV export')).toBeInTheDocument();+ expect(screen.queryByText('Crash on save')).not.toBeInTheDocument();+ expect(screen.queryByText('Fix styling')).not.toBeInTheDocument();+ expect(screen.getByText('1 of 3 open')).toBeInTheDocument();++ // Select bob+ fireEvent.change(filedBySelect, { target: { value: 'bob' } });+ expect(await screen.findByText('Fix styling')).toBeInTheDocument();+ expect(screen.queryByText('Add CSV export')).not.toBeInTheDocument();+ expect(screen.queryByText('Crash on save')).not.toBeInTheDocument();++ // Reset back to All+ fireEvent.change(filedBySelect, { target: { value: '' } });+ expect(await screen.findByText('Crash on save')).toBeInTheDocument();+ expect(screen.getByText('Add CSV export')).toBeInTheDocument();+ expect(screen.getByText('Fix styling')).toBeInTheDocument();+ expect(screen.getByText('3 open')).toBeInTheDocument();+ });+it('hides in-progress issues by default and lists them once the chip is toggled on', async () => {api.getAppIssues.mockResolvedValue(okPayload([ISSUE,@@ -624,11 +666,12 @@ describe('IssuesTab', () => {expect(hidden.className).toContain('line-through');});- it('resets label and assignee filters when the app changes', async () => {+ it('resets label, assignee, and filed-by filters when the app changes', async () => {const inProgress = {...ISSUE,number: 43,title: 'Being worked right now',+ author: 'alice',labels: [{ name: 'in-progress', color: '#0e8a16', description: '' }],};api.getAppIssues.mockResolvedValue(okPayload([ISSUE, inProgress]));@@ -637,6 +680,8 @@ describe('IssuesTab', () => {fireEvent.click(await screen.findByRole('button', { name: /in-progress/ }));expect(await screen.findByText('Being worked right now')).toBeInTheDocument();fireEvent.click(screen.getByRole('button', { name: 'Unassigned only' }));+ fireEvent.change(screen.getByLabelText('Filed by'), { target: { value: 'alice' } });+ expect(screen.getByLabelText('Filed by')).toHaveValue('alice');rerender(<MemoryRouter>@@ -647,6 +692,7 @@ describe('IssuesTab', () => {await waitFor(() => expect(screen.queryByText('Being worked right now')).not.toBeInTheDocument());expect(screen.getByRole('button', { name: 'Unassigned only' })).toHaveAttribute('aria-pressed', 'false');+ expect(screen.getByLabelText('Filed by')).toHaveValue('');});it('ignores a stale in-flight response when the app changes mid-request', async () => {