Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#377 Refactor: 기수 관련 UI 수정 및 추가 api 연결 #389

Open
wants to merge 16 commits into
base: develop
Choose a base branch
from

Conversation

dalzzy
Copy link
Member

@dalzzy dalzzy commented Feb 27, 2025

1. 무슨 이유로 코드를 변경했나요?

#377 를 구현하였습니다.

2. 어떤 위험이나 장애를 발견했나요?

기수 수정할 때 이미 저장된 연도 및 학기일 경우를 수정이 안되도록 하는게 좋지 않을까 싶은데.. 배겐드에게 물어봐야 할듯..
그래서 현재 8기,9기가 모두 2026년 2학기라는 점..
image

-> 회의 때 말한대로 그정돈 유저의 책임으로 전가하도록

3. 관련 스크린샷을 첨부해주세요.

- 선택 멤버를 임시 기수로 변경했을 때

image

- 임시 기수(9기) 를 클릭했을 때 뜨는 모달 ( 우선 제가 임의로 수정한거라 디자인은 수정될 수도.. )

image

- 기수 정보를 수정한 후 기수 수정 api 요청

image

- 페널티 관리 페이지 기수 필터링

image

- 멤버 관리 페이지 기수 필터링

image

나머지는 자잘한거라.... 이정도만 첨부하겠습니다

4. 완료 사항

구현하지 못한 기수 관련된 수정사항들을 모두 구현했습니다 ..............

  • 기수 수정 api 연결
  • 멤버 상세 관리 상태 추가 ( 활동중 or 알럼나이)
  • 멤버 상세 관리 기수 드롭다운 연결 및 기수 변경 모달/ 완료버튼 위치 수정
  • 멤버 상세 관리 모달 기수 오류 문제 수정
  • 기수 추가 모달 - 현재 진행 중 체크 시 "현재"로 표시
  • 학기 정보가 완벽하게 입력되지 않은 기수 컴포일 경우 ui 수정
  • 기수 모달 열렸을 때 네비바 로고 쪽에 모달이 하나 더 생기는 오류 해결
  • 페널티 페이지 - 기수 선택 시 해당 기수의 멤버만 보여주도록 필터링
  • 기수 추가 모달 변경된 ui 적용 ( + 기수 수정일 경우 타이틀 변경)
  • 기수 드롭다운 기수 선택 시 해당 기수가 드롭다운에 보이지 않는 문제 수정
  • 멤버 관리 페이지 - 기수 컴포넌트 클릭 시 해당 기수에 해당하는 멤버만 필터링되도록 수정

5. 추가 사항

이제 남은 건 qa 수정.. 신난다 !

@dalzzy dalzzy added 🐞 Fix Something isn't working ✨ Feat 기능 개발 🔨 Refactor 코드 리팩토링 🎨 Design CSS 스타일링 📬 API 서버 API 통신 labels Feb 27, 2025
@dalzzy dalzzy requested a review from woneeeee February 27, 2025 08:25
@dalzzy dalzzy self-assigned this Feb 27, 2025
@dalzzy dalzzy linked an issue Feb 27, 2025 that may be closed by this pull request
10 tasks
Copy link
Collaborator

@woneeeee woneeeee left a comment

Choose a reason for hiding this comment

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

고생하셨습니다! pr 늦게...봐서 죄송합니다 ㅜㅜ🙇🏻‍♀️


const preventNonNumeric = (e: React.KeyboardEvent<HTMLInputElement>) => {
// 숫자 키, 백스페이스, 삭제키만 허용
if (!/[0-9]/.test(e.key) && e.key !== 'Backspace' && e.key !== 'Delete') {
Copy link
Collaborator

Choose a reason for hiding this comment

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

오호 이런식으로 허용 가능한 것을 따로 설정해줄 수 있군요..!!

onClose();
window.location.reload();
Copy link
Collaborator

Choose a reason for hiding this comment

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

새로운 기수가 저장되고 나서 바로 렌더링되는게 아니라 한 번 새로고침을 강제로 하도록 설정되어있는건가요?_?

Copy link
Member Author

Choose a reason for hiding this comment

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

바로 렌더링되게 하려면 어떻게 해야 되드라.... 새로고침해야 새로운기수 저장된게 보여서 저렇게해둔건데..

@@ -27,4 +29,30 @@ const postCardinalApi = async (
}
};

export default postCardinalApi;
// 기수 수정
Copy link
Collaborator

Choose a reason for hiding this comment

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

앞으로 추가해야할 api들은 인스턴스 사용해서 적어줘도 좋을 것 같아요!!

Copy link
Member Author

@dalzzy dalzzy Mar 1, 2025

Choose a reason for hiding this comment

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

네넴 알겠습니다! 어차피 api 연결은 이게 마지막이라... 새 이슈에서 한꺼번에 인스턴스 적용해볼게요!

const currentCardinal =
allCardinals.find((c) => c.status === 'IN_PROGRESS')?.cardinalNumber ||
null;

useEffect(() => {
const fetchMembers = async () => {
try {
console.log(`API 요청: orderBy=${sortingOrder}`);
Copy link
Collaborator

Choose a reason for hiding this comment

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

나중에 구현이 다 완료되면 이런 콘솔들은 삭제해도 좋을 것 같아요!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📬 API 서버 API 통신 🎨 Design CSS 스타일링 ✨ Feat 기능 개발 🐞 Fix Something isn't working 🔨 Refactor 코드 리팩토링
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor: 기수 관련 ui 수정 및 추가 api 연결
2 participants