feat: 점검 시간 접근 차단을 위한 MaintenanceGuard 적용#390
Conversation
Summary of ChangesHello @nijuy, 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! 이 PR은 서비스 점검 기간 동안 사용자 접근을 관리하기 위한 새로운 기능을 도입합니다. 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
|
There was a problem hiding this comment.
Code Review
점검 시간에는 페이지 접근을 막는 MaintenanceGuard를 추가하신 것을 확인했습니다. 전반적으로 잘 구현되었지만, 몇 가지 개선점을 제안합니다. MaintenanceGuard에서 헬퍼 함수의 위치를 조정하여 렌더링 성능을 개선할 수 있고, ServiceMaintenancePage에서는 사용자에게 표시되는 점검 시간이 사용자의 시간대와 관계없이 항상 한국 표준시(KST)로 표시되도록 수정해야 합니다. 자세한 내용은 각 파일의 주석을 참고해주세요.
* feat(constants): 점검 기간을 관리하는 상수/함수 추가 * feat(pages): 점검 페이지 추가 * feat(App): 최상위에 MaintenanceGuard 추가 * chore: 불필요한 조건문 & 개행 삭제 * feat(ServiceMaintenancePage): 점검 기간 아닐 때는 접근을 막는다 * feat(App): 점검 중에는 updateProfile()을 호출하지 않는다 * chore: 피버타임 배포용 점검 시간 수정 * refactor(MaintenanceGuard): isWhitelisted 함수를 컴포넌트 외부로 이동 * feat(ServiceMaintenancePage): toLocaleString()에 타임존 옵션 지정 * feat(ServiceMaintenancePage): 번역 적용 * chore: 피버타임 배포용 점검 시간 수정 - 조금 당겼음
💻 개요
📋 변경 및 추가 사항
MaintenanceGuard를 적용해 점검 시간에는 페이지 접근이 불가하게 막았습니다./maintenance)maintenance.constants.ts에 점검 시간 상수 / 현재 점검 여부 확인용 함수를 추가했습니다/maintenance접근 불가💬 To. 리뷰어