Skip to content

[#312] TodayView에서 Todo를 직접 완료할 수 있는 UI를 구성한다#331

Merged
opficdev merged 3 commits intodevelopfrom
feat/#312-TodayView
Mar 29, 2026
Merged

[#312] TodayView에서 Todo를 직접 완료할 수 있는 UI를 구성한다#331
opficdev merged 3 commits intodevelopfrom
feat/#312-TodayView

Conversation

@opficdev
Copy link
Copy Markdown
Owner

@opficdev opficdev self-assigned this Mar 29, 2026
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

이번 풀 리퀘스트는 TodayViewModel의 SectionBuckets를 SectionStore로 이름을 변경하고, TodayView에서 할 일 완료를 위한 스와이프 액션을 개선하는 내용을 담고 있습니다. 피드백으로는 Store 프로토콜과의 혼동을 피하기 위한 구조체 이름 변경 제안과, 의도치 않은 완료 처리를 방지하기 위해 swipeActions에 allowsFullSwipe: false 옵션을 추가하라는 의견이 있었습니다.

}

struct SectionBuckets {
struct SectionStore {
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

SectionStore라는 이름은 ViewModel이 Store 프로토콜을 따르고 있어 혼동을 줄 수 있습니다. 이 구조체는 단순히 데이터를 그룹핑하는 역할을 하므로 GroupedSections 또는 SectionCollection 같은 더 명확한 이름으로 변경하는 것을 고려해보세요. 이는 코드의 의도를 더 명확하게 전달하는 데 도움이 됩니다.

Suggested change
struct SectionStore {
struct GroupedSections {

.tint(.orange)

}
.swipeActions(edge: .trailing) {
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

swipeActionsallowsFullSwipe 파라미터가 설정되지 않아 기본값인 true가 적용됩니다. 이 경우 사용자가 실수로 전체 스와이프하여 Todo를 완료 처리할 수 있습니다. togglePinned 액션처럼 allowsFullSwipe: false를 명시적으로 설정하여 사용자의 실수를 방지하는 것을 고려해보세요.

Suggested change
.swipeActions(edge: .trailing) {
.swipeActions(edge: .trailing, allowsFullSwipe: false) {

@opficdev opficdev merged commit 8244767 into develop Mar 29, 2026
1 check passed
@opficdev opficdev deleted the feat/#312-TodayView branch March 29, 2026 03:28
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.

TodayView에서 Todo를 직접 완료할 수 있는 UI를 구성한다

1 participant