Skip to content

Refactor DashboardScreen.kt — break into sub-composables (438 lines) #1238

Description

@Elforama

Problem

DashboardScreen.kt is 438 lines. Large screen composables are hard to maintain and test. The screen likely contains header, stats, sync status, and action sections that could be extracted.

Location

  • app/src/main/java/org/greenstand/android/TreeTracker/dashboard/DashboardScreen.kt

Suggested Fix

Extract logical sections into named sub-composables:

  • DashboardHeader
  • DashboardStats
  • SyncStatusSection
  • DashboardActions

Keep the top-level DashboardScreen as a composition of these smaller components.

Effort

Medium

Metadata

Metadata

Assignees

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions