Skip to content

refactor(categories): 카테고리 목록 페이지를 카드 그리드로 분리 - #78

Merged
CoBool merged 1 commit into
mainfrom
claude/category-page-card-grid
Aug 15, 2026
Merged

refactor(categories): 카테고리 목록 페이지를 카드 그리드로 분리#78
CoBool merged 1 commit into
mainfrom
claude/category-page-card-grid

Conversation

@CoBool

@CoBool CoBool commented Aug 15, 2026

Copy link
Copy Markdown
Owner

변경 내용

  • src/components/category-grid.tsx 추가 — 카테고리명·글 개수·폴더 아이콘·화살표를 가진 카드 그리드.
  • src/app/(site)/categories/page.tsxTaxonomyList 대신 CategoryGrid를 쓰도록 변경.
  • /tags, 홈 화면 "둘러보기" 미리보기는 그대로 TaxonomyList(칩 목록) 유지.

변경 이유

/categories/tags가 같은 TaxonomyList 컴포넌트를 그대로 써서 픽셀 단위로 동일했다. 두 taxonomy는 성격이 다르다: 카테고리는 글마다 정확히 하나만 붙는 배타적 분류라 수가 적고 사이트의 큰 섹션 역할을 하고, 태그는 글마다 여러 개 붙는 교차 분류라 수가 늘어날 수 있다. 지금의 작은 칩 목록은 태그에는 맞지만, 카테고리에는 실제보다 가벼워 보였다.

카테고리 목록만 카드 그리드로 바꿔서 "섹션 허브"처럼 보이게 했다. 상세 페이지([category]/[tag])와 홈의 압축 미리보기는 그대로 뒀다 — 목록 페이지 하나만 바뀌어도 두 taxonomy가 다르게 느껴진다.

검증

  • pnpm lint 통과
  • pnpm typecheck 통과
  • pnpm test — 211개 전부 통과
  • pnpm build 통과
  • 로컬에서 /categories(카드 그리드로 변경 확인), /tags(칩 목록 그대로), 홈 "둘러보기" 미리보기(칩 그대로) 스크린샷으로 확인

🤖 Generated with Claude Code

/categories and /tags shared the exact same chip-list component
(TaxonomyList), so two taxonomies with different semantics looked
identical. Categories are exclusive (one per post, few in number,
broad sections); tags are cross-cutting (many per post, can grow
large) — the pill list already fits tags well.

Add CategoryGrid: a card grid where each category gets a folder icon,
its name, post count, and a chevron affordance, sized to read as a
section hub rather than a keyword chip. Tags and the homepage's
compact "둘러보기" preview are untouched.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@CoBool
CoBool merged commit 3db1012 into main Aug 15, 2026
1 check passed
@CoBool
CoBool deleted the claude/category-page-card-grid branch August 15, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant