Repository navigation
Open pages by QR code keys in the front matter - #83
Open
markusressel wants to merge 1 commit into
Open
markusressel wants to merge 1 commit into
markusressel wants to merge 1 commit into
Conversation
Pages carry keys in the front matter `qr`. GET /qr/{key}/ finds the page,
409 for a key on two pages, 410 with the last path for a key no page has
any more. activity.db remembers the keys and the scans (?scan=1).
GET /qr/ lists codes, conflicts, invalid values and gone keys. The tree
meta has `qr`. Feature `qr-codes`, see docs/qr.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
QR/NFC stickers on things in the house open a wiki page, stable across rename and move. Requested by the web client; contract in
docs/qr.md.qr: a key, a list, or{key, label}entries. Keys are lowercased and must match[a-z0-9][a-z0-9-]{0,63}.meta.qr:[{key, label}](valid keys only). There is no own event, sincetree-changedcovers it.GET /qr/{key}/(every role): 200{key, label, item, title, lastScannedAt}, 409qr-conflict, 410qr-gonewithlastPath, 404.?scan=1records the scan time, for known keys only.GET /qr/:codes,conflicts,invalid,gone.activity.dbmigration 4:qr_codes(key, last_path, label, last_scanned_at). It is updated on tree changes, and rows are kept, so 410 keeps working.qr-codesin/server-info/. OpenAPI updated.Tests:
go test ./...and golangci-lint are clean.🤖 Generated with Claude Code