Skip to content
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

Merged
merged 16 commits into from
Nov 27, 2024
Merged

Conversation

ijun17
Copy link
Collaborator

@ijun17 ijun17 commented Nov 26, 2024

  • 제목 : [BE/FE] feat#이슈번호 기능명
    ex) [BE] feat#156 자동배포 구현
    (확인 후 지워주세요)

➕ 이슈 번호

  • #이슈번호

🔎 작업 내용

  • API 명세에 변경에 따라 몇 가지 수정
  • 퀴즈 설정 모달에 검색어 없어도 퀴즈 리스트뜨도록 구현
  • 다양한 이모티콘
  • 죽으면 유령으로 바뀌고 하늘로 승천함

한번 봐주세용
https://news.taskify.shop/game/test-load-with-quiz


🖼 참고 이미지


🎯 리뷰 요구사항 (선택)

  • 특별히 봐줬으면 하는 부분이 있다면 적어주세요

✅ Check List

  • merge할 브랜치의 위치를 확인했나요?
  • Label을 지정했나요?

@ijun17 ijun17 self-assigned this Nov 26, 2024
Copy link
Collaborator

@DongHoonYu96 DongHoonYu96 left a comment

Choose a reason for hiding this comment

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

유령되는거 너무 귀엽네요
시연까지 고생하셨습니다~!

@DongHoonYu96 DongHoonYu96 requested a review from Copilot November 27, 2024 01:18
Copy link
Contributor

@Copilot Copilot AI left a 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>;
Copy link
Preview

Copilot AI Nov 27, 2024

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'.

Suggested change
initialrized: Promise<void>;
initialized: Promise<void>;

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
@@ -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;
Copy link
Preview

Copilot AI Nov 27, 2024

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>;.

Suggested change
if (isLoading) return;
if (isLoading) return <p>Loading...</p>;

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
<div
className="mt-2 text-[0.625rem]"
style={{
color: isCurrent ? 'lightgreen' : 'inherit',
opacity: isCurrent ? '1' : '0.2',
Copy link
Preview

Copilot AI Nov 27, 2024

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.

Suggested change
opacity: isCurrent ? '1' : '0.2',
fontWeight: isCurrent ? 'bold' : 'normal',

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
Copy link
Collaborator

@songbuild00 songbuild00 left a comment

Choose a reason for hiding this comment

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

귀욥네요

Comment on lines 77 to 81
socketService.on('selfId', (data) => {
const playerName = usePlayerStore.getState().players.get(data.playerId);
usePlayerStore.getState().setCurrentPlayerId(data.playerId);
usePlayerStore.getState().setCurrentPlayerName(String(playerName));
});
Copy link
Collaborator

Choose a reason for hiding this comment

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

저는 API 명세서 보고 이벤트 이름을 getSelfID 로 해두었는데, 여기는 selfId 로 되어 있네요..!

Copy link
Collaborator

@NewCodes7 NewCodes7 Nov 27, 2024

Choose a reason for hiding this comment

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

Suggested change
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));
});

Copy link
Collaborator

@always97 always97 left a comment

Choose a reason for hiding this comment

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

다양한 이모티콘 좋습니다

@ijun17 ijun17 merged commit 425bac9 into boostcampwm-2024:dev-fe Nov 27, 2024
@ijun17 ijun17 deleted the feature-fe-design branch December 5, 2024 08:44
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.

5 participants