Repository navigation
Conversation
…and ktlint config
|
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 7/7. Builds on #17.
Switches every screen to
RoomieRepository(the backend by default) and restructures the UI layer. It's large, so it's split into commits by area, and reviewing commit by commit is easiest. Only the last commit is guaranteed to build on its own.Structure
privatein it.ui/chores/components,ui/notes/components,ui/shopping/components).ui/componentsholds the app-wide ones (split out ofCommon.ktandFields.kt).DayTaskRow,RoomieDatePickerDialog,DateButton,IconTextRow, unused date helpers).State and logic
…Content(ui, …).choresUiState,homeUiState,noteBoardUiState,shoppingUiState, …), so the logic that used to live in composables is unit-tested. Examples: filtering, form validation, the rotation preview, pin limits, the shopping subtitles, and keeping people in house order.Previews
@Previews covering every screen state and shared component.FakeRoomieRepository.demoState()through the same state builders as the app, wrapped in a newRoomiePreview.Strings
strings.xml, with plurals for counts and content descriptions prefixedcd_.UiText.Raw).Formatting
.editorconfig(ktlint, Android Studio style, 120 columns). ktlint passes on all ofui/and its tests.Wiring
RepositoryModulereplacesFakeDataModuleand providesRemoteRoomieRepository, or the demo data withroomie.fakeData=trueinlocal.properties.AppViewModelshows repository errors as toasts and refreshes on resume and every 30 seconds.Capabilities.Test:
assembleDebugsucceeds. 66 unit tests pass, 1 skipped (the live backend test), including the newChoresUiStateTestandScreenStateTest.