summaryrefslogtreecommitdiff
path: root/app/routes/band-edit.tsx
diff options
context:
space:
mode:
authoryyamashita <yyamashita@mosquit.one>2026-05-10 22:46:59 +0900
committeryyamashita <yyamashita@mosquit.one>2026-05-10 22:46:59 +0900
commitec2417fc3e7029cb6fa84aa184daac2768ddad85 (patch)
tree3d4b0d8ad3b90d3bb99f9c2932637f756090b57a /app/routes/band-edit.tsx
parent184e6947707ecdf07dfa3a5cbc6e51cf9440e93a (diff)
Separate current/former members with calculable period dates
- Add MemberGroup/BandGroup types and groupBandMembers/groupArtistMembers helpers - Calculate membership duration in months from YYYY-MM since/until values - Band view splits members into 在籍中 / 元メンバー sections with duration label - Artist view splits bands into 在籍中 / 元在籍 sections with duration label - Change since/until inputs to type="month" for structured data entry Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'app/routes/band-edit.tsx')
-rw-r--r--app/routes/band-edit.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/routes/band-edit.tsx b/app/routes/band-edit.tsx
index ffba70f..b64b707 100644
--- a/app/routes/band-edit.tsx
+++ b/app/routes/band-edit.tsx
@@ -271,15 +271,15 @@ export default function BandEdit() {
</div>
<div className="period-row">
<input
+ type="month"
value={entry.since}
onChange={(e) => updateEntry(entry.key, "since", e.target.value)}
- placeholder="加入 (例: 2020-04)"
/>
<span className="period-sep">〜</span>
<input
+ type="month"
value={entry.until}
onChange={(e) => updateEntry(entry.key, "until", e.target.value)}
- placeholder="脱退 (空欄=在籍中)"
/>
<input
className="period-note"