Repository navigation
Add past entries from the History screen - #71
Merged
Merged
Conversation
Back-fill an entry that was forgotten at the time. Refuse future times and exact duplicates, and link the entry to the subscription that was valid then, reporting the outcome so the UI can offer an undo. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
One sheet with Today/Yesterday shortcuts, a day and a time picker (future days disabled), inline errors, and an Undo snackbar. It remembers the last day and time used. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Give the instrumented test its own subscription repository now that the ViewModel needs one, and check the add button opens the sheet. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Merged
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.
What
Lets the user back-fill pool entries they forgot to log, from a new Add past entry button on the History screen.
HistoryViewModelnow also takes aSubscriptionRepository(interface, defaulting to the provider), so no Firebase import is added.Tests
HistoryScreenTest: sheet opens (not run here: no emulator was driven from this session)../gradlew checkandktfmtCheckpass locally.Not in this PR
Importing a whole history from the provider's "Historique de la consommation" PDF will follow as a separate PR, as it needs a PDF text-reading library.
🤖 Generated with Claude Code