Open
Conversation
Contributor
There was a problem hiding this comment.
Code Review
이번 풀 리퀘스트는 매칭 결과 페이지와 관련 컴포넌트들을 구현하고 있습니다. 주요 변경 사항으로 쉬머 애니메이션 추가, 매칭 결과 정보를 보여주는 MatchingResult, 롱프레스 기능을 포함한 ResultFooter, 그리고 대기 화면인 WaitingFrame이 도입되었습니다. 또한 BackButton 컴포넌트가 ReactNode를 수용할 수 있도록 개선되었습니다. 코드 리뷰에서는 순수 로직의 유틸리티화, 하드코딩된 데이터의 props 전환, 리스트 렌더링 시 고유 키 사용, 고정된 타임아웃 대신 실제 로딩 상태 활용, 그리고 접근성 향상을 위한 aria-label 추가와 같은 개선 사항들이 제안되었습니다.
Comment on lines
+8
to
+13
| const allHobbies = Object.values(HOBBIES).flat(); | ||
| const allAdvantages = Object.values(ADVANTAGES).flat(); | ||
|
|
||
| const findWithEmoji = (list: readonly string[] | string[], text: string) => { | ||
| return list.find((item) => item.includes(text)) || text; | ||
| }; |
Contributor
There was a problem hiding this comment.
Comment on lines
+16
to
+27
| const data = { | ||
| nickname: "겨울이오길", | ||
| major: "정보통신전자공학부", | ||
| age: "21", | ||
| mbti: "ENTP", | ||
| contactFrequency: "보통", | ||
| hobbies: ["축구", "영화감상", "캠핑", "코딩", "게임"], | ||
| strengths: ["다정다감", "유머러스", "계획적"], | ||
| song: "한로로 - 사랑하게 될 거야", | ||
| intro: "친하게 지내요@!🙃", | ||
| instagram: "@winterizcoming_", | ||
| }; |
Contributor
| <div className="flex w-full flex-row flex-wrap items-start gap-1 py-1"> | ||
| {data.hobbies.map((hobby, index) => ( | ||
| <div | ||
| key={index} |
Contributor
| <div className="flex w-full flex-row flex-wrap items-start gap-1 py-1"> | ||
| {data.strengths.map((strength, index) => ( | ||
| <div | ||
| key={index} |
Contributor
| if (prev <= 1) { | ||
| setIsTriggered((prevTriggered) => { | ||
| if (prevTriggered) return prevTriggered; | ||
| alert("한 번 더 뽑기 로직 실행!"); // 로직 실행 위치 |
Contributor
Comment on lines
+82
to
+88
| <button | ||
| onMouseDown={handleHoldStart} | ||
| onMouseUp={handleHoldEnd} | ||
| onMouseLeave={handleHoldEnd} | ||
| onTouchStart={handleHoldStart} | ||
| onTouchEnd={handleHoldEnd} | ||
| className="flex w-full flex-row items-center justify-center gap-2 rounded-[15px] bg-linear-to-r from-[#FF4D61] to-[#FF775E] px-[22px] py-4 text-white shadow-[0px_4px_16px_rgba(0,0,0,0.12)] backdrop-blur-[50px] transition-all select-none active:scale-[0.98]" |
Contributor
Comment on lines
+13
to
+15
| const timer = setTimeout(() => { | ||
| setIsWaiting(false); | ||
| }, 3000); |
Contributor
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
PR Type
Enhancement
Description
매칭 결과 화면 UI 컴포넌트 구현
사용자 프로필 정보 표시 레이아웃 구성
롱프레스 기반 한 번 더 뽑기 인터랙션 추가
로딩 상태 표시 및 shimmer 애니메이션 효과
Diagram Walkthrough
File Walkthrough
globals.css
Shimmer 애니메이션 효과 추가app/globals.css
--animate-shimmerCSS 변수 추가shimmer키프레임 애니메이션 정의MatchingResult.tsx
매칭 결과 프로필 정보 컴포넌트app/matching-result/_components/MatchingResult.tsx
ResultFooter.tsx
결과 화면 하단 액션 버튼 및 롱프레스app/matching-result/_components/ResultFooter.tsx
ScreenMatchingResult.tsx
매칭 결과 페이지 메인 레이아웃app/matching-result/_components/ScreenMatchingResult.tsx
WaitingFrame.tsx
로딩 상태 표시 컴포넌트app/matching-result/_components/WaitingFrame.tsx
page.tsx
매칭 결과 페이지 라우트app/matching-result/page.tsx
BackButton.tsx
BackButton 컴포넌트 유연성 개선components/ui/BackButton.tsx
textprop 타입을string에서React.ReactNode로 변경span에서div로 변경하여 복합 콘텐츠 지원✨ Describe tool usage guide:
Overview:
The
describetool scans the PR code changes, and generates a description for the PR - title, type, summary, walkthrough and labels. The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on a PR.When commenting, to edit configurations related to the describe tool (
pr_descriptionsection), use the following template:With a configuration file, use the following template:
Enabling\disabling automation
meaning the
describetool will run automatically on every PR.the tool will replace every marker of the form
pr_agent:marker_namein the PR description with the relevant content, wheremarker_nameis one of the following:type: the PR type.summary: the PR summary.walkthrough: the PR walkthrough.diagram: the PR sequence diagram (if enabled).Note that when markers are enabled, if the original PR description does not contain any markers, the tool will not alter the description at all.
Custom labels
The default labels of the
describetool are quite generic: [Bug fix,Tests,Enhancement,Documentation,Other].If you specify custom labels in the repo's labels page or via configuration file, you can get tailored labels for your use cases.
Examples for custom labels:
Main topic:performance- pr_agent:The main topic of this PR is performanceNew endpoint- pr_agent:A new endpoint was added in this PRSQL query- pr_agent:A new SQL query was added in this PRDockerfile changes- pr_agent:The PR contains changes in the DockerfileThe list above is eclectic, and aims to give an idea of different possibilities. Define custom labels that are relevant for your repo and use cases.
Note that Labels are not mutually exclusive, so you can add multiple label categories.
Make sure to provide proper title, and a detailed and well-phrased description for each label, so the tool will know when to suggest it.
Inline File Walkthrough 💎
For enhanced user experience, the
describetool can add file summaries directly to the "Files changed" tab in the PR page.This will enable you to quickly understand the changes in each file, while reviewing the code changes (diffs).
To enable inline file summary, set
pr_description.inline_file_summaryin the configuration file, possible values are:'table': File changes walkthrough table will be displayed on the top of the "Files changed" tab, in addition to the "Conversation" tab.true: A collapsable file comment with changes title and a changes summary for each file in the PR.false(default): File changes walkthrough will be added only to the "Conversation" tab.Utilizing extra instructions
The
describetool can be configured with extra instructions, to guide the model to a feedback tailored to the needs of your project.Be specific, clear, and concise in the instructions. With extra instructions, you are the prompter. Notice that the general structure of the description is fixed, and cannot be changed. Extra instructions can change the content or style of each sub-section of the PR description.
Examples for extra instructions:
Use triple quotes to write multi-line instructions. Use bullet points to make the instructions more readable.
More PR-Agent commands
See the describe usage page for a comprehensive guide on using this tool.