Loading feature/navigation/drawer/src/debug/kotlin/app/k9mail/feature/navigation/drawer/ui/DrawerContentPreview.kt +5 −5 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ internal fun DrawerContentPreview() { DrawerContent( state = DrawerContract.State( accounts = persistentListOf(), selectedAccountUuid = null, selectedAccountId = null, folders = persistentListOf(), ), onEvent = {}, Loading @@ -30,7 +30,7 @@ internal fun DrawerContentWithAccountPreview() { DrawerContent( state = DrawerContract.State( accounts = persistentListOf(DISPLAY_ACCOUNT), selectedAccountUuid = DISPLAY_ACCOUNT.uuid, selectedAccountId = DISPLAY_ACCOUNT.id, folders = persistentListOf(), ), onEvent = {}, Loading @@ -47,7 +47,7 @@ internal fun DrawerContentWithFoldersPreview() { accounts = persistentListOf( DISPLAY_ACCOUNT, ), selectedAccountUuid = null, selectedAccountId = null, folders = persistentListOf( UNIFIED_FOLDER, DISPLAY_FOLDER, Loading @@ -67,7 +67,7 @@ internal fun DrawerContentWithSelectedFolderPreview() { accounts = persistentListOf( DISPLAY_ACCOUNT, ), selectedAccountUuid = DISPLAY_ACCOUNT.uuid, selectedAccountId = DISPLAY_ACCOUNT.id, folders = persistentListOf( UNIFIED_FOLDER, DISPLAY_FOLDER, Loading @@ -88,7 +88,7 @@ internal fun DrawerContentWithSelectedUnifiedFolderPreview() { accounts = persistentListOf( DISPLAY_ACCOUNT, ), selectedAccountUuid = DISPLAY_ACCOUNT.uuid, selectedAccountId = DISPLAY_ACCOUNT.id, folders = persistentListOf( UNIFIED_FOLDER, DISPLAY_FOLDER, Loading feature/navigation/drawer/src/debug/kotlin/app/k9mail/feature/navigation/drawer/ui/FakeData.kt +7 −2 Original line number Diff line number Diff line package app.k9mail.feature.navigation.drawer.ui import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.toArgb import app.k9mail.core.mail.folder.api.Folder import app.k9mail.core.mail.folder.api.FolderType import app.k9mail.feature.navigation.drawer.domain.entity.DisplayAccount Loading Loading @@ -35,7 +37,10 @@ internal object FakeData { } val DISPLAY_ACCOUNT = DisplayAccount( account = ACCOUNT, id = ACCOUNT_UUID, name = DISPLAY_NAME, email = EMAIL_ADDRESS, color = Color.Red.toArgb(), unreadMessageCount = 0, starredMessageCount = 0, ) Loading @@ -48,7 +53,7 @@ internal object FakeData { ) val DISPLAY_FOLDER = DisplayAccountFolder( accountUuid = ACCOUNT_UUID, accountId = ACCOUNT_UUID, folder = FOLDER, isInTopGroup = false, unreadMessageCount = 14, Loading feature/navigation/drawer/src/main/kotlin/app/k9mail/feature/navigation/drawer/FolderDrawer.kt +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ internal data class FolderDrawerState( class FolderDrawer( override val parent: AppCompatActivity, private val openAccount: (account: Account) -> Unit, private val openAccount: (accountId: String) -> Unit, private val openFolder: (folderId: Long) -> Unit, private val openUnifiedFolder: () -> Unit, private val openManageFolders: () -> Unit, Loading feature/navigation/drawer/src/main/kotlin/app/k9mail/feature/navigation/drawer/domain/DomainContract.kt +1 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ internal interface DomainContract { } fun interface GetDisplayFoldersForAccount { operator fun invoke(accountUuid: String, includeUnifiedFolders: Boolean): Flow<List<DisplayFolder>> operator fun invoke(accountId: String, includeUnifiedFolders: Boolean): Flow<List<DisplayFolder>> } /** Loading feature/navigation/drawer/src/main/kotlin/app/k9mail/feature/navigation/drawer/domain/entity/DisplayAccount.kt +5 −6 Original line number Diff line number Diff line package app.k9mail.feature.navigation.drawer.domain.entity import app.k9mail.legacy.account.Account internal data class DisplayAccount( val account: Account, val id: String, val name: String, val email: String, val color: Int, val unreadMessageCount: Int, val starredMessageCount: Int, ) { val uuid: String = account.uuid } ) Loading
feature/navigation/drawer/src/debug/kotlin/app/k9mail/feature/navigation/drawer/ui/DrawerContentPreview.kt +5 −5 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ internal fun DrawerContentPreview() { DrawerContent( state = DrawerContract.State( accounts = persistentListOf(), selectedAccountUuid = null, selectedAccountId = null, folders = persistentListOf(), ), onEvent = {}, Loading @@ -30,7 +30,7 @@ internal fun DrawerContentWithAccountPreview() { DrawerContent( state = DrawerContract.State( accounts = persistentListOf(DISPLAY_ACCOUNT), selectedAccountUuid = DISPLAY_ACCOUNT.uuid, selectedAccountId = DISPLAY_ACCOUNT.id, folders = persistentListOf(), ), onEvent = {}, Loading @@ -47,7 +47,7 @@ internal fun DrawerContentWithFoldersPreview() { accounts = persistentListOf( DISPLAY_ACCOUNT, ), selectedAccountUuid = null, selectedAccountId = null, folders = persistentListOf( UNIFIED_FOLDER, DISPLAY_FOLDER, Loading @@ -67,7 +67,7 @@ internal fun DrawerContentWithSelectedFolderPreview() { accounts = persistentListOf( DISPLAY_ACCOUNT, ), selectedAccountUuid = DISPLAY_ACCOUNT.uuid, selectedAccountId = DISPLAY_ACCOUNT.id, folders = persistentListOf( UNIFIED_FOLDER, DISPLAY_FOLDER, Loading @@ -88,7 +88,7 @@ internal fun DrawerContentWithSelectedUnifiedFolderPreview() { accounts = persistentListOf( DISPLAY_ACCOUNT, ), selectedAccountUuid = DISPLAY_ACCOUNT.uuid, selectedAccountId = DISPLAY_ACCOUNT.id, folders = persistentListOf( UNIFIED_FOLDER, DISPLAY_FOLDER, Loading
feature/navigation/drawer/src/debug/kotlin/app/k9mail/feature/navigation/drawer/ui/FakeData.kt +7 −2 Original line number Diff line number Diff line package app.k9mail.feature.navigation.drawer.ui import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.toArgb import app.k9mail.core.mail.folder.api.Folder import app.k9mail.core.mail.folder.api.FolderType import app.k9mail.feature.navigation.drawer.domain.entity.DisplayAccount Loading Loading @@ -35,7 +37,10 @@ internal object FakeData { } val DISPLAY_ACCOUNT = DisplayAccount( account = ACCOUNT, id = ACCOUNT_UUID, name = DISPLAY_NAME, email = EMAIL_ADDRESS, color = Color.Red.toArgb(), unreadMessageCount = 0, starredMessageCount = 0, ) Loading @@ -48,7 +53,7 @@ internal object FakeData { ) val DISPLAY_FOLDER = DisplayAccountFolder( accountUuid = ACCOUNT_UUID, accountId = ACCOUNT_UUID, folder = FOLDER, isInTopGroup = false, unreadMessageCount = 14, Loading
feature/navigation/drawer/src/main/kotlin/app/k9mail/feature/navigation/drawer/FolderDrawer.kt +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ internal data class FolderDrawerState( class FolderDrawer( override val parent: AppCompatActivity, private val openAccount: (account: Account) -> Unit, private val openAccount: (accountId: String) -> Unit, private val openFolder: (folderId: Long) -> Unit, private val openUnifiedFolder: () -> Unit, private val openManageFolders: () -> Unit, Loading
feature/navigation/drawer/src/main/kotlin/app/k9mail/feature/navigation/drawer/domain/DomainContract.kt +1 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,7 @@ internal interface DomainContract { } fun interface GetDisplayFoldersForAccount { operator fun invoke(accountUuid: String, includeUnifiedFolders: Boolean): Flow<List<DisplayFolder>> operator fun invoke(accountId: String, includeUnifiedFolders: Boolean): Flow<List<DisplayFolder>> } /** Loading
feature/navigation/drawer/src/main/kotlin/app/k9mail/feature/navigation/drawer/domain/entity/DisplayAccount.kt +5 −6 Original line number Diff line number Diff line package app.k9mail.feature.navigation.drawer.domain.entity import app.k9mail.legacy.account.Account internal data class DisplayAccount( val account: Account, val id: String, val name: String, val email: String, val color: Int, val unreadMessageCount: Int, val starredMessageCount: Int, ) { val uuid: String = account.uuid } )