-
Notifications
You must be signed in to change notification settings - Fork 0
๐ฅ Remove localstorage regId after life cycle #189
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
c76bfdb
โจ Implement query key to filter event detail data
jun-0411 4c0d5ea
โจ Add hook to invalidate event registration queries
jun-0411 2026d1d
โป๏ธ Refactor event detail and guest hooks to use TanStack Query
jun-0411 8eb6500
โป๏ธ Refactor event registration and detail handling with TanStack Querโฆ
jun-0411 3e6ae4f
โจ Add mock registration handling and event synchronization logic
jun-0411 b5b3a30
๐ฅ Remove regId localstorage when login & logout
jun-0411 a100181
โจ Using regId only guest state and Remove regId localstorage & url whโฆ
jun-0411 70d0102
โจ Not to use regId for callback when login state
jun-0411 c3d172d
Merge branch 'dev' of https://github.com/wafflestudio/moiming-web intโฆ
jun-0411 e7654b9
๐จ Format useEventDetail.ts to pass CI
jun-0411 a283acf
๐ Add Agents.md documentation file
jun-0411 b2db177
๐จ Format again useEventDetail.ts to pass CI
jun-0411 6e6273d
๐จ Add a symbolic link for CLAUDE.md
young-52 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| # 1. Tech Stack & Environment (Default) | ||
| - Frontend: React (Functional Components, Hooks ์ค์ฌ. ํจ์ ์ ์ธ ์คํ์ผ์ Coding Standards์ ํจ์ ์ ์ธ ์คํ์ผ ๊ท์น์ ๋ฐ๋ฅธ๋ค.) | ||
| - Style: Tailwind CSS + Shadcn UI (Maintain Design Consistency) | ||
| - Language: TypeScript (Strict mode, No `any`) | ||
| - Routing: React Router v7 | ||
| - State: Zustand (UI State), TanStack Query (Server State) | ||
| - Networking: Axios (with Interceptors), MSW (Mocking Sync required) | ||
|
|
||
| # 2. Coding Standards (Quality & Readability) | ||
| - "์ฝ๊ธฐ ์ฌ์ด ์ฝ๋" ์ต์ฐ์ : ๋ณ์๋ช ์ ์ง๊ด์ ์ผ๋ก, ๋ก์ง์ ๋จ์ํ๊ฒ ์์ฑํ ๊ฒ. | ||
| - **์ฃผ์ ์์ฑ ์์น**: | ||
| - ์ฃผ์์ ์ฝ๋๊ฐ "๋ฌด์์ ํ๋์ง"๋ณด๋ค "์ ์ด๋ ๊ฒ ์ฒ๋ฆฌํ๋์ง"๋ฅผ ์ค๋ช ํ๋ค. | ||
| - ์ฝ๋๋ง์ผ๋ก ์๋๊ฐ ๋ถ๋ช ํ ๋จ์ ๋ก์ง์๋ ์ฃผ์์ ๋ฌ์ง ์๋๋ค. | ||
| - ํ๋ฉด, ํ , mock, API์ฒ๋ผ ํ๋ฆ์ด ๊ธด ํ์ผ์ ๊ธฐ์กด ์ฝ๋์ฒ๋ผ ๋ฒํธ๋ ์งง์ ์ ๋ชฉ์ผ๋ก ๊ตฌํ์ ๋๋๋ค. | ||
| - ์: `// 1. ๋ฐ์ดํฐ ๊ฐ์ ธ์ค๊ธฐ ๋ฐ ๊ถํ ํ์ธ`, `{/* ์ฐธ์ฌ์ ๋ช ๋จ ์น์ */}` | ||
| - ์ ํ ์ ์ฑ , ์๋ฒ ์๋ต ๋ณด์, ์บ์ ๋๊ธฐํ, ์์ธ ์ฒ๋ฆฌ, mock์ด ์ค์ ๋ฐฑ์๋ ์ ์ฑ ์ ํ๋ด ๋ด๋ ๋ถ๋ถ์๋ ์งง์ ํ๊ตญ์ด ์ฃผ์์ ๋จ๊ธด๋ค. | ||
| - ์ฃผ์์ ๊ธฐ๋ณธ์ ์ผ๋ก 1~2์ค๋ก ์์ฑํ๊ณ , ๊ธด ์ค๋ช ์ Plan ๋ฌธ์๋ ๋ณ๋ ๋ฌธ์์ ๋จ๊ธด๋ค. | ||
| - ์ค๋๋ ์ฃผ์, ์ฃผ์ ์ฒ๋ฆฌ๋ ๋ฏธ์ฌ์ฉ ์ฝ๋, ์ฝ๋์ ๋ง์ง ์๋ ์ค๋ช ์ ์์ ๊ณผ์ ์์ ํจ๊ป ์ ๋ฆฌํ๋ค. | ||
| - ๋ชจ๋ํ: ํ๋์ ํ์ผ์ด ๋๋ฌด ๊ธธ์ด์ง์ง ์๊ฒ ๊ธฐ๋ฅ๋ณ๋ก ๋ถ๋ฆฌํ ๊ฒ. | ||
| - ์๋ฌ ์ฒ๋ฆฌ: ์์ธ ์ํฉ(Error Handling)์ ํญ์ ๊ณ ๋ คํ์ฌ ์ฝ๋๋ฅผ ์์ฑํ ๊ฒ. | ||
| - **Strict Typing**: `any` ์ฌ์ฉ์ ์๊ฒฉํ ๊ธ์งํ๋ฉฐ, ๋ชจ๋ API ์๋ต๊ณผ Props์ ๋ํด ๊ตฌ์ฒด์ ์ธ interface/type์ ์ ์ํ ๊ฒ. | ||
| - **๋ฐ์ดํฐ ๊ด๋ฆฌ ์์น**: ์๋ฒ ๋ฐ์ดํฐ(Server State)๋ TanStack Query๋ฅผ, ์์ UI ์ํ๋ ์ ์ญ ์บ์ฑ(Client State)์ Zustand๋ฅผ ์ฌ์ฉํ์ฌ ์ญํ ์ ์๊ฒฉํ ๋ถ๋ฆฌํ ๊ฒ. | ||
| - **MSW Sync**: ์๋ก์ด API ์ฐ๋์ด๋ ์์ ์, ๋ฐ๋์ `src/mocks` ๋ด์ ๋ชจํน ํธ๋ค๋ฌ์ ๋ฐ์ดํฐ๋ ์ธํธ๋ก ์ ๋ฐ์ดํธํ ๊ฒ. | ||
| - **์ฝ๋ ๊ฒํ ๋ฐ ํ์ง ๊ด๋ฆฌ**: | ||
| - ์ฝ๋ ๊ฒํ (ํ์ ์ฒดํฌ, ํฌ๋งคํ ๊ฒ์ฌ ๋ฑ)๊ฐ ํ์ํ ๋๋ `yarn check-all` ๋ช ๋ น์ด๋ฅผ ์ฌ์ฉํ ๊ฒ. | ||
| - ์ฝ๋ ํฌ๋งคํ ์ด ํ์ํ ๊ฒฝ์ฐ `yarn fix` ๋ช ๋ น์ด๋ฅผ ์ฌ์ฉํ ๊ฒ. | ||
| - **ํจ์ ์ ์ธ ์คํ์ผ**: | ||
| - React ์ปดํฌ๋ํธ๋ `function` ํค์๋๋ก ์ ์ธํ๋ค. | ||
| - ์: `export default function EventMain() { ... }` | ||
| - ์ปค์คํ ํ ์ ๊ธฐ์กด ์ฝ๋๋ฒ ์ด์ค ํจํด์ ๋ง์ถฐ `function` ํค์๋๋ก ์ ์ธํ๋ค. | ||
| - ์: `export default function useEventDetail(...) { ... }` | ||
| - ์ปดํฌ๋ํธ/ํ ๋ด๋ถ์ ์ด๋ฒคํธ ํธ๋ค๋ฌ, ๋น์ฆ๋์ค ๋ก์ง, ์ ํธ๋ฆฌํฐ ํจ์๋ ํ์ดํ ํจ์๋ก ์์ฑํ๋ค. | ||
| - ์: `const handleSubmit = async () => { ... }` | ||
| - ์ปดํฌ๋ํธ๊ฐ ์๋ export ์ ํธ๋ฆฌํฐ๋ ํ์ดํ ํจ์๋ก ์์ฑํ๋ค. | ||
| - ์: `export const formatDate = (...) => { ... }` | ||
|
|
||
|
|
||
| # 3. Work Process (Mandatory File-based Planning) | ||
| - **Step-by-Step Approach**: ์ฝ๋๋ฅผ ์์ ํ๊ธฐ ์ , ๋ฐ๋์ ๋ค์ ๋ ํ์ผ์ ์์ฑ/์ ๋ฐ์ดํธํ์ฌ ์ ์ํ๋ค. | ||
| 1. **[Implementation Plan]**: ๊ตฌ์ฒด์ ์ธ ์์ ๋ฒ์์ ๋ก์ง์ ํ๊ตญ์ด๋ก ๊ธฐ์ ํ ๋ฌธ์. | ||
| 2. **[Task]**: ์ฒดํฌ๋ฐ์ค(`- [ ]`) ํํ์ ์ธ๋ถ ์์ ๋ฆฌ์คํธ ํ์ผ. | ||
| - **Permission Required**: ์ ๋ ํ์ผ์ด ์์ฑ๋๊ณ , ์ฌ์ฉ์์ **์น์ธ(Confirmation)**์ ๋ฐ์ ํ์๋ง ์ค์ ์ฝ๋ ์์ ์ ์์ํ๋ค. | ||
| - **Progress Tracking**: ์์ ์ด ์งํ๋จ์ ๋ฐ๋ผ [Task] ํ์ผ์ ์ฒดํฌ๋ฐ์ค๋ฅผ ์ ๋ฐ์ดํธํ์ฌ ์งํ ์ํฉ์ ๊ณต์ ํ๋ค. | ||
|
|
||
| # ๏ผ. Communication & Persona | ||
| - ์ธ์ด: ๋ชจ๋ ์ค๋ช ๊ณผ ์ฃผ์, ์์ ๊ณํ(Plan)์ **'ํ๊ตญ์ด'**๋ก ์์ฑ. | ||
| - ์ค๋ช ๋ฐฉ์: ์ด๋ณด์๋ ์ดํดํ ์ ์๊ฒ ์ฝ๊ฒ ์ค๋ช ํ๋, ๋น์ฆ๋์ค ๋ก์ง๊ณผ ๊ตฌ์กฐ๋ฅผ ๋ช ํํ ์ง์ด์ค ๊ฒ. | ||
| - ํ๋: ๋จ์ํ ์ฝ๋๋ง ์ง์ง ๋ง๊ณ , ๋ด ์์ฒญ์ ์ ์ฌ๋ '๋ฆฌ์คํฌ'๋ ๋ ์ข์ '๋์'์ด ์๋ค๋ฉด ๋จผ์ ์ ์ํด์ฃผ๋ ํํธ๋๊ฐ ๋ ๊ฒ. | ||
| - ๋ต๋ณ ํ์: [๊ฒฐ๋ก /ํด๊ฒฐ์ฑ ] -> [์ฝ๋] -> [์์ธ ์ค๋ช ] ์์๋ก ๋๊ด์์ผ๋ก ๋ต๋ณํ ๊ฒ. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| AGENTS.md |
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.