Skip to content

refactor: add shared core foundations - #14

Closed
Foxpace wants to merge 1 commit into
masterfrom
codex/sensorbox-refactor-01-core-foundation
Closed

refactor: add shared core foundations#14
Foxpace wants to merge 1 commit into
masterfrom
codex/sensorbox-refactor-01-core-foundation

Conversation

@Foxpace

@FoxpaceFoxpace commented Aug 15, 2026

Copy link
Copy Markdown
Owner

Introduces the shared core abstractions used by the refactored phone and wearable applications.

What was added

  • Typed application errors and diagnostic-report generation.
  • Immutable preference state, intents, reducer, repository interface, and DataStore implementation.
  • Native document storage for creating and writing measurement output.
  • Unit tests, fixtures, and a fake preference repository for downstream modules.

How it works

Feature modules depend on the core interfaces instead of Android UI classes. Preference intents are reduced into state and persisted through DataStore, while storage requests are handled through the native document API. Errors are converted into structured diagnostics that can be shared by the UI.

Stack position

Layer 1 of 31 in the SensorBox refactor stack. Review this PR against its configured base to see only this layer.

Validation

  • Full stack: ./gradlew test — BUILD SUCCESSFUL (160 tasks)

@FoxpaceFoxpace changed the title codex/sensorbox refactor 01 core foundationrefactor: add shared core foundationsAug 15, 2026
@Foxpace
Foxpace marked this pull request as ready for review August 15, 2026 21:50
@FoxpaceChatGPT Codex Connector

Copy link
Copy Markdown
OwnerAuthor

Superseded by #46, which targets master and shows the final current tree. The replacement PR body carries forward the review-thread accounting from this PR. Closing this stacked layer so review stays on the consolidated diff; this discussion remains available as history.

@FoxpaceFoxpace closed this Aug 19, 2026
@FoxpaceChatGPT Codex Connector

Copy link
Copy Markdown
OwnerAuthor

Stack restored at the author's request. This PR is again part of the original 31-layer refactor chain. The architecture work continues as stacked PRs #47 through #54; consolidated PR #46 is superseded.

@FoxpaceFoxpace reopened this Aug 19, 2026
@FoxpaceFoxpace closed this Aug 23, 2026
@Foxpace
Foxpace deleted the codex/sensorbox-refactor-01-core-foundation branch August 23, 2026 12:58
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@Foxpace