Skip to content

로그인 페이지 및 인증 로직 추가 - #22

Merged
JAEJUN090210 merged 1 commit into
developfrom
feature/#17_LoginPage
Jul 22, 2026
Merged

로그인 페이지 및 인증 로직 추가#22
JAEJUN090210 merged 1 commit into
developfrom
feature/#17_LoginPage

Conversation

@JAEJUN090210

Copy link
Copy Markdown
Member

로그인 페이지 및 인증 로직 추가

로그인 페이지 및 인증 로직 추가
@JAEJUN090210
JAEJUN090210 requested a review from yunho09 July 22, 2026 03:18
@JAEJUN090210 JAEJUN090210 self-assigned this Jul 22, 2026
@yunho09
yunho09 requested a review from Copilot July 22, 2026 03:21
@JAEJUN090210
JAEJUN090210 removed the request for review from Copilot July 22, 2026 03:21
@yunho09
yunho09 requested a review from Copilot July 22, 2026 03:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds a login screen and a minimal client-side “auth” mechanism to gate routes in the admin/user web apps, backed by shared utilities in @commonly/utils and a reusable Login component in @commonly/ui.

Changes:

  • Introduce @commonly/utils auth helpers for storing/clearing an auth token, remembering login IDs, and sanitizing redirect paths.
  • Add a new Login UI component and wire /login routes plus auth-required loaders in both admin-web and user-web.
  • Add logout handling in layouts; remove the existing packages/ui integrated-registration regression test file.

Reviewed changes

Copilot reviewed 15 out of 17 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
packages/utils/src/index.ts Re-export auth helpers/types from the utils entrypoint.
packages/utils/src/auth.ts Implements localStorage-backed token + remembered ID helpers, redirect path sanitizer, and local session token generator.
packages/utils/src/.gitkeep Keeps the directory tracked (now redundant with real source files present).
packages/utils/package.json Adds bun test script for utils package.
packages/ui/tests/integratedRegistration.test.tsx Removes existing UI regression tests for integrated registration + header.
packages/ui/src/login/Login.tsx New login page component (form validation + submit handling).
packages/ui/src/login/login.styles.ts Styling for the login page component.
packages/ui/src/index.ts Exposes Login component/types from the UI package.
bun.lock Adds workspace dependency links for @commonly/utils.
apps/user-web/src/router/index.tsx Adds /login route + auth-required loader redirecting unauthenticated users.
apps/user-web/src/pages/LoginPage.tsx Implements login behavior (store token, remember ID, navigate to sanitized redirect).
apps/user-web/src/layout/UserLayout.tsx Adds default logout handler (confirm → clear token → navigate to /login).
apps/user-web/package.json Adds @commonly/utils dependency.
apps/admin-web/src/router/index.tsx Same auth-required loader + /login route as user-web.
apps/admin-web/src/pages/LoginPage.tsx Same login behavior as user-web.
apps/admin-web/src/layout/AdminLayout.tsx Adds default logout handler (confirm → clear token → navigate to /login).
apps/admin-web/package.json Adds @commonly/utils dependency.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/ui/src/login/Login.tsx
Comment thread packages/utils/src/auth.ts
Comment thread packages/ui/src/login/Login.tsx
Comment thread apps/user-web/src/router/index.tsx
@JAEJUN090210
JAEJUN090210 merged commit ce08beb into develop Jul 22, 2026
2 checks passed
@JAEJUN090210
JAEJUN090210 deleted the feature/#17_LoginPage branch July 22, 2026 05:15
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