diff --git a/docs/ledger/estimates.jsonl b/docs/ledger/estimates.jsonl index 04c882b5..090116c7 100644 --- a/docs/ledger/estimates.jsonl +++ b/docs/ledger/estimates.jsonl @@ -5,3 +5,4 @@ {"schema": 1, "kind": "estimate", "task": "w2-fe-ci-perf", "recorded_at": "2026-11-12T00:10+09:00", "transcript": "00d79702-1dea-4e11-b79a-f021d0d9f4bb", "started_at": "2026-11-11T21:30+09:00", "base": "d1b9c087", "task_kind": "improve+operate", "size": "large", "minutes": {"p30": 540, "p50": 870, "p80": 1380}, "calls": {"p30": 400, "p50": 600, "p80": 900}, "output_tokens": {"p30": 300000, "p50": 450000, "p80": 700000}, "basis": "시간은 착수 노트(공유 노트 w2-fe-ci-perf.md, 2026-11-11 21:45)의 1·2단계 합 9h·14.5h·23h를 옮겼다. 선례 fe-a-layout3-ci의 CI 재편 PR B 예측 3~6시간과 merge 단계 desktop 1회 22~25분. 2단계 불확실성은 FE-GATE-013 실행 환경(호스트·runner 변경 대기)과 runner 1대(1회 25~35분)의 실패-고침 반복 3~5번. 호출·출력 토큰은 착수 때 적지 않아 2단계 시작(1단계 실측 약 2.5시간)에 적었다."} {"schema": 1, "kind": "actual", "task": "w2-fe-ci-perf", "recorded_at": "2026-11-12T22:25+09:00", "transcript": "00d79702-1dea-4e11-b79a-f021d0d9f4bb", "minutes": 1463, "active_minutes": 308, "calls": 447, "output_tokens": 413297, "cache_read_tokens": 246773496, "max_context": 943246, "within": "p30", "result": "partial", "commits": ["ddfcb6f6", "79a225b6", "0d8e4f5a", "b4210753", "66138440", "1d3eb901", "92abfd20", "1f09c1cc", "27876ffc", "35b60a04", "f90ffb6c", "f6e2560e", "ba72b865"], "why": "작업 중 시간은 p30 안이지만 일이 끝나지 않고 인계됐다(PR #19 Draft). 벽시계의 대부분은 runner 대기열(백엔드 정기 lane 뒤)과 desktop heavy 잠금 대기다. 남은 것: runner 초록 확인, concurrency, firefox 흔들림, coverage 경로, 느린 시험 둘. 세션 기록으로 다시 셌고 인계 절을 쓴 22:10 KST 뒤까지 들어 있다. 기록은 이어받은 세션이 남긴다"} {"schema": 1, "kind": "estimate", "task": "w2-fe2-takeover", "recorded_at": "2026-11-12T22:25+09:00", "transcript": "fa9a12aa-7abc-46ca-a5fd-ee00cab98618", "started_at": "2026-11-12T21:05+09:00", "base": "ba72b865", "task_kind": "improve+operate", "size": "large", "minutes": {"p30": 180, "p50": 300, "p80": 480}, "calls": {"p30": 250, "p50": 400, "p80": 650}, "output_tokens": {"p30": 150000, "p50": 250000, "p80": 400000}, "basis": "PR #19 이어받기(인계 절 2026-11-12 22:10). concurrency·coverage 경로·느린 시험 둘은 각 30~60분(작음, 선례 W2-BE concurrency). firefox 008 흔들림은 원인 미확정이라 1~4시간. runner 1대를 백엔드와 같이 써 PR run 하나가 대기 포함 1시간 이상(W2-BE 기록: PR run이 2~4시간 뒤로 밀림), 초록 3회와 실패-고침 1~2번을 p80에 넣었다. 첫 5분 뒤에 적었다(인계 대기 중 시작)"} +{"schema": 1, "kind": "estimate", "task": "r9-fe-group-A", "recorded_at": "2026-11-13T18:50+09:00", "transcript": "66f9f89d-a13f-4cee-a2bf-c3c528c6bfb2", "started_at": "2026-11-13T17:57+09:00", "base": "ee95573f", "task_kind": "improve", "size": "large", "minutes": {"p30": 300, "p50": 420, "p80": 600}, "calls": {"p30": 350, "p50": 500, "p80": 750}, "output_tokens": {"p30": 200000, "p50": 300000, "p80": 450000}, "basis": "round9 그룹 A 발견 22건(화면·토큰·story·검사·접근성 기록)을 PR 셋으로. 바꿀 파일 약 60개, CSS 선언 118개 토큰화와 story 37개가 가장 크다. desktop heavy 잠금을 다른 세션 넷과 같이 써 실행마다 대기 10~30분, merge 단계 셋(각 약 21분)과 골든 갱신·변이 실험, runner run 셋(각 약 23분)을 p80에 넣었다. 선례 r9-fe F4a·F5(묶음당 2~4시간). 착수 약 50분 뒤 발견 원문을 다 읽고 PR1 고침을 쓰던 중에 적었다"} diff --git a/scripts/create-feature.ts b/scripts/create-feature.ts index 5a547dc1..e1a1bf23 100644 --- a/scripts/create-feature.ts +++ b/scripts/create-feature.ts @@ -1182,7 +1182,7 @@ ${write ? `import { ${camel}RouteUrl } from "./${base}-routes.ts";\n` : ""}impor * the page heading. */ export default function ${pascal}ListPage() { - const { message } = useLocale(); + const { message, number } = useLocale(); const query = use${pascal}Items(); return ( @@ -1348,13 +1350,14 @@ describe("${names.id} list page through the router", () => { HttpResponse.json({ success: true, data: [{ id: "item-1", name: "First item" }], - meta: { page: { number: 0, size: 20, total: 41, sort: null } }, + meta: { page: { number: 0, size: 20, total: 12345, sort: null } }, }), ), ); await openList(); - expect(await screen.findByText("총 41개 항목")).toBeVisible(); + // 1112/04-03. The count is a locale-formatted number. + expect(await screen.findByText("총 12,345개 항목")).toBeVisible(); }); // The backend answers an empty list as \`data: []\`, never by dropping \`data\`. diff --git a/src/presentation/design-system/primitives/pagination.tsx b/src/presentation/design-system/primitives/pagination.tsx index 82f9b46a..610a6e08 100644 --- a/src/presentation/design-system/primitives/pagination.tsx +++ b/src/presentation/design-system/primitives/pagination.tsx @@ -32,10 +32,15 @@ export function Pagination(props: PaginationProps) { className="ui-pagination" role={nested ? "group" : undefined} > + {/* At the first or last page the edge button is aria-disabled, not + disabled: pressing "previous" on page 2 must not drop keyboard focus + when it becomes the first page. */} onChange(page - 1)} + aria-disabled={page <= 1 || undefined} + onClick={() => { + if (page > 1) onChange(page - 1); + }} variant="secondary" > @@ -52,8 +57,10 @@ export function Pagination(props: PaginationProps) { )} = pageCount} - onClick={() => onChange(page + 1)} + aria-disabled={page >= pageCount || undefined} + onClick={() => { + if (page < pageCount) onChange(page + 1); + }} variant="secondary" > diff --git a/src/presentation/design-system/primitives/text-area.tsx b/src/presentation/design-system/primitives/text-area.tsx index 99e4beac..e31d4dc7 100644 --- a/src/presentation/design-system/primitives/text-area.tsx +++ b/src/presentation/design-system/primitives/text-area.tsx @@ -27,7 +27,7 @@ export const TextArea = forwardRef( }, ref, ) { - const { message } = useLocale(); + const { message, plural } = useLocale(); const [uncontrolledValue, setUncontrolledValue] = useState( String(defaultValue ?? ""), ); @@ -55,7 +55,10 @@ export const TextArea = forwardRef( ? null : maxLengthMessage ? maxLengthMessage(remaining) - : message("form.remaining", { count: remaining }); + : plural(remaining, { + one: message("form.remaining.one", { count: remaining }), + other: message("form.remaining", { count: remaining }), + }); return ( <>