-
Notifications
You must be signed in to change notification settings - Fork 1
[25.04.21 / TASK-171,TASK-172] Modify - UI Refactoring #29
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
base: main
Are you sure you want to change the base?
Conversation
Walkthrough์ด๋ฒ ๋ณ๊ฒฝ์์๋ Next.js ์ค์ ์์ ์์ค๋งต ๊ด๋ จ ์ต์ ์ ๋ช ํํ ํ๊ณ , Sentry Webpack ํ๋ฌ๊ทธ์ธ์ ์ถ๊ฐํ์ผ๋ฉฐ, fetch ์์ฒญ์ credentials ์ต์ ์ ํญ์ 'include'๋ก ํต์ผํ์ต๋๋ค. 'ํต๊ณ ๋น๊ต' ํ์ด์ง์ ๊ด๋ จ๋ ์ปดํฌ๋ํธ ๋ฐ ์์ด์ฝ์ด ์ ๊ฑฐ๋๊ณ , ๊ณต์ง์ฌํญ(Notice) ๋ฒํผ์ด ํค๋ ๋ด๋น๊ฒ์ด์ ๋ฐ๋ก ์ด๋ํ๋ฉด์ UI ๊ตฌ์กฐ๊ฐ ์ผ๋ถ ๋ณ๊ฒฝ๋์์ต๋๋ค. ๋ํ, ChartJS ๊ทธ๋ํ ์ต์ ์ ์์์ ์๋ ๋๊ธ ํ์๊ฐ ์ถ๊ฐ๋๊ณ , ์์ด์ฝ ์ปดํฌ๋ํธ์ ์ผ๋ถ ๋ด๋ณด๋ด๊ธฐ๊ฐ ๋ณ๊ฒฝ๋์์ต๋๋ค. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Header
participant NoticeModal
User->>Header: ๋ฉ์ธ ๋ด๋น๊ฒ์ด์
๋ฐ์์ "๊ณต์ง์ฌํญ" ๋ฒํผ ํด๋ฆญ
Header->>NoticeModal: ๊ณต์ง์ฌํญ ๋ชจ๋ฌ ์ด๊ธฐ ํธ๋ฆฌ๊ฑฐ
NoticeModal-->>User: ๊ณต์ง์ฌํญ ํ์
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. ๐ง ESLint
src/app/(auth-required)/main/components/Section/Graph.tsxOops! Something went wrong! :( ESLint: 8.57.1 ReferenceError: globals is not defined next.config.mjsOops! Something went wrong! :( ESLint: 8.57.1 ReferenceError: globals is not defined src/apis/instance.request.tsOops! Something went wrong! :( ESLint: 8.57.1 ReferenceError: globals is not defined
Tip โก๐ฌ Agentic Chat (Pro Plan, General Availability)
๐ Recent review detailsConfiguration used: CodeRabbit UI โ Files ignored due to path filters (3)
๐ Files selected for processing (7)
๐ค Files with no reviewable changes (1)
๐งฐ Additional context used๐งฌ Code Graph Analysis (1)src/app/(auth-required)/main/components/Section/Graph.tsx (2)
๐ Additional comments (13)
โจ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. ๐ชง TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
reactStrictMode: true, | ||
experimental: { forceSwcTransforms: true }, | ||
output: 'standalone', | ||
|
||
hideSourceMaps: true, |
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.
LLM ํ ๋ฃจ์๋ค์ด์ ๊ฐ์๋ฐ์?! hideSourceMaps ์ด๋ผ๋ ์ดํ๋ฆฌ๋ทฐ์ ์ด ์กด์ฌํ๋์? ์๋ง sentry ์๋ ์กด์ฌํ ์ ์๋ ๊ฐ์ธ๋ฐ,, ์ด ๊ฐ์ next ์ค์ ๊ณผ๋ ๋ฌด๊ดํด ๋ณด์ฌ์.
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.
์ ๊ทธ๋ฐ๊ฐ๋ด
๋๋ค;
ํ์
๋ ๋ด์๋๊ฑธ๋ก ๊ธฐ์ตํ๋๋ฐ, ์๋ชป ๊ธฐ์ตํ๋ ๋ณด๋ค์.
์ง์๋๊ฒ ์ต๋๋ค~
|
||
<Section clickType="function" action={() => ModalOpen(<Modal />)}> | ||
<Icon name="Loudspeaker" size={25} /> | ||
<span className={textStyle + 'text-TEXT-ALT'}>๊ณต์ง์ฌํญ</span> |
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.
๊ตณ์ด + ์ฐ์ฐ์ด ํ์ํ ์ด์ ๊ฐ ๋ญ๊ฐ์?! ํ ํ๋ฆฟ ๋ฆฌํฐ๋ด์ด ๊ฐ๋ ์ฑ์ด ์ข์ ๊ฒ ๊ฐ์์์!
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.
"์ด์ฐจํผ ์์ ๋ฌธ์์ด ๊ฐ์ ํด๋์ค ๋ฌธ์์ด ํ๋๋ฅผ ๋ถ์ธ ๊ผด์ด๋ผ, ํ
ํ๋ฆฟ ๋ฆฌํฐ๋ด๋ณด๋ค ๊ฐ๋
์ฑ์ด ๋ ์ข์ง ์์๊น"๋ผ๊ณ ์๊ฐํ์ฌ ์ ๋ฐ ์์ผ๋ก ๊ตฌํํ์ง ์์๋ ์ถ์ต๋๋ค.
์ผ๋ถ ๋ค๋ฅธ ์ปดํฌ๋ํธ๋ค์์๋ ๋ค ์ ๋ฐ ์์ผ๋ก ์ค์ ๋์ด์๋๋ฐ, ์ด์ ์๋ ํฌ๊ฒ ์ธ๊ธ๋ ์ ์ด ์์ด์ ๋์ด๊ฐ๋ ๊ฒ ๊ฐ๋ค์.
๊ฐ์ธ์ ์ผ๋ก ์ ๋ ๊ด์ฐฎ๋ค๊ณ ๋ณด๋๋ฐ, ํน์ ๋ณ๋๋ก ํ ํ๋ฆฟ ๋ฆฌํฐ๋ด์ ์ฌ์ฉํด์ผ ํ๋ ๊ท์น์ด๋, + ์ฐ์ฐ์์ ๋ํ ์ฌ์ฉ๋ฒ ๊ฐ์ ๊ฐ ์์๊น์?
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.
ํ๋ js runtime ์์ ์ฑ๋ฅ ์ฐจ์ด๊ฐ ๊ฑฐ์ ๋ฌด์๋ ๋งํผ ๋ฏธ๋ฏธํด์ ํผํฌ๋จผ์ค๋ฅผ ์ฐ๊ณ ๊ฐ๊ธด ์ ๋งคํ์ฃ . ๊ทผ๋ฐ ์ ๋ ๋ฌธ์์ด๊ณผ ๋ณ์๊ฐ ๋์ ์ฌ์ฉ๋ ๋ ๋ฌด์กฐ๊ฑด, ์๋์ ์ผ๋ก ํ ํ๋ฆฟ ๋ฆฌํฐ๋ด์ด ํญ์ ๊ฐ๋ ์ฑ ์ฐ์์ ์๋ค๊ณ ๋ด์์!
๋ฌธ์์ด์ ์ด๋ค ๋งฅ๋ฝ์์ ์ ๊ทธ๊ฒ ๋ค์ด๊ฐ๋์ง ํ์ ํ๊ธฐ์ ํจ์ฌ ์ฉ์ดํ๋ค๊ณ ์๊ฐํด์์. ๋ฉํฐ๋ผ์ธ ํํ, Expression Embedding ๋ฑ ๋ถ์ฐจ์ ์ธ๊ฑด ์ฐจ์ฐจํ๊ตฌ์!
post = post.sort( | ||
(a, b) => new Date(a.date).getTime() - new Date(b.date).getTime(), | ||
); | ||
post = post.sort((a, b) => new Date(a.date).getTime() - new Date(b.date).getTime()); |
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.
์ด๊ฑฐ ๋ ์ง ์ ๋ ฌ ์ฐ์ฐ ์ด์ ํ์ ์์ ๊ฒ ๊ฐ์์! (cc. @ooheunda / post ํ๋์ ๋ํ ์ผ ํต๊ณ, ๋ ์ง๋ณ ๋ณด๊ธฐ์ธ๋ฐ ์ ๊ฐ SQL level ์์ order by ์ถ๊ฐ ํ๋ ๊ฒ์ผ๋ก ์๋๋ค!)
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.
์ด ๋ถ๋ถ์ ์ ๊ฐ ๋์น ๊ฒ ๊ฐ์ต๋๋ค.
์ด๋ฒ์ ์ ๊ฑฐํด๋๊ฒ์
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.
์ข์๋ ์
- ๋น ๋ฅด๊ฒ ๊ณต์ง์ฌํญ ๋ถ๋ถ ๋์ ๊ฐ๋ฐ๊ณผ ๋ํ ์ผ ๊ทธ๋ํ trick ์ถ๊ฐ๋ก x & y ์ถ ์์์ ์์ค์ , ํ์ํ ๋ถ๋ถ๋ง ๋ ๊ฒ ๊ฐ์์ ๋๋ฌด ์ข์์ต๋๋ค.
- ์ ๋งคํ ๋ถ๋ถ์ด, ์ง๊ธ ๋ฆฐํ ์ค์ ์ด ๋ฐ๋์๋์? ๋ฆฐํ ๋ง ๋ฐ๋ ๋ถ๋ถ๋ค์ด ๋์ ๋ณด์ฌ์์!
์์ฌ์ด ์
- ์ฝ๋ฉํธ ํ ๋ฒ ํ์ธํด ์ฃผ์ธ์! ์ด์ ์ ํฝ์ค๋ ๋ถ๋ถ์ด๋, ๋ํ ์ผํ ๋ถ๋ถ์์ ๋๋ธ ์ฒดํฌํ ๋ถ๋ถ๋ค์ด ๋ณด์ฌ์!
ํฌ๊ฒ ๋ฐ๋ ๋ฆฐํ
์ค์ ์ ์๋๋ฐ, ์๋ง ์ด์ ์ printWidth๋ฅผ ๋ฐ๊พธ๊ณ ์ ํ์ผ๋ค์ ์ด๋ฉด์ ์๋์ผ๋ก ์์ ๋ ๊ฒ ์๋๊น ์ถ์ต๋๋ค. |
๐ฅ ๋ณ๊ฒฝ ์ฌํญ
๋ ๊ฐ์ ํ ์คํฌ๋ฅผ ํฉ์ณ ์งํํ์์ผ๋ฉฐ, ํค๋์ ๋ฒํผ ๊ตฌ์ฑ์ ๋ณ๊ฒฝํ๊ณ ๊ทธ๋ํ์์ 0.5๋จ์๋ฅผ ์ ๊ฑฐํ์์ต๋๋ค.
์ฐธ๊ณ ๋ก 2์ฃผ ์ ์ branch init์ด ์งํ๋ ๊ฒ์ผ๋ก ๋จ๋๋ฐ, ์ค์๋ก main์ด ์๋ ๋ค๋ฅธ ๋ธ๋์น์์ ํด๋น ๋ธ๋์น๋ฅผ ์์ฑํ์ฌ ๊ทธ๋ ์ต๋๋ค.
์ด์ฐจํผ ์ผ๋ถ ์ต์ ํ์ผ์ ๋ด์ฉ๋ง ์กฐ๊ธ ๋ค๋ฅธ ์์ค์ด๋, ํฐ ๋ฌธ์ ๋ ์์ ๊ฒ์ผ๋ก ๋ณด์ ๋๋ค.
๐ท ๊ด๋ จ ์ด์
#171
,#172
๐ธ ์คํฌ๋ฆฐ์ท (UI ๋ณ๊ฒฝ ์ ํ์)
๐ ์ฒดํฌ๋ฆฌ์คํธ
Summary by CodeRabbit
์ ๊ท ๊ธฐ๋ฅ
๋ฒ๊ทธ ์์
UI ๋ณ๊ฒฝ
๊ธฐํ