From 5e8ac1e2f5a660e55ea132996e1d5730cfa4fa64 Mon Sep 17 00:00:00 2001 From: cirakg Date: Wed, 21 Oct 2026 03:55:10 +0200 Subject: feat(glance): show the favourite code in the glance (opt-in) With "Show the favourite code in the glance" on, the glance shows the code of the first favourite TOTP or Steam entry without the PIN, with a countdown bar. The glance can't open the vault, so the About scan seals that entry under "g" (device key, aad OTPW-GL-1) after every change, and removes it when the option is off or no entry qualifies; the glance also reads the option itself. HKDF moves to its own module so the glance loads only the crypto it needs (37 % of its 64 KB). Manage entry gains "Mark as favourite (glance)" and "Remove favourite", queued for locked entries like the other changes. Lines are inset on round screens so the Instinct 3's curved glance corner doesn't cut them. Co-Authored-By: Claude Opus 5.5 --- source/storage/Vault.mc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/storage/Vault.mc') diff --git a/source/storage/Vault.mc b/source/storage/Vault.mc index 88054e0..fcd973f 100644 --- a/source/storage/Vault.mc +++ b/source/storage/Vault.mc @@ -34,6 +34,9 @@ class Vault { // The "Encrypt names" setting: new entries keep their names in the // encrypted part (existing ones are converted by AboutScan). var encryptNames as Boolean = false; + // The "Show the favourite code in the glance" option (AppState); the + // About scan stores or removes the glance item by it (GlanceStore). + var glanceCode as Boolean = false; private var _store as Persist.Backend; private var _meta as Dictionary; -- cgit v1.2.3