Update TODOs for VaultTakeoverViewModel

Add placeholder TODO comments to the `VaultTakeoverViewModel` for future implementation work.

This commit clarifies upcoming tasks by:
- Adding a reference to a ticket (PM-28468) for fetching the organization name.
- Noting that the help link URL needs to be updated once it becomes available.
- Performing minor code formatting for better readability.
This commit is contained in:
Patrick Honkonen 2025-12-05 17:19:47 -05:00
parent 341a693555
commit 2908fc2527
No known key found for this signature in database
GPG Key ID: 27C65CF8B03CC9FB

View File

@ -8,13 +8,14 @@ import javax.inject.Inject
* View model for the [VaultTakeoverScreen].
*/
@HiltViewModel
class VaultTakeoverViewModel @Inject constructor(
// TODO: Inject required repositories/managers
) : BaseViewModel<VaultTakeoverState, VaultTakeoverEvent, VaultTakeoverAction>(
initialState = VaultTakeoverState(
organizationName = "TODO", // TODO: Get from navigation args or repository
),
) {
class VaultTakeoverViewModel @Inject constructor() :
BaseViewModel<VaultTakeoverState, VaultTakeoverEvent, VaultTakeoverAction>(
initialState = VaultTakeoverState(
// TODO: Get from navigation args or repository (PM-28468)
organizationName = "TODO",
),
) {
override fun handleAction(action: VaultTakeoverAction) {
when (action) {
VaultTakeoverAction.ContinueClicked -> handleContinueClicked()
@ -32,6 +33,7 @@ class VaultTakeoverViewModel @Inject constructor(
}
private fun handleHelpLinkClicked() {
// TODO: Update URL when available.
sendEvent(VaultTakeoverEvent.LaunchUri("TODO_HELP_URL"))
}
}