Commit 7dcf3d1
SmC: real per-peer geo, on-globe heart burst, arc reversal
- Geo: peerLookup switched from geo.getiantem.org/<ip> (returns 404 for
arbitrary IPs — every peer collapsed to the IR-fallback center) to
ipwho.is (HTTPS, no auth, city-level lat/lon + country name + flag
emoji). PeerLookup now returns PeerGeo with a real, unique location
per peer.
- Event model: UnboundedConnectionEvent carries country name, flag
emoji, coords, and an isReplay flag.
- Notifier: ref-counts streams per TCP peer so the arc persists until
the peer's last H2 stream closes (samizdat multiplexes many streams
over one conn); resolves geo async then emits enriched events;
replayCurrentPeers() seeds the globe with existing peers when the
user navigates to SmC mid-stream; emits synthetic -1's on toggle-off
so arcs don't orphan when peer.Client.Stop suppresses the box.Close
cascade.
- Globe: arcs linger 5s past last -1 so brief URL-test probes still
register; coords jittered ±2° per workerIdx hash so multiple peers
in the same city fan out instead of overlapping; arc direction
reversed (censored user → uncensored peer) so the dash animation
reads as traffic arriving at us.
- Heart burst: on-globe animation anchored at peer coords via
Point.labelBuilder (lib projects 3D→2D for us). Uses the actual
assets from getlantern/unbounded — explosion.json Lottie + the
inline FF5A79 heart SVG path via CustomPainter. 4.6s burst + 4.2s
fading country label below.
- StatusCard: small info_outline tooltip explaining that most events
are short URL-test liveness probes (601 of ~700 CONNECTs in a
measured session were to api.iantem.io — clients probing peer
reachability before sending real traffic).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 71342de commit 7dcf3d1
6 files changed
Lines changed: 477 additions & 50 deletions
File tree
- assets/unbounded
- lib
- core
- models
- services
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
6 | 19 | | |
7 | 20 | | |
8 | 21 | | |
9 | 22 | | |
10 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
11 | 29 | | |
12 | 30 | | |
13 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
6 | 29 | | |
7 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
8 | 34 | | |
9 | | - | |
10 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
11 | 38 | | |
12 | 39 | | |
13 | 40 | | |
| |||
133 | 160 | | |
134 | 161 | | |
135 | 162 | | |
136 | | - | |
| 163 | + | |
137 | 164 | | |
138 | 165 | | |
139 | 166 | | |
140 | 167 | | |
141 | 168 | | |
142 | 169 | | |
143 | 170 | | |
144 | | - | |
| 171 | + | |
145 | 172 | | |
146 | 173 | | |
147 | 174 | | |
| |||
154 | 181 | | |
155 | 182 | | |
156 | 183 | | |
157 | | - | |
158 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
159 | 188 | | |
160 | 189 | | |
161 | | - | |
| 190 | + | |
162 | 191 | | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
170 | 208 | | |
171 | | - | |
| 209 | + | |
172 | 210 | | |
173 | 211 | | |
0 commit comments