Skip to content

Conversation

@skdud4659
Copy link
Member

Skip Review (optional)

  • Minor changes that don't affect the functionality (e.g. style, chore, ci, test, docs)
  • Previously reviewed in feature branch, further review is not mandatory
  • Self-merge allowed for solo developers or urgent changes

Description (optional)

SSIA

Things to Talk About (optional)

Signed-off-by: NaYeong,Kim <nayeongkim@megazone.com>
@skdud4659 skdud4659 requested a review from Copilot June 23, 2025 00:21
@vercel
Copy link

vercel bot commented Jun 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
console ⬜️ Ignored (Inspect) Jun 23, 2025 0:22am
web-storybook ⬜️ Ignored (Inspect) Jun 23, 2025 0:22am

@github-actions
Copy link
Contributor

✅ There are no commits in this PR that require review.

@github-actions
Copy link
Contributor

🎉 @seungyeoneeee has been randomly selected as the reviewer! Please review. 🙏

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 adds a members field to each user group entry to surface the count of users in the dropdown.

  • Include member count in the group map
  • Pulls .length from the users array for display
Comments suppressed due to low confidence (2)

apps/web/src/common/modules/user/UserSelectDropdown.vue:134

  • [nitpick] The property name members suggests a collection. Rename to memberCount for clarity that it holds a count.
                members: storeState.userGroupReferenceMap[userGroupId]?.data.users?.length,

apps/web/src/common/modules/user/UserSelectDropdown.vue:134

  • There’s no test covering cases when a group has no users or the data.users field is missing. Consider adding a unit test for the member count fallback behavior.
                members: storeState.userGroupReferenceMap[userGroupId]?.data.users?.length,

return props.userGroupPool?.map((userGroupId) => ({
name: userGroupId,
label: storeState.userGroupReferenceMap[userGroupId]?.label || storeState.userGroupReferenceMap[userGroupId]?.name || userGroupId,
members: storeState.userGroupReferenceMap[userGroupId]?.data.users?.length,
Copy link

Copilot AI Jun 23, 2025

Choose a reason for hiding this comment

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

If data.users is undefined or empty, members will be undefined. Consider defaulting to zero: ...users?.length || 0.

Suggested change
members: storeState.userGroupReferenceMap[userGroupId]?.data.users?.length,
members: storeState.userGroupReferenceMap[userGroupId]?.data.users?.length || 0,

Copilot uses AI. Check for mistakes.
Copy link
Contributor

@seungyeoneeee seungyeoneeee left a comment

Choose a reason for hiding this comment

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

LGTM~!!🙇🏻‍♀️

@skdud4659 skdud4659 merged commit 851f50c into master Jun 23, 2025
13 checks passed
@skdud4659 skdud4659 deleted the hotfix-service-member branch June 23, 2025 00:36
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