Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 22 additions & 8 deletions app/routes/$orgSlug/+components/pr-block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
{
Expand All @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ function UnassignedRows({ prs }: { prs: StackPR[] }) {

function Legend({ mode }: { mode: ColorMode }) {
return (
<div className="flex items-center gap-3 text-xs">
<div className="flex flex-wrap items-center gap-3 text-xs">
{mode === 'size' ? (
<>
{PR_SIZE_LABELS.map((label) => (
Expand Down
Loading