fix: 개발자 navbar 포트폴리오 입력 전 inactive 하도록 수정#331
Conversation
Summary of ChangesHello, 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
🧠 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
Activity
Using Gemini Code AssistThe 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
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 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
|
| if (fieldData == "개발자" && questionId === 12) { | ||
| const portfolio = localStorage.get<string>("portfolio", ""); | ||
|
|
||
| if (portfolio.length === 0) return false; | ||
| return true; | ||
| } |
There was a problem hiding this comment.
코드 가독성과 일관성을 위해 몇 가지 개선을 제안합니다.
==대신===연산자를 사용하여 엄격한 동등 비교를 하는 것이 좋습니다. 이는 예기치 않은 타입 변환을 방지하는 좋은 습관입니다.- 조건문 로직을
return portfolio.length > 0;와 같이 한 줄로 줄여 코드를 더 간결하게 만들 수 있습니다.
추가적으로, questionId에 12와 같은 매직 넘버를 사용하는 대신, 의미 있는 상수로 정의하여 사용하면 코드의 가독성과 유지보수성을 높일 수 있습니다. 예를 들어, const DEVELOPER_PORTFOLIO_QUESTION_ID = 12; 와 같이요. 이는 이 파일의 다른 부분에도 적용될 수 있는 개선 사항입니다.
아래 제안된 코드는 === 연산자 사용과 조건문 간소화를 반영한 것입니다.
if (fieldData === "개발자" && questionId === 12) {
const portfolio = localStorage.get<string>("portfolio", "");
return portfolio.length > 0;
}
|
고생하셨습니다 |
관련 이슈
작업 분류
PR을 통해 해결하려는 문제가 무엇인가요? 🚀
지원서 페이지에서 개발자의 경우 포트폴리오 필수 입력이 아니라서 첫 화면에서 navbar 가 활성화되어있었습니다.
validation 에 개발자 포트폴리오 추가했습니다.
체크리스트 ✅
reviewers설정assignees설정label설정