From b8548d029760ecfa59cafedd23899a91e6120b5f Mon Sep 17 00:00:00 2001 From: yyamashita Date: Sat, 9 May 2026 00:51:08 +0900 Subject: Add predefined link types and artist roles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - app/lib/constants.ts: LINK_TYPES (12種) and ARTIST_ROLES (13種) - Band link forms: label input → type select (公式サイト, X, Instagram, ...) - Band member forms: role text → role select (Vocal, Guitar, Bass, ...) - Band detail: resolve link type key to display label via LINK_TYPE_LABEL Co-Authored-By: Claude Sonnet 4.6 --- app/routes/band-by-uuid.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/routes/band-by-uuid.tsx') diff --git a/app/routes/band-by-uuid.tsx b/app/routes/band-by-uuid.tsx index 1945a57..94a7d3c 100644 --- a/app/routes/band-by-uuid.tsx +++ b/app/routes/band-by-uuid.tsx @@ -6,6 +6,7 @@ import { getBandArtists, getBandRevisions, } from "~/lib/db.server"; +import { LINK_TYPE_LABEL } from "~/lib/constants"; export async function loader({ params }: LoaderFunctionArgs) { const band = getBandById(params.uuid!); @@ -90,7 +91,7 @@ export default function BandDetail() { rel="noopener noreferrer" className="text-blue-400 hover:text-blue-300 transition-colors text-sm" > - {l.label} + {LINK_TYPE_LABEL[l.label] ?? l.label} ))} -- cgit v1.2.3