Skip to content

Comments

feat: 커뮤니티, 커피솝 메이커스 정보 표기 추가#2188

Merged
imddoy merged 3 commits intodevelopfrom
feat/#2187
Feb 13, 2026
Merged

feat: 커뮤니티, 커피솝 메이커스 정보 표기 추가#2188
imddoy merged 3 commits intodevelopfrom
feat/#2187

Conversation

@imddoy
Copy link
Contributor

@imddoy imddoy commented Feb 8, 2026

🤫 쉿, 나한테만 말해줘요. 이슈넘버

🧐 어떤 것을 변경했어요~?

  • 커뮤니티 조회에서 작성자 활동 정보에 메이커스 노출 추가
  • Hot 솝티클에서 작성자 활동 정보에 메이커스 노출 추가

🤔 그렇다면, 어떻게 구현했어요~?

getMemberInfo에 isMakers 추가했어요

❤️‍🔥 당신이 생각하는 PR포인트, 내겐 매력포인트.

📸 스크린샷, 없으면 이것 참,, 섭섭한데요?

image image image

@coderabbitai
Copy link

coderabbitai bot commented Feb 8, 2026

Summary by CodeRabbit

릴리스 노트

  • Refactor

    • 피드 아이템에서 회원 정보 표시 로직을 개선하고 표준화했습니다.
    • 팀 정보 필드 지원을 추가하여 회원 역할 표시가 더욱 정확해졌습니다.
  • Chores

    • 개발 환경 API 엔드포인트 설정을 업데이트했습니다.

Walkthrough

.env.development의 개발 API 엔드포인트들이 갱신되고, 게시글 멤버 활동에 team 필드가 추가되며 메이커스 판별 로직이 도입되어 관련 컴포넌트의 기본값 및 렌더링이 조정되었습니다.

Changes

Cohort / File(s) Summary
환경 변수 엔드포인트 업데이트
./.env.development
개발용 API 호스트명 변경: NEXT_PUBLIC_API_URL, NEXT_PUBLIC_ADMIN_API_URL, NEXT_PUBLIC_OPERATION_API_URL, NEXT_PUBLIC_AUTH_API_URL, NEXT_PUBLIC_CREW_API_URL 값 갱신 및 새 환경변수 추가.
멤버 활동 데이터 확장 및 유틸 변경
src/components/feed/common/utils.ts
Post.member.activity에 `team?: string
컴포넌트 기본값 및 렌더링 변경
src/components/feed/home/SopticleArea/SopticleCard.tsx, src/components/feed/list/FeedListItems.tsx
SopticleCard가 getMemberInfo를 사용해 subtitle 생성하도록 변경; FeedListItems의 기본 activity 객체에 team: null 추가로 폴백 일관성 확보.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested labels

✨ Feature

Suggested reviewers

  • seong-hui
  • ljh0608

Poem

🐰 메이커스 찾아 달려왔네
팀 이름 속삭이며 바뀐 길,
주소도 새로고침하고, 정보도 빛나네.
작은 필드 하나로 연결된 이야기,
당근 한 입에 축하를! 🥕✨

🚥 Pre-merge checks | ✅ 3 | ❌ 3
❌ Failed checks (3 warnings)
Check name Status Explanation Resolution
Out of Scope Changes check ⚠️ Warning 개발 환경설정 변경(.env.development의 API URL 업데이트)은 메이커스 표기 기능과 무관한 범위 외 변경입니다. 개발 환경설정 변경사항(API URL 업데이트)을 별도 PR로 분리하거나 해당 변경사항의 필요성을 설명하세요.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Merge Conflict Detection ⚠️ Warning ⚠️ Unable to check for merge conflicts: Invalid branch name format
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed PR 제목은 메이커스 정보 표기 추가라는 주요 변경사항을 명확하고 간결하게 요약하고 있습니다.
Description check ✅ Passed PR 설명은 메이커스 노출 추가, 구현 방식(getMemberInfo에 isMakers 추가), 스크린샷을 포함하여 변경사항과 관련이 있습니다.
Linked Issues check ✅ Passed PR은 linked issue #2187의 목표인 커피솝 메이커스 활동 정보 표기를 구현했으며, 커뮤니티와 솝티클에서 메이커스 정보를 노출하고 있습니다.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/#2187
⚔️ Resolve merge conflicts (beta)
  • Auto-commit resolved conflicts to branch feat/#2187
  • Create stacked PR with resolved conflicts
  • Post resolved changes as copyable diffs in a comment

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


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.

@github-actions github-actions bot requested a review from seong-hui February 8, 2026 11:02
@github-actions
Copy link

github-actions bot commented Feb 8, 2026

✨✨ 스토리북으로 확인하기 ✨✨

@github-actions
Copy link

github-actions bot commented Feb 8, 2026

🚀 프리뷰 배포 확인하기 🚀

https://62262e4a.sopt-internal-dev.pages.dev

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In @.env.development:
- Line 14: The .env entry for NEXT_PUBLIC_CREW_API_URL is missing a trailing
newline at EOF which breaks dotenv-linter; open the .env.development file and
add a single blank line/line break after the existing line containing
NEXT_PUBLIC_CREW_API_URL=https://crew-api-dev.sopt.org so the file ends with a
newline character.
🧹 Nitpick comments (2)
src/components/feed/common/utils.ts (1)

59-61: 중첩 삼항 연산자로 인한 가독성 저하

is특수임원, isMakers 두 가지 분기가 한 줄에 중첩되어 있어 가독성이 떨어집니다.

♻️ 리팩터링 제안
- const defaultInfo = `${post.member.activity.generation}기 ${
-   is특수임원 ? post.member.activity.part : isMakers ? '메이커스' :`${post.member.activity.part}파트`
- }`;
+ const roleLabel = is특수임원
+   ? post.member.activity.part
+   : isMakers
+     ? '메이커스'
+     : `${post.member.activity.part}파트`;
+
+ const defaultInfo = `${post.member.activity.generation}기 ${roleLabel}`;
src/components/feed/home/SopticleArea/SopticleCard.tsx (1)

27-34: categoryId: 21 대신 이미 import된 상수를 사용하세요.

Line 8에서 SOPTICLE_CATEGORY_ID를 이미 import하고 있으므로, 매직 넘버 21 대신 해당 상수를 사용하는 것이 좋습니다.

♻️ 수정 제안
          {getMemberInfo({
-            categoryId: 21,
+            categoryId: SOPTICLE_CATEGORY_ID,
             categoryName: '솝티클',
             member: {
               activity: member?.activity ?? { generation: 0, part: '', team: null },
               careers: member?.careers ?? null,
             },
           })}

.env.development Outdated
NEXT_PUBLIC_CREW_API_URL=https://crew.api.dev.sopt.org No newline at end of file
NEXT_PUBLIC_OPERATION_API_URL=https://operation-api.dev.sopt.org
NEXT_PUBLIC_AUTH_API_URL=https://auth-api.dev.sopt.org
NEXT_PUBLIC_CREW_API_URL=https://crew-api-dev.sopt.org No newline at end of file
Copy link

@coderabbitai coderabbitai bot Feb 8, 2026

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

파일 끝에 빈 줄이 없습니다.

정적 분석 도구(dotenv-linter)에서 파일 끝 빈 줄 누락이 감지되었습니다.

🔧 수정 제안
-NEXT_PUBLIC_CREW_API_URL=https://crew-api-dev.sopt.org
+NEXT_PUBLIC_CREW_API_URL=https://crew-api-dev.sopt.org
+
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
NEXT_PUBLIC_CREW_API_URL=https://crew-api-dev.sopt.org
NEXT_PUBLIC_CREW_API_URL=https://crew-api-dev.sopt.org
🧰 Tools
🪛 dotenv-linter (4.0.0)

[warning] 14-14: [EndingBlankLine] No blank line at the end of the file

(EndingBlankLine)


[warning] 14-14: [UnorderedKey] The NEXT_PUBLIC_CREW_API_URL key should go before the NEXT_PUBLIC_DEBUG key

(UnorderedKey)

🤖 Prompt for AI Agents
In @.env.development at line 14, The .env entry for NEXT_PUBLIC_CREW_API_URL is
missing a trailing newline at EOF which breaks dotenv-linter; open the
.env.development file and add a single blank line/line break after the existing
line containing NEXT_PUBLIC_CREW_API_URL=https://crew-api-dev.sopt.org so the
file ends with a newline character.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link

Choose a reason for hiding this comment

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

@ljh0608 님이 지적해주신 내용 확인했습니다!

현재 PR의 URL들과 제공해주신 정식 엔드포인트 간에 차이가 있습니다:

불일치 항목:

  1. NEXT_PUBLIC_OPERATION_API_URL

    • PR: https://operation-api.dev.sopt.org
    • 정식: https://operation-api-dev.sopt.org
  2. NEXT_PUBLIC_AUTH_API_URL

    • PR: https://auth-api.dev.sopt.org
    • 정식: https://auth-dev-api.sopt.org
  3. NEXT_PUBLIC_CREW_API_URL

    • PR: https://crew-api-dev.sopt.org
    • 정식: https://crew-dev.sopt.org
  4. NEXT_PUBLIC_ADMIN_API_URL

    • PR: https://api-dev-api.sopt.org/v2
    • (제공하신 목록에는 "공홈: https://org-api-dev.sopt.org/"가 있는데, Admin API와 매칭되는지 확인 필요)

서브도메인 형식이 달라서 (예: auth-api.dev vs auth-dev-api) API 호출이 실패할 수 있습니다. Slack 스레드에 명시된 정식 URL로 수정이 필요해 보입니다. 확인 부탁드립니다!

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.env.development (1)

1-14: ⚠️ Potential issue | 🟡 Minor

키 정렬 순서가 linter 규칙과 다릅니다.

dotenv-linter가 여러 키의 정렬 순서 위반을 보고합니다. 규칙에 맞게 키 순서를 재배치해 주세요.

@imddoy imddoy merged commit 2cba0b0 into develop Feb 13, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: 커피솝 메이커스 활동 정보 표기

2 participants