Repository navigation
feat: 변경 요청을 창 하나로 모으고 추가 포트 변경을 요청할 수 있게 함 - #214
Merged
Merged
Conversation
기간 연장과 그룹 추가가 각자 모달과 제출 함수를 따로 갖고 있어, 종류가 늘 때마다 같은 코드가 복사됐다. - ChangeRequestModal: 종류를 고르면 폼만 바뀌고 사유·제출은 공통이다. - changeRequestTypes: 종류마다 폼·처음 값·검사·보낼 값을 한 곳에 등록한다. 기간 연장, 공유 그룹 추가, 추가 포트 변경(새로 추가). - 이미 검토 중인 종류는 선택지에 표시하고 제출을 막는다. - 관리자 화면: 포트 변경 승인을 막아 두던 설정을 풀고, 승인하면 반영 중으로 표시한다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
접속 안내는 용도 이름에 vnc가 들어 있으면 원격 데스크톱 주소로 안내하는데, 폼 검사는 예약된 이름과 정확히 같을 때만 막아 tigervnc 같은 이름이 통과했다. 원격 데스크톱은 켜지지 않으므로 틀린 안내가 나온다. 새로 추가하는 포트의 용도 검사를 한 함수로 모으고 vnc가 들어간 이름도 거른다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
관련 이슈
Summary
배경
수정 사항
changeRequest/ChangeRequestModal.jsx: 종류 선택 + 종류별 폼 + 공통 사유·제출changeRequest/changeRequestTypes.js: 종류 등록표(폼·처음 값·검사·보낼 값). 종류 추가는 폼 하나와 여기 한 항목changeRequest/ExpiresAtForm.jsx·GroupForm.jsx·PortForm.jsx: 종류별 폼UserContainerDetail.jsx: 모달 2개와 관련 상태 제거. "연장하기"·"그룹 추가 신청"·"추가 포트 변경 신청" 버튼이 같은 창을 해당 종류가 선택된 채로 연다UserPortalApp.jsx: 종류별 제출 함수 2개를submitChangeRequest하나로 합침ChangeRequestManagementPage.jsx:APPROVAL_BLOCK_REASON.PORT제거, 승인 시 "반영 중" 표시예상 결과
테스트
npm run lint: 오류 0 (경고 54)vite build성공의논 사항
MyChangeRequestsPage,ChangeRequestManagementPage)의 값 표시 함수는 그대로 두었다. 관리자 화면이 한글 고정이라 합치면 문구가 바뀐다UserPortalApp.jsx의 다른 줄을 고친다. 충돌은 예상하지 않지만 뒤에 병합되는 쪽에서 확인이 필요하다🤖 Generated with Claude Code