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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ coverage/
playwright-report/
test-results/
artifacts/deployment/
artifacts/wiki-links/
*.tsbuildinfo

# Python
Expand Down Expand Up @@ -77,6 +78,8 @@ id_ed25519*
/docs/DEPLOYMENT.md
/docs/DEPLOYMENT_RUNBOOK.md
/docs/DESIGN_SYSTEM.md
/docs/WIKI_LINKS.md
/tools/build_wiki_links.py
/.github/main-branch-protection.json
/tools/deployment/nginx/morrowind-map.conf
/tools/deployment/nginx/morrowind-map-security.conf
Expand Down
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

## 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.
- Link place-card titles to UESP in a new tab, with an underline on hover or keyboard focus. Match four saved UESP catalogs by source cell IDs, names and nearby entrances, including the dedicated Morrowind catalog for base-game regions in TR. Generate direct article URLs from full place names and map namespaces for unmatched places, and keep Azurian Isles titles unlinked.
- Make screenshot comparisons opt-in and check keyboard reachability without requiring an exact Tab sequence, keeping functional and accessibility checks in CI.
- Changed personal notes and marker edits to save only with Save, preserving recoverable drafts without interrupting typing.
- Aligned personal marker actions with Delete on the left and Save consistently on the right in both note forms, and removed coordinates from the marker card header.
- Show personal marker squares and names from zoom level 2 onward, hiding both below level 2, and limit new or renamed markers to 100 characters.
- Add a copy-link action beside place names, centering shared links on the place at the current zoom and highlighting the selected place with a larger cyan marker and matching label.
- Add a copy-link action beside place names, centering shared links on the place at the current zoom and highlighting the selected place with a cyan marker and matching label.
- Use a pointer cursor for the copy-link action and dismiss its success or error message after five seconds with a fade-out.
- Raise hovered and selected place labels above other map labels. Show a 30%-transparent background only while hovering the label text or place square, excluding background padding from hover and click targets.
- Extend map zoom to z9 using existing tiles, preserving zoom levels through z8 and adding one 2× magnification step for crowded locations without rerendering maps. Always show all place labels from z8 onward, including overlapping labels.
Expand Down
31 changes: 31 additions & 0 deletions apps/web/src/data/placeWiki.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import type { MapKey } from '@morrowind-map/contracts';
import wikiLinks from './placeWikiTitles.json';

const WIKI_PREFIXES = {
original: 'Morrowind:',
'tamriel-rebuilt': 'Tamriel_Rebuilt:',
'project-cyrodiil': 'Project_Tamriel:Cyrodiil/',
'home-of-nords': 'Project_Tamriel:Skyrim/',
'azurian-isles': null,
} satisfies Record<MapKey, string | null>;

const WIKI_TITLES: Readonly<Record<string, string>> = wikiLinks.titles;

export function placeWikiUrl(mapKey: MapKey, regionId: string, name: string, placeId: string): string | null {
const prefix = mapKey === 'tamriel-rebuilt' &&
(regionId === 'vvardenfell' || regionId === 'solstheim')
? WIKI_PREFIXES.original
: WIKI_PREFIXES[mapKey];
if (prefix === null) return null;

const encode = (value: string) => encodeURIComponent(value.replace(/ /g, '_')).replace(/'/g, '%27');
const wikiName = WIKI_TITLES[placeId];
if (wikiName) {
const [title, ...fragment] = wikiName.split('#');
const path = encode(title!).replace(/%3A/g, ':').replace(/%2F/g, '/');
const anchor = fragment.length ? `#${encode(fragment.join('#'))}` : '';
return `https://en.uesp.net/wiki/${path}${anchor}`;
}

return `https://en.uesp.net/wiki/${prefix}${encode(name.trim().replace(/\s+/g, ' '))}`;
}
Loading