Repository navigation
Conversation
RoomieRepository is the interface the screens will use. RemoteRoomieRepository implements it on the auth, house, chore, note and shopping repositories, and RemoteMapping turns DTOs into the app's models. Nothing injects it yet, so the app still runs on FakeRoomieRepository. Also fixes found while wiring it up: note edits send an explicit null to clear a due date, login returns a house summary, houses and notes carry their colour, chores load a week at a time (KeyedResponseFlow), and Capabilities records what the backend doesn't support yet.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack 6/7. Builds on #12.
Adds the layer the screens will talk to, on top of the per-feature repositories from #9–#12:
RoomieRepository: the interface the UI uses (state, actions, error messages).RemoteRoomieRepository: implements it with the auth, house, chore, note and shopping repositories. Restores the saved sign-in on launch, runs onboarding as a local draft until the house is created, and loads chores a week at a time.RemoteMapping: pure functions from DTOs to the app's models (houses, notes, chore turns, rotations, shopping items).Capabilities: what the backend doesn't support yet (one-time chores, more than one person per week, item notes, "couldn't find it"), so the UI can hide those controls.Fixes found while wiring it up:
dueOn: nullexplicitly so the due date can be cleared (RoomieGson.gsonWithNulls).pinned+notes).KeyedResponseFlowkeeps one result per key, used for chore weeks.Nothing injects
RemoteRoomieRepositoryyet, so the app still runs on demo data after this PR. The next PR switches the screens over.Test: unit tests pass (new
RemoteMappingTest, keyedResponseFlowtests, a note due-date test).LiveBackendTestruns the whole flow against a real backend whenROOMIE_E2E_URLis set (needsAUTH_DEV_BYPASS=true); it passed againstroomie-backendmvp-features.