-
Notifications
You must be signed in to change notification settings - Fork 1
sp1 1차 QA 반영 (대시보드-기능 관련) #130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
a59f353
fix: remind card event sopt propagation 추가
constantly-dev 981cab9
fix: 현재 시간 함수 usememo 추가
constantly-dev 238f04d
fix: article num category data 분기 추가
constantly-dev 3cd0693
fix: 고정된 url 수정 및 badge num 오류 수정
constantly-dev eca6513
fix: 빌드 에러 수정
constantly-dev a16259d
fix: 충돌 해결
constantly-dev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
카테고리별 읽음 필터 캐시 키 누락 가능성 안내(별도 파일 패치)
useGetCategoryBookmarkArticles는 readStatus로 결과가 달라지지만 queryKey에 포함되어 있지 않아 배지 전환 시 캐시 재조회가 되지 않을 수 있습니다.
아래 패치를 별도 파일에 적용해 주세요.
파일: apps/client/src/pages/myBookmark/apis/queries.ts
export const useGetCategoryBookmarkArticles = ( categoryId: string | null, readStatus: boolean, page: number, size: number ): UseQueryResult<CategoryBookmarkArticleResponse, AxiosError> => { return useQuery({ - queryKey: ['categoryBookmarkArticles', categoryId, page, size], + queryKey: ['categoryBookmarkArticles', categoryId, readStatus, page, size], queryFn: () => getCategoryBookmarkArticles(categoryId, readStatus, page, size), enabled: !!categoryId, }); };검증 스크립트(키에 readStatus 누락된 다른 훅도 있는지 확인):
🏁 Script executed:
Length of output: 1836
쿼리 키에 readStatus 누락 — 수정 필요
useGetCategoryBookmarkArticles의 queryKey에 readStatus가 빠져 있어 배지(읽음/전체) 전환 시 캐시가 재조회되지 않습니다. 아래 패치를 apps/client/src/pages/myBookmark/apis/queries.ts에 적용하세요.
파일: apps/client/src/pages/myBookmark/apis/queries.ts
export const useGetCategoryBookmarkArticles = ( categoryId: string | null, readStatus: boolean, page: number, size: number ): UseQueryResult<CategoryBookmarkArticleResponse, AxiosError> => { return useQuery({ - queryKey: ['categoryBookmarkArticles', categoryId, page, size], + queryKey: ['categoryBookmarkArticles', categoryId, readStatus, page, size], queryFn: () => getCategoryBookmarkArticles(categoryId, readStatus, page, size), enabled: !!categoryId, }); };검증 결과:
📝 Committable suggestion
🤖 Prompt for AI Agents