-
Notifications
You must be signed in to change notification settings - Fork 0
Feat/team PR #53
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
Feat/team PR #53
Conversation
student๊น์ง ๊ตฌ๋ถํ ์ ์๊ฒ
|
๐ ๋ฐฐํฌ ์ค๋น์ค ์์ํฌํธ : |
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 17 out of 18 changed files in this pull request and generated 1 comment.
Files not reviewed (1)
- package.json: Language not supported
Comments suppressed due to low confidence (1)
src/app/components/profile/Item.tsx:17
- [nitpick] The prop 'profile' is being used as an array in the mapping function; renaming it to 'profiles' could improve clarity regarding its contents.
profile.map((profile) => (
| .schema('project') | ||
| .from('projects') | ||
| .select('*, category_id!inner(*)'); | ||
| let query; |
Copilot
AI
Apr 10, 2025
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 Filter component accepts a type that includes 'student' but does not define a query branch for it, which may lead to undefined behavior. Consider adding an appropriate branch or limiting the type union to only the supported cases.
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.
./src/app/components/project/filter/Filter.tsx:66:15
Type error: Property 'data' does not exist on type 'PostgrestResponseFailure | PostgrestResponseSuccess<{ created_at: string; email: string | null; isTeam: boolean; link: string[] | null; owner: string | null; profile_id: string; profile_name: string; }[]> | PostgrestResponseSuccess<...> | undefined'.
64 | }
65 |
> 66 | const { data, error } = await query;
| ^
67 |
68 | if (error) {
69 | console.error('Error fetching search results:', error);
|
๋๋ถ๋ถ์ span ํ๊ทธ์ leading-[150%] tracking-normal ์ด ์๋๋ฐ ์ด๋ค ์๋๋ก ์์ฑํ์ ๊ฑด๊ฐ์? |
|
#0B50D0 ์์ด ๋ฐ๋ณต๋์ด tailwind.config.ts ์ ์ ์ํด์ ์ฌ์ฉํ๋ ๊ฒ๋ ์ข์ ๊ฑฐ ๊ฐ์ต๋๋ค. |
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.
๋ชจ์๋ณด๊ธฐ๊ฐ ์๋ span ํ๊ทธ์ Filter, TotalList ๋ฅผ ํ๋์ ์ปดํฌ๋ํธ๋ก ๋ง๋ ๋ค ๋ค๋ฅธ ๋์ ์ธ ๋ถ๋ถ๋ค์ Layout ์ผ๋ก ๋ง๋๋ ๊ฒ์ด ์ข์ ๊ฑฐ ๊ฐ์ต๋๋ค
| return ( | ||
| <> | ||
| <div className="flex justify-center items-center"> | ||
| <div className="container mx-auto pt-10 pb-16 px-[1.875rem] flex flex-col gap-[1.125rem] bg-white mt-24 md:max-w-[94.5rem] md:pr-16 md:pl-16 md:gap-[1.125rem]"> |
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.
md:pr-16 md:pl-16 ์ด ์ฝ๋๋ฅผ md:px-16 ์ผ๋ก ์ฌ์ฉํ ์ ์์ ๊ฑฐ ๊ฐ์ต๋๋ค.
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.
Tag ์ปดํฌ๋ํธ์ 24๋ฒ์งธ ๋ผ์ธ์ tracking-normal ์ด๋ leading-[150%] ๊ฐ ์ ํ์ํ๊ฑด๊ฐ์?
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.
setSearch ๋ณด๋ค๋ ๋ค๋ฅธ ์ด๋ฆ์ด ์ข์ ๊ฑฐ ๊ฐ์ต๋๋ค. ์ธํฐ ํจ์ ๊ฐ์ต๋๋ค.
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.
14๋ฒ์งธ ์ค์ Topics ๋ผ๋ interface ๊ฐ ๋๋ถ๋ถ Tag ์ ์ฐ์ด๋๋ฐ ์ ์ด๋ฆ์ Topics ์ธ๊ฐ์?
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.
TagList ์ Tag ๊ฐ ์๊ธฐ๋ฉด ํ๋ฉด์ด ์์ง์ ๋๋ค.
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.
์ 31๋ฒ์ค css ์๋ง material-symbols-outlined ๋ฅผ ์ฐ์ จ๋์?
| fetchProjects(); | ||
| setCurrentPage(1); | ||
| }, [searchQuery, sort]); | ||
| }, [searchQuery, sort, setSearch, setCurrentPage, type]); |
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.
์ด๋ ๊ฒ ๋๋ฉด ์ ์ฉํ๊ธฐ ๋ฒํผ์ ๋๋ฅด์ง ์์๋ ํ๊ทธ๋ ๊ฒ์์ด๊ฐ ์ ์ฉ๋ ๊ฑฐ ๊ฐ์ต๋๋ค.
+
๊ฒ์์ด์ ํ ๋ฒ ๋ฌธ์๋ฅผ ๋ฃ์ ๋๋ง๋ค supabase ์ ์์ฒญ์ ๋ณด๋ด๋๊ฑฐ ์๋๊ฐ์? ์ด ์ฝ๋๋ ๊ผญ ์์ ์ด ํ์ํด๋ณด์
๋๋ค. React Query ๋ฅผ ์ฐ๋์ง, project ์ team ๋ฐ์ดํฐ๋ฅผ ํ ๋ฒ ๋ฐ์์จ ๋ค ๋ฐ์์จ ๋ฐ์ดํฐ๋ฅผ ๊ฐ์ง๊ณ filter ํ๋ ๋ฐฉ์์ผ๋ก ๋ฆฌํฉํ ๋ง ํ๋ ๊ฒ์ด ์ข์ ๊ฑฐ ๊ฐ์ต๋๋ค.
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.
38๋ฒ์ค์ console.log(data) ๋ฅผ ์ญ์ ํด์ฃผ์ จ์ผ๋ฉด ์ข๊ฒ ์ต๋๋น
๐ก ๊ฐ์
team ๋ชจ์๋ณด๊ธฐ ํ์ด์ง ๊ฐ๋ฐ
๐ ์์ ๋ด์ฉ
๋ฆฌํํ ๋ง๊ณผ ํจ๊ป ๋ชจ์๋ณด๊ธฐ์ ๋ง๋ type์ ์ง์ ํด์ ์กฐ๊ฑด๋ฌธ ์์ฑ
Profile๊ณผ Project๋ฅผ ๋ชจ์์ ๋ง๋ ๋ ๋ค๋ฅธ type์ ๋ง๋ค์ด์ ๊ฒ์ ๋๊ฒ ์์ฑ
๐ ๋ณ๊ฒฝ์ฌํญ
๐ธ ์คํฌ๋ฆฐ์ท