Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
f278ff8
feat: maintainer map
TkDodo Nov 6, 2026
6015213
deslop
TkDodo Nov 6, 2026
7504b3d
feat: add maintainer locations from GitHub profiles
KevinVandy Nov 6, 2026
26e1eed
feat: set Harry's location to Berlin
KevinVandy Nov 6, 2026
d26ab83
feat: add locations for Lachlan and Manuel
KevinVandy Nov 6, 2026
ea9b313
feat: add location for Jonghyeon Ko
KevinVandy Nov 6, 2026
3f5b104
feat: move Sarah to Vancouver, drop map subtitle
KevinVandy Nov 6, 2026
f67fad9
feat: add Benjamín Vicente as a maintainer
KevinVandy Nov 6, 2026
e1a739d
feat(maintainers): add city to the 'manudeli' location
sukvvon Nov 7, 2026
33dadd9
Update src/libraries/maintainers.ts
sukvvon Nov 7, 2026
9ed6ba1
chore: move Nicolas below Florian in maintainers list
KevinVandy Nov 7, 2026
a3d6496
chore: reorder Alem and Kyle in maintainers list
KevinVandy Nov 7, 2026
e4f64c8
feat: show maintainer locations on an interactive globe (#1494)
manudeli Nov 7, 2026
9451fbb
perf: avoid per-frame page-wide style recalc and forced layout in mai…
KevinVandy Nov 7, 2026
fd544e8
perf: smooth maintainer globe entry and interaction
manudeli Nov 8, 2026
e0abc7f
feat: add pause button for globe rotation
KevinVandy Nov 8, 2026
d3d26f6
perf: composite globe profile cards and drop idle blur filter
KevinVandy Nov 8, 2026
d08f9cb
feat: refine responsive maintainer globe
manudeli Nov 8, 2026
5352529
ci: apply automated fixes
autofix-ci[bot] Nov 8, 2026
5304be3
perf: avoid redundant globe entrance draws
manudeli Nov 8, 2026
d37383a
fix: keep maintainer globe clear of profile list
manudeli Nov 8, 2026
9ed70ce
perf: reveal maintainer globe sooner on load
manudeli Nov 8, 2026
aa4110b
style: raise maintainer globe from farther below
manudeli Nov 8, 2026
598b907
fix: zoom the maintainer globe within a fixed canvas
manudeli Nov 8, 2026
15f5dbc
fix: limit maintainer profile connector lengths
manudeli Nov 8, 2026
dc4c667
fix: free maintainer profiles from the globe heading
manudeli Nov 8, 2026
f2decea
feat: render the maintainer globe with TanStack Charts
manudeli Nov 8, 2026
ba23a48
fix: frame the maintainer globe closer on mobile
manudeli Nov 8, 2026
f299257
fix: fill the lower globe corners on mobile
manudeli Nov 8, 2026
0ff87b1
fix: reveal the full mobile globe on scroll
manudeli Nov 8, 2026
6c63e41
style(maintainers/globe): replace hardcoded globe colors with design …
sukvvon Nov 8, 2026
918676d
feat(ds/palette): extend the cool neutral tint ramp to five steps
sukvvon Nov 8, 2026
8ad363c
fix(maintainers/map): unify selected cluster heading and point profil…
sukvvon Nov 8, 2026
27ec631
fix(routes/maintainers): drop duplicate top margin already covered by…
sukvvon Nov 8, 2026
45092c4
feat(maintainers/map): document missing globe shortcuts with 'kbd' keys
sukvvon Nov 8, 2026
7326a07
feat(maintainers/map): add a zoom reset control to the globe
sukvvon Nov 8, 2026
9d7e849
refactor(maintainers/map): group globe controls with a design system …
sukvvon Nov 8, 2026
105f87d
refactor(maintainers/map): replace remaining hardcoded colors with de…
sukvvon Nov 8, 2026
6a90a40
fix(maintainers/map): restore the globe surface border lost to 'borde…
sukvvon Nov 8, 2026
0aef6e6
refactor(routes/maintainers): move globe controls onto the 'backgroun…
sukvvon Nov 8, 2026
43f8ace
fix(maintainers/map): give the selected cluster panel the shared surf…
sukvvon Nov 8, 2026
e2a7b6e
refactor(routes/maintainers): tokenize the filter dropdown internals
sukvvon Nov 8, 2026
633e458
feat(maintainers/map): reset the globe tilt alongside zoom
sukvvon Nov 9, 2026
ca0af74
solid maps, initialLocation
TkDodo Nov 9, 2026
cc2ecf6
Merge remote-tracking branch 'origin/tkdodo/maintainer-location-map' …
TkDodo Nov 9, 2026
db04111
Merge branch 'main' into tkdodo/maintainer-location-map
TkDodo Nov 9, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,612 changes: 1,612 additions & 0 deletions src/components/MaintainersMap.tsx

Large diffs are not rendered by default.

183 changes: 183 additions & 0 deletions src/components/maintainersChartsGlobe.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,183 @@
import { createChartRuntime, createMark, defineChart } from '@tanstack/charts'
import type { ChartGradient, SceneNode } from '@tanstack/charts'
import { createSvgChartRenderer } from '@tanstack/charts/svg/renderer'
import { geoOrthographic, geoPath, scaleIdentity } from 'd3'
import land from '~/data/maintainers-land.json'

type Vector = [number, number, number]
type GlobeView = { phi: number; theta: number; scale: number }
type GlobeMarker = { id: string; vector: Vector; radius: number; color: string }
const degrees = Math.PI / 180
const worldLand: { type: 'MultiPolygon'; coordinates: number[][][][] } = {
type: 'MultiPolygon',
coordinates: land.coordinates,
}

function gradients(dark: boolean): ChartGradient[] {
const ocean = dark
? 'var(--color-background-default)'
: 'var(--color-background-subtle)'
const rim = dark
? 'var(--color-background-elevated)'
: 'var(--color-ds-neutral-tint-100)'
const light = dark
? 'var(--color-border-default)'
: 'var(--color-ds-neutral-tint-200)'
return [
{
id: 'ocean',
type: 'radial',
stops: [
{ offset: 0, color: ocean },
{ offset: 0.86, color: ocean },
{ offset: 0.99, color: rim },
{ offset: 1, color: rim },
],
},
{
id: 'atmosphere',
type: 'radial',
stops: [
{ offset: 0, color: light, opacity: 0 },
{ offset: 0.9, color: light, opacity: 0 },
{ offset: 0.93, color: light, opacity: dark ? 0.47 : 0.34 },
{ offset: 0.965, color: light, opacity: 0.11 },
{ offset: 1, color: light, opacity: 0 },
],
},
]
}

export const globeHaloScale = 1.075

export function createChartsGlobe(container: HTMLDivElement) {
let view: GlobeView
let offsetY = 0
let dark = false
let markers: GlobeMarker[] = []
const runtime = createChartRuntime()
const surface = createSvgChartRenderer().mount(container, () => {})
const idPrefix = container.id || 'maintainer-charts-globe'
const mark = createMark(() => ({
id: 'globe',
channels: {},
render: ({ chart }) => {
const { phi, theta, scale } = view
const centerX = chart.width / 2
const centerY = chart.height / 2 + offsetY
const pixels = (chart.height / 2) * scale
const radius = pixels * 0.8
const cosPhi = Math.cos(phi)
const sinPhi = Math.sin(phi)
const cosTheta = Math.cos(theta)
const sinTheta = Math.sin(theta)

const projection = geoOrthographic()
.rotate([phi / degrees + 90, -theta / degrees])
.scale(radius)
.translate([centerX, centerY])
.clipExtent([
[0, 0],
[chart.width, chart.height],
])
const landPath = geoPath(projection)(worldLand)

const nodes: SceneNode[] = [
{
kind: 'dot',
key: 'globe-atmosphere',
x: centerX,
y: centerY,
radius: radius * globeHaloScale,
style: { fill: 'url(#atmosphere)' },
},
{
kind: 'dot',
key: 'globe-ocean',
x: centerX,
y: centerY,
radius,
style: { fill: 'url(#ocean)' },
},
]
if (landPath) {
nodes.push({
kind: 'area',
key: 'globe-land',
points: [],
path: landPath,
style: {
fill: dark
? 'var(--color-ds-neutral-tint-200)'
: 'var(--color-ds-neutral-tint-400)',
},
})
}
// Use the same location vectors as the avatar connectors.
for (const {
id,
vector: [vx, vy, vz],
radius: markerRadius,
color,
} of markers) {
const horizontalDepth = cosPhi * vz - sinPhi * vx
const x = cosPhi * vx + sinPhi * vz
const y = cosTheta * vy - sinTheta * horizontalDepth
const depth = sinTheta * vy + cosTheta * horizontalDepth
if (depth < 0 && x * x + y * y < 0.64) continue
nodes.push({
kind: 'dot',
key: `globe-pin-${id}`,
x: centerX + x * pixels,
y: centerY - y * pixels,
radius: markerRadius,
style: { fill: color },
})
}
return { nodes, points: [] }
},
}))

const scales = {
x: { scale: scaleIdentity() },
y: { scale: scaleIdentity() },
}
const charts = [false, true].map((isDark) =>
defineChart({
marks: [mark],
gradients: gradients(isDark),
scales,
guides: false,
margin: 0,
}),
)
const renderOptions = {
ariaLabel: 'Maintainer globe surface',
idPrefix,
className: 'block size-full',
}
container.dataset.globeRenderer = 'charts'
container.setAttribute('aria-hidden', 'true')

return {
setDark(nextDark: boolean) {
dark = nextDark
},
setMarkers(nextMarkers: GlobeMarker[]) {
markers = nextMarkers
},
draw(nextView: GlobeView, width: number, height: number, nextOffsetY = 0) {
if (width < 1 || height < 1) return
view = nextView
offsetY = nextOffsetY
const scene = runtime.render(charts[dark ? 1 : 0], { width, height })
surface.render(scene, renderOptions)
},
destroy() {
surface.destroy()
runtime.destroy()
delete container.dataset.globeRenderer
container.removeAttribute('aria-hidden')
},
}
}
19 changes: 19 additions & 0 deletions src/components/maintainersGlobeView.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import type { parseVisitorLocation } from '../utils/visitor-location'

export const initialView = {
phi: -Math.PI / 2 - 0.25,
theta: 0.4,
scale: 1.2,
}

export function initialMaintainersView(
location: ReturnType<typeof parseVisitorLocation>,
) {
return location
? {
...initialView,
phi: (-location.longitude * Math.PI) / 180 - Math.PI / 2,
theta: (location.latitude * Math.PI) / 180,
}
: { ...initialView }
}
Loading
Loading