Skip to content

Template feedback D1: small fixes from Orange Baton - #92

Merged
dadachi merged 7 commits into
mainfrom
d1-small-fixes
Oct 24, 2026
Merged

dadachi merged 7 commits into
mainfrom
d1-small-fixes

Conversation

@dadachi

@dadachi dadachi commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

Bundle D1 of the Orange Baton template feedback, the same as NativeAppTemplate-Android #138 where the free edition has the code (no push, so 116 does not apply; 117 was already done; AGENTS.md had no Scan, 103).

  • 115 / 118 the session file is never read as plain proto when it does not decrypt
  • 119 one name for the preferences source: nativeAppTemplatePreferencesDataSource (was nat… and mtc…)
  • 123 notices of something done after a restart are Short (StoredNoticeTest)
  • 120 Theme.kt warns about roles sharing a color (ContentColorTest); the FABs state primary / onPrimary
  • 13 the delete-account confirmation says the shops and item tags go too

Checks: spotlessCheck, :app:lintDebug, :app:minifyReleaseWithR8 and test (433 tests) pass locally; the new tests seen failing with the code under test broken; the delete-account dialog checked on the emulator against a local API.

🤖 Generated with Claude Code

https://claude.ai/code/session_018iXcEetCio5kwB6Fhf2EJi

dadachi and others added 7 commits October 25, 2026 08:21
UserPreferencesSerializer fell back to parsing bytes the key did not accept as
an unencrypted UserPreferences, a migration from before encryption that an app
built from the template never needs. It let a plain file put on the device, or
ciphertext that happens to parse once the Keystore key is gone, stand in for a
signed-in shopkeeper. Such bytes are a CorruptionException now, and
DataStoreModule's ReplaceFileCorruptionHandler starts over signed out. The test
that pinned the fallback checks the opposite. Ported from Orange Baton
(template-feedback 115, 118).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018iXcEetCio5kwB6Fhf2EJi
…erywhere

The repositories and their tests called NativeAppTemplatePreferencesDataSource
natPreferencesDataSource, and ItemTagRepositoryImpl mtcPreferencesDataSource,
left from MyTurnTag Creator. One name now, the paid edition's, which the rename
in nativeapptemplate-agent also covers. Found while building Orange Baton from
the template (template-feedback 119).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018iXcEetCio5kwB6Fhf2EJi
The notices shown after a shop or the account was deleted were
SnackbarDuration.Indefinite and stayed until dismissed, covering the add
button. They are Short now (storedNoticeDuration); the reconfirmation of a new
email address, which asks the shopkeeper to act, stays until dismissed
(StoredNoticeTest). Ported from Orange Baton (template-feedback 123).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018iXcEetCio5kwB6Fhf2EJi
A Surface, Card or Dialog without colors takes its text from contentColorFor,
which matches errorContainer before surface: a palette that gives
errorContainer the surface's color turned every plain surface's text red in
Orange Baton. Theme.kt says to give the on* colors one color too, and
ContentColorTest checks that the surfaces and the background get
onSurface / onBackground in both schemes. The FABs state primary / onPrimary,
as SubmitFab does, instead of the default primaryContainer. Found while
building Orange Baton from the template (template-feedback 120).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018iXcEetCio5kwB6Fhf2EJi
Deleting a shopkeeper deletes their organization with every shop and item tag.
The dialog only asked "Are you sure?"; it says so now. Found while building
Orange Baton from the template (template-feedback 13).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018iXcEetCio5kwB6Fhf2EJi
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018iXcEetCio5kwB6Fhf2EJi
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018iXcEetCio5kwB6Fhf2EJi
@dadachi
dadachi merged commit 5fa26c9 into main Oct 24, 2026
1 check passed
@dadachi
dadachi deleted the d1-small-fixes branch October 24, 2026 23:37
Sign up for free to 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