Skip to content

feat(fe): change design in duplicate course and add semester#3499

Merged
seoeun9 merged 11 commits into
mainfrom
t2610-duplicate-course-add-semester
May 16, 2026
Merged

feat(fe): change design in duplicate course and add semester#3499
seoeun9 merged 11 commits into
mainfrom
t2610-duplicate-course-add-semester

Conversation

@sanghyeonjung
Copy link
Copy Markdown
Contributor

@sanghyeonjung sanghyeonjung commented Mar 24, 2026

Description

admin 에서 duplicate course 를 눌렀을 때, 입력 칸이 박스 밖으로 튀어 나오는 문제를 스크롤 바를 추가해 수정했습니다. 기존에는 input 데이터 형식을 고려하지 않고 무조건 duplicate 하도록 설계되어 있었는데, 이제 입력 형식이 맞지 않으면 빨간색 글씨가 표기 되게 변경했습니다.

Additional context

디자인이 없었던 태스크라 혹시 문제가 있으면 말해주시면 좋겠어요! 또, 이런 기능적인 내용을 추가하는 태스크가 처음이라 혹시 제대로 돌아가더라도 비효율적인 부분이나 개선하면 좋겠는 부분은 얼마든지 말씀해주시면 감사하겠습니다!

+코드 리뷰 반영(5/4)
useMemo를 사용해 courseNum, semester, classNum 값이 변경될 때마다 유효성을 검사합니다.
유효하지 않은 경우 courseNumError, semesterError, classNumError에 에러 메시지를 저장하고, 유효한 경우 빈 문자열로 저장합니다. 에러가 있을 경우 해당 입력란 하단에 빨간색으로 표시되며, 모든 값이 유효할 때만 Duplicate 버튼이 활성화됩니다.

primaryButton에 disabled 속성이 없어 ButtonProps 인터페이스에 선택 속성으로 추가했습니다.

중현님 요청에 따라 모달 크기를 md에서 lg로 변경했습니다. 이전과 비교해보시고 피드백 주시면 감사하겠습니다!

semester 입력 방식을 텍스트 입력에서 드롭다운으로 변경했습니다. CourseFormFields에 작성된 우진님의 코드와 동일한 로직을 사용했습니다.

++코드 리뷰 반영 (5/6)
course code 와 class number 를 create course 에서 사용하는 용어와 동일하게 수정하였습니다. course code 에는 7글자 제한을 추가했고, class number 에는 2글자 제한을 추가했습니다.


Before submitting the PR, please make sure you do the following

@seoeun9 seoeun9 assigned seoeun9 and sanghyeonjung and unassigned seoeun9 Mar 24, 2026
@seoeun9 seoeun9 added ⛳️ team-frontend preview 이 라벨이 붙어있어야 프론트엔드 Preview 환경이 생성됩니다 labels Mar 24, 2026
@skkuding-bot
Copy link
Copy Markdown

skkuding-bot Bot commented Mar 24, 2026

Syncing Preview App Succeeded

Application: frontend
Revision: b1acb062db6a3ba4bb80f0772f989838280ae4cb
Health Status: Healthy

Open Preview | View in Argo CD

@skkuding-bot
Copy link
Copy Markdown

skkuding-bot Bot commented Mar 25, 2026

Syncing Preview App Succeeded

Application: frontend
Revision: 92d557d78fc6e939d05918440b4e693f5bdb9219
Health Status: Healthy

Open Preview | View in Argo CD

Comment thread apps/frontend/app/admin/course/_components/DuplicateCourseButton.tsx Outdated
Comment thread apps/frontend/app/admin/course/_components/DuplicateCourseButton.tsx Outdated
Comment thread apps/frontend/app/admin/course/_components/DuplicateCourseButton.tsx Outdated
@skkuding-bot
Copy link
Copy Markdown

skkuding-bot Bot commented Mar 27, 2026

Syncing Preview App Succeeded

Application: frontend
Revision: ea4c8b65fb0e63d8af2dd727c2df7d18c24c368d
Health Status: Healthy

Open Preview | View in Argo CD

@skkuding-bot skkuding-bot Bot removed the preview 이 라벨이 붙어있어야 프론트엔드 Preview 환경이 생성됩니다 label Apr 24, 2026
@skkuding-bot
Copy link
Copy Markdown

skkuding-bot Bot commented Apr 24, 2026

💀 Preview Destroyed

This PR has been inactive for 28 days.
Last activity: 2026-03-27

Push a new commit if you want to use preview again.

@sanghyeonjung sanghyeonjung force-pushed the t2610-duplicate-course-add-semester branch from ea4c8b6 to 549e78e Compare May 4, 2026 03:18
@skkuding-bot skkuding-bot Bot added preview 이 라벨이 붙어있어야 프론트엔드 Preview 환경이 생성됩니다 and removed no-preview labels May 4, 2026
@skkuding-bot
Copy link
Copy Markdown

skkuding-bot Bot commented May 4, 2026

Syncing Preview App Succeeded

Application: frontend
Revision: 549e78ee5aaae88599e160c0380a2cd67d4ef50f
Health Status: Healthy

Open Preview | View in Argo CD

@skkuding-bot
Copy link
Copy Markdown

skkuding-bot Bot commented May 4, 2026

Syncing Preview App Succeeded

Application: frontend
Revision: c1766dc85ebf899fc65cfd4ecb6c090fed4feb96
Health Status: Healthy

Open Preview | View in Argo CD

Copy link
Copy Markdown
Contributor

@seoeun9 seoeun9 left a comment

Choose a reason for hiding this comment

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

Image

고생하셨어요!! 전체적인 디자인은 좋은 거 같습니다. 다만 용어 정리가 좀 필요할 거 같아요!

  1. Course Number가 Course code랑 같은 섹션인 거 같은데, 강의명이 나오게 되어있더라구요! SWE1999 같은 course code가 복제되게 해야할 듯합니다. 헷갈릴 수 있으니 타이틀도 Course Code로 통일하고, 입력 7자리 제한도 가능하면 넣어주시면 좋을 거 같아요

  2. 마찬가지로 Class Number는 Course section(분반)에 해당하는 거 같은데 2자리 제한 + 타이틀 통일하면 어떨까요..ㅎㅎ

Copy link
Copy Markdown
Contributor

@seoeun9 seoeun9 left a comment

Choose a reason for hiding this comment

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

Image

여기 입력 필드도 살짝 가려지는..? 문제가 있습니다!

@sanghyeonjung
Copy link
Copy Markdown
Contributor Author

@seoeun9
Course Number 랑 ClassNumber는 mutation 이름과 동일한데 저도 보니까 이름이 좀 구별하기 어려운 것 같습니다. 변수명은 그대로 두되 입력란에 표시되는 이름만 말씀하신대로 바꿔도 괜찮을까요?
image

디자인은 수정하겠습니다!

Copy link
Copy Markdown
Contributor

@seoeun9 seoeun9 left a comment

Choose a reason for hiding this comment

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

@sanghyeonjung 넵 표시되는 것만 바꿔주세요! ㅎㅎ

@skkuding-bot
Copy link
Copy Markdown

skkuding-bot Bot commented May 6, 2026

Syncing Preview App Succeeded

Application: frontend
Revision: 5d41dbccb2d557d21323ef0f29168b575ff2a8f1
Health Status: Healthy

Open Preview | View in Argo CD

Copy link
Copy Markdown
Contributor

@Choi-Jung-Hyeon Choi-Jung-Hyeon left a comment

Choose a reason for hiding this comment

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

머지 컨플릭나는거 있으면 해결부탁요!

Comment thread apps/frontend/app/admin/course/_components/DuplicateCourseButton.tsx Outdated
@skkuding-bot
Copy link
Copy Markdown

skkuding-bot Bot commented May 6, 2026

Syncing Preview App Succeeded

Application: frontend
Revision: 52a1f1b9d3aa2b89d8450e8837e4b64786abf7e9
Health Status: Healthy

Open Preview | View in Argo CD

Copy link
Copy Markdown
Contributor

@seoeun9 seoeun9 left a comment

Choose a reason for hiding this comment

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

오랫동안 수정하느라 고생 많으셨습니다.. 큰 문제 없는 거 같고 굿굿이에요!!
semester 쪽 로직은 안 그래도 따로 utils로 빼면 어떨까 했는데, 이건 태스크를 새로 하나 파보아요 👏

@sanghyeonjung
Copy link
Copy Markdown
Contributor Author

오랫동안 수정하느라 고생 많으셨습니다.. 큰 문제 없는 거 같고 굿굿이에요!! semester 쪽 로직은 안 그래도 따로 utils로 빼면 어떨까 했는데, 이건 태스크를 새로 하나 파보아요 👏

감사합니다! 중현님도 확인하시면 머지하겠습니다.

@skkuding-bot
Copy link
Copy Markdown

skkuding-bot Bot commented May 9, 2026

Syncing Preview App Succeeded

Application: frontend
Revision: 92bf5ad6ec8771bba1c5fd435201f7808e8f263d
Health Status: Healthy

Open Preview | View in Argo CD

@skkuding-bot
Copy link
Copy Markdown

skkuding-bot Bot commented May 11, 2026

Syncing Preview App Succeeded

Application: frontend
Revision: 056b0d8f65d488f4c08dc8a1a6fd15105f3c7da0
Health Status: Healthy

Open Preview | View in Argo CD

@sanghyeonjung sanghyeonjung enabled auto-merge May 12, 2026 04:52
@skkuding-bot
Copy link
Copy Markdown

skkuding-bot Bot commented May 12, 2026

Syncing Preview App Failed

Application: frontend
Revision: 9289b54b7aadc651824820de563113641f34e946
Health Status: Degraded

Open Preview | View in Argo CD

@skkuding-bot
Copy link
Copy Markdown

skkuding-bot Bot commented May 12, 2026

Syncing Preview App Failed

Application: frontend
Revision: 76497ab0502abf4c4333d8b1f3d39517a2d9ebf1
Health Status: Degraded

Open Preview | View in Argo CD

@skkuding-bot
Copy link
Copy Markdown

skkuding-bot Bot commented May 13, 2026

Syncing Preview App Failed

Application: frontend
Revision: t2610-duplicate-course-add-semester
Health Status: Healthy

Open Preview | View in Argo CD

@seoeun9 seoeun9 disabled auto-merge May 14, 2026 08:13
@skkuding-bot
Copy link
Copy Markdown

skkuding-bot Bot commented May 15, 2026

Syncing Preview App Succeeded

Application: frontend
Revision: da5551f67bd8ee6554567f472ef25e5a2b1055ff
Health Status: Healthy

Open Preview | View in Argo CD

@skkuding-bot
Copy link
Copy Markdown

skkuding-bot Bot commented May 15, 2026

Syncing Preview App Succeeded

Application: frontend
Revision: 367a5dd995c7fe3baaed172ebf87abdef1028e02
Health Status: Healthy

Open Preview | View in Argo CD

@seoeun9 seoeun9 enabled auto-merge May 15, 2026 11:09
Copy link
Copy Markdown
Contributor

@Choi-Jung-Hyeon Choi-Jung-Hyeon left a comment

Choose a reason for hiding this comment

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

lgtm!!

@seoeun9 seoeun9 added this pull request to the merge queue May 15, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch May 15, 2026
@skkuding-bot
Copy link
Copy Markdown

skkuding-bot Bot commented May 15, 2026

Syncing Preview App Succeeded

Application: frontend
Revision: f1edc3e8fe8260008a167cfa003403100303033f
Health Status: Healthy

Open Preview | View in Argo CD

@seoeun9 seoeun9 added this pull request to the merge queue May 16, 2026
Merged via the queue into main with commit 1a4187c May 16, 2026
14 checks passed
@seoeun9 seoeun9 deleted the t2610-duplicate-course-add-semester branch May 16, 2026 04:01
@skkuding-bot skkuding-bot Bot removed the preview 이 라벨이 붙어있어야 프론트엔드 Preview 환경이 생성됩니다 label May 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants