Skip to content

fix: 개발자 navbar 포트폴리오 입력 전 inactive 하도록 수정#331

Merged
cho-in-sik merged 1 commit intomainfrom
bug/327-portfolio-active
Feb 27, 2026
Merged

fix: 개발자 navbar 포트폴리오 입력 전 inactive 하도록 수정#331
cho-in-sik merged 1 commit intomainfrom
bug/327-portfolio-active

Conversation

@dle234
Copy link
Collaborator

@dle234 dle234 commented Feb 27, 2026

관련 이슈

작업 분류

  • 버그 수정
  • 신규 기능 추가
  • 프로젝트 구조 변경
  • 코드 스타일 변경
  • 기존 기능 개선
  • 문서 수정

PR을 통해 해결하려는 문제가 무엇인가요? 🚀

지원서 페이지에서 개발자의 경우 포트폴리오 필수 입력이 아니라서 첫 화면에서 navbar 가 활성화되어있었습니다.
validation 에 개발자 포트폴리오 추가했습니다.

image

체크리스트 ✅

  • reviewers 설정
  • assignees 설정
  • label 설정

@dle234 dle234 requested a review from 2yunseong February 27, 2026 07:21
@dle234 dle234 self-assigned this Feb 27, 2026
@dle234 dle234 added the bug 버그 리포트, 버그 제보, 정상적인 기능 수행을 하지 못하는 경우 label Feb 27, 2026
@gemini-code-assist
Copy link

Summary of Changes

Hello, 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!

개발자 지원 과정 중 내비게이션 바의 포트폴리오 입력 필드가 사용자가 내용을 입력하기 전에도 활성화되는 버그를 수정했습니다. 이 변경으로 인해 포트폴리오 정보가 제공되기 전까지는 해당 필드가 비활성화 상태를 유지하여 사용자 경험을 개선합니다.

Highlights

  • 개발자 포트폴리오 입력 유효성 검사 추가: 개발자 지원 양식에서 포트폴리오 입력 필드(questionId 12)가 비어있을 경우, 해당 필드가 비활성화 상태를 유지하도록 로직을 추가했습니다.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • frontend/src/hooks/useApplication.tsx
    • 개발자 포트폴리오 입력 필드의 활성화 조건을 추가하여, 내용이 비어있을 경우 비활성화되도록 수정했습니다.
Activity
  • 현재까지 기록된 활동이 없습니다.
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.

@dle234 dle234 requested review from cho-in-sik and jskimcs February 27, 2026 07:21
Copy link

@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은 개발자 지원서에서 포트폴리오를 입력하기 전까지는 관련 navbar 항목이 비활성화되도록 수정합니다. useApplication 훅에 포트폴리오 입력 여부를 확인하는 로직을 추가하여 이 문제를 해결했습니다. 코드 변경 사항을 검토했으며, 가독성과 코드 스타일을 개선할 수 있는 제안 사항을 포함했습니다.

Comment on lines +62 to +67
if (fieldData == "개발자" && questionId === 12) {
const portfolio = localStorage.get<string>("portfolio", "");

if (portfolio.length === 0) return false;
return true;
}

Choose a reason for hiding this comment

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

medium

코드 가독성과 일관성을 위해 몇 가지 개선을 제안합니다.

  • == 대신 === 연산자를 사용하여 엄격한 동등 비교를 하는 것이 좋습니다. 이는 예기치 않은 타입 변환을 방지하는 좋은 습관입니다.
  • 조건문 로직을 return portfolio.length > 0;와 같이 한 줄로 줄여 코드를 더 간결하게 만들 수 있습니다.

추가적으로, questionId12와 같은 매직 넘버를 사용하는 대신, 의미 있는 상수로 정의하여 사용하면 코드의 가독성과 유지보수성을 높일 수 있습니다. 예를 들어, const DEVELOPER_PORTFOLIO_QUESTION_ID = 12; 와 같이요. 이는 이 파일의 다른 부분에도 적용될 수 있는 개선 사항입니다.

아래 제안된 코드는 === 연산자 사용과 조건문 간소화를 반영한 것입니다.

      if (fieldData === "개발자" && questionId === 12) {
        const portfolio = localStorage.get<string>("portfolio", "");
        return portfolio.length > 0;
      }

Copy link
Collaborator

@cho-in-sik cho-in-sik left a comment

Choose a reason for hiding this comment

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

확인했습니다 👍

Copy link
Collaborator

@jskimcs jskimcs left a comment

Choose a reason for hiding this comment

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

수고하셨습니다~!

@cho-in-sik cho-in-sik merged commit a5e1824 into main Feb 27, 2026
1 check passed
@Superkid0714
Copy link
Collaborator

고생하셨습니다

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

Labels

bug 버그 리포트, 버그 제보, 정상적인 기능 수행을 하지 못하는 경우

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FE] bug: 지원서 개발자 선택시 좌측 네브바 포트폴리오 업로드 부분 기본 활성화되는 버그

4 participants