Skip to content

Conversation

@minzziPark
Copy link
Collaborator

작업 사항

스터디 신청 키워드 변경 application -> enrollment
스터디 신청자 키워드 변경 applicant -> enrollee

기존에는 스터디 신청 키워드가 application, applicant로 사용되고 있었습니다.
처음 보는 사람에게는 'App'이라는 의미로 잘못 해석될 여지가 있어서 enrollment로 수정합니다.

관련 이슈

close #162

Copilot

Please review this PR as if you were a senior developer and provide constructive feedback on code quality, structure, and naming.

@coderabbitai
Copy link

coderabbitai bot commented Nov 1, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR renames terminology throughout the codebase from "Application" to "Enrollment" to better reflect the domain's purpose. The changes are systematic and comprehensive, updating component names, interfaces, function names, file paths, and routing across the entire application.

  • Renamed components, interfaces, and functions from "Application" to "Enrollment" for improved clarity
  • Updated all file paths and route definitions from /application to /enrollment
  • Removed unused styled-components dependency from package.json

Reviewed Changes

Copilot reviewed 14 out of 16 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/pages/StudyEnrollment/components/StudyEnrollmentForm.tsx Renamed form component and all related interfaces/variables from "Application" to "Enrollment"
src/pages/StudyEnrollment/components/StepReviewSubmit.tsx Updated props interface to use enrollmentData instead of applicationData
src/pages/StudyEnrollment/components/StepAddFriend.tsx New file implementing friend addition step for enrollment
src/pages/StudyEnrollment/components/StepAddCourses.tsx New file implementing course addition step for enrollment
src/pages/StudyEnrollment/Page.tsx Renamed page component and updated variable names to use enrollment terminology
src/pages/OverviewEnrollment/Page.tsx Renamed page component and updated all state/variable references to enrollment terminology
src/pages/Admin/ManageStudent/Page.tsx Renamed variables from "applicant" to "enrollee" for consistency
src/pages/Admin/ManageGroup/Page.tsx Updated API function name from readApplicants to readEnrollees
src/pages/Admin/CreateGroup/Page.tsx Renamed variables and functions from "applicant" to "enrollee"
src/const/paths.ts Updated path constants from /application to /enrollment
src/components/SideBar.tsx Updated navigation link to use new enrollment path
src/components/PrivateRoute.tsx Updated route validation to use new enrollment path
src/components/ARouter.tsx Updated route definitions and lazy imports for enrollment pages
src/apis/study.ts Renamed API functions and interfaces from "Enroll" to "Enrollment" for clarity
src/apis/manager.ts Renamed readApplicants to readEnrollees
package.json Removed unused styled-components dependency

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

data: enrollees,
refetch,
isLoading,
} = useQuery(['allStudyApplyUsers'], readAllStudyApplyUsers, {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
} = useQuery(['allStudyApplyUsers'], readAllStudyApplyUsers, {
} = useQuery(['allStudyEnrollmentUsers'], readAllStudyEnrollmentUsers, {

해당 부분의 apply를 enrollment로 변경 하는 것은 어떨까요??

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

제가 놓친 부분이 있네요. 감사합니다.
readAllStudyEnrollmentUsers도 좋지만, 사용하고 있던 Enrollees를 활용하여 readAllStudyEnrollees로 변경하겠습니다.

});

const [editingId, setEditingId] = React.useState<number | null>(null);
const [formData, setFormData] = React.useState<Partial<StudyApplyUser>>({});
Copy link
Contributor

@ohinhyuk ohinhyuk Nov 3, 2025

Choose a reason for hiding this comment

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

Suggested change
const [formData, setFormData] = React.useState<Partial<StudyApplyUser>>({});
const [formData, setFormData] = React.useState<Partial<StudyEnrollmentUser>>({});

위와 마찬가지로 apply -> enrollment 수정이 필요합니다.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

해당 부분도 위와 동일하게 적용하겠습니다.


const handleEdit = (applicant: StudyApplyUser) => {
setEditingId(applicant.id);
const handleEdit = (enrollee: StudyApplyUser) => {
Copy link
Contributor

@ohinhyuk ohinhyuk Nov 3, 2025

Choose a reason for hiding this comment

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

Suggested change
const handleEdit = (enrollee: StudyApplyUser) => {
const handleEdit = (enrollee: StudyEnrollmentUser) => {

해당 부분도 마찬가지로 apply -> enrollment를 적용해주세요!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@ohinhyuk 님, 65a8c3b 에서 적용했습니다. 확인 부탁드립니다.

Copy link
Contributor

Choose a reason for hiding this comment

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

확인했습니다! LGTM!

@ohinhyuk
Copy link
Contributor

ohinhyuk commented Nov 3, 2025

@minzziPark 고생하셨습니다!
몇 개 빼고는 모두 잘 바꿔주셨습니다.

빠뜨린 부분은 코멘트 남겨두었으니 확인 부탁드립니다.

@ohinhyuk ohinhyuk merged commit 330ace2 into dev-refactoring Nov 3, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants