Skip to content

Commit 49d0e2d

Browse files
dfallingclaude
andauthored
Tap a map pin to preview and expand element details (#8)
Tapping a marker brings up a bottom preview card with name, address, and a description snippet. Tapping the card opens a full-screen modal with photos, schedule, labels, and the rest. Tapping elsewhere on the map dismisses the preview. Marker and Map onPress are both codegen BubblingEventHandlers, so the marker's "onPress" bubbles to the map's onPress listener — handler calls stopPropagation() to keep the map from clearing the selection right after. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 2a0303a commit 49d0e2d

5 files changed

Lines changed: 554 additions & 3 deletions

File tree

src/graphql/__generated__/types.ts

Lines changed: 67 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
query ElementDetail($id: String!) {
2+
element(id: $id) {
3+
id
4+
name
5+
icon
6+
description
7+
completed
8+
labels
9+
location {
10+
id
11+
address
12+
latitude
13+
longitude
14+
}
15+
photos {
16+
id
17+
thumbnail
18+
regular
19+
description
20+
}
21+
schedule {
22+
id
23+
allDay
24+
startDate
25+
endDate
26+
startTime
27+
endTime
28+
}
29+
}
30+
}

0 commit comments

Comments
 (0)