Skip to content

Feat/email login page#18

Open
dasosann wants to merge 7 commits intomainfrom
feat/email-login-page
Open

Feat/email login page#18
dasosann wants to merge 7 commits intomainfrom
feat/email-login-page

Conversation

@dasosann
Copy link
Contributor

@dasosann dasosann commented Feb 4, 2026

PR Type

Enhancement


Description

  • 이메일 로그인 페이지 및 관련 컴포넌트 추가

  • 백 버튼 컴포넌트 구현 (절대/정적 위치 지원)

  • BubbleDiv 컴포넌트 재사용성 개선 (props 추가)

  • 로그인 액션 섹션에 이메일 로그인 라우팅 연동


Diagram Walkthrough

flowchart LR
  A["로그인 액션 섹션"] -- "이메일 로그인 클릭" --> B["로그인 페이지"]
  B --> C["백 버튼"]
  B --> D["로그인 인트로"]
  B --> E["로그인 폼"]
  E --> F["BubbleDiv<br/>회원가입 유도"]
  E --> G["이메일/비밀번호<br/>입력 필드"]
Loading

File Walkthrough

Relevant files
Enhancement
BubbleDiv.tsx
BubbleDiv 컴포넌트 재사용성 개선                                                                     

app/_components/BubbleDiv.tsx

  • Props 추가 (children, w, h, typo, top)로 컴포넌트 재사용성 향상
  • 동적 너비/높이 설정 지원 (인라인 스타일)
  • 기본값 설정으로 기존 사용처 호환성 유지
  • 자식 요소 렌더링 지원
+25/-6   
BackButton.tsx
백 버튼 컴포넌트 신규 구현                                                                                   

app/login/_components/BackButton.tsx

  • 새로운 백 버튼 컴포넌트 생성
  • 절대/정적 위치 지정 가능한 variant prop 지원
  • lucide-react ChevronLeft 아이콘 사용
  • 반투명 배경과 블러 효과 적용
+25/-0   
LocalLoginIntro.tsx
로그인 인트로 섹션 컴포넌트                                                                                   

app/login/_components/LocalLoginIntro.tsx

  • 이메일 로그인 페이지 상단 인트로 섹션 컴포넌트
  • 제목과 설명 텍스트 포함
  • 타이포그래피 스타일 적용
+17/-0   
LoginForm.tsx
로그인 폼 컴포넌트 구현                                                                                       

app/login/_components/LoginForm.tsx

  • 이메일/비밀번호 입력 폼 구현
  • 에러 상태 관리 (isWrong state)
  • 입력 필드 유효성 검사 (required, email type)
  • BubbleDiv를 활용한 회원가입 유도 메시지
  • 이메일 찾기/비밀번호 변경 링크 포함
+84/-0   
ScreenLocalLoginPage.tsx
이메일 로그인 페이지 레이아웃                                                                                 

app/login/_components/ScreenLocalLoginPage.tsx

  • 이메일 로그인 페이지 메인 레이아웃 컴포넌트
  • BackButton, LocalLoginIntro, LoginForm 조합
  • 전체 높이 화면 레이아웃 (h-dvh)
+16/-0   
page.tsx
로그인 페이지 라우트 추가                                                                                     

app/login/page.tsx

  • /login 라우트 페이지 생성
  • ScreenLocalLoginPage 컴포넌트 렌더링
+8/-0     
LoginActionSection.tsx
이메일 로그인 라우팅 연동                                                                                     

app/login/LoginActionSection.tsx

  • useRouter 훅 추가로 클라이언트 라우팅 지원
  • handleEmailLogin 함수 구현 (/login 경로로 이동)
  • 이메일 로그인 버튼에 onClick 핸들러 연동
Button.tsx
버튼 스타일 개선                                                                                               

components/ui/Button.tsx

  • 배경색 클래스 추가 (bg-button-primary)
  • 테두리 반경 변경 (rounded-[12px] → rounded-[16px])
+1/-1     


✨ Describe tool usage guide:

Overview:
The describe tool scans the PR code changes, and generates a description for the PR - title, type, summary, walkthrough and labels. The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on a PR.

When commenting, to edit configurations related to the describe tool (pr_description section), use the following template:

/describe --pr_description.some_config1=... --pr_description.some_config2=...

With a configuration file, use the following template:

[pr_description]
some_config1=...
some_config2=...
Enabling\disabling automation
  • When you first install the app, the default mode for the describe tool is:
pr_commands = ["/describe", ...]

meaning the describe tool will run automatically on every PR.

  • Markers are an alternative way to control the generated description, to give maximal control to the user. If you set:
pr_commands = ["/describe --pr_description.use_description_markers=true", ...]

the tool will replace every marker of the form pr_agent:marker_name in the PR description with the relevant content, where marker_name is one of the following:

  • type: the PR type.
  • summary: the PR summary.
  • walkthrough: the PR walkthrough.
  • diagram: the PR sequence diagram (if enabled).

Note that when markers are enabled, if the original PR description does not contain any markers, the tool will not alter the description at all.

Custom labels

The default labels of the describe tool are quite generic: [Bug fix, Tests, Enhancement, Documentation, Other].

If you specify custom labels in the repo's labels page or via configuration file, you can get tailored labels for your use cases.
Examples for custom labels:

  • Main topic:performance - pr_agent:The main topic of this PR is performance
  • New endpoint - pr_agent:A new endpoint was added in this PR
  • SQL query - pr_agent:A new SQL query was added in this PR
  • Dockerfile changes - pr_agent:The PR contains changes in the Dockerfile
  • ...

The list above is eclectic, and aims to give an idea of different possibilities. Define custom labels that are relevant for your repo and use cases.
Note that Labels are not mutually exclusive, so you can add multiple label categories.
Make sure to provide proper title, and a detailed and well-phrased description for each label, so the tool will know when to suggest it.

Inline File Walkthrough 💎

For enhanced user experience, the describe tool can add file summaries directly to the "Files changed" tab in the PR page.
This will enable you to quickly understand the changes in each file, while reviewing the code changes (diffs).

To enable inline file summary, set pr_description.inline_file_summary in the configuration file, possible values are:

  • 'table': File changes walkthrough table will be displayed on the top of the "Files changed" tab, in addition to the "Conversation" tab.
  • true: A collapsable file comment with changes title and a changes summary for each file in the PR.
  • false (default): File changes walkthrough will be added only to the "Conversation" tab.
Utilizing extra instructions

The describe tool can be configured with extra instructions, to guide the model to a feedback tailored to the needs of your project.

Be specific, clear, and concise in the instructions. With extra instructions, you are the prompter. Notice that the general structure of the description is fixed, and cannot be changed. Extra instructions can change the content or style of each sub-section of the PR description.

Examples for extra instructions:

[pr_description]
extra_instructions="""- The PR title should be in the format: '<PR type>: <title>'
- The title should be short and concise (up to 10 words)
- ...
"""

Use triple quotes to write multi-line instructions. Use bullet points to make the instructions more readable.

More PR-Agent commands

To invoke the PR-Agent, add a comment using one of the following commands:

  • /review: Request a review of your Pull Request.
  • /describe: Update the PR title and description based on the contents of the PR.
  • /improve [--extended]: Suggest code improvements. Extended mode provides a higher quality feedback.
  • /ask <QUESTION>: Ask a question about the PR.
  • /update_changelog: Update the changelog based on the PR's contents.
  • /help_docs <QUESTION>: Given a path to documentation (either for this repository or for a given one), ask a question.
  • /add_docs 💎: Generate docstring for new components introduced in the PR.
  • /generate_labels 💎: Generate labels for the PR based on the PR's contents.
  • /analyze 💎: Automatically analyzes the PR, and presents changes walkthrough for each component.

See the tools guide for more details.
To list the possible configuration parameters, add a /config comment.

See the describe usage page for a comprehensive guide on using this tool.

@qodo-code-review qodo-code-review bot added the enhancement New feature or request label Feb 4, 2026
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @dasosann, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a comprehensive email login feature, enhancing user authentication options within the application. It establishes the necessary routing and user interface components to support this new login method, while also improving the reusability of an existing UI element and refining the styling of a core button component.

Highlights

  • Email Login Page Implementation: A new dedicated email login page has been fully implemented, providing users with an alternative authentication method.
  • Reusable BubbleDiv Component: The BubbleDiv component has been refactored to be more generic and reusable, now accepting children, dimensions (width, height), typography, and top position as props.
  • Login Flow Integration: The main login action section now includes a functional 'Login with Email' option that navigates users to the newly created email login page.
  • New UI Components for Login: Several new UI components, including BackButton, LocalLoginIntro, and LoginForm, have been introduced to construct the email login experience.
Changelog
  • app/_components/BubbleDiv.tsx
    • Refactored BubbleDiv to accept children, w, h, typo, and top props for dynamic content and styling.
    • Updated Image component to use dynamic w and h props.
  • app/_components/LoginActionSection.tsx
    • Imported useRouter from next/navigation to enable programmatic navigation.
    • Added handleEmailLogin function to redirect to the /login route.
    • Attached handleEmailLogin to the '이메일로 로그인' button's onClick event.
  • app/login/_components/BackButton.tsx
    • Added a new BackButton component with ChevronLeft icon, supporting absolute or static positioning and custom onClick handlers.
  • app/login/_components/LocalLoginIntro.tsx
    • Added a new LocalLoginIntro component to display a welcome message and instructions for email login.
  • app/login/_components/LoginForm.tsx
    • Added a new client-side LoginForm component for email and password input.
    • Implemented basic form submission logic with a state to simulate login failure and display an error message.
    • Included links for '이메일 찾기' (Find Email) and '비밀번호 변경' (Change Password).
    • Integrated BubbleDiv and a '이메일로 회원가입' (Sign up with Email) button.
  • app/login/_components/ScreenLocalLoginPage.tsx
    • Added a new ScreenLocalLoginPage component that orchestrates BackButton, LocalLoginIntro, and LoginForm to form the complete login screen.
  • app/login/page.tsx
    • Created a new page file that renders the ScreenLocalLoginPage component, making the email login page accessible at the /login route.
  • components/ui/Button.tsx
    • Updated the default Button component's border-radius from 12px to 16px.
    • Added bg-button-primary class to the default button styling.
Activity
  • No specific activity (comments, reviews, or progress updates) has been recorded for this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

이메일 로그인 페이지 추가와 관련 컴포넌트 구현에 대한 PR을 잘 보았습니다. 전반적으로 기능 구현은 잘 이루어졌지만, 몇 가지 개선점을 제안합니다. 특히 접근성, 최신 React/Next.js 패턴 적용, 그리고 사소한 버그 수정에 중점을 두었습니다. BackButton의 접근성 문제, LoginForm의 상태 관리 방식, 그리고 작동하지 않는 뒤로가기 버튼 등이 주요 검토 사항입니다. 또한, SEO를 위한 메타데이터 추가와 코드 스타일 가이드 준수에 대한 제안도 포함했습니다. 모든 코멘트는 제공된 규칙과 일치하거나 규칙에 의해 다루어지지 않는 유효한 피드백이므로 그대로 유지됩니다. 자세한 내용은 각 파일에 대한 리뷰 코멘트를 참고해주세요.

@dasosann
Copy link
Contributor Author

dasosann commented Feb 4, 2026

@gemini-code-assist review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

안녕하세요. 이메일 로그인 페이지 구현 PR에 대한 리뷰를 남깁니다. 전반적으로 컴포넌트 분리와 재사용성 개선이 잘 이루어졌습니다. 몇 가지 개선점을 제안드립니다.

  • 아키텍처: LoginForm에서 React 19와 Next.js의 최신 패턴인 서버 액션과 useActionState를 사용하도록 리팩터링을 권장합니다. 이는 스타일 가이드에도 명시된 내용으로, 코드의 안정성과 점진적 향상에 큰 도움이 됩니다.
  • 접근성: 아이콘만 있는 BackButton에 스크린 리더를 위한 aria-label을 추가하여 웹 접근성을 개선해야 합니다.
  • 코드 스타일 및 유지보수: 일부 컴포넌트에서 상수 위치, CSS 스타일링 방식, 임포트 경로 등에 대해 더 일관성 있고 안정적인 코드를 작성하기 위한 제안들을 포함했습니다.

자세한 내용은 각 파일의 주석을 참고해주세요. 수고하셨습니다!

@dasosann
Copy link
Contributor Author

dasosann commented Feb 4, 2026

@gemini-code-assist review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

이메일 로그인 페이지와 관련 컴포넌트 추가를 위한 PR 잘 보았습니다. 전반적으로 React 19의 useActionState와 Next.js의 서버 액션을 잘 활용하여 최신 패턴을 적용하신 점이 인상적입니다. 컴포넌트 재사용성을 높이려는 노력도 돋보입니다. 몇 가지 개선점을 제안드리며, 이를 통해 코드의 안정성과 시맨틱을 더욱 향상시킬 수 있을 것입니다. 특히 폼 에러 처리 로직과 서버 측 유효성 검사, 그리고 시맨틱 마크업 사용에 대한 피드백을 중점적으로 확인해주세요.

Comment on lines +12 to +13
const email = formData.get("email");
const password = formData.get("password");
Copy link
Contributor

Choose a reason for hiding this comment

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

high

현재 서버 액션에서 formData로부터 이메일과 비밀번호를 받은 후 바로 사용하고 있습니다. 보안과 안정성을 위해 서버 측에서도 반드시 입력값에 대한 유효성 검사를 수행해야 합니다. 예를 들어, 이메일 형식이 올바른지, 비밀번호가 비어있지 않은지 등을 확인하는 로직이 필요합니다. zod와 같은 라이브러리를 사용하면 스키마 기반으로 간편하게 유효성 검사를 추가할 수 있습니다.

예시 (zod 사용):

import { z } from "zod";

const loginSchema = z.object({
  email: z.string().email({ message: "올바른 이메일 형식이 아닙니다." }),
  password: z.string().min(1, { message: "비밀번호를 입력해주세요." }),
});

export async function loginAction(...) {
  const validatedFields = loginSchema.safeParse({
    email: formData.get("email"),
    password: formData.get("password"),
  });

  if (!validatedFields.success) {
    return {
      success: false,
      message: validatedFields.error.errors[0].message,
    };
  }

  const { email, password } = validatedFields.data;
  // ... 이후 로직
}
References
  1. 사용자 입력은 클라이언트뿐만 아니라 서버 측에서도 반드시 검증해야 합니다. 현재 서버 액션에 입력값 유효성 검사가 누락되어 있습니다. (link)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant