Skip to content

Conversation

@rhkrwngud445
Copy link
Contributor

작업 내용

empty 별도 상태 관리로 인한 화면 미반영 수정

확인 방법

친구 프로필 상세 -> 챙김 버튼 -> 기록 확인

참고 사항

N/A

관련 이슈

@gemini-code-assist
Copy link

Summary of Changes

Hello @rhkrwngud445, 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!

이 풀 리퀘스트는 친구 프로필의 기록 섹션에서 발생하는 표시 문제를 해결합니다. 이전에는 새로운 친구 기록이 추가될 때, isEmpty 상태가 올바르게 업데이트되지 않아 UI에 기록이 제대로 표시되지 않을 수 있었습니다. 이번 변경으로 UI 상태가 적절히 업데이트되어 새로운 기록이 그리드 리스트에 즉시 표시되도록 보장합니다.

Highlights

  • 그리드 리스트 반영 문제 수정: 친구 기록 추가 시 isEmpty 상태가 업데이트되지 않아 그리드 리스트에 새로운 기록이 반영되지 않던 문제를 수정했습니다.
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.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

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

@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

The pull request addresses an issue where the grid list was not reflecting changes due to separate state management for empty states. The fix involves updating the isEmpty flag in the friendShipRecordStateFlow when a friendship record is successfully created. This ensures that the UI accurately reflects the presence or absence of friendship records. I have added a review comment to address a potential issue.

.onEach { _ ->
_uiEvent.send(FriendProfileUIEvent.RecordFriendShipSuccess)
_friendShipRecordStateFlow.update { recordState ->
recordState.copy(

Choose a reason for hiding this comment

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

high

Setting isEmpty to false here will cause the grid to always show the record item, even when the record list is empty. Consider checking if the record list is empty before setting isEmpty to false.

Alternatively, you can remove the isEmpty flag altogether and derive its value directly from the records list.

                            //isEmpty = false,

@rhkrwngud445 rhkrwngud445 merged commit 6ac7fae into dev Oct 23, 2025
1 check 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.

[FIX] 챙김 버튼 이후 GridList 미반영

2 participants