feat: wizard step indicator, wider dialog, campaigns in admin sidebar, clear leads shortcut

- Import wizard: added step indicator (numbered circles), widened to max-w-5xl
- Admin sidebar: added Marketing → Campaigns nav link
- Clear campaign leads: Ctrl+Shift+C shortcut with campaign picker modal (test-only)
- Test CSV data for all 3 campaigns
- Defect fixing plan + CSV import spec docs
- Session memory update

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-31 12:45:05 +05:30
parent d9e2bedc1b
commit 7af1ccb713
9 changed files with 963 additions and 2 deletions

View File

@@ -27,6 +27,11 @@ const MAINT_ACTIONS: Record<string, MaintAction> = {
label: 'Fix Timestamps',
description: 'Correct call timestamps that were stored with IST double-offset.',
},
clearCampaignLeads: {
endpoint: '__client__clear-campaign-leads',
label: 'Clear Campaign Leads',
description: 'Delete all imported leads from a selected campaign. For testing only.',
},
};
export const useMaintShortcuts = () => {
@@ -61,6 +66,10 @@ export const useMaintShortcuts = () => {
e.preventDefault();
openAction(MAINT_ACTIONS.fixTimestamps);
}
if (e.ctrlKey && e.shiftKey && e.key === 'C') {
e.preventDefault();
openAction(MAINT_ACTIONS.clearCampaignLeads);
}
};
window.addEventListener('keydown', handler);