-
Notifications
You must be signed in to change notification settings - Fork 5
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
[FE] feat 디자인 #272
[FE] feat 디자인 #272
Conversation
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.
유령되는거 너무 귀엽네요
시연까지 고생하셨습니다~!
Copilot
AI
left a comment
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.
Copilot reviewed 5 out of 20 changed files in this pull request and generated 3 suggestions.
Files not reviewed (15)
- FE/src/index.css: Language not supported
- FE/src/features/game/data/socketListener.ts: Evaluated as low risk
- FE/src/features/game/components/ResultModal.tsx: Evaluated as low risk
- FE/src/features/game/components/QuizHeader.tsx: Evaluated as low risk
- FE/src/features/game/components/AnswerModal.tsx: Evaluated as low risk
- FE/src/features/game/components/ParticipantDisplay.tsx: Evaluated as low risk
- FE/src/features/game/pages/GameSetupPage.tsx: Evaluated as low risk
- FE/src/features/game/components/NicknameModal.tsx: Evaluated as low risk
- FE/src/features/game/pages/GamePage.tsx: Evaluated as low risk
- FE/src/features/game/components/QuizSettingModal.tsx: Evaluated as low risk
- FE/src/api/socket/socketEventTypes.ts: Evaluated as low risk
- FE/tailwind.config.js: Evaluated as low risk
- FE/src/features/game/pages/PinPage.tsx: Evaluated as low risk
- FE/src/features/game/components/GameHeader.tsx: Evaluated as low risk
- FE/src/features/game/data/store/usePlayerStore.ts: Evaluated as low risk
@@ -6,8 +6,27 @@ type SocketEvent = keyof SocketDataMap; | |||
export class SocketMock { | |||
private listenerSet: Record<string, ((...args: unknown[]) => void)[]> = {}; | |||
private onAnyListenerList: ((event: string, ...args: unknown[]) => void)[] = []; | |||
initialrized: Promise<void>; |
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.
The variable name 'initialrized' is misspelled. It should be 'initialized'.
initialrized: Promise<void>; | |
initialized: Promise<void>; |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
@@ -65,8 +65,22 @@ const QuizSetSearchList = ({ onClick, search }: Params) => { | |||
return () => observer.disconnect(); | |||
}, [onIntersect]); | |||
|
|||
if (isLoading) return <p>Loading...</p>; | |||
if (isError) return <p>Error fetching data.</p>; | |||
if (isLoading) return; |
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.
The loading message is not displayed correctly. It should be if (isLoading) return <p>Loading...</p>;
.
if (isLoading) return; | |
if (isLoading) return <p>Loading...</p>; |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
<div | ||
className="mt-2 text-[0.625rem]" | ||
style={{ | ||
color: isCurrent ? 'lightgreen' : 'inherit', | ||
opacity: isCurrent ? '1' : '0.2', |
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.
[nitpick] Reducing the opacity of non-current players' names to 0.2 might impact readability. Consider using a different method to highlight the current player without reducing the readability of other players' names.
opacity: isCurrent ? '1' : '0.2', | |
fontWeight: isCurrent ? 'bold' : 'normal', |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
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.
귀욥네요
socketService.on('selfId', (data) => { | ||
const playerName = usePlayerStore.getState().players.get(data.playerId); | ||
usePlayerStore.getState().setCurrentPlayerId(data.playerId); | ||
usePlayerStore.getState().setCurrentPlayerName(String(playerName)); | ||
}); |
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.
저는 API 명세서 보고 이벤트 이름을 getSelfID
로 해두었는데, 여기는 selfId
로 되어 있네요..!
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.
socketService.on('selfId', (data) => { | |
const playerName = usePlayerStore.getState().players.get(data.playerId); | |
usePlayerStore.getState().setCurrentPlayerId(data.playerId); | |
usePlayerStore.getState().setCurrentPlayerName(String(playerName)); | |
}); | |
socketService.on('getSelfId', (data) => { | |
const playerName = usePlayerStore.getState().players.get(data.playerId); | |
usePlayerStore.getState().setCurrentPlayerId(data.playerId); | |
usePlayerStore.getState().setCurrentPlayerName(String(playerName)); | |
}); |
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.
다양한 이모티콘 좋습니다
ex) [BE] feat#156 자동배포 구현
(확인 후 지워주세요)
➕ 이슈 번호
🔎 작업 내용
한번 봐주세용
https://news.taskify.shop/game/test-load-with-quiz
🖼 참고 이미지
🎯 리뷰 요구사항 (선택)
✅ Check List