Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# Changelog

## 2026-09-16

### Added

- Add an optional Transport overlay to Original Morrowind, Tamriel Rebuilt, Skyrim: Home of the Nords and Project Cyrodiil, with independent Land transport, Water transport and Guild guides toggles.
- Show direct travel connections and boarding stops from each map's exact game/mod snapshot. Include boats, waterstriders, gondolas, silt striders, carriages, caravans and palanquins; preserve travel direction and annotate known quest, rank and faction requirements.
- Add transport stop cards with departure destinations, carrier names, linked UESP titles and a copy-link action. Selecting a destination centers the map on its stop; shared links restore the selected stop and transport networks.

### Changed

- Use thin, bright transport lines without dark outlines, with distinct line patterns and stop shapes. Highlight departures from the selected stop and keep the transport overlay independent of place and progress filters.
- Remember transport network choices per map and support browser Back/Forward navigation. Load transport catalogs only when enabled, with a separate retry if transport data cannot be loaded.

### Fixed

- Correct manually reviewed UESP links for Original Morrowind and Tamriel Rebuilt places, preserving existing dedicated Tamriel Rebuilt targets where appropriate.
- Remove the `Solstheim, ` prefix from displayed place names on both maps while retaining the Solstheim category.

## 2026-09-13

- Release 1.1.0 with Project Cyrodiil — Abecean Shores and Skyrim: Home of the Nords — Dragonstar updated to 26.09, including refreshed map tiles, location catalogs and dataset metadata.

## 2026-09-12

- Keep every marker shape at its normal size when hovered or selected, preserving label backgrounds and color highlighting. Keep wiki-link generation tools and maintainer documentation local.
Expand All @@ -18,3 +40,13 @@
- Add distinct shapes in colorblind-friendly mode: white squares for unvisited places, blue diamonds for active places, orange circles for visited places, and reddish-purple triangles for personal markers, including their labels and previews.
- Give personal marker labels the same translucent hover background and text-only hit bounds as place labels. Keep marker sizes unchanged on hover and show Saved feedback only for note edits, without flicker when changing place status.
- Dismiss the JSON backup download confirmation after five seconds with a fade-out, restarting the timeout on each successful export.

## 2026-09-09

- Use project-local rendering inputs and expand setup, contribution and platform documentation, including Unix build requirements and the current limits of Windows support.
- Allow trusted dataset review after a dataset pull request has been merged.

## 2026-09-08

- Move active map tiles from Git LFS to immutable GitHub Release packages with pinned hashes. Keep runtime JSON and metadata in Git and restore local tiles through `pnpm datasets:download`.
- Remove obsolete workflows and LFS restoration paths.
2 changes: 2 additions & 0 deletions apps/web/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ function mapUrlStatesEqual(left: MapUrlState, right: MapUrlState): boolean {
return left.datasetId === right.datasetId &&
left.regionId === right.regionId &&
left.placeId === right.placeId &&
(left.transportStopId ?? null) === (right.transportStopId ?? null) &&
(left.transportModes ?? []).join(',') === (right.transportModes ?? []).join(',') &&
left.typeFilters.length === right.typeFilters.length &&
left.typeFilters.every((value, index) => value === right.typeFilters[index]) &&
left.statusFilters.length === right.statusFilters.length &&
Expand Down
71 changes: 55 additions & 16 deletions apps/web/src/map/DatasetMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ import {
requiresRuntimeBasemapAdjustment,
} from './basemapPresentation';
import { PlaceFilterControls } from './PlaceFilterControls';
import { TransportOverlay } from '../transport/TransportOverlay';
import { hasTransport } from '../transport/loadTransport';
import { transportStopAtPixel } from '../transport/transportLayer';
import {
SparseTileCoverageIndex,
createSparseTileUrlFunction,
Expand Down Expand Up @@ -327,6 +330,8 @@ function navigationStatesMatch(
return left.datasetId === right.datasetId &&
left.regionId === right.regionId &&
left.placeId === right.placeId &&
(left.transportStopId ?? null) === (right.transportStopId ?? null) &&
(left.transportModes ?? []).join(',') === (right.transportModes ?? []).join(',') &&
left.typeFilters.length === right.typeFilters.length &&
left.typeFilters.every((value, index) => value === right.typeFilters[index]) &&
left.statusFilters.length === right.statusFilters.length &&
Expand Down Expand Up @@ -530,6 +535,7 @@ function DatasetMapReady({
const targetRef = useRef<HTMLDivElement>(null);
const searchRef = useRef<HTMLInputElement>(null);
const mapRef = useRef<Map | null>(null);
const [transportMap, setTransportMap] = useState<Map | null>(null);
const failedTilesRef = useRef(new Set<Tile>());
const pendingTilesRef = useRef(new Set<Tile>());
const currentBasemapLoadWindowRef = useRef(new CurrentBasemapLoadWindow<Tile>());
Expand Down Expand Up @@ -1078,13 +1084,31 @@ function DatasetMapReady({

const commitNavigation = useCallback(
(nextState: MapUrlState, mode: 'push' | 'replace') => {
navigationStateRef.current = nextState;
selfAuthoredNavigationRef.current = nextState;
onNavigationChange(nextState, mode);
const resolved = nextState.placeId !== null && nextState.transportStopId
? { ...nextState, transportStopId: null } : nextState;
navigationStateRef.current = resolved;
selfAuthoredNavigationRef.current = resolved;
onNavigationChange(resolved, mode);
},
[onNavigationChange],
);

const changeTransportNavigation = useCallback((patch: Pick<MapUrlState,
'transportModes' | 'transportStopId'>, mode: 'push' | 'replace' = 'push') => {
commitNavigation({
...navigationStateRef.current,
...patch,
...(patch.transportStopId ? { placeId: null } : {}),
}, mode);
}, [commitNavigation]);
const selectTransport = useCallback(() => {
setSelectedId(null);
selectedIdRef.current = null;
setSelectedMarkerId(null);
selectedMarkerIdRef.current = null;
setPlacingMarker(false);
}, []);

useEffect(() => {
if (
!catalogFiltersReady ||
Expand All @@ -1102,9 +1126,9 @@ function DatasetMapReady({
}
selectedIdRef.current = null;
setSelectedId(null);
if (navigationStateRef.current.placeId !== null) {
if (navigationStateRef.current.placeId !== null || navigationStateRef.current.transportStopId) {
commitNavigation(
{ ...navigationStateRef.current, placeId: null },
{ ...navigationStateRef.current, placeId: null, transportStopId: null },
'replace',
);
}
Expand Down Expand Up @@ -1149,9 +1173,9 @@ function DatasetMapReady({
setSelectedId(null);
selectedMarkerIdRef.current = marker.id;
setSelectedMarkerId(marker.id);
if (navigationStateRef.current.placeId !== null) {
if (navigationStateRef.current.placeId !== null || navigationStateRef.current.transportStopId) {
commitNavigation(
{ ...navigationStateRef.current, placeId: null },
{ ...navigationStateRef.current, placeId: null, transportStopId: null },
'push',
);
}
Expand Down Expand Up @@ -1486,6 +1510,7 @@ function DatasetMapReady({
}),
});
mapRef.current = map;
setTransportMap(map);
if (initialView === null) {
const initialExtent = initialNavigation.regionId === 'all'
? extent
Expand Down Expand Up @@ -1610,7 +1635,8 @@ function DatasetMapReady({
}
map.getTargetElement().classList.toggle(
'map-canvas--marker-hover',
markerId !== null || placeId !== null,
markerId !== null || placeId !== null ||
((navigationStateRef.current.transportModes?.length ?? 0) > 0 && transportStopAtPixel(map, event.pixel) !== null),
);
});
const clickKey = map.on('singleclick', (event) => {
Expand All @@ -1619,6 +1645,9 @@ function DatasetMapReady({
createMarkerAt([x, y]);
return;
}
if ((navigationStateRef.current.transportModes?.length ?? 0) > 0 && transportStopAtPixel(map, event.pixel)) {
return;
}
const feature = featureAtPixel(event.pixel);
if (feature) {
const markerId = feature.get('markerId') as string | undefined;
Expand All @@ -1627,9 +1656,9 @@ function DatasetMapReady({
setSelectedId(null);
selectedMarkerIdRef.current = markerId;
setSelectedMarkerId(markerId);
if (navigationStateRef.current.placeId !== null) {
if (navigationStateRef.current.placeId !== null || navigationStateRef.current.transportStopId) {
commitNavigation(
{ ...navigationStateRef.current, placeId: null },
{ ...navigationStateRef.current, placeId: null, transportStopId: null },
'push',
);
}
Expand Down Expand Up @@ -1968,9 +1997,9 @@ function DatasetMapReady({
selectedIdRef.current = null;
selectedMarkerIdRef.current = marker.id;
setSelectedMarkerId(marker.id);
if (navigationStateRef.current.placeId !== null) {
if (navigationStateRef.current.placeId !== null || navigationStateRef.current.transportStopId) {
commitNavigation(
{ ...navigationWithCurrentView(), placeId: null },
{ ...navigationWithCurrentView(), placeId: null, transportStopId: null },
'push',
);
}
Expand Down Expand Up @@ -2149,9 +2178,9 @@ function DatasetMapReady({
setSelectedId(null);
setSelectedMarkerId(null);
selectedIdRef.current = null;
if (navigationStateRef.current.placeId !== null) {
if (navigationStateRef.current.placeId !== null || navigationStateRef.current.transportStopId) {
commitNavigation(
{ ...navigationWithCurrentView(), placeId: null },
{ ...navigationWithCurrentView(), placeId: null, transportStopId: null },
'push',
);
}
Expand All @@ -2162,7 +2191,7 @@ function DatasetMapReady({
setSelectedId(null);
selectedIdRef.current = null;
commitNavigation(
{ ...navigationWithCurrentView(), placeId: null },
{ ...navigationWithCurrentView(), placeId: null, transportStopId: null },
'push',
);
placeCardFocus.restore(() => targetRef.current);
Expand Down Expand Up @@ -2475,6 +2504,16 @@ function DatasetMapReady({
<span><StatusMark kind="custom" />{t('map.personalMarker')}</span>
</div>

{hasTransport(dataset) ? <TransportOverlay
dataset={dataset}
places={places}
map={transportMap}
navigation={normalizedNavigationState}
placingMarker={placingMarker}
onChange={changeTransportNavigation}
onSelect={selectTransport}
/> : null}

{basemapState.failures > 0 ? (
<div
className={`basemap-state basemap-state--error basemap-state--${basemapState.loaded > 0 ? 'partial' : 'full'}`}
Expand Down Expand Up @@ -2522,7 +2561,7 @@ function DatasetMapReady({
</div>
) : null}

{catalogFiltersReady && selectedPlace ? (
{catalogFiltersReady && selectedPlace && !normalizedNavigationState.transportStopId ? (
<PlaceCard
cardRef={placeCardRef}
datasetId={dataset.datasetId}
Expand Down
15 changes: 15 additions & 0 deletions apps/web/src/navigation/mapUrlState.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { PlaceType, ProgressStatus } from '@morrowind-map/contracts';
import { PLACE_TYPE_ORDER, PROGRESS_STATUS_ORDER } from '../data/placeFilters';
import { transportModes, type TransportMode } from '../transport/types';

export interface MapUrlView {
readonly center: readonly [number, number];
Expand All @@ -13,6 +14,8 @@ export interface MapUrlState {
readonly placeId: string | null;
readonly typeFilters: readonly PlaceType[];
readonly statusFilters: readonly ProgressStatus[];
readonly transportModes?: readonly TransportMode[];
readonly transportStopId?: string | null;
}

const OWNED_PARAMETERS = [
Expand All @@ -24,6 +27,9 @@ const OWNED_PARAMETERS = [
'place',
'type',
'status',
'transport',
'stop',
'transportConditions',
] as const;

function landingState(): MapUrlState {
Expand Down Expand Up @@ -112,6 +118,10 @@ export function readMapUrl(url: URL): MapUrlState {
url.searchParams.getAll('status'),
PROGRESS_STATUS_ORDER,
),
...(transportModes(url.searchParams.getAll('transport')).length > 0 ? {
transportModes: transportModes(url.searchParams.getAll('transport')),
transportStopId: nonEmptyParameter(url.searchParams, 'stop'),
} : {}),
};
}

Expand Down Expand Up @@ -144,6 +154,11 @@ export function writeMapUrl(baseUrl: URL, state: MapUrlState): URL {
for (const status of canonicalFilterValues(state.statusFilters, PROGRESS_STATUS_ORDER)) {
url.searchParams.append('status', status);
}
const modes = transportModes(state.transportModes);
for (const mode of modes) url.searchParams.append('transport', mode);
if (modes.length > 0) {
if (state.transportStopId) url.searchParams.append('stop', state.transportStopId);
}

return url;
}
5 changes: 5 additions & 0 deletions apps/web/src/navigation/normalizeMapUrlState.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { PlaceType, ProgressStatus } from '@morrowind-map/contracts';
import { PLACE_TYPE_ORDER, PROGRESS_STATUS_ORDER } from '../data/placeFilters';
import type { MapUrlState, MapUrlView } from './mapUrlState';
import { transportModes } from '../transport/types';

export interface MapUrlConstraints {
readonly datasetId: string;
Expand Down Expand Up @@ -74,5 +75,9 @@ export function normalizeMapUrlState(
placeId,
typeFilters,
statusFilters,
...(transportModes(state.transportModes).length > 0 ? {
transportModes: transportModes(state.transportModes),
transportStopId: placeId === null ? state.transportStopId ?? null : null,
} : {}),
};
}
5 changes: 5 additions & 0 deletions apps/web/src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
--layer-ledger: 6;
--layer-system: 7;
--layer-card: 8;
--layer-transport-controls: 9;
--safe-top: env(safe-area-inset-top, 0px);
--safe-right: env(safe-area-inset-right, 0px);
--safe-bottom: env(safe-area-inset-bottom, 0px);
Expand Down Expand Up @@ -1539,6 +1540,10 @@ dialog.map-settings-panel {
font-size: 10px;
}

.dataset-map-stage:has(.transport-controls) .marker-legend {
top: 64px;
}

.marker-legend span {
display: flex;
align-items: center;
Expand Down
Loading