Skip to content

[#295] TodoDetailView에서 세부 정보를 보여주는 시트를 더 자세하게 보여주도록 개선한다#297

Merged
opficdev merged 4 commits intodevelopfrom
ui/#288-completion-todo
Mar 17, 2026
Merged

[#295] TodoDetailView에서 세부 정보를 보여주는 시트를 더 자세하게 보여주도록 개선한다#297
opficdev merged 4 commits intodevelopfrom
ui/#288-completion-todo

Conversation

@opficdev
Copy link
Owner

@opficdev opficdev self-assigned this Mar 17, 2026
@gemini-code-assist
Copy link
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은 할 일 관리 기능의 사용자 경험을 개선하기 위해 TodoDetailView의 상세 정보 표시를 확장하고, TodoEditorView에서 할 일의 완료 상태를 직접 제어할 수 있도록 기능을 추가합니다. 이를 통해 사용자는 할 일의 중요한 속성들을 한눈에 확인하고, 편집 과정에서 완료 상태를 쉽게 변경할 수 있게 됩니다.

Highlights

  • 할 일 완료 상태 관리 개선: TodoEditorViewModel에 할 일의 완료 여부(isCompleted)와 완료 시각(completedAt)을 관리하는 로직이 추가되었습니다. Draft 및 State 구조체에 해당 속성이 포함되었고, setCompleted 액션을 통해 상태를 업데이트할 수 있습니다.
  • TodoDetailView의 상세 정보 시트 개선: TodoDetailView에서 할 일의 상세 정보를 보여주는 시트가 TodoDetailInfoSheetView로 전면 개편되었습니다. 이제 카테고리, 완료 여부, 중요 표시 여부, 마감일, 태그 등 더 풍부하고 구조화된 정보를 List 형태로 제공합니다.
  • TodoEditorView에 완료 토글 추가: TodoEditorView의 정보 시트에 할 일의 완료 상태를 직접 변경할 수 있는 '완료' 토글 버튼이 추가되어 사용자 편의성이 향상되었습니다.
Changelog
  • DevLog/Presentation/ViewModel/TodoEditorViewModel.swift
    • Draft 및 State 구조체에 isCompletedcompletedAt 속성을 추가했습니다.
    • Action 열거형에 setCompleted(Bool) 케이스를 추가했습니다.
    • Todo 객체 생성 시 isCompletedcompletedAt 값을 state에서 가져오도록 수정했습니다.
    • TodoEditorViewModel의 내부 completedAt 속성을 제거하고 state에서 관리하도록 변경했습니다.
    • setCompleted 액션 처리 로직을 추가하여 isCompleted 상태 변경 시 completedAt을 업데이트하도록 했습니다.
  • DevLog/UI/Home/TodoDetailView.swift
    • 기존 TodoInfoSheetViewTodoDetailInfoSheetView로 대체했습니다.
    • TodoDetailInfoSheetView를 새로 추가하여 할 일의 카테고리, 완료 여부, 중요 표시 여부, 마감일, 태그 등 상세 정보를 List 형태로 표시하도록 구현했습니다.
    • 마감일 표시 형식을 개선하여 현재 연도와 동일한 경우 연도를 생략하도록 했습니다.
  • DevLog/UI/Home/TodoEditorView.swift
    • TodoEditorInfoSheetView에 할 일 완료 여부를 토글할 수 있는 '완료' 스위치를 추가했습니다.
Activity
  • 현재까지 이 PR에 대한 활동은 없습니다.
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
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

이번 PR은 TodoDetailView의 세부 정보 시트를 개선하고, Todo의 완료 상태를 편집하는 기능을 추가하는 변경 사항을 담고 있습니다. 전반적으로 변경 사항이 명확하고 목적에 맞게 잘 구현되었습니다. 코드 중복을 줄이고 가독성을 높일 수 있는 제안 사항을 리뷰에 남겼습니다.

I am having trouble creating individual review comments. Click here to see my feedback.

DevLog/UI/Home/TodoDetailView.swift (159-172)

medium

마감일의 날짜를 포맷하는 dueDateText(for:) 함수가 DevLog/UI/Home/TodoEditorView.swift 파일의 305-318 라인에도 중복으로 구현되어 있습니다. 코드 중복을 피하고 재사용성을 높이기 위해 이 로직을 Date의 extension으로 분리하는 것을 제안합니다.

예를 들어, 다음과 같이 formattedDueDate()와 같은 메소드를 만들어 사용할 수 있습니다.

extension Date {
    func formattedDueDate() -> String {
        let calendar = Calendar.current
        let currentYear = calendar.component(.year, from: Date())
        let dueDateYear = calendar.component(.year, from: self)

        if currentYear == dueDateYear {
            return formatted(.dateTime.month(.defaultDigits).day(.defaultDigits))
        } else {
            return formatted(.dateTime.year(.twoDigits).month(.defaultDigits).day(.defaultDigits))
        }
    }
}

@opficdev opficdev merged commit d4384da into develop Mar 17, 2026
2 checks passed
@opficdev opficdev deleted the ui/#288-completion-todo branch March 17, 2026 14:53
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.

TodoDetailView에서 세부 정보를 보여주는 시트를 더 자세하게 보여주도록 개선한다

1 participant