Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions apps/timo-web/app/(auth)/login/page.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions apps/timo-web/app/(auth)/signup/page.tsx

This file was deleted.

3 changes: 3 additions & 0 deletions apps/timo-web/app/focus/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function FocusPage() {
return <></>;
}
Comment thread
kimminna marked this conversation as resolved.
Resolved
3 changes: 3 additions & 0 deletions apps/timo-web/app/home/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function HomePage() {
return <></>;
}
Comment thread
kimminna marked this conversation as resolved.
Resolved
3 changes: 3 additions & 0 deletions apps/timo-web/app/onboarding/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function OnboardingPage() {
return <></>;
}
Comment thread
kimminna marked this conversation as resolved.
Resolved
Empty file.
Empty file.
Empty file.
Empty file.
3 changes: 3 additions & 0 deletions apps/timo-web/app/settings/account/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function SettingsAccountPage() {
return <></>;
Comment thread
kimminna marked this conversation as resolved.
Resolved
}
7 changes: 7 additions & 0 deletions apps/timo-web/app/settings/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default function SettingsLayout({
children,
}: {
children: React.ReactNode;
}) {
Comment thread
kimminna marked this conversation as resolved.
Resolved
return <>{children}</>;
}
3 changes: 3 additions & 0 deletions apps/timo-web/app/settings/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function SettingsPage() {
return <></>;
Comment thread
kimminna marked this conversation as resolved.
Resolved
}
Empty file.
Empty file.
Empty file.
3 changes: 3 additions & 0 deletions apps/timo-web/app/settings/term/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function SettingsTermPage() {
return <></>;
Comment thread
kimminna marked this conversation as resolved.
Resolved
}
Empty file.
Empty file.
Empty file.
3 changes: 3 additions & 0 deletions apps/timo-web/app/statistics/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function StatisticsPage() {
return <></>;
}
Comment thread
kimminna marked this conversation as resolved.
Resolved
Empty file.
Empty file.
Empty file.
3 changes: 3 additions & 0 deletions apps/timo-web/app/today/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default function TodayPage() {
return <></>;
}
Comment thread
kimminna marked this conversation as resolved.
Resolved
31 changes: 20 additions & 11 deletions apps/timo-web/lighthouserc.cjs
Original file line number Diff line number Diff line change
@@ -1,30 +1,39 @@
/* global module */
'use strict';
"use strict";

module.exports = {
ci: {
collect: {
url: [
'http://localhost:3000',
"http://localhost:3000",
"http://localhost:3000/home",
"http://localhost:3000/today",
"http://localhost:3000/focus",
"http://localhost:3000/statistics",
"http://localhost:3000/onboarding",
"http://localhost:3000/settings",
"http://localhost:3000/settings/account",
"http://localhost:3000/settings/term",
],
numberOfRuns: 3,
settings: {
chromeFlags: '--no-sandbox --disable-setuid-sandbox --disable-dev-shm-usage',
chromeFlags:
"--no-sandbox --disable-setuid-sandbox --disable-dev-shm-usage",
},
},
assert: {
preset: 'lighthouse:no-pwa',
preset: "lighthouse:no-pwa",
assertions: {
'categories:performance': ['warn', { minScore: 0.7 }],
'categories:accessibility': ['warn', { minScore: 0.85 }],
'categories:best-practices': ['warn', { minScore: 0.8 }],
'categories:seo': ['warn', { minScore: 0.8 }],
"categories:performance": ["warn", { minScore: 0.7 }],
"categories:accessibility": ["warn", { minScore: 0.85 }],
"categories:best-practices": ["warn", { minScore: 0.8 }],
"categories:seo": ["warn", { minScore: 0.8 }],
},
},
upload: {
target: 'filesystem',
outputDir: '.lighthouseci',
reportFilenamePattern: '%%PATHNAME%%-%%DATETIME%%-report.%%EXTENSION%%',
target: "filesystem",
outputDir: ".lighthouseci",
reportFilenamePattern: "%%PATHNAME%%-%%DATETIME%%-report.%%EXTENSION%%",
},
},
};
4 changes: 1 addition & 3 deletions docs/architecture/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ app/(domain)/page.tsx ← 라우팅·레이아웃 조
```

- **pages** (`app/.../page.tsx`): 라우팅 단위. 데이터 페칭(React Query) 및 레이아웃만 담당
- **도메인 종속** (`_components/`, `_containers/`, `_queries/`, `_hooks/`, `_utils/`): 해당 도메인 라우트 내부에서만 사용. `_` 접두사로 Next.js 라우팅에서 제외됨
- **도메인 종속** (`_components/`, `_containers/`, `_queries/`): 해당 도메인 라우트 내부에서만 사용. `_` 접두사로 Next.js 라우팅에서 제외됨

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

그냥 궁금해서 그런데 _hooks/, _utils/는 왜 제외했나요?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

제외했다기보단 필요할 때마다 추가해서 사용하는 편이 나을 것 같아서 일단 스캐폴딩 범위에선 제외했숩니다!
사실 도메인 별로 사용 빈도가 너무 다를 것 같은 폴더 구조이기도 해서, 컴포넌트 / 컨테이너 / 쿼리 함수같은 필수 폴더만 스캐폴딩해 뒀어요

각자 작업하다가 폴더 추가가 필요하다고 느낄 경우(도메인에 종속되는 훅, 유틸이 생성되었을 때) 추가하면 될 것 같아요!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

확실이 모든 도메인에서 필요하지 않을 것 같네요. 답변 감사합니당-!

- `_components/` — props만 받는 순수 UI. `'use client'` 없이도 동작 가능
- `_containers/` — `'use client'` 필수. useQuery·zustand 등 외부 상태와 결합된 클라이언트 컨테이너
- `_queries/` — 해당 도메인 전용 React Query hooks (useQuery · useMutation · queryKey 정의)
Expand All @@ -22,8 +22,6 @@ app/
_components/ # LoginForm, SocialLoginButton 등 순수 UI
_containers/ # LoginFormContainer (useQuery·zustand 결합)
_queries/ # useLoginMutation, useUserProfileQuery 등
_hooks/ # useLoginForm 등 auth 전용 커스텀 훅
_utils/ # validatePassword 등 auth 전용 유틸
page.tsx # 레이아웃 조합만 (Server Component)
layout.tsx
```
Expand Down
Loading