From e3f65394e4edfddddfccca6283cd80287d241148 Mon Sep 17 00:00:00 2001 From: coji Date: Mon, 30 Mar 2026 17:32:23 +0900 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20Review=20Stacks=20=E3=81=AE?= =?UTF-8?q?=E8=89=B2=E6=AE=B5=E9=9A=8E=E3=82=92=20Inventory=20=E3=83=81?= =?UTF-8?q?=E3=83=A3=E3=83=BC=E3=83=88=E3=81=A8=E7=B5=B1=E4=B8=80=E3=81=99?= =?UTF-8?q?=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit AGE_THRESHOLDS を 4 段階から 6 段階に拡張し、Inventory チャートと 同じ色段階(blue, emerald, amber, red, purple, neutral-800)に統一。 Closes #258 Co-Authored-By: Claude Opus 4.6 (1M context) --- app/routes/$orgSlug/+components/pr-block.tsx | 30 ++++++++++++++------ 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/app/routes/$orgSlug/+components/pr-block.tsx b/app/routes/$orgSlug/+components/pr-block.tsx index 231eb83e..5310b371 100644 --- a/app/routes/$orgSlug/+components/pr-block.tsx +++ b/app/routes/$orgSlug/+components/pr-block.tsx @@ -43,16 +43,16 @@ export const UNKNOWN_COLOR: BlockColor = { export const AGE_THRESHOLDS = [ { maxDays: 1, - bg: 'bg-emerald-500', - ring: 'ring-emerald-500', - bgFaint: 'bg-emerald-500/20', + bg: 'bg-blue-500', + ring: 'ring-blue-500', + bgFaint: 'bg-blue-500/20', label: '< 1d', }, { maxDays: 3, - bg: 'bg-blue-500', - ring: 'ring-blue-500', - bgFaint: 'bg-blue-500/20', + bg: 'bg-emerald-500', + ring: 'ring-emerald-500', + bgFaint: 'bg-emerald-500/20', label: '1-3d', }, { @@ -63,11 +63,25 @@ export const AGE_THRESHOLDS = [ label: '3-7d', }, { - maxDays: Infinity, + maxDays: 14, bg: 'bg-red-500', ring: 'ring-red-500', bgFaint: 'bg-red-500/20', - label: '7d+', + label: '7-14d', + }, + { + maxDays: 30, + bg: 'bg-purple-500', + ring: 'ring-purple-500', + bgFaint: 'bg-purple-500/20', + label: '14-30d', + }, + { + maxDays: Infinity, + bg: 'bg-neutral-800', + ring: 'ring-neutral-800', + bgFaint: 'bg-neutral-800/20', + label: '31d+', }, ] as const From c294149d2aaf8820098a5375ac94acf56c696d34 Mon Sep 17 00:00:00 2001 From: coji Date: Mon, 30 Mar 2026 17:40:04 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20Legend=20=E3=81=AB=20flex-wrap=20?= =?UTF-8?q?=E3=82=92=E8=BF=BD=E5=8A=A0=E3=81=97=E3=81=A6=206=20=E6=AE=B5?= =?UTF-8?q?=E9=9A=8E=E3=81=A7=E3=82=82=E6=8A=98=E3=82=8A=E8=BF=94=E3=81=97?= =?UTF-8?q?=E8=A1=A8=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- app/routes/$orgSlug/workload/+components/team-stacks-chart.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/$orgSlug/workload/+components/team-stacks-chart.tsx b/app/routes/$orgSlug/workload/+components/team-stacks-chart.tsx index 235aea17..204d00df 100644 --- a/app/routes/$orgSlug/workload/+components/team-stacks-chart.tsx +++ b/app/routes/$orgSlug/workload/+components/team-stacks-chart.tsx @@ -332,7 +332,7 @@ function UnassignedRows({ prs }: { prs: StackPR[] }) { function Legend({ mode }: { mode: ColorMode }) { return ( -
+
{mode === 'size' ? ( <> {PR_SIZE_LABELS.map((label) => (