-
Notifications
You must be signed in to change notification settings - Fork 0
[#198] 오늘 기준으로 관련이 있는 Todo들을 보여주는 뷰를 구성한다 #201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 5 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
af20674
feat: 오늘 기준으로 Todo의 각종 정보를 모아 한눈에 보여주는 뷰 구현
opficdev 83a50bb
refactor: 로컬 정렬 대신 서버에 정렬된 형태로 요청해서 받아오는 형태로 개선
opficdev 86c150d
feat: SummaryCard를 탭이 가능하도록 변경해서 각 카드에 해당하는 Todo를 아래에서 볼 수 있도록 추가
opficdev 32de4b9
feat: 우측 상단에 툴바를 추가하여 보고싶은 Todo 데이터만 보도록 추가
opficdev c882545
fix: iOS 17에서 동일한 텍스트면 Menu에서 하나만 보이는 현상 해결4
opficdev 069fb1e
refactor: dueDate가 사용된 쿼리 생성 시 secondary가 없을 때 에러를 보장하도록 개선
opficdev fffa8a0
refactor: 필터링 시 각 조건에 대해 각각 필터링이 아닌, 한번의 순회 동안 각 조건을 검사해서 필터링하도록 개선
opficdev 5aeddc4
refactor: 리스트에 보이는 타이틀과 메시지를 한 곳에서 수정하도록 개선
opficdev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| // | ||
| // TodayDisplayOptions.swift | ||
| // DevLog | ||
| // | ||
| // Created by opfic on 3/6/26. | ||
| // | ||
|
|
||
| import Foundation | ||
|
|
||
| struct TodayDisplayOptions: Equatable { | ||
| enum DueDateVisibility: String, CaseIterable, Equatable { | ||
| case all | ||
| case withDueDateOnly | ||
| case withoutDueDateOnly | ||
| } | ||
|
|
||
| enum FocusVisibility: String, CaseIterable, Equatable { | ||
| case all | ||
| case focusedOnly | ||
| } | ||
|
|
||
| var dueDateVisibility: DueDateVisibility | ||
| var focusVisibility: FocusVisibility | ||
|
|
||
| static let `default` = TodayDisplayOptions( | ||
| dueDateVisibility: .all, | ||
| focusVisibility: .all | ||
| ) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
DevLog/Domain/UseCase/UserPreferences/Today/FetchTodayDisplayOptionsUseCase.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| // | ||
| // FetchTodayDisplayOptionsUseCase.swift | ||
| // DevLog | ||
| // | ||
| // Created by opfic on 3/6/26. | ||
| // | ||
|
|
||
| protocol FetchTodayDisplayOptionsUseCase { | ||
| func execute() -> TodayDisplayOptions | ||
| } |
18 changes: 18 additions & 0 deletions
18
DevLog/Domain/UseCase/UserPreferences/Today/FetchTodayDisplayOptionsUseCaseImpl.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| // | ||
| // FetchTodayDisplayOptionsUseCaseImpl.swift | ||
| // DevLog | ||
| // | ||
| // Created by opfic on 3/6/26. | ||
| // | ||
|
|
||
| final class FetchTodayDisplayOptionsUseCaseImpl: FetchTodayDisplayOptionsUseCase { | ||
| private let repository: UserPreferencesRepository | ||
|
|
||
| init(_ repository: UserPreferencesRepository) { | ||
| self.repository = repository | ||
| } | ||
|
|
||
| func execute() -> TodayDisplayOptions { | ||
| repository.todayDisplayOptions() | ||
| } | ||
| } |
10 changes: 10 additions & 0 deletions
10
DevLog/Domain/UseCase/UserPreferences/Today/UpdateTodayDisplayOptionsUseCase.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| // | ||
| // UpdateTodayDisplayOptionsUseCase.swift | ||
| // DevLog | ||
| // | ||
| // Created by opfic on 3/6/26. | ||
| // | ||
|
|
||
| protocol UpdateTodayDisplayOptionsUseCase { | ||
| func execute(_ options: TodayDisplayOptions) | ||
| } |
18 changes: 18 additions & 0 deletions
18
DevLog/Domain/UseCase/UserPreferences/Today/UpdateTodayDisplayOptionsUseCaseImpl.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| // | ||
| // UpdateTodayDisplayOptionsUseCaseImpl.swift | ||
| // DevLog | ||
| // | ||
| // Created by opfic on 3/6/26. | ||
| // | ||
|
|
||
| final class UpdateTodayDisplayOptionsUseCaseImpl: UpdateTodayDisplayOptionsUseCase { | ||
| private let repository: UserPreferencesRepository | ||
|
|
||
| init(_ repository: UserPreferencesRepository) { | ||
| self.repository = repository | ||
| } | ||
|
|
||
| func execute(_ options: TodayDisplayOptions) { | ||
| repository.setTodayDisplayOptions(options) | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.