Skip to content

Conversation

@yoonminsang
Copy link
Contributor

📝 Key Changes

  • TIL 첫 페이지에서 카테고리 필터링 누락으로 모든 카테고리의 discussion이 보이는 이슈를 해결했습니다.
  • categoryName => categoryId 변경 작업을 진행했습니다.
    • categoryName으로 categoryId를 불러오는 불필요한 과정 => categoryId를 이용해 api 호출 최소화
    • categoryName을 하드코딩 => 상수로 분리
    • 새로운 categoryId가 필요할때는 dev전용 페이지(http://localhost:5173/today-i-learned/dev-tools/category-id)에서 쉽게 categoryId 얻기
    • 메인테이너가 아니라서 기존 코드 리팩토링은 최대한 하지 않았습니다.

🖼️ Before and After Comparison

Before After

/today-i-learned/dev-tools/category-id 신규 페이지
스크린샷 2025-11-10 오전 12 45 19

Before
스크린샷 2025-11-10 오전 12 46 39

After
스크린샷 2025-11-10 오전 12 46 07

- categoryName으로 categoryId를 불러오는 불필요한 과정 => categoryId를 이용해 api 호출 최소화
- categoryName을 하드코딩 => 상수로 분리
- 새로운 categoryId가 필요할때는 dev전용 페이지에서 쉽게 categoryId 얻기
- 메인테이너가 아니라서 기존 코드 리팩토링은 최대한 하지 않았습니다.
@vercel
Copy link

vercel bot commented Nov 9, 2025

@yoonminsang is attempting to deploy a commit to the Toss Team on Vercel.

A member of the Team first needs to authorize it.

@yoonminsang yoonminsang changed the title Fix/post list category TIL > 카테고리 필터링 누락 코드 수정 및 categoryName => categoryId 마이그레이션 Nov 9, 2025
Copy link
Collaborator

@milooy milooy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

민상님! Thank you for the contribution!

@milooy milooy merged commit 72b65d1 into toss:main Nov 10, 2025
1 of 2 checks passed
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.

2 participants