Skip to content

Comments

Feat/email register#28

Merged
dasosann merged 7 commits intomainfrom
feat/email-register
Feb 19, 2026
Merged

Feat/email register#28
dasosann merged 7 commits intomainfrom
feat/email-register

Conversation

@dasosann
Copy link
Contributor

@dasosann dasosann commented Feb 18, 2026

PR Type

Enhancement


Description

  • 이메일 기반 회원가입 기능 구현 (3단계: 이메일 입력, 인증번호 확인, 비밀번호 설정)

  • 이메일 및 비밀번호 유효성 검사 로직 추가

  • 회원가입 관련 API 연동 커스텀 훅 3개 생성 (useSendEmail, useVerifyEmail, useSignUp)

  • 디자인 토큰 확장 (색상, 타이포그래피, 입력필드 스타일 추가)

  • UI 컴포넌트 개선 (BackButton, FormInput, Button)


File Walkthrough

Relevant files
Enhancement
12 files
useSendEmail.ts
이메일 전송 API 연동 커스텀 훅                                                                           
+22/-0   
useVerifyEmail.ts
이메일 인증번호 검증 API 연동 훅                                                                         
+30/-0   
useSignUp.ts
회원가입 API 연동 커스텀 훅                                                                               
+25/-0   
validators.ts
이메일 및 비밀번호 유효성 검사 함수                                                                         
+10/-0   
page.tsx
회원가입 페이지 진입점                                                                                         
+5/-0     
ScreenRegister.tsx
회원가입 3단계 플로우 관리 컴포넌트                                                                         
+96/-0   
EmailStep.tsx
이메일 입력 단계 UI 컴포넌트                                                                               
+85/-0   
VerificationStep.tsx
인증번호 입력 및 타이머 기능 컴포넌트                                                                       
+138/-0 
PasswordStep.tsx
비밀번호 설정 및 유효성 표시 컴포넌트                                                                       
+105/-0 
layout.tsx
메타데이터 추가 및 QueryProvider 활성화                                                         
+24/-10 
BackButton.tsx
텍스트 표시 기능 추가 및 레이아웃 개선                                                                     
+23/-4   
FormInput.tsx
에러 상태 스타일링 기능 추가                                                                                 
+7/-1     
Configuration changes
2 files
tokens.css
색상, 타이포그래피, 입력필드 토큰 확장                                                                     
+329/-1 
generate-tokens.js
토큰 생성 스크립트 타이포그래피 범위 확대                                                                   
+8/-6     
Bug fix
2 files
Blur.tsx
배경 blur 요소 z-index 조정                                                                       
+1/-1     
Button.tsx
shadow 스타일 적용 로직 수정                                                                           
+5/-6     


✨ 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 18, 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-based user registration feature, providing a structured and interactive experience for new users. It includes the necessary frontend components for collecting user information, verifying email addresses, and setting secure passwords, all while integrating with the backend through dedicated API hooks. The changes also encompass foundational updates to the application's styling and metadata to support the new functionality and enhance overall user experience and discoverability.

Highlights

  • Email Registration Flow Implemented: A new multi-step email registration process has been added, including distinct steps for email input, verification, and password creation. This feature is supported by new UI components and API integration hooks.
  • UI Component Enhancements: Existing UI components like BackButton, Button, and FormInput have been updated to support the new registration flow, including new styling for error states and improved functionality.
  • Design System Updates: The design system's tokens.css has been expanded with new color tokens and a wider range of typography classes (e.g., typo-11-xxx to typo-29-xxx), and the token generation script was updated accordingly.
  • API Integration Hooks: New React Query hooks (useSendEmail, useVerifyEmail, useSignUp) have been introduced to handle asynchronous operations for email sending, verification, and user registration with the backend.
  • Metadata and Global Layout Updates: Open Graph and Twitter metadata have been added to app/layout.tsx for improved social sharing, and the application's main content is now wrapped with QueryProvider.
Changelog
  • app/layout.tsx
    • Added Open Graph and Twitter metadata for social sharing.
    • Wrapped the main application content with QueryProvider.
  • app/register/_components/EmailStep.tsx
    • Added a new component for the email input step of registration, including email validation.
  • app/register/_components/PasswordStep.tsx
    • Added a new component for the password creation step, featuring password validation, visibility toggle, and input clearing.
  • app/register/_components/ScreenRegister.tsx
    • Added the main registration screen component, orchestrating the multi-step email, verification, and password flow.
  • app/register/_components/VerificationStep.tsx
    • Added a new component for email verification, including a countdown timer, resend functionality, and error handling.
  • app/register/page.tsx
    • Added a new page to render the ScreenRegister component, establishing the registration route.
  • app/tokens.css
    • Increased the total unique tokens count from 144 to 160.
    • Added new color tokens for various gray shades, icon backgrounds, and stroke colors.
    • Expanded typography classes to include all sizes from typo-11-xxx to typo-29-xxx.
  • components/common/Blur.tsx
    • Adjusted the z-index of the blur effect to -10 to ensure it stays behind other content.
  • components/ui/BackButton.tsx
    • Modified the component to optionally display text alongside the back button, supporting a centered layout.
    • Removed the variant prop, simplifying positioning to be handled by className.
  • components/ui/Button.tsx
    • Updated the shadow logic to apply boxShadow when shadow is true, regardless of the disabled state.
  • components/ui/FormInput.tsx
    • Added an error prop to conditionally apply error styling (red border) to the input field.
  • hooks/useSendEmail.ts
    • Added a new React Query mutation hook for sending email verification codes.
  • hooks/useSignUp.ts
    • Added a new React Query mutation hook for user registration with email and password.
  • hooks/useVerifyEmail.ts
    • Added a new React Query mutation hook for verifying email addresses with a provided code.
  • scripts/generate-tokens.js
    • Updated the script to generate typography utility classes for all font sizes from 10px to 30px, instead of only even numbers.
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

이메일 회원가입 3단계 플로우 구현을 완료하신 것을 확인했습니다. 전반적으로 컴포넌트 구조가 깔끔하고, react-query를 활용한 커스텀 훅으로 서버 상태를 관리하는 방식이 인상적입니다. 코드의 완성도를 더욱 높이기 위해 몇 가지 개선점을 제안드립니다. 주로 사용자 경험(UX) 개선, 코드 일관성 확보, 그리고 사소한 버그 수정에 대한 내용이며, 모든 제안은 기존 규칙과 일치하거나 규칙에 의해 허용되는 방식으로 수정되었습니다.

@dasosann
Copy link
Contributor Author

@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 잘 보았습니다. 전반적으로 3단계 회원가입 플로우가 커스텀 훅과 UI 컴포넌트를 통해 잘 구조화되어 있습니다. 제공된 규칙들을 검토한 결과, 모든 초기 피드백은 유효하며 기존 규칙과 충돌하지 않습니다. 따라서 모든 원본 코멘트가 유지되었습니다. 코드 리뷰는 주로 UI/UX 일관성 개선, 잘못된 CSS 클래스 사용 수정, 그리고 코드 유지보수성 향상에 중점을 두었습니다. 특히, 회원가입 단계 표시의 불일치, 잘못된 Tailwind CSS 문법 사용, 그리고 사용자 경험을 저해할 수 있는 몇 가지 부분들을 지적했습니다. 제안된 수정 사항들을 통해 더 완성도 높은 코드가 될 것이라 생각합니다.

@dasosann
Copy link
Contributor Author

@gemini-code-assist review

1 similar comment
@dasosann
Copy link
Contributor Author

@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

이메일 회원가입 기능 구현을 위한 전반적인 구조가 잘 잡혀 있습니다. React 19의 ref prop 활용과 Next.js App Router의 패턴을 적절히 적용하셨습니다. 다만, 저장소 스타일 가이드에 명시된 Server Actions 활용 권장 사항과 일부 컴포넌트의 효율성 및 UX 개선 및 에러 처리 방식 개선 포인트가 확인되어 리뷰를 남깁니다. 특히 디자인 토큰 시스템과 실제 생성되는 CSS 클래스 간의 불일치로 인해 스타일이 적용되지 않을 수 있는 부분이 있으니 확인 부탁드립니다.

Comment on lines +25 to +33
useEffect(() => {
if (timeLeft <= 0) return;

const timer = setInterval(() => {
setTimeLeft((prev) => prev - 1);
}, 1000);

return () => clearInterval(timer);
}, [timeLeft]);
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

현재 타이머 로직은 timeLeft가 변경될 때마다 setInterval을 해제하고 다시 생성하고 있어 비효율적입니다. 함수형 업데이트를 활용하여 의존성 배열을 비우거나, 재전송 시에만 타이머가 리셋되도록 개선이 필요합니다.

  useEffect(() => {
    const timer = setInterval(() => {
      setTimeLeft((prev) => {
        if (prev <= 1) {
          clearInterval(timer);
          return 0;
        }
        return prev - 1;
      });
    }, 1000);

    return () => clearInterval(timer);
  }, []);

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은 3단계 이메일 회원가입 플로우를 성공적으로 구현했습니다. API 통신을 위한 커스텀 훅, 각 단계를 위한 UI 컴포넌트, 확장된 디자인 토큰 시스템이 추가된 점이 좋습니다. 코드 구조도 잘 잡혀있습니다.

다만 몇 가지 개선점을 제안합니다. 가장 시급한 문제는 잘못된 Tailwind CSS 구문 사용으로 인해 스타일이 깨지는 부분입니다. 아키텍처 측면에서는, 프로젝트 스타일 가이드에 따라 데이터 변경(mutation)에 API Route 대신 서버 액션을 사용하도록 리팩터링하는 것을 권장합니다. 또한 alert()를 더 나은 UX의 에러 UI로 대체하고, 하드코딩된 값(색상, 그림자 등)을 디자인 토큰이나 유틸리티 클래스로 대체하여 유지보수성을 높일 수 있습니다. 각 사항에 대해 구체적인 리뷰 코멘트를 남겼습니다.

@dasosann
Copy link
Contributor Author

/describe

@qodo-code-review
Copy link

qodo-code-review bot commented Feb 19, 2026

PR Description updated to latest commit (c0e3d69)

Choose a reason for hiding this comment

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

File Walkthrough

useSendEmail.ts
이메일 전송 API 연동 커스텀 훅                                                                           
useVerifyEmail.ts
이메일 인증번호 검증 API 연동 훅                                                                         
useSignUp.ts
회원가입 API 연동 커스텀 훅                                                                               
validators.ts
이메일 및 비밀번호 유효성 검사 함수                                                                         
page.tsx
회원가입 페이지 진입점                                                                                         
ScreenRegister.tsx
회원가입 3단계 플로우 관리 컴포넌트                                                                         
EmailStep.tsx
이메일 입력 단계 UI 컴포넌트                                                                               
VerificationStep.tsx
인증번호 입력 및 타이머 기능 컴포넌트                                                                       
PasswordStep.tsx
비밀번호 설정 및 유효성 표시 컴포넌트                                                                       
layout.tsx
메타데이터 추가 및 QueryProvider 활성화                                                         
BackButton.tsx
텍스트 표시 기능 추가 및 레이아웃 개선                                                                     
FormInput.tsx
에러 상태 스타일링 기능 추가                                                                                 
tokens.css
색상, 타이포그래피, 입력필드 토큰 확장                                                                     
generate-tokens.js
토큰 생성 스크립트 타이포그래피 범위 확대                                                                   
Blur.tsx
배경 blur 요소 z-index 조정                                                                       
Button.tsx
shadow 스타일 적용 로직 수정                                                                           

@dasosann dasosann merged commit e8643f4 into main Feb 19, 2026
2 checks passed
@dasosann dasosann deleted the feat/email-register branch February 21, 2026 14:01
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