Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.lightColorScheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.Immutable
import androidx.compose.runtime.staticCompositionLocalOf
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.TextStyle
Expand Down Expand Up @@ -73,7 +74,8 @@ val CustomLightColors = CustomColorsPalette(
/**
* Custom color palette data class for additional colors not covered by Material Theme
*/
data class CustomColorsPalette(
@Immutable
data class CustomColorsPalette(
val elevationBackground: Color = Color.Unspecified,
val mountainBackground: Color = Color.Unspecified,
val busyStatus: Color = Color.Unspecified,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package band.effective.office.tablet.feature.bookingEditor.presentation

import androidx.compose.runtime.Stable
import band.effective.office.tablet.core.domain.model.EventInfo
import band.effective.office.tablet.core.domain.model.Organizer
import band.effective.office.tablet.core.domain.util.currentLocalDateTime
import kotlinx.datetime.LocalDateTime

data class State(
@Stable
data class State(
val duration: Int,
val date: LocalDateTime,
val organizers: List<Organizer>,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package band.effective.office.tablet.feature.bookingEditor.presentation.datetimepicker

import androidx.compose.runtime.Immutable
import band.effective.office.tablet.core.domain.model.EventInfo
import band.effective.office.tablet.core.domain.useCase.CheckBookingUseCase
import band.effective.office.tablet.core.domain.util.asInstant
Expand Down Expand Up @@ -108,6 +109,7 @@ class DateTimePickerComponent(
mutableState.update { it.copy(isEnabledButton = isEnabled) }
}

@Immutable
data class State(
val currentDate: LocalDateTime,
val isEnabledButton: Boolean
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
package band.effective.office.tablet.feature.fastBooking.presentation

import androidx.compose.runtime.Immutable
import band.effective.office.tablet.core.domain.model.EventInfo
import band.effective.office.tablet.core.domain.util.currentLocalDateTime
import kotlinx.datetime.LocalDateTime

/**
* State for the FastBookingComponent.
*/
data class State(
@Immutable
data class State(
val isLoad: Boolean,
val isSuccess: Boolean,
val isError: Boolean,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package band.effective.office.tablet.feature.main.presentation.freeuproom

data class State(
import androidx.compose.runtime.Immutable

@Immutable
data class State(
val isLoad: Boolean,
val isSuccess: Boolean
) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package band.effective.office.tablet.feature.main.presentation.main

import androidx.compose.runtime.Stable
import band.effective.office.tablet.core.domain.model.RoomInfo
import band.effective.office.tablet.core.domain.util.currentLocalDateTime
import kotlinx.datetime.LocalDateTime

data class State(
@Stable
data class State(
val isLoad: Boolean,
val isData: Boolean,
val isError: Boolean,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package band.effective.office.tablet.feature.main.presentation.main.navigation

import androidx.compose.runtime.Stable
import band.effective.office.tablet.core.domain.model.EventInfo
import band.effective.office.tablet.core.domain.model.RoomInfo
import kotlinx.serialization.Serializable

@Serializable
@Stable
sealed interface ModalWindowsConfig {

@Serializable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package band.effective.office.tablet.feature.settings

import androidx.compose.runtime.Stable
import band.effective.office.tablet.core.domain.model.RoomsEnum

data class State(
@Stable
data class State(
val rooms: List<String>,
val currentName: String,
val loading: Boolean,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package band.effective.office.tablet.feature.slot.presentation

import androidx.compose.runtime.Stable
import band.effective.office.tablet.core.domain.model.Slot

@Stable
sealed interface SlotUi {
val slot: Slot

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package band.effective.office.tablet.feature.slot.presentation

data class State(
import androidx.compose.runtime.Stable

@Stable
data class State(
val slots: List<SlotUi>
) {
companion object {
Expand Down