Greenstand / Greenstand/treetracker-android

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

Open
#1,238 1 comment 0 reactions 1 assignee Claimed by @aneepal55 View on GitHub
chore not ready for dev refactor
Dominant language
Kotlin
Stars
101
Forks
116
PR merge metrics
No merged PRs in 30d

Description

## 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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.