carp-dk / carp-dk/carp_study_app

refactor(structure): convert part-of files into libraries with explicit imports (staged by layer)

Open
#620 0 comments 0 reactions 1 assignee Claimed by @Zeroupper View on GitHub
Dominant language
Dart
Stars
10
Forks
5
Avg merge
1d 3h
Merged PRs (30d)
14

Description

## Problem
(verified) `lib/main.dart:63-148` lists 79 parts; all cross-file references are invisible (no imports), `main.g.dart` serializes types from across the app into one generated part (main.dart:148), and private members are effectively global.

## Proposed fix
Mechanical, staged conversion: `data/` first, then `view_models/`, then `ui/` — each file gets its own imports (and `.g.dart` part where needed); a shared barrel file can smooth the transition. Do this *before* moving files into feature folders so each file moves once. Sequence after #597's call-site renames to avoid merge pain, or coordinate branch ordering with it.

## Acceptance criteria
- [ ] Zero `part of carp_study_app` directives
- [ ] `dart run build_runner build` still generates correctly (per-file `.g.dart`)
- [ ] App builds and runs in local + CAWS modes

**Effort:** L · **Priority:** P1 · **Change risk:** Medium (large mechanical diff; compiler verifies, but rebase-heavy — slice per layer)

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.