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:
gpt-engineer-app[bot]
2025-11-12 03:44:01 +00:00
parent 2ccfe8c48a
commit 361231bfac
8 changed files with 345 additions and 28 deletions

View File

@@ -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,