Skip to content

fix : 학과순서맞추기#197

Merged
caseBread merged 2 commits intomainfrom
fix/template-pnu
Mar 26, 2026
Merged

fix : 학과순서맞추기#197
caseBread merged 2 commits intomainfrom
fix/template-pnu

Conversation

@caseBread
Copy link
Copy Markdown
Member

@caseBread caseBread commented Mar 26, 2026

요약

  • 각 치즈네컷 템플릿을 학과별로 맞게 수정 하였습니다.

구현 사항

  • [ ]
  • [ ]
  • [ ]
  • [ ]

📸 스크린샷

Need Review

  • ~ 부분 이렇게 구현했어요, 피드백 부탁해요!

Reference

📜 리뷰 규칙

Reviewer는 아래 P5 Rule을 참고하여 리뷰를 진행합니다.
P5 Rule을 통해 Reviewer는 Reviewee에게 리뷰의 의도를 보다 정확히 전달할 수 있습니다.

  • P1: 꼭 반영해주세요 (Comment)
  • P2: 적극적으로 고려해주세요 (Comment)
  • P3: 웬만하면 반영해 주세요 (Comment)
  • P4: 반영해도 좋고 넘어가도 좋습니다 (Approve)
  • P5: 그냥 사소한 의견입니다 (Approve)

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
fe Ready Ready Preview, Comment Mar 26, 2026 3:14am

@caseBread caseBread self-assigned this Mar 26, 2026
@caseBread caseBread requested a review from dasosann March 26, 2026 03:13
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, 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은 부산대(PNU) 앨범 템플릿 ID와 학과 간의 매핑 순서를 수정하는 것을 목표로 합니다. 이를 통해 각 학과에 올바른 앨범 템플릿이 정확하게 연결되도록 하여 데이터의 일관성과 사용자 경험을 개선합니다.

Highlights

  • 학과 순서 조정: PNU_ALBUM_TEMPLATE_BY_ID 맵에서 학과별 앨범 템플릿 ID의 순서가 조정되었습니다.
  • 주석 추가: 각 앨범 ID에 해당하는 학과를 명확히 하기 위해 주석이 추가되었습니다.

🧠 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.

Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the PNU_ALBUM_TEMPLATE_BY_ID map in fourCutAlbumTemplateMap.ts, reordering entries and adding comments to clarify the association between department-specific UUIDs and their corresponding FourCutTemplateId values. The review feedback suggests an improvement opportunity to enhance readability and maintainability by extracting the hardcoded UUIDs into named constants.

Comment on lines 4 to 21
const PNU_ALBUM_TEMPLATE_BY_ID: Readonly<Record<string, FourCutTemplateId>> = {
'1f1277e1-ee95-6fd0-9aa0-cba45c137a2a': 'pnu_one',
// 사회학과
'1f127ecc-5848-61a4-9583-b1e01df3644f': 'pnu_one',
// 정치외교학과
'1f1277e3-75a6-64b1-9aa0-cba45c137a2a': 'pnu_two',
'1f1277e4-404e-62d2-9aa0-cba45c137a2a': 'pnu_three',
'1f127ecc-5848-61a4-9583-b1e01df3644f': 'pnu_four',
'1f127ece-f242-6d36-9583-b1e01df3644f': 'pnu_five',
'1f127ecf-a23e-6187-9583-b1e01df3644f': 'pnu_six',
'1f127ed0-47c5-6958-9583-b1e01df3644f': 'pnu_seven',
// 행정학과
'1f1277e1-ee95-6fd0-9aa0-cba45c137a2a': 'pnu_three',
// 미디어커뮤니케이션학과
'1f127ed0-47c5-6958-9583-b1e01df3644f': 'pnu_four',
// 문헌정보학과
'1f127ecf-a23e-6187-9583-b1e01df3644f': 'pnu_five',
// 사회복지학과
'1f1277e4-404e-62d2-9aa0-cba45c137a2a': 'pnu_six',
// 심리학과
'1f127ece-f242-6d36-9583-b1e01df3644f': 'pnu_seven',
// 학생회
'1f126985-3d35-65bf-9aa0-cba45c137a2a': 'pnu_eight',
};
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

학과별 앨범 ID가 하드코딩된 문자열(UUID)로 사용되고 있어 가독성과 유지보수성이 떨어집니다. 이 ID들을 의미 있는 이름을 가진 상수로 추출하는 것을 권장합니다.

예를 들어, 다음과 같이 리팩토링할 수 있습니다:

const PNU_DEPARTMENT_IDS = {
  // 사회학과
  SOCIOLOGY: '1f127ecc-5848-61a4-9583-b1e01df3644f',
  // 정치외교학과
  POLITICAL_SCIENCE: '1f1277e3-75a6-64b1-9aa0-cba45c137a2a',
  // 행정학과
  PUBLIC_ADMINISTRATION: '1f1277e1-ee95-6fd0-9aa0-cba45c137a2a',
  // 미디어커뮤니케이션학과
  MEDIA_COMMUNICATION: '1f127ed0-47c5-6958-9583-b1e01df3644f',
  // 문헌정보학과
  LIBRARY_INFO_SCIENCE: '1f127ecf-a23e-6187-9583-b1e01df3644f',
  // 사회복지학과
  SOCIAL_WELFARE: '1f1277e4-404e-62d2-9aa0-cba45c137a2a',
  // 심리학과
  PSYCHOLOGY: '1f127ece-f242-6d36-9583-b1e01df3644f',
  // 학생회
  STUDENT_COUNCIL: '1f126985-3d35-65bf-9aa0-cba45c137a2a',
} as const;

const PNU_ALBUM_TEMPLATE_BY_ID: Readonly<Record<string, FourCutTemplateId>> = {
  [PNU_DEPARTMENT_IDS.SOCIOLOGY]: 'pnu_one',
  [PNU_DEPARTMENT_IDS.POLITICAL_SCIENCE]: 'pnu_two',
  [PNU_DEPARTMENT_IDS.PUBLIC_ADMINISTRATION]: 'pnu_three',
  [PNU_DEPARTMENT_IDS.MEDIA_COMMUNICATION]: 'pnu_four',
  [PNU_DEPARTMENT_IDS.LIBRARY_INFO_SCIENCE]: 'pnu_five',
  [PNU_DEPARTMENT_IDS.SOCIAL_WELFARE]: 'pnu_six',
  [PNU_DEPARTMENT_IDS.PSYCHOLOGY]: 'pnu_seven',
  [PNU_DEPARTMENT_IDS.STUDENT_COUNCIL]: 'pnu_eight',
};

이렇게 변경하면 코드의 의도가 더 명확해지고, ID 변경 시 한 곳만 수정하면 되므로 유지보수가 용이해집니다.

@caseBread caseBread merged commit 778e894 into main Mar 26, 2026
4 checks passed
@caseBread caseBread deleted the fix/template-pnu branch March 26, 2026 03:17
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.

1 participant