Greenstand / Greenstand/treetracker-android
Restructure ViewModel architecture with base class and UI layer conventions
- Dominant language
- Kotlin
- Stars
- 101
- Forks
- 116
- PR merge metrics
- No merged PRs in 30d
Description
Related PRs: #1204
**Summary**
Introduce a shared ViewModel base class and document UI layer conventions to standardize how ViewModels interact with the UI across the codebase.
**Motivation**
ViewModel implementations are inconsistent, large `when` branches, no shared structure, and no documented conventions make the codebase harder to maintain and onboard contributors.
**Acceptance criteria**
- [ ] Create a ViewModel base class with shared behavior and rules
- [ ] Extract large `when` branches to private functions across existing ViewModels
- [ ] Document ViewModel/UI layer conventions in the architecture doc
- [ ] All CI checks pass after restructuring
**References**
Closes #1204
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.