Public Access
1
0

feat: split research workflows and results into dedicated workspaces

This commit is contained in:
pguerrerox
2026-04-19 22:31:33 +00:00
parent dc7686f507
commit d1363d6677
23 changed files with 1646 additions and 713 deletions
+13 -11
View File
@@ -1,7 +1,8 @@
import React, { useEffect, useMemo, useState } from 'react';
import { Map, AdvancedMarker, InfoWindow, Pin, useMap } from '@vis.gl/react-google-maps';
import { InfoWindow, Map, Marker, useMap } from '@vis.gl/react-google-maps';
import { Globe, Loader2, MapPin, Navigation, Phone, Star } from 'lucide-react';
import { listBusinesses, listBusinessesForJobs } from '../lib/database';
import { cleanMapOptions } from '../lib/map-styles';
import type { Business } from '../types';
import type { AppUser } from '../../shared/types';
@@ -127,24 +128,25 @@ export function MapView({ user, jobIds }: MapViewProps) {
<Map
defaultCenter={center}
defaultZoom={12}
mapId="DEMO_MAP_ID"
{...({ internalUsageAttributionIds: ['gmp_mcp_codeassist_v1_aistudio'] } as Record<string, unknown>)}
style={{ width: '100%', height: '100%' }}
gestureHandling="greedy"
{...cleanMapOptions}
>
{businesses.map((business) =>
typeof business.latitude === 'number' && typeof business.longitude === 'number' ? (
<AdvancedMarker
<Marker
key={business.id}
position={{ lat: business.latitude, lng: business.longitude }}
onClick={() => setSelected(business)}
>
<Pin
background={selected?.id === business.id ? '#059669' : '#10b981'}
glyphColor="#fff"
borderColor={selected?.id === business.id ? '#064e3b' : '#065f46'}
/>
</AdvancedMarker>
icon={{
path: google.maps.SymbolPath.CIRCLE,
fillColor: selected?.id === business.id ? '#059669' : '#10b981',
fillOpacity: 1,
strokeColor: selected?.id === business.id ? '#064e3b' : '#065f46',
strokeWeight: 2,
scale: selected?.id === business.id ? 8 : 7,
}}
/>
) : null,
)}