[PR 15] Implement Chat Actions ViewModel Logic (E1.S*, E3.S*, E4.S*) #61

Closed
opened 2025-06-25 00:07:04 +00:00 by rwachters · 0 comments
rwachters commented 2025-06-25 00:07:04 +00:00 (Migrated from github.com)

Summary

Implement remaining action methods in ChatState ViewModel for chat, editing, and model selection logic.

Details

  • Implement methods: startReplyTo, cancelReply, updateInput, startEditing, saveEditing, cancelEditing, deleteMessage, switchBranchToMessage, selectModel, selectSettings.
  • Ensure all calls use viewModelScope.launch and handle Either results.

Dependencies

  • PR 14 (UiState and base ViewModels)
  • PR 12 (Chat/Session clients)
  • PRs 3, 8 (Backend message/session updates)

Tests

  • Unit tests for these ViewModel methods.

Assignee

Maya

Labels

frontend, viewmodel, state, arrow, good first issue

## Summary Implement remaining action methods in ChatState ViewModel for chat, editing, and model selection logic. ## Details - Implement methods: `startReplyTo`, `cancelReply`, `updateInput`, `startEditing`, `saveEditing`, `cancelEditing`, `deleteMessage`, `switchBranchToMessage`, `selectModel`, `selectSettings`. - Ensure all calls use `viewModelScope.launch` and handle `Either` results. ## Dependencies - PR 14 (UiState and base ViewModels) - PR 12 (Chat/Session clients) - PRs 3, 8 (Backend message/session updates) ## Tests - Unit tests for these ViewModel methods. ## Assignee Maya ## Labels frontend, viewmodel, state, arrow, good first issue
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Torvian.eu/chatbot#61
No description provided.