Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Comments

Remove/Address TODOs in onboarding#6116

Merged
TimoPtr merged 5 commits intomainfrom
feature/onboarding-address-todos
Dec 17, 2025
Merged

Remove/Address TODOs in onboarding#6116
TimoPtr merged 5 commits intomainfrom
feature/onboarding-address-todos

Conversation

@TimoPtr
Copy link
Member

@TimoPtr TimoPtr commented Dec 1, 2025

Summary

This PR removes TODOs that we don't need anymore and address some of them when it makes sense.

Checklist

  • New or updated tests have been added to cover the changes following the testing guidelines.
  • The code follows the project's code style and best_practices.
  • The changes have been thoroughly tested, and edge cases have been considered.
  • Changes are backward compatible whenever feasible. Any breaking changes are documented in the changelog for users and/or in the code for developers depending on the relevance.

Any other notes

No TODO should be left from the onboarding code base the last one is going to be address in #6115

The split of the tests are in a dedicated commit that can be ignored.

},
onNext = onOnboardingDone,
)
// TODO: Consider making auth_code a value class to prevent string parameter mismatches
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried it (I have a stash with the changes). I've used a value class in the AuthRepository to enforce a strong type but then this types is not properly use by the navigation library and it needs a custom NavType mapping which I don't like.

I hope this is going to work in nav3 let see, for now I'm going to keep it like this.

if (isError) {
Text(
text = stringResource(commonR.string.manual_server_wrong_url),
// TODO probably wrong style and color/token
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All TODOs regarding the color and sytle have been removed since the design team won't have time for us and for now it looks ok. We are going to need a more general change over the app later at least for the typographie.

@TimoPtr TimoPtr force-pushed the feature/onboarding-address-todos branch from 1a70c20 to c286eb1 Compare December 1, 2025 16:47
@TimoPtr TimoPtr changed the base branch from feature/use_new_onboarding to feature/onboarding-rework-onboardapp December 1, 2025 16:47
@TimoPtr
Copy link
Member Author

TimoPtr commented Dec 1, 2025

Last TODOs to address are to verify the URL for the documentation and it is going to be addressed in another PR.

@jpelgrom
Copy link
Member

jpelgrom commented Dec 2, 2025

Taking "No TODO should be left from the onboarding code base" very seriously:

Missed:

What about:

@TimoPtr
Copy link
Member Author

TimoPtr commented Dec 3, 2025

Taking "No TODO should be left from the onboarding code base" very seriously:

Missed:

* https://github.com/home-assistant/android/blob/6229df022dfd04343d16eeabfc2cce792bd94820/onboarding/src/main/kotlin/io/homeassistant/companion/android/compose/composable/HAWebView.kt#L56

Removed in base branch

* https://github.com/home-assistant/android/blob/6229df022dfd04343d16eeabfc2cce792bd94820/onboarding/src/main/kotlin/io/homeassistant/companion/android/launcher/LauncherActivity.kt#L120

Missed it 👍🏻. I need to decide what to do here.

* https://github.com/home-assistant/android/blob/6229df022dfd04343d16eeabfc2cce792bd94820/onboarding/src/main/kotlin/io/homeassistant/companion/android/onboarding/wearmtls/WearMTLSScreen.kt#L272

Missed it 👍🏻. Removed

What about:

* https://github.com/home-assistant/android/blob/6229df022dfd04343d16eeabfc2cce792bd94820/onboarding/src/main/kotlin/io/homeassistant/companion/android/frontend/navigation/FrontendNavigation.kt#L56
   ?

Already removed in #6115

* https://github.com/home-assistant/android/blob/6229df022dfd04343d16eeabfc2cce792bd94820/onboarding/src/main/kotlin/io/homeassistant/companion/android/util/TLSWebViewClient.kt#L23
   ?

Removed in base branch

* https://github.com/home-assistant/android/blob/6229df022dfd04343d16eeabfc2cce792bd94820/onboarding/src/main/kotlin/io/homeassistant/companion/android/launcher/LauncherViewModel.kt#L169
   ?

Missed 👍🏻. Need to be handled

@jpelgrom
Copy link
Member

jpelgrom commented Dec 8, 2025

What was addressed seems good. I tried checking the tests and think everything moved to a logical place but might've missed one, especially back stack navigation with multiple screens is sometimes hard to place.

Setting this as draft while you handle the 3 remaining cases in the previous comment. Please change to ready for review when decided and committed (edit: oh they're randomly in #6123 so that title is wrong, then just undraft when merged) :)

@jpelgrom jpelgrom marked this pull request as draft December 8, 2025 21:42
@jpelgrom jpelgrom marked this pull request as ready for review December 15, 2025 11:48
@jpelgrom
Copy link
Member

@TimoPtr I think this one is ready and good now that you merged the other PR into this, but I'll let you handle the merging.

Base automatically changed from feature/onboarding-rework-onboardapp to main December 17, 2025 16:15
@TimoPtr TimoPtr force-pushed the feature/onboarding-address-todos branch from 6bca79f to a6f230a Compare December 17, 2025 16:18
@TimoPtr TimoPtr force-pushed the feature/onboarding-address-todos branch from a6f230a to 7b9ebe4 Compare December 17, 2025 16:25
@TimoPtr TimoPtr enabled auto-merge (squash) December 17, 2025 16:46
@TimoPtr TimoPtr merged commit e11518e into main Dec 17, 2025
22 checks passed
@TimoPtr TimoPtr deleted the feature/onboarding-address-todos branch December 17, 2025 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants