remove the map and ui shim packages
Both failed the deletion test in the telling direction: - @trails-cool/ui: Button/Input/Card had zero consumers — both apps roll their own elements inline. The only live part was a 6-line styles.css (the Tailwind entry + one keyframe), which now lives in each app as app/styles.css. - @trails-cool/map: MapView and RouteLayer had zero consumers; the package was otherwise a re-export of two map-core constants, and the two import sites now use @trails-cool/map-core directly. The "map components go in @trails-cool/map" convention had drifted long ago — the real map components live in apps/planner/app/components. CLAUDE.md's repository structure and conventions updated to match reality (including pointing shared-type guidance at the post-#515 sources: db row types, api contracts, Waypoint in types). Dockerfiles no longer COPY the deleted package manifests. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
1a65b40d18
commit
765c9f49a8
28 changed files with 13 additions and 357 deletions
|
|
@ -2,7 +2,7 @@ import { useEffect, useState, useRef } from "react";
|
|||
import { useMap, useMapEvents, Marker } from "react-leaflet";
|
||||
import L from "leaflet";
|
||||
import type { YjsState } from "~/lib/use-yjs";
|
||||
import { overlayLayers } from "@trails-cool/map";
|
||||
import { overlayLayers } from "@trails-cool/map-core";
|
||||
import { usePois } from "~/lib/use-pois";
|
||||
import { Z_CURSOR } from "@trails-cool/map-core";
|
||||
import { getBaseLayer, getOverlays, setBaseLayer, setOverlays } from "~/lib/route-data";
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import L from "leaflet";
|
|||
import { useTranslation } from "react-i18next";
|
||||
import type { DayStage } from "@trails-cool/gpx";
|
||||
import type { YjsState } from "~/lib/use-yjs";
|
||||
import { baseLayers, overlayLayers } from "@trails-cool/map";
|
||||
import { baseLayers, overlayLayers } from "@trails-cool/map-core";
|
||||
import { setOvernight } from "~/lib/overnight";
|
||||
import { usePois } from "~/lib/use-pois";
|
||||
import { useProfileDefaults } from "~/lib/use-profile-defaults";
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import type { LinksFunction } from "react-router";
|
|||
import type { Route } from "./+types/root";
|
||||
import * as Sentry from "@sentry/react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import stylesheet from "@trails-cool/ui/styles.css?url";
|
||||
import stylesheet from "./styles.css?url";
|
||||
|
||||
export const links: LinksFunction = () => [{ rel: "stylesheet", href: stylesheet }];
|
||||
|
||||
|
|
|
|||
6
apps/planner/app/styles.css
Normal file
6
apps/planner/app/styles.css
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
@import "tailwindcss";
|
||||
|
||||
@keyframes slide {
|
||||
0% { transform: translateX(-100%); }
|
||||
100% { transform: translateX(400%); }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue