Repository navigation
TKW: shared detail layouts, list hooks, and split map/tree modules - #123
Merged
Merged
Conversation
- `EntryPlate` shell replaces copy-pasted detail layout + SCSS on battles, dragons, events, weapons; `EntryBackLink` shared by houses, characters
- `loadCollections`, `loadProseLinkIndex`, `renderEntryBody` replace 8-tuple `Promise.all` + identity maps on every `[slug]` page
- `lib/entry-route.ts`: `publishedSlugParams`, `loadEntryOr404`, `entryMetadata`; only `ENOENT` becomes a 404, schema errors now surface
- `buildProseLinkIndex` takes `{ collections, current }`; local `shortHouseName` copy dropped
- list hooks `useListQuery`, `usePersistedChoice`, `useUrlSearchFilter`, `paginate`; `ListSearchEmpty`, `HouseCard`, `groupHousesByRegion`
- `regionColorStyle` replaces three `REGION_CARD_CLASS` maps and 27 `.card<Region>` classes
- `InfoField`, `CharacterInfoRow`; shared infobox shell styles move to `Infobox.module.scss`
- `canvasKeyAction`, `CANVAS_KEY_SHORTCUTS`, `PAN_STEP_RATIO` shared by `WorldMap`, `MapStage`, `FamilyTreeChart`
- `WorldMap` geometry into `lib/map.ts`, rAF loops into `useAnimationFrameLoop`; `FamilyTreeChart` gets `PersonNode`, `usePrefersReducedMotion`, `labelBox`
- `EntitySearchInput` behind `CharacterSearchInput` / `HouseSearchInput`
- `lib/portrait-files.ts`, `lib/public-asset.ts`, `isReckonedEra`, `yieldsAge`, timeline `mapColumns` / `emptyColumns` dedupe lib helpers
- `content-integrity` reference rules become a `field` / `custom` discriminated union
- `app/design` split into `_sections/*` with `shieldVars`
- delete dead `lib/relations.ts`; drop unused exports and `regionLabel` fields
- skill audit scripts follow the new `buildProseLinkIndex` / `EntryPlate` wiring
✅ Deploy Preview for theknownworld ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
WorldMapandFamilyTreeChartsplit into smaller modules and hooks; three canvases share keyboard handling[slug]pages + list pages built before/after and diffed identical (titles, meta, markup)bun run buildgreenDetail pages
EntryPlateowns the detail layout for battles, dragons, events, weapons; their duplicated SCSS deletedEntryBackLinkshared by houses + characterslib/entry-route.ts:publishedSlugParams,loadEntryOr404,entryMetadataacross all seven[slug]pagesENOENT→notFound(); schema/YAML errors now fail loudly instead of masquerading as 404loadCollections,loadProseLinkIndex,renderEntryBodyreplace 8-tuplePromise.all+ identity.mapsMap.groupByon castles/battles indexes;formatHouse→humanizeSlugapp/designsplit into_sections/*(byte-identical markup + CSS),shieldVarshelperList pages
useListQuery,usePersistedChoice(storage wrapped in try/catch),paginate,useUrlSearchFilter,ListSearchEmptyregionColorStylereplaces threeREGION_CARD_CLASSmaps and 27.card<Region>classesHouseCard+groupHousesByRegionout ofFilteredHouseListEntitySearchInputbehindCharacterSearchInput/HouseSearchInputInfoField,CharacterInfoRow; shared infobox shell styles inInfobox.module.scssMap + family tree
canvasKeyAction/CANVAS_KEY_SHORTCUTS/PAN_STEP_RATIOshared byWorldMap,MapStage,FamilyTreeChartWorldMap703 → 581 lines: geometry inlib/map.ts,useAnimationFrameLoop,WorldMapIconsFamilyTreeChart669 → 539 lines:PersonNode,usePrefersReducedMotion,labelBoxLib
lib/portrait-files.tsdedupes portrait parse/group/pick across integrity + variantslib/public-asset.tsdedupes battle/weapon/portrait extension probingisReckonedEra,yieldsAge,CalendarDatereplacesBattleDatecontent-integrityreference rules →field/customdiscriminated unionmapColumns/emptyColumns;family-treenodeFieldslib/relations.ts; drop unused exports andregionLabelfieldsPlumbing
audit-orphans.ts,audit-wiring.ts,audit-portraits.tsfollow the new APIs; audit output matchesmainNot changed (found, left for follow-up)
MapStage,MapMarker,MapLayerToggle,DropCap,ComingSoonPageunused outside tests/design-sync--shield-inkto--house-tully-metal(likely slip, preserved)