Tag-alarms: friendly tag names, write before saving, and a Settings page for NFC tags - #133
Merged
Merged
Conversation
…age for NFC tags
A tag-alarm's tag id is now something you can read: name it from the Tag
row ("Office A" folds to "office-a"), or let the write mint one from the
title. Because the id no longer depends on the record, a new tag-alarm can
be written to a blank tag straight from the New sheet, which saves it with
that id first.
Settings > NFC tags lists every tag the app recognises: each chore's tag
(archived last) and each tag-alarm, with or without a tag. Scan a tag to
see what it belongs to, write any row's id to a blank sticker through the
shared write dialog, give a tag-alarm an unused id, or unlink one. The
write request now records where it was started so each tab shows only its
own dialog.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016rWgRBgBaGjrH7iWGmUeSv
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
Friendly tag ids. A tag-alarm's tag is no longer its record UUID. Name it from the Tag row ("Name the tag" folds whatever you type to lower-case letters, digits and hyphens, so "Office A" becomes "office-a" and the dialog shows exactly what will be written), or leave it blank and the write mints one from the title. Ids a chore or another tag-alarm owns are refused with the owner named.
Write before saving. Since the id no longer depends on the record, "Write "office-a" to a blank tag" is offered on the New sheet too. It saves the memo with that id as its linked tag, closes, and waits for the tap.
Settings > NFC tags. One page for tag maintenance:
How
suggestTagId/freeTagIdinTagAlarm.ktare pure and tested.ReminderRepository.setTagAlarmTaglinks or unlinks.NfcWriteRequestgainsfromSettings;MainActivityexposes oneonStartNfcWriteRequestand the nav graph derives the chore, memo and settings variants, so each tab shows only its own write dialog.TagsViewModelholdsTagsUiState(pure, tested: listing, ordering, identify, free id) and follows the on-device memos so a link written from the sheet shows without a reload; chores load from Supabase and a failure leaves the tag-alarms showing.TagsSubScreenreusesSubScreenHeader,SettingsCard,ValueChipandWriteTagDialog. Identify uses the activity's capture mode, so a tap while listening is never logged as a chore or armed as an alarm.Changelog
changelog/unreleased/friendly-tag-ids.json, minor bump.🤖 Generated with Claude Code
https://claude.ai/code/session_016rWgRBgBaGjrH7iWGmUeSv
Generated by Claude Code