Skip to content

Conversation

@Elvishrdz
Copy link
Contributor

Checklist

  • Rename public charge manager class
  • Create public models
  • Create mappers for public models

@Elvishrdz Elvishrdz requested a review from juanjecilla November 4, 2025 13:55
@Elvishrdz Elvishrdz force-pushed the feature/refactor-public-charge-manager branch from 26faeef to f97da01 Compare November 4, 2025 14:01
@@ -0,0 +1,8 @@
package de.elvah.charge.public_api.model

public class ChargingSession(
Copy link
Collaborator

Choose a reason for hiding this comment

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

I know I named the things this way but I was thinking that maybe infinitive instead of -ing would be better, wdyt?

val isSummaryReady by SessionManager.isSummaryReady.collectAsStateWithLifecycle(false)
val hasActiveSession by SessionManager.hasActiveSession.collectAsStateWithLifecycle(false)
val charge by SessionManager.chargeSession.collectAsStateWithLifecycle(null)
val isSummaryReady by ChargeSessionManager.isSummaryReady.collectAsStateWithLifecycle(false)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I tend to prefer only one single state where we can hold all related stuff to the component. What do you thing? Maybe not for this PR but change it in the future.

@Elvishrdz Elvishrdz force-pushed the feature/refactor-public-charge-manager branch from 5d466d2 to 3c57cb4 Compare November 5, 2025 07:26
@Elvishrdz Elvishrdz merged commit c743f78 into feature/restructure-sdk-ui-component-source Nov 5, 2025
1 check passed
@Elvishrdz Elvishrdz deleted the feature/refactor-public-charge-manager branch November 5, 2025 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants