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

Implement lecture search/#10 #46

Merged
merged 21 commits into from
Mar 14, 2024
Merged

Implement lecture search/#10 #46

merged 21 commits into from
Mar 14, 2024

Conversation

gahyuun
Copy link
Member

@gahyuun gahyuun commented Mar 8, 2024

๐Ÿ“Œ ์ž‘์—… ๋‚ด์šฉ

๊ตฌํ˜„ ๋‚ด์šฉ ๋ฐ ์ž‘์—… ํ–ˆ๋˜ ๋‚ด์—ญ

  • ์ปค์Šคํ…€ ๋ฒ„ํŠผ ํด๋ฆญ ์‹œ ๊ณผ๋ชฉ ๊ฒ€์ƒ‰ ์ปดํฌ๋„ŒํŠธ ๋ Œ๋”๋ง
  • ์ถ”๊ฐ€ ๋ฒ„ํŠผ ํด๋ฆญ ์‹œ ๊ธฐ์ด์ˆ˜ ๊ณผ๋ชฉ ๋ฆฌ์ŠคํŠธ์— ๋ฐ˜์˜

์ดํ›„ ๊ฒ€์ƒ‰ ๊ธฐ๋Šฅ ๊ตฌํ˜„๊ณผ ์ปค์Šคํ…€ ์ €์žฅ ๊ธฐ๋Šฅ์„ ์ฐจ๋ก€๋Œ€๋กœ ํ•  ์˜ˆ์ •์ž…๋‹ˆ๋‹ค!

  • text-input์„ ์‚ฌ์šฉํ•˜๋Š”๋ฐ font size์ธ text-sm์ด ๋„ˆ๋ฌด ์ž‘๋‹ค๊ณ  ๋Š๊ปด์ง‘๋‹ˆ๋‹ค ์ด ๋ถ€๋ถ„ variant๋ฅผ ํ†ตํ•ด ์กฐ์ •ํ•ด๋„ ๊ดœ์ฐฎ์„์ง€ ์—ฌ์ญค๋ณด๊ณ ์‹ถ์Šต๋‹ˆ๋‹ค
  • select ์ปดํฌ๋„ŒํŠธ์˜ min width๋ฅผ 10rem์œผ๋กœ ์„ค์ •ํ•˜์…จ๋Š”๋ฐ ๊ทธ๊ฒƒ๋ณด๋‹ค ๋” ์ž‘๊ฒŒ ํ•˜๊ณ  ์‹ถ์–ด min width ์†์„ฑ์„ ์ œ๊ฑฐํ–ˆ์Šต๋‹ˆ๋‹ค ํ˜น์‹œ ๊ผญ ํ•„์š”ํ•œ ์†์„ฑ์ด๋ผ๋ฉด ๋ง์”€ํ•ด์ฃผ์„ธ์š” ๋ณ€๊ฒฝํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค

๐Ÿค” ๊ณ ๋ฏผ ํ–ˆ๋˜ ๋ถ€๋ถ„

  • ๊ณผ๋ชฉ ๊ฒ€์ƒ‰ ์ปดํฌ๋„ŒํŠธ ui๋ฅผ ์ง€๊ธˆ ์กธ๋ถ€ ์„œ๋น„์Šค์™€ ๋‹ค๋ฅด๊ฒŒ ๊ฐ€์ ธ๊ฐ”์Šต๋‹ˆ๋‹ค ์ด์œ ๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์Šต๋‹ˆ๋‹ค
  1. ๋ฒ„ํŠผ ํด๋ฆญ์„ ํ†ตํ•ด ๊ณผ๋ชฉ๋ช…, ๊ณผ๋ชฉ์ฝ”๋“œ ํ‚ค์›Œ๋“œ๋ฅผ ๋ณ€๊ฒฝํ•˜๋Š” ๊ฒƒ์ด ์‚ฌ์šฉ์ž์—๊ฒŒ ์–ด๋ ต๊ฒŒ ๋Š๊ปด์งˆ ๊ฑฐ๋ผ๊ณ  ํŒ๋‹จํ•ด์„œ select๋กœ ๋ณ€๊ฒฝํ–ˆ์Šต๋‹ˆ๋‹ค ์ €๋Š” ์ฒ˜์Œ ๋ดค์„ ๋•Œ ํ•ด๋‹น ๊ธฐ๋Šฅ์ด ์–ด๋–ค ์—ญํ• ์„ ํ•˜๋Š” ์ง€ ํ•œ ๋ฒˆ์— ํŒŒ์•…ํ•˜๊ธฐ ํž˜๋“ค์—ˆ์Šต๋‹ˆ๋‹ค
  2. ๊ฒ€์ƒ‰ํ•˜๊ธฐ ๋ฒ„ํŠผ์ด ์žˆ์œผ๋ฉด ๋””์ž์ธ์ด ์•ˆ์˜ˆ์˜๋‹ค๊ณ  ์ƒ๊ฐํ•ด์„œ ์ œ๊ฑฐํ–ˆ์Šต๋‹ˆ๋‹ค. ๊ผญ ๊ฒ€์ƒ‰ํ•˜๊ธฐ ๋ฒ„ํŠผ์ด ํ•„์š”ํ•œ ์ด์œ ๋„ ๋ชจ๋ฅด๊ฒ ๋”๋ผ๊ตฌ์š”

๐Ÿ”Š ๋„์›€์ด ํ•„์š”ํ•œ ๋ถ€๋ถ„

  • LectureSearchResultContainer ์—์„œ addLecture ํ•จ์ˆ˜๋ฅผ ๊ตฌํ˜„ํ•˜์ง€ ์•Š๊ณ  TakenLectureList(๋ถ€๋ชจ ์ปดํฌ๋„ŒํŠธ)์—์„œ addLecture์„ ๊ตฌํ˜„ํ•˜๊ณ  props๋ฅผ ํ†ตํ•ด ์ „๋‹ฌํ–ˆ์Šต๋‹ˆ๋‹ค
  1. LectureSearchResultContainer ํ•จ์ˆ˜์˜ ์—ญํ• ์„ ๊ฐ•์˜ ๊ฒ€์ƒ‰ ๊ฒฐ๊ณผ๋ฅผ ๋ Œ๋”๋งํ•ด์ฃผ๋Š” ์ปดํฌ๋„ŒํŠธ, TakenLectureList ํ•จ์ˆ˜์˜ ์—ญํ• ์„ ์ปค์Šคํ…€์„ ํ•  ์ˆ˜ ์žˆ๋Š” ๊ธฐ์ด์ˆ˜ ๊ณผ๋ชฉ ๋ฆฌ์ŠคํŠธ๋ผ๊ณ  ์ •์˜๋ฅผ ๋‚ด๋ ธ์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋ฉด ๊ฐ•์˜๋ฅผ ์ถ”๊ฐ€ํ•ด์ฃผ๋Š” ์—ญํ• ์€ TakenLectureList๋ผ๊ณ  ์ƒ๊ฐํ–ˆ์Šต๋‹ˆ๋‹ค
  2. LectureSearchResultContainer์—๋Š” ๊ฐ•์˜ ๊ฒ€์ƒ‰์—๋งŒ ์˜์กดํ•˜๊ณ  ์ปค์Šคํ…€์— ๋Œ€ํ•œ ์˜์กด์„ฑ์„ ์ œ๊ฑฐํ•˜๋ คํ–ˆ์Šต๋‹ˆ๋‹ค

๋„ค์ด๋ฐ ๊ฐ™์€ ๊ฒฝ์šฐ๋Š” ์ด๋•Œํ–ˆ๋˜ ๋…ผ์˜๋ฅผ ์ฐธ๊ณ ํ–ˆ์Šต๋‹ˆ๋‹ค
#42 (comment)

์ œ๊ฐ€ ์ง„ํ–‰ ํ•œ ์ปดํฌ๋„ŒํŠธ ๋ถ„๋ฆฌ๊ฐ€ ๊ด€์‹ฌ์‚ฌ๋ฅผ ์ž˜ ๋ถ„๋ฆฌํ•œ ๊ฒƒ์ธ์ง€ ํ™•์‹ ์ด ์•ˆ๋“œ๋„ค์š” ๋‹ค๋ฅธ ๋ถ„๋“ค ์˜๊ฒฌ ๋” ์ฃผ์‹œ๋ฉด ๊ฐ์‚ฌํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค!

โ—๏ธ๋ฆฌํŒฉํ† ๋ง

๋…ผ์˜๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ๋ฆฌํŒฉํ† ๋ง์„ ์ง„ํ–‰ํ–ˆ์Šต๋‹ˆ๋‹ค

  • taken lecture list์—๋Š” list์˜ ์—ญํ• ์„ ํ•˜๋Š” ๊ฒƒ์ด๋ฏ€๋กœ Lecture search ๊นŒ์ง€ ๋ Œ๋”๋งํ•  ํ•„์š”๊ฐ€ ์—†๋‹ค๊ณ  ์ƒ๊ฐํ–ˆ๊ณ  ๊ทธ๋ž˜์„œ LectureSearch ์ปดํฌ๋„ŒํŠธ๋ฅผ taken lecture list ์ปดํฌ๋„ŒํŠธ ์™ธ๋ถ€์—
    ์„œ ๋ Œ๋”๋ง ์‹œ์ผฐ์Šต๋‹ˆ๋‹ค
แ„‰แ…ณแ„แ…ณแ„…แ…ตแ†ซแ„‰แ…ฃแ†บ 2024-03-12 แ„‹แ…ฉแ„’แ…ฎ 4 58 39

@gahyuun gahyuun self-assigned this Mar 8, 2024
Copy link

github-actions bot commented Mar 8, 2024

yougyung
yougyung previously approved these changes Mar 8, 2024
Copy link
Member

@yougyung yougyung left a comment

Choose a reason for hiding this comment

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

์ˆ˜๊ณ ํ•˜์…จ์Šต๋‹ˆ๋‹ค ๐Ÿ‘

return (
<div className="rounded-2xl border-[1px] border-black-2 w-full">
<div className={twMerge('rounded-xl border-[1px] border-gray-300 w-full ', isScrollList && 'h-72 overflow-auto')}>
Copy link
Member

Choose a reason for hiding this comment

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

isScrollList && 'h-72 overflow-auto ์œ„ ์‹์ด ๊ฑฐ์ง“์ธ ๊ฒฝ์šฐ์—๋Š” className์— false๊ฐ’๋„ ๋“ค์–ด๊ฐ€๋”๋ผ๊ณ ์š”! ์ €๋„ ์ตœ๊ทผ์— ์•Œ๊ฒŒ ๋œ ์ ์ด๋ผ์„œ &&๋…ผ๋ฆฌ์—ฐ์‚ฐ์ž๋ฅผ ์‚ฌ์šฉํ•˜๊ณ  ์‹ถ์„๋•Œ๋Š” cn์—ฐ์‚ฐ์ž๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.

cn utilํ•จ์ˆ˜๋Š” shadcn์„ค์ •์„ ์ง„ํ–‰ํ•˜๋ฉด์„œ app>utils/shadcn/utils.ts ๋‚ด๋ถ€์— ์ด๋ฏธ ์œ„์น˜ํ•ด์ ธ์žˆ์œผ๋ฉฐ, cnํ•จ์ˆ˜๊ฐ€ twMerge์™€ clsx๋ฅผ ์กฐํ•ฉํ•œ ๊ฒƒ์ด๊ธฐ ๋•Œ๋ฌธ์— false๋ฅผ filteringํ•˜๋Š” ๊ฒƒ๋„ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค :)

Suggested change
<div className={twMerge('rounded-xl border-[1px] border-gray-300 w-full ', isScrollList && 'h-72 overflow-auto')}>
<div className={cn('rounded-xl border-[1px] border-gray-300 w-full ', isScrollList && 'h-72 overflow-auto')}>

Copy link
Member Author

Choose a reason for hiding this comment

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

๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค ์ˆ˜์ •ํ–ˆ์Šต๋‹ˆ๋‹ค 0a9c473

@@ -1,8 +1,17 @@
export type LectureInfo = {
export interface LectureInfo {
[index: string]: string | number;
Copy link
Member

Choose a reason for hiding this comment

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

[index: string]: string | number; ์–ด๋–ป๊ฒŒ ์‚ฌ์šฉ๋˜๋‚˜์š”?

Copy link
Member Author

Choose a reason for hiding this comment

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

object.keys ๋ฉ”์„œ๋“œ๋ฅผ ์‚ฌ์šฉํ•  ๋•Œ ์‚ฌ์šฉํ•˜๋Š” key๋Š” string ํƒ€์ž…์ธ๋ฐ, ์ด string ํƒ€์ž…์„ string literal type์— ํ• ๋‹นํ•˜๋ ค ํ–ˆ๊ธฐ ๋•Œ๋ฌธ์— ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ–ˆ์—ˆ๊ณ  ์œ„ ๊ตฌ๋ฌธ์„ ํ†ตํ•ด ํ•ด๊ฒฐํ–ˆ์Šต๋‹ˆ๋‹ค

Copy link
Member

Choose a reason for hiding this comment

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

ํ•ด๋‹น ์ปดํฌ๋„ŒํŠธ๊ฐ€ ๋„๋ฉ”์ธ ์ปดํฌ๋„ŒํŠธ์— ์œ„์น˜ํ•˜๋Š” ๊ฐ€ํ˜„์ด์˜ ์ƒ๊ฐ์ด ๊ถ๊ธˆํ•ด์š” !

Copy link
Member Author

Choose a reason for hiding this comment

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

ํ•ด๋‹น ์ปดํฌ๋„ŒํŠธ๋Š” ๋ฆฌํŒฉํ† ๋ง์„ ํ†ตํ•ด ๋ณ€๊ฒฝ๋˜์—ˆ์Šต๋‹ˆ๋‹ค!

Copy link

yougyung
yougyung previously approved these changes Mar 12, 2024
Copy link
Member

@yougyung yougyung left a comment

Choose a reason for hiding this comment

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

๊ณ ๋ฏผ์˜ ํ”์ ์ด ๋Š๊ปด์ง€๋Š” PR์ด๋„ค์š”. ์ˆ˜๊ณ ํ•˜์…จ์Šต๋‹ˆ๋‹ค ๐Ÿ‘

text-input์„ ์‚ฌ์šฉํ•˜๋Š”๋ฐ font size์ธ text-sm์ด ๋„ˆ๋ฌด ์ž‘๋‹ค๊ณ  ๋Š๊ปด์ง‘๋‹ˆ๋‹ค ์ด ๋ถ€๋ถ„ variant๋ฅผ ํ†ตํ•ด ์กฐ์ •ํ•ด๋„ ๊ดœ์ฐฎ์„์ง€ ์—ฌ์ญค๋ณด๊ณ ์‹ถ์Šต๋‹ˆ๋‹ค

๋™์ผํ•˜๊ฒŒ ๊ฐœ๋ฐœ์„ ์ง„ํ–‰ํ•˜๋ฉด์„œ ๋ถˆํŽธ์„ ๋Š๊ผˆ๋˜ ๋ถ€๋ถ„์ž…๋‹ˆ๋‹ค! ํ•œ ๋ช…์ด ๋‹ด๋‹นํ•ด์„œ ์ „์ฒด์ ์ธ buttonํฌ๊ธฐ์— ๋Œ€ํ•œ refactoring์„ ์ง„ํ–‰ํ•˜๋Š” ๊ฒƒ์ด ์ข‹๋‹ค๊ณ  ์ƒ๊ฐ์ด ๋“ญ๋‹ˆ๋‹ค.

๊ฒ€์ƒ‰ํ•˜๊ธฐ ๋ฒ„ํŠผ์ด ์žˆ์œผ๋ฉด ๋””์ž์ธ์ด ์•ˆ์˜ˆ์˜๋‹ค๊ณ  ์ƒ๊ฐํ•ด์„œ ์ œ๊ฑฐํ–ˆ์Šต๋‹ˆ๋‹ค. ๊ผญ ๊ฒ€์ƒ‰ํ•˜๊ธฐ ๋ฒ„ํŠผ์ด ํ•„์š”ํ•œ ์ด์œ ๋„ ๋ชจ๋ฅด๊ฒ ๋”๋ผ๊ตฌ์š”

๋ง์”€ํ•˜์‹  ์˜๊ฒฌ๊ณผ ๊ฐ™์ด ๊ฒ€์ƒ‰ํ•˜๊ธฐ ๋ฒ„ํŠผ์ด ์—†๋Š” ๊ฒƒ์ด UI/UX์ธก๋ฉด์—์„œ ์œ ๋ฆฌํ•˜๋‹ค๊ณ  ์ƒ๊ฐ์ด ๋“ญ๋‹ˆ๋‹ค. ์ด๋ฅผ ์œ„ํ•ด์„œ๋Š” debouncing ๋ฐ enter๋ฅผ ํ†ตํ•œ apiํ˜ธ์ถœ๋งŒ ๋ฐ˜์˜๋˜์–ด์•ผ ํ•  ๊ฒƒ ๊ฐ™์€๋ฐ, ๋‘๊ฐ€์ง€ ๊ธฐ๋Šฅ ๋ชจ๋‘ ๊ณ„ํšํ•˜๊ณ  ๊ณ„์‹ ์ง€ ๊ถ๊ธ‰ํ•ฉ๋‹ˆ๋‹ค!

@gahyuun
Copy link
Member Author

gahyuun commented Mar 13, 2024

๊ณ ๋ฏผ์˜ ํ”์ ์ด ๋Š๊ปด์ง€๋Š” PR์ด๋„ค์š”. ์ˆ˜๊ณ ํ•˜์…จ์Šต๋‹ˆ๋‹ค ๐Ÿ‘

text-input์„ ์‚ฌ์šฉํ•˜๋Š”๋ฐ font size์ธ text-sm์ด ๋„ˆ๋ฌด ์ž‘๋‹ค๊ณ  ๋Š๊ปด์ง‘๋‹ˆ๋‹ค ์ด ๋ถ€๋ถ„ variant๋ฅผ ํ†ตํ•ด ์กฐ์ •ํ•ด๋„ ๊ดœ์ฐฎ์„์ง€ ์—ฌ์ญค๋ณด๊ณ ์‹ถ์Šต๋‹ˆ๋‹ค

๋™์ผํ•˜๊ฒŒ ๊ฐœ๋ฐœ์„ ์ง„ํ–‰ํ•˜๋ฉด์„œ ๋ถˆํŽธ์„ ๋Š๊ผˆ๋˜ ๋ถ€๋ถ„์ž…๋‹ˆ๋‹ค! ํ•œ ๋ช…์ด ๋‹ด๋‹นํ•ด์„œ ์ „์ฒด์ ์ธ buttonํฌ๊ธฐ์— ๋Œ€ํ•œ refactoring์„ ์ง„ํ–‰ํ•˜๋Š” ๊ฒƒ์ด ์ข‹๋‹ค๊ณ  ์ƒ๊ฐ์ด ๋“ญ๋‹ˆ๋‹ค.

๊ฒ€์ƒ‰ํ•˜๊ธฐ ๋ฒ„ํŠผ์ด ์žˆ์œผ๋ฉด ๋””์ž์ธ์ด ์•ˆ์˜ˆ์˜๋‹ค๊ณ  ์ƒ๊ฐํ•ด์„œ ์ œ๊ฑฐํ–ˆ์Šต๋‹ˆ๋‹ค. ๊ผญ ๊ฒ€์ƒ‰ํ•˜๊ธฐ ๋ฒ„ํŠผ์ด ํ•„์š”ํ•œ ์ด์œ ๋„ ๋ชจ๋ฅด๊ฒ ๋”๋ผ๊ตฌ์š”

๋ง์”€ํ•˜์‹  ์˜๊ฒฌ๊ณผ ๊ฐ™์ด ๊ฒ€์ƒ‰ํ•˜๊ธฐ ๋ฒ„ํŠผ์ด ์—†๋Š” ๊ฒƒ์ด UI/UX์ธก๋ฉด์—์„œ ์œ ๋ฆฌํ•˜๋‹ค๊ณ  ์ƒ๊ฐ์ด ๋“ญ๋‹ˆ๋‹ค. ์ด๋ฅผ ์œ„ํ•ด์„œ๋Š” debouncing ๋ฐ enter๋ฅผ ํ†ตํ•œ apiํ˜ธ์ถœ๋งŒ ๋ฐ˜์˜๋˜์–ด์•ผ ํ•  ๊ฒƒ ๊ฐ™์€๋ฐ, ๋‘๊ฐ€์ง€ ๊ธฐ๋Šฅ ๋ชจ๋‘ ๊ณ„ํšํ•˜๊ณ  ๊ณ„์‹ ์ง€ ๊ถ๊ธ‰ํ•ฉ๋‹ˆ๋‹ค!

๋„น ์ถ”ํ›„์— ๋‘ ๊ฐ€์ง€ ๊ธฐ๋Šฅ ๋ฐ˜์˜ ํ•  ์˜ˆ์ •์ž…๋‹ˆ๋‹ค!
button ํฌ๊ธฐ๋Š” ์–ธ๋‹ˆ๊ฐ€ ๋ฆฌํŒฉํ† ๋งํ•˜๋Š” ๊ฒŒ ๋‚˜์„๊นŒ์š”!?

Copy link
Collaborator

@seonghunYang seonghunYang left a comment

Choose a reason for hiding this comment

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

  • ์ˆ˜๊ณ ํ•˜์…จ์Šต๋‹ˆ๋‹ค.
  • ๋ณด๋ฉด์„œ ๋Š๋‚€์ ์€, ์ด๋ฒˆ ๋ฆฌํŒฉํ† ๋ง์„ ํ†ตํ•œ ๊ฐ€์žฅ ํฐ ๊ฐœ์„ ์ ์€ ๊ฐ€๋…์„ฑ์ด๋ผ๊ณ  ์ƒ๊ฐ์ด ๋“ค์–ด์š”. ๊ฐ ์ปดํฌ๋„ŒํŠธ๊ฐ€ ์–ด๋–ค ์ฑ…์ž„์„ ์ˆ˜ํ–‰ํ•˜๋Š”์ง€ ์ฝ”๋“œ๋ฅผ ์ฝ๋Š” ์‚ฌ๋žŒ์ด ํฌ๊ฒŒ ๊ณ ๋ฏผํ•  ํ•„์š” ์—†์ด ์‰ฝ๊ฒŒ ์ดํ•ดํ•  ์ˆ˜ ์žˆ์—ˆ์Šต๋‹ˆ๋‹ค.
  • ์ด๋Ÿฐ ๊ตฌ์กฐ๋ผ๋ฉด ๋ณ€๊ฒฝ์‚ฌํ•ญ์ด ์ƒ๊ฒผ์„ ๋•Œ๋„, ์ฝ”๋“œ๋ฅผ ์ดํ•ดํ•˜๊ณ  ๋ณ€๊ฒฝํ•ด์•ผ ํ•  ์œ„์น˜๋ฅผ ์‰ฝ๊ฒŒ ์ฐพ์„ ์ˆ˜ ์žˆ์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.
  • ํ•œ ๊ฐ€์ง€ ๊ฑธ๋ฆฌ๋Š” ์ ์ด ์žˆ๋‹ค๋ฉด, taken-lecture ์ปดํฌ๋„ŒํŠธ์—์„œ lecture-search ์ปดํฌ๋„ŒํŠธ๋ฅผ ํ˜ธ์ถœํ•˜๋Š” ๊ฒƒ์ด๋„ค์š”. ๋™์ผํ•œ ์ˆ˜์ค€์˜ ์ปดํฌ๋„ŒํŠธ๋ฅผ ํ˜ธ์ถœํ•˜๋Š” ๊ฒƒ์€ ํฐ ๋ฌธ์ œ๊ฐ€ ๋˜์ง€ ์•Š์ง€๋งŒ, ์ด ๋‘ ์ปดํฌ๋„ŒํŠธ๋Š” ๋” ์ƒ์œ„ ์ˆ˜์ค€์˜ ์ปดํฌ๋„ŒํŠธ์ธ ํŽ˜์ด์ง€ ์ปดํฌ๋„ŒํŠธ(์ปจํ…Œ์ด๋„ˆ)์—์„œ ๊ฒฐํ•ฉํ•˜๋Š” ๊ฒƒ์ด ๋” ์ ํ•ฉํ•ด ๋ณด์ž…๋‹ˆ๋‹ค.
  • ๋ฒ„ํŠผ ํฌ๊ธฐ๋Š” ํšจ์œจ์„ฑ์„ ์œ„ํ•ด ์œ ๊ฒฝ์ด๊ฐ€ ๋ฆฌํŒฉํ† ๋งํ•˜๋ฉด ๋  ๊ฒƒ ๊ฐ™๋„ค์š”. ๋ฏธ๋ฆฌ ๊ณ ๋งˆ์›Œ์š”

Comment on lines 16 to 17
const customButton = await screen.findByTestId('custom-button');
await userEvent.click(customButton);
Copy link
Collaborator

Choose a reason for hiding this comment

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

[comment]

  • ์ด๋ ‡๊ฒŒ 2์ค„๋กœ ๋‚˜๋ˆ ์„œ ์ž‘์„ฑํ•œ ์ด์œ ๊ฐ€ ์žˆ์„๊นŒ์š”?

Copy link
Member Author

Choose a reason for hiding this comment

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

์ €๋Š” ํ•œ ์ค„์— ์ž‘์„ฑํ•œ ๊ฒƒ๋ณด๋‹ค ๋‘ ์ค„์— ๋‚˜๋ˆ ์„œ ์ž‘์„ฑํ•˜๋Š” ๊ฒŒ ์ž‘์—…์˜ ํ๋ฆ„์ด ๋” ์ž˜ ์ฝํžŒ๋‹ค๊ณ  ์ƒ๊ฐํ•ด์„œ ๊ทธ๋ ‡๊ฒŒ ์ž‘์—…ํ–ˆ์Šต๋‹ˆ๋‹ค!

@gahyuun
Copy link
Member Author

gahyuun commented Mar 13, 2024

  • ์ˆ˜๊ณ ํ•˜์…จ์Šต๋‹ˆ๋‹ค.
  • ๋ณด๋ฉด์„œ ๋Š๋‚€์ ์€, ์ด๋ฒˆ ๋ฆฌํŒฉํ† ๋ง์„ ํ†ตํ•œ ๊ฐ€์žฅ ํฐ ๊ฐœ์„ ์ ์€ ๊ฐ€๋…์„ฑ์ด๋ผ๊ณ  ์ƒ๊ฐ์ด ๋“ค์–ด์š”. ๊ฐ ์ปดํฌ๋„ŒํŠธ๊ฐ€ ์–ด๋–ค ์ฑ…์ž„์„ ์ˆ˜ํ–‰ํ•˜๋Š”์ง€ ์ฝ”๋“œ๋ฅผ ์ฝ๋Š” ์‚ฌ๋žŒ์ด ํฌ๊ฒŒ ๊ณ ๋ฏผํ•  ํ•„์š” ์—†์ด ์‰ฝ๊ฒŒ ์ดํ•ดํ•  ์ˆ˜ ์žˆ์—ˆ์Šต๋‹ˆ๋‹ค.
  • ์ด๋Ÿฐ ๊ตฌ์กฐ๋ผ๋ฉด ๋ณ€๊ฒฝ์‚ฌํ•ญ์ด ์ƒ๊ฒผ์„ ๋•Œ๋„, ์ฝ”๋“œ๋ฅผ ์ดํ•ดํ•˜๊ณ  ๋ณ€๊ฒฝํ•ด์•ผ ํ•  ์œ„์น˜๋ฅผ ์‰ฝ๊ฒŒ ์ฐพ์„ ์ˆ˜ ์žˆ์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.
  • ํ•œ ๊ฐ€์ง€ ๊ฑธ๋ฆฌ๋Š” ์ ์ด ์žˆ๋‹ค๋ฉด, taken-lecture ์ปดํฌ๋„ŒํŠธ์—์„œ lecture-search ์ปดํฌ๋„ŒํŠธ๋ฅผ ํ˜ธ์ถœํ•˜๋Š” ๊ฒƒ์ด๋„ค์š”. ๋™์ผํ•œ ์ˆ˜์ค€์˜ ์ปดํฌ๋„ŒํŠธ๋ฅผ ํ˜ธ์ถœํ•˜๋Š” ๊ฒƒ์€ ํฐ ๋ฌธ์ œ๊ฐ€ ๋˜์ง€ ์•Š์ง€๋งŒ, ์ด ๋‘ ์ปดํฌ๋„ŒํŠธ๋Š” ๋” ์ƒ์œ„ ์ˆ˜์ค€์˜ ์ปดํฌ๋„ŒํŠธ์ธ ํŽ˜์ด์ง€ ์ปดํฌ๋„ŒํŠธ(์ปจํ…Œ์ด๋„ˆ)์—์„œ ๊ฒฐํ•ฉํ•˜๋Š” ๊ฒƒ์ด ๋” ์ ํ•ฉํ•ด ๋ณด์ž…๋‹ˆ๋‹ค.
  • ๋ฒ„ํŠผ ํฌ๊ธฐ๋Š” ํšจ์œจ์„ฑ์„ ์œ„ํ•ด ์œ ๊ฒฝ์ด๊ฐ€ ๋ฆฌํŒฉํ† ๋งํ•˜๋ฉด ๋  ๊ฒƒ ๊ฐ™๋„ค์š”. ๋ฏธ๋ฆฌ ๊ณ ๋งˆ์›Œ์š”
  • ์ˆ˜๊ณ ํ•˜์…จ์Šต๋‹ˆ๋‹ค.
  • ๋ณด๋ฉด์„œ ๋Š๋‚€์ ์€, ์ด๋ฒˆ ๋ฆฌํŒฉํ† ๋ง์„ ํ†ตํ•œ ๊ฐ€์žฅ ํฐ ๊ฐœ์„ ์ ์€ ๊ฐ€๋…์„ฑ์ด๋ผ๊ณ  ์ƒ๊ฐ์ด ๋“ค์–ด์š”. ๊ฐ ์ปดํฌ๋„ŒํŠธ๊ฐ€ ์–ด๋–ค ์ฑ…์ž„์„ ์ˆ˜ํ–‰ํ•˜๋Š”์ง€ ์ฝ”๋“œ๋ฅผ ์ฝ๋Š” ์‚ฌ๋žŒ์ด ํฌ๊ฒŒ ๊ณ ๋ฏผํ•  ํ•„์š” ์—†์ด ์‰ฝ๊ฒŒ ์ดํ•ดํ•  ์ˆ˜ ์žˆ์—ˆ์Šต๋‹ˆ๋‹ค.
  • ์ด๋Ÿฐ ๊ตฌ์กฐ๋ผ๋ฉด ๋ณ€๊ฒฝ์‚ฌํ•ญ์ด ์ƒ๊ฒผ์„ ๋•Œ๋„, ์ฝ”๋“œ๋ฅผ ์ดํ•ดํ•˜๊ณ  ๋ณ€๊ฒฝํ•ด์•ผ ํ•  ์œ„์น˜๋ฅผ ์‰ฝ๊ฒŒ ์ฐพ์„ ์ˆ˜ ์žˆ์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.
  • ํ•œ ๊ฐ€์ง€ ๊ฑธ๋ฆฌ๋Š” ์ ์ด ์žˆ๋‹ค๋ฉด, taken-lecture ์ปดํฌ๋„ŒํŠธ์—์„œ lecture-search ์ปดํฌ๋„ŒํŠธ๋ฅผ ํ˜ธ์ถœํ•˜๋Š” ๊ฒƒ์ด๋„ค์š”. ๋™์ผํ•œ ์ˆ˜์ค€์˜ ์ปดํฌ๋„ŒํŠธ๋ฅผ ํ˜ธ์ถœํ•˜๋Š” ๊ฒƒ์€ ํฐ ๋ฌธ์ œ๊ฐ€ ๋˜์ง€ ์•Š์ง€๋งŒ, ์ด ๋‘ ์ปดํฌ๋„ŒํŠธ๋Š” ๋” ์ƒ์œ„ ์ˆ˜์ค€์˜ ์ปดํฌ๋„ŒํŠธ์ธ ํŽ˜์ด์ง€ ์ปดํฌ๋„ŒํŠธ(์ปจํ…Œ์ด๋„ˆ)์—์„œ ๊ฒฐํ•ฉํ•˜๋Š” ๊ฒƒ์ด ๋” ์ ํ•ฉํ•ด ๋ณด์ž…๋‹ˆ๋‹ค.
  • ๋ฒ„ํŠผ ํฌ๊ธฐ๋Š” ํšจ์œจ์„ฑ์„ ์œ„ํ•ด ์œ ๊ฒฝ์ด๊ฐ€ ๋ฆฌํŒฉํ† ๋งํ•˜๋ฉด ๋  ๊ฒƒ ๊ฐ™๋„ค์š”. ๋ฏธ๋ฆฌ ๊ณ ๋งˆ์›Œ์š”

๊ทธ๋ ‡๋„ค์š”! ์ปจํ…Œ์ด๋„ˆ์—์„œ ๊ฒฐํ•ฉํ•˜๋Š” ๊ฒŒ ๋” ์ข‹์„ ๊ฒƒ ๊ฐ™์•„์„œ ์ˆ˜์ •ํ–ˆ์Šต๋‹ˆ๋‹ค ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค:)
ccf604c

Copy link

Copy link
Collaborator

@seonghunYang seonghunYang left a comment

Choose a reason for hiding this comment

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

  • ํ™•์ธํ–ˆ์Šต๋‹ˆ๋‹ค.
  • ํ…Œ์ŠคํŠธ ์ฝ”๋“œ์—์„œ render() ํ•จ์ˆ˜๊ฐ€ ๋‘ ๋ฒˆ ์‚ฌ์šฉ๋˜๋Š” ๊ฒƒ์€ ์กฐ๊ธˆ ์ผ๋ฐ˜์ ์ด์ง€ ์•Š๋‹ค๊ณ  ์ƒ๊ฐ์ด ๋“ค๊ธด ํ–ˆ์œผ๋‚˜, ์„œ๋ฒ„ ์ปดํฌ๋„ŒํŠธ๊ฐ€ ์•„์ง ์ง€์›๋˜์ง€ ์•Š์•„์„œ ํŠน๋ณ„ํ•œ ๋ฐฉ์‹์œผ๋กœ ์‚ฌ์šฉ๋˜๋Š” ์ƒํ™ฉ์ด๊ธฐ ๋•Œ๋ฌธ์— ์–ด์ฉ” ์ˆ˜ ์—†๋‹ค๋Š” ์ƒ๊ฐ์ด ๋“ญ๋‹ˆ๋‹ค.

@gahyuun gahyuun merged commit 8fbd295 into main Mar 14, 2024
3 checks passed
@gahyuun gahyuun deleted the implement-lecture-search/#10 branch March 14, 2024 03:17
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.

3 participants