You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Citations: Export CSV is silently disabled on the Competitor Gaps and Source Types tabs #601
On the Citations page, the "Export CSV" button silently greys out when the Competitor Gaps or Source Types tab is active — no tooltip, no hint. To a user it just looks broken. The export handler only implements the domains and urls branches.
Evidence
Disabled with no explanation: citations/page.tsx#L1015-L1028 — disabled={isExporting || sourceTab === 'gaps' || sourceTab === 'types' || isLoading}
Handler branches only for domains/urls: #L944-L966
Gap rows are flat and already capped at 100 server-side, so exporting them is straightforward: citations.ts#L472 (GAP_MAX_ROWS), #L626-L636
Preferred: implement a gaps export branch (domain, competitor citation counts, your citation count — the rows are already flat), following the existing domains branch and the ansvisor_${slug}_citations_..._${date}.csv naming. Where export genuinely doesn't apply (e.g. Source Types), wrap the disabled button in a tooltip explaining why instead of greying out silently.
Acceptance criteria
On the Competitor Gaps tab, Export CSV either works or clearly explains why it's unavailable.
On the Source Types tab, the disabled button has an explanatory tooltip.
Activity