teqo-backup/src/lib/campaignQuickActionContext.ts
Cursor Agent 490d5deeb7
B109 — bottom drawer: fullscreen search, wider labels, exclude current entity
- Add QUICK_ACTIONS_SNAP_FULL; drawer expands on search focus and hides action strip
- Tighten dock bottom gap; restore dock/collapsed on blur per scroll position (B100)
- Widen CampaignHomeActionButton to w-[5.5rem] for two-line labels
- Client-side filter excludes current page entity from drawer search hits
- Unit + e2e coverage for full snap, exclusion, and label readability
2026-08-01 20:38:10 +00:00

15 lines
455 B
TypeScript

/**
* Client-safe quick-action context — routes and B80+ providers fill this so
* `resolveQuickActionsForPath` can prefill wizard/list hrefs.
*/
export type CampaignQuickActionContext = {
municipalitySlug?: string
municipalityId?: number
leadershipId?: number
organizationSlug?: string
activitySlug?: string
demandSlug?: string
advisorId?: number
}
export const emptyCampaignQuickActionContext = (): CampaignQuickActionContext => ({})