Coverage Summary for Class: DashboardWidgetSize (com.georgeci.moneysurfer.domain.dashboard)

Class Class, % Method, % Branch, % Line, % Instruction, %
DashboardWidgetSize 100% (1/1) 100% (1/1) 100% (2/2) 100% (18/18)


 package com.georgeci.moneysurfer.domain.dashboard
 
 /**
  * How much room a widget takes in the column. Maps 1:1 onto `uikit.widgets.SurferWidgetSize`;
  * declared in the domain so a layout can be persisted without leaking UI types into `data`.
  */
 enum class DashboardWidgetSize {
     Expanded,
     Compact,
 }
 
 /**
  * Visual treatment of a single dashboard widget: its [size] plus an optional widget-specific
  * [variant] key (e.g. a chart flavour) that only the widget that defines it understands. The
  * variant is free-form on purpose — each widget task can introduce its own values without
  * touching this type or the persistence format.
  */
 data class DashboardCardStyle(
     val size: DashboardWidgetSize = DashboardWidgetSize.Expanded,
     val variant: String? = null,
 ) {
     companion object {
         val EXPANDED = DashboardCardStyle(DashboardWidgetSize.Expanded)
         val COMPACT = DashboardCardStyle(DashboardWidgetSize.Compact)
     }
 }