mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-30 00:07:09 -05:00
Add hover preview cards
Adds hover-preview UX by introducing preview cards for entities and wiring hoverable links: - Implements CompanyPreviewCard and ParkPreviewCard components plus hooks to fetch preview data - Adds HoverCard usage to ParkDetail and RideDetail for operator, manufacturer, and designer links - Creates preview wrappers for manufacturer/designer/operator links and updates related pages to use hover previews - Includes supporting updates to query keys and preview hooks to fetch minimal data for previews
This commit is contained in:
@@ -106,6 +106,11 @@ export const queryKeys = {
|
||||
maintenanceTables: () => ['admin', 'maintenance-tables'] as const,
|
||||
},
|
||||
|
||||
// Companies queries
|
||||
companies: {
|
||||
detail: (slug: string) => ['companies', 'detail', slug] as const,
|
||||
},
|
||||
|
||||
// Analytics queries
|
||||
analytics: {
|
||||
all: ['analytics'] as const,
|
||||
|
||||
Reference in New Issue
Block a user