Settings page: add Sync Templates button and Back button #60
Labels
No labels
bug
chore
feature
spike
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
utilities/Logbook#60
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Add two affordances to the Settings sheet
(
ui/settings/SettingsSheet.kt): a "Sync Templates" button that manuallytriggers a template refresh, and a Back button to close the sheet from
within the UI.
Motivation
Settings currently has no way to leave except the Android system back
gesture (no
SheetHeader/back chip like other sheets use), and there's nomanual way to force a template sync — it only happens as part of automatic
cache refresh (
CacheRefreshEngine).Acceptance criteria
SheetHeader(as used byEntrySheet/PersonInfoSheet)with
onBackclosing the sheet, replacing the current bare title textTemplateRepository.refreshTemplates()and shows some success/failure/in-progress feedback to the user
Non-goals / constraints
Related
app/src/main/java/family/marquezkeenan/logbook/ui/settings/SettingsSheet.kt,ui/sheet/SheetChrome.kt,data/templates/TemplateRepository.kt,data/cache/CacheRefreshEngine.kt