-
Notifications
You must be signed in to change notification settings - Fork 5
Start refactoring convo view model #280
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
base: dev
Are you sure you want to change the base?
Conversation
|
Claude finished @yewreeka's task —— View job Code Review Complete ✅Todo List
SummaryThis PR successfully refactors the Code Quality & Best Practices ✅Strengths:
Minor Observations:
Potential Bugs or Issues
|
How to use the Graphite Merge QueueAdd the label merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
caaef8b to
b9f339a
Compare

Refactor
ConversationViewModelto source repositories and writers fromMessagingService.conversationStateManager(for:)for existing and draft conversationsRoute
ConversationViewModeldependencies throughConversationStateManager, update initializers to dropmyProfileRepositoryin favor ofdraftConversationRepository, initialize editing state from the repository-fetched conversation, addMessagingService.conversationStateManager(for:), and extend the state machine withuseExisting(conversationId:)plus tests. Also add acacheUpdatespublisher to the mock image cache.📍Where to Start
Start with
ConversationViewModelwiring in Convos/Conversation Detail/ConversationViewModel.swift, then review the factory in ConvosCore/Sources/ConvosCore/Messaging/MessagingService.swift and the state transition in ConvosCore/Sources/ConvosCore/Inboxes/ConversationStateMachine.swift.Macroscope summarized 9ce42ef.