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

Styling/#124 #132

Merged
merged 50 commits into from
Jul 17, 2024
Merged

Styling/#124 #132

merged 50 commits into from
Jul 17, 2024

Conversation

seonghunYang
Copy link
Collaborator

@seonghunYang seonghunYang commented Jul 10, 2024

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

๋ฐฐํฌ ๋งํฌ: https://myongji-graduate-next.vercel.app/

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

  • ๋ฐฐํฌ ํŒŒ์ดํ”„๋ผ์ธ ์™„๋ฃŒ
  • ๋ชจ๋ฐ”์ผ, ํƒœ๋ธ”๋ฆฟ, PC์— ๋งž๊ฒŒ ์Šคํƒ€์ผ๋ง ์ˆ˜์ •
  • GNB ์ž‘์—…
  • ์•ฝ๊ด€ ๋ฐ ํšŒ์›๊ฐ€์ž… ์•ˆ๋‚ด ๋ฉ˜ํŠธ ์ˆ˜์ •
  • ์œ ์ € API ์—ฐ๋™ ๋ฐ ํ…Œ์ŠคํŠธ

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

  • ์•ฝ๊ด€ ๋‚ด์šฉ์ด ์ตœ์‹ ํ™”๋œ ๊ฒƒ์ด ์žˆ์œผ๋ฉด ๋ณ€๊ฒฝํ•ด์•ผ ํ•  ๊ฒƒ ๊ฐ™์•„์š”. ํšŒ์˜ ๋•Œ ์ด์•ผ๊ธฐํ•ด ๋ด…์‹œ๋‹ค.

์ถ”๊ฐ€ ์•ˆ๋‚ด ์‚ฌํ•ญ

  1. ํ™˜๊ฒฝ ๋ณ€์ˆ˜์™€ ์ด๋ฅผ ๊ธฐ๋ฐ˜์œผ๋กœ ํ•œ URL ์ƒ์„ฑ 01d5efa
    • mock ์—ฌ๋ถ€์— ๋”ฐ๋ฅธ URL ๋ณ€๊ฒฝ ์ฒ˜๋ฆฌ๋ฅผ ์œ„ํ•ด ํ™˜๊ฒฝ๋ณ€์ˆ˜ ๊ด€๋ฆฌ๊ฐ€ ํ•„์š”ํ•ด์กŒ์Šต๋‹ˆ๋‹ค.
    • mock ์‚ฌ์šฉ ์‹œ .env.local ํŒŒ์ผ์— ์•„๋ž˜ ์†์„ฑ์„ ์ถ”๊ฐ€ํ•˜์—ฌ ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•˜๋ฉฐ, ์„œ๋ฒ„ ์‹คํ–‰ ์‹œ mock ์—ฌ๋ถ€์™€ ํด๋ผ์ด์–ธํŠธ mock ์—ฌ๋ถ€์˜ ์ƒํƒœ๊ฐ€ ๋‹ค๋ฅด๋ฉด ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•˜๋„๋ก ๋งŒ๋“ค์—ˆ์Šต๋‹ˆ๋‹ค.
      NEXT_PUBLIC_API_MOCKING=enable
    • ์ถ”๊ฐ€๋กœ, ํŒŒ์‹ฑ ์„œ๋ฒ„๋Š” ํ™˜๊ฒฝ๋ณ€์ˆ˜ ์ฒ˜๋ฆฌ๊ฐ€ ํ•„์š” ์—†์„ ๊ฒƒ ๊ฐ™์•„์„œ ๋ฆฌํ„ฐ๋Ÿด ๊ฐ’์œผ๋กœ ์„ค์ •ํ–ˆ์Šต๋‹ˆ๋‹ค.
  2. Funnel ์˜ค๋ฅ˜ ์ˆ˜์ • d574585
    • Funnel ์‚ฌ์šฉ ์‹œ ๋’ค๋กœ ๊ฐ€๊ธฐ๊ฐ€ ๋˜์ง€ ์•Š๋Š” ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ–ˆ์Šต๋‹ˆ๋‹ค.
  3. refreshToken ๊ธฐ๋ฐ˜ ์žฌ์‹œ๋„ ๋กœ์ง ์ž‘์„ฑ e0dfdbf
    • ์œ ๊ฒฝ์ด์˜ ๊ฐ•์š”๋กœ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค.
    • ๋ฏธ๋“ค์›จ์–ด ๋™์ž‘์ด ๊นŒ๋‹ค๋กœ์›Œ์„œ ์ž‘์—…์ด ์ƒ๊ฐ๋ณด๋‹ค ์–ด๋ ค์› ์Šต๋‹ˆ๋‹ค.

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.

์ˆ˜๊ณ ๋งŽ์œผ์…จ์Šต๋‹ˆ๋‹ค. ํ˜น์‹œ accessToken์ด ๋งŒ๋ฃŒ๋˜๋Š” ๊ฒฝ์šฐ refresh token์œผ๋กœ ๊ฐฑ์‹ ํ•˜๋Š” ์ฝ”๋“œ๋Š” ์ถ”ํ›„ ๊ฐœ๋ฐœ๋  ์˜ˆ์ •์ธ๊ฐ€์š”?

@@ -1,5 +1,4 @@
const BASE_URL = 'http://localhost:9090';
process.env.API_MOCKING === 'enable' ? 'http://localhost:9090' : '';
const BASE_URL = 'http://staging-plzgraduation-env.eba-s4bbj5cp.ap-northeast-2.elasticbeanstalk.com/api/v1';
Copy link
Member

Choose a reason for hiding this comment

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

.envํŒŒ์ผ๋กœ ๋ณ„๋„๋กœ ๊ด€๋ฆฌํ•˜์ง€ ์•Š์œผ์‹ ์ด์œ ๊ฐ€ ๊ถ๊ธˆํ•ด์š”!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

<NavigationItem href={'/sign-in'} label="๋กœ๊ทธ์ธ" />
)}
<NavigationItem href={'/tutorial'} label="ํŠœํ† ๋ฆฌ์–ผ" />
<NavigationItem href={'/'} label="ํŒ€์†Œ๊ฐœ" />
Copy link
Member

Choose a reason for hiding this comment

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

ํŒ€ ์†Œ๊ฐœ์˜ ๋งํฌ๋Š” https://soft-anorak-0ca.notion.site/e35e3b210995463fa748f35aab536f2c?pvs=74 ์ž…๋‹ˆ๋‹ค!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

);
}

type NavigationItemProps = {
Copy link
Member

Choose a reason for hiding this comment

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

convention์ƒ interface๋กœ์˜ ๋ณ€๊ฒฝ์ด ํ†ต์ผ์„ฑ ์žˆ์„ ๊ฒƒ ๊ฐ™์•„์š”!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

app/business/services/user/user.validation.ts Outdated Show resolved Hide resolved
Copy link
Member

@gahyuun gahyuun left a comment

Choose a reason for hiding this comment

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

๊ณ ์ƒํ•˜์…จ์Šต๋‹ˆ๋‹ค!

sign up form์—์„œ funnel๋กœ ๊ด€๋ฆฌํ•˜๋ฉด์„œ ๋ฐœ์ƒํ•˜๊ฒŒ ๋˜๋Š” ๋ช‡๋ช‡ ๋ฌธ์ œ์ ์ด ์žˆ๋„ค์š”..!
์ด์— ๋Œ€ํ•ด์„œ ํšŒ์˜๋•Œ ์ด์•ผ๊ธฐ๋ฅผ ๋‚˜๋ˆ ๋ณด๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์•„์š”:)

  • /sign-in์—์„œ ํšŒ์›๊ฐ€์ž… ํด๋ฆญ ํ›„ /sign-up?funnel-step=terms ์ง„์ž…ํ–ˆ์„ ๋•Œ ๋’ค๋กœ ๊ฐ€๊ธฐ๊ฐ€ ์•ˆ๋ฉ๋‹ˆ๋‹ค
  • ๋™์˜ํ•˜๊ธฐ๋ฅผ ํด๋ฆญํ•˜์ง€ ์•Š๊ณ  query string ์กฐ์ž‘ํ•ด์„œ sign-up?funnel-step=form ํŽ˜์ด์ง€๋กœ ์ด๋™ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค

Comment on lines 11 to 12
export default function Page() {
return (
Copy link
Member

Choose a reason for hiding this comment

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

๋ช‡๋ช‡ ํŽ˜์ด์ง€ ์ปดํฌ๋„ŒํŠธ๋Š” MyPage, ResultPage๋กœ ๋„ค์ด๋ฐ์ด ๋˜์–ด์žˆ๊ณ , ๋ช‡๋ช‡ ํŽ˜์ด์ง€ ์ปดํฌ๋„ŒํŠธ๋Š” ๋ณ„๋‹ค๋ฅธ ์ด๋ฆ„ ์ง€์ • ์—†์ด Page๋กœ ๋˜์–ด์žˆ๋„ค์š”! ํ†ต์ผํ•˜๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์•„์š”

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

์ด ๋ถ€๋ถ„์€ ๋ณ‘ํ•ฉํ•œ ํ›„์— ํ†ต์ผํ•˜๋Š” ๊ณผ์ •์„ ์ง„ํ–‰ํ•˜๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

Comment on lines 33 to 35
if (isValidation(result, UserInfoResponseSchema)) {
return result;
} else if (isValidation(result, InitUserInfoResponseSchema)) {
Copy link
Member

Choose a reason for hiding this comment

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

if( isValidation(result, UserInfoResponseSchema) || isValidation(result, InitUserInfoResponseSchema) ) return result;
์ด๋ ‡๊ฒŒ ์ฒ˜๋ฆฌํ•˜์ง€ ์•Š์œผ์‹  ์ด์œ ๊ฐ€ ์žˆ์„๊นŒ์š”?!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

@seonghunYang seonghunYang Jul 16, 2024

Choose a reason for hiding this comment

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

  • ๋ฆฌํŒฉํ„ฐ๋ง์„ ์ ์ง„์ ์œผ๋กœ ์ง„ํ–‰ํ•˜๋ฉด์„œ ์ผ๋‹จ ๋ถ„๋ฆฌํ•œ ํ›„ ๋‹ค์‹œ ํ•ฉ์น˜๋Š” ๊ณผ์ •์„ ๊ฑฐ์น˜๋Š”๋ฐ, ์ด๋ฒˆ์—๋Š” ํ•ฉ์น˜๊ฒŒ ๋ˆ„๋ฝ๋œ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค!

Comment on lines +7 to +26
<Skeleton className="h-4 w-1/2" />
<Skeleton className="h-4 w-1/4" />
<Skeleton className="h-4 w-1/2" />
<Skeleton className="h-4 w-1/4" />
<Skeleton className="h-4 w-1/2" />
<Skeleton className="h-4 w-1/4" />
<Skeleton className="h-4 w-1/2" />
<Skeleton className="h-4 w-1/4" />
<Skeleton className="h-4 w-1/2" />
<Skeleton className="h-4 w-1/4" />
<Skeleton className="h-4 w-1/2" />
<Skeleton className="h-4 w-1/4" />
<Skeleton className="h-4 w-1/2" />
<Skeleton className="h-4 w-1/4" />
<Skeleton className="h-4 w-1/2" />
<Skeleton className="h-4 w-1/4" />
<Skeleton className="h-4 w-1/2" />
<Skeleton className="h-4 w-1/4" />
<Skeleton className="h-4 w-1/2" />
<Skeleton className="h-4 w-1/4" />
Copy link
Member

Choose a reason for hiding this comment

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

    <Skeleton className="h-4 w-1/2" />
        <Skeleton className="h-4 w-1/4" />

์ด๊ฒŒ ๋ฐ˜๋ณต์ธ ๊ฒƒ ๊ฐ™์€๋ฐ map์„ ๋Œ๋ฆฌ์ง€ ์•Š๊ณ  ํ•˜๋“œ์ฝ”๋”ฉํ•˜์‹  ์ด์œ ๊ฐ€ ์žˆ์„๊นŒ์š”!?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

  • ์˜๋ฏธ๋ก ์ ์ธ ๋‹จ์œ„๊ฐ€ ์•„๋‹ˆ๋ผ ๋ฐ˜๋ณต์ ์ด์ง€๋งŒ ์ค‘๋ณต์ด๋ผ๊ณ  ์ƒ๊ฐํ•˜์ง€ ์•Š์•„์„œ map์„ ์‚ฌ์šฉํ•˜์ง€๋Š” ์•Š์•˜์Šต๋‹ˆ๋‹ค.

@seonghunYang
Copy link
Collaborator Author

๊ณ ์ƒํ•˜์…จ์Šต๋‹ˆ๋‹ค!

sign up form์—์„œ funnel๋กœ ๊ด€๋ฆฌํ•˜๋ฉด์„œ ๋ฐœ์ƒํ•˜๊ฒŒ ๋˜๋Š” ๋ช‡๋ช‡ ๋ฌธ์ œ์ ์ด ์žˆ๋„ค์š”..! ์ด์— ๋Œ€ํ•ด์„œ ํšŒ์˜๋•Œ ์ด์•ผ๊ธฐ๋ฅผ ๋‚˜๋ˆ ๋ณด๋ฉด ์ข‹์„ ๊ฒƒ ๊ฐ™์•„์š”:)

  • /sign-in์—์„œ ํšŒ์›๊ฐ€์ž… ํด๋ฆญ ํ›„ /sign-up?funnel-step=terms ์ง„์ž…ํ–ˆ์„ ๋•Œ ๋’ค๋กœ ๊ฐ€๊ธฐ๊ฐ€ ์•ˆ๋ฉ๋‹ˆ๋‹ค
  • ๋™์˜ํ•˜๊ธฐ๋ฅผ ํด๋ฆญํ•˜์ง€ ์•Š๊ณ  query string ์กฐ์ž‘ํ•ด์„œ sign-up?funnel-step=form ํŽ˜์ด์ง€๋กœ ์ด๋™ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค

ํผ๋„ ์ฃผ์š” ๋ฌธ์ œ๋Š” ์•„๋ž˜ ์ปค๋ฐ‹์—์„œ ํ•ด๊ฒฐํ–ˆ์Šต๋‹ˆ๋‹ค
d574585

@seonghunYang
Copy link
Collaborator Author

์ˆ˜๊ณ ๋งŽ์œผ์…จ์Šต๋‹ˆ๋‹ค. ํ˜น์‹œ accessToken์ด ๋งŒ๋ฃŒ๋˜๋Š” ๊ฒฝ์šฐ refresh token์œผ๋กœ ๊ฐฑ์‹ ํ•˜๋Š” ์ฝ”๋“œ๋Š” ์ถ”ํ›„ ๊ฐœ๋ฐœ๋  ์˜ˆ์ •์ธ๊ฐ€์š”?

์žฌ์‹œ๋„ ๋กœ์ง ์ถ”๊ฐ€ ๊ตฌํ˜„ํ–ˆ์Šต๋‹ˆ๋‹ค
e0dfdbf

gahyuun
gahyuun previously approved these changes Jul 16, 2024
Copy link
Member

@gahyuun gahyuun left a comment

Choose a reason for hiding this comment

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

๊ณ ์ƒํ•˜์…จ์Šต๋‹ˆ๋‹ค~

const isServerMoockingEnabled = process.env.API_MOCKING === 'enable';
const isClientMoockingEnabled = process.env.NEXT_PUBLIC_API_MOCKING === 'enable';

if (isMockServer()) {
Copy link
Member

Choose a reason for hiding this comment

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

์ˆ˜์ •์„ ์š”๊ตฌํ•˜๋Š” ๊ฑด ์•„๋‹ˆ์ง€๋งŒ, isMockServer ๊ฐ€ ์„ ์–ธ์ „์— ์‚ฌ์šฉ๋˜์–ด์„œ, ์ˆœ๊ฐ„์ ์œผ๋กœ isMockServer ํ•จ์ˆ˜๋Š” ์–ด๋””์— ์žˆ๋Š”๊ฑฐ์ง€? ํ•˜๋ฉด์„œ ์ฐพ์•˜๋˜ ๊ฒƒ ๊ฐ™์•„์š”! ๋‚˜์ค‘์— ์ด๋Ÿฐ ๊ฒฝ์šฐ ํ™”์‚ดํ‘œ ํ•จ์ˆ˜๋กœ ์ž‘์„ฑํ•˜๋ฉด ๋” ์ข‹์„ ๊ฒƒ ๊ฐ™์•„์š” ๐Ÿซก

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

  • ์š”๊ฑด ์‚ฌ์‹ค ์˜๋„ํ•œ ๊ฑฐ๊ธด ํ•ด์š”. ๊ธฐ๋ณธ์ ์œผ๋กœ ์ฝ”๋“œ๋ฅผ ์ฝ์„ ๋•Œ๋Š” ์ตœ์†Œํ•œ์˜ ์ •๋ณด๋ฅผ ์•Œ๊ฒŒ๋” ํ•˜๋Š” ๊ฒŒ ๊ฐ€๋…์„ฑ์ด ์ข‹๋‹ค๊ณ  ์ƒ๊ฐํ•˜๋Š”๋ฐ, isMockServer ํ•จ์ˆ˜ ์„ ์–ธ์ด ์•ž์— ์žˆ์œผ๋ฉด ๊ตฌํ˜„๋ถ€๋ฅผ ์–ด์ฉ” ์ˆ˜ ์—†์ด ๋ณด๊ฒŒ ๋˜๋‹ˆ๊นŒ ํ•  ์ˆ˜ ์žˆ๋‹ค๋ฉด ๋’ค๋กœ ๋นผ๋Š” ๊ฒƒ์„ ์„ ํ˜ธํ•ฉ๋‹ˆ๋‹ค.

  • ์ฝ”๋“œ ๋ฆฌ๋ทฐ๋ฅผ ํ•  ๋•Œ๋Š” ๋ฌผ๋ก  ์–ด๋””์— ์„ ์–ธ๋˜์–ด ์žˆ๋Š”์ง€ ์ฐพ๊ธฐ ์–ด๋ ค์šธ ์ˆ˜ ์žˆ์ง€๋งŒ, ์ผ๋ฐ˜์ ์ธ ์ƒํ™ฉ์—์„œ ์ฝ”๋“œ๋ฅผ ์ฝ์„ ๋•Œ๋Š” isMockServer ํ•จ์ˆ˜๊ฐ€ ์˜๋„๋ฅผ ์ œ๋Œ€๋กœ ๋“œ๋Ÿฌ๋‚ด๋ฉด ๊ตฌํ˜„๋ถ€๋Š” ๋…ธ์ถœํ•˜์ง€ ์•Š์•„ ์ฝ๋Š” ์‚ฌ๋žŒ์ด ๋ชจ๋ฅด๋„๋ก ํ•˜๋Š” ๊ฒŒ ๋” ์ข‹๋‹ค๊ณ  ์ƒ๊ฐํ•ด์š”.

@yougyung
Copy link
Member

์ˆ˜๊ณ ๋งŽ์œผ์…จ์Šต๋‹ˆ๋‹ค !! ํ•œ ๊ฐ€์ง€ ๊ถ๊ธˆํ•œ ์ ์€ ์ €๋Š” ์„œ๋ฒ„์ฃผ์†Œ๋ฅผ ๋ฏผ๊ฐํ•œ ๋‚ด์šฉ์œผ๋กœ ๊ฐ„์ฃผํ•ด์„œ ์ž‘์—…์„ ์ง„ํ–‰ํ•  ๋•Œ, env file์— ํฌํ•จ์‹œํ‚ค๋Š” ํŽธ์ž…๋‹ˆ๋‹ค. ์„œ๋ฒ„ ์ฃผ์†Œ๋ฅผ ๋…ธ์ถœ์‹œ์ผœ๋„ ๊ดœ์ฐฎ๋‹ค๊ณ  ์ƒ๊ฐํ•˜์‹  ์ด์œ ๋ฅผ ์—ฌ์ญค๋ณผ ์ˆ˜ ์žˆ์„๊นŒ์š”?

yougyung
yougyung previously approved these changes Jul 17, 2024
app/utils/api/setup-url.util.ts Outdated Show resolved Hide resolved
@seonghunYang seonghunYang dismissed stale reviews from yougyung and gahyuun via e0d2f17 July 17, 2024 03:20
@seonghunYang seonghunYang merged commit 39056f3 into main Jul 17, 2024
1 check failed
@seonghunYang seonghunYang deleted the styling/#124 branch July 17, 2024 03:21
@seonghunYang seonghunYang self-assigned this Aug 12, 2024
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