From 2340341e644798beeba5f1465a88438a39a106ff Mon Sep 17 00:00:00 2001 From: Avi Date: Tue, 1 Sep 2026 09:55:03 -0500 Subject: [PATCH] checkpoint: document metadata lookup correction --- CHECKPOINT-encryption.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CHECKPOINT-encryption.md b/CHECKPOINT-encryption.md index 79d8aff..e826311 100644 --- a/CHECKPOINT-encryption.md +++ b/CHECKPOINT-encryption.md @@ -1,8 +1,8 @@ -# Checkpoint — Automatic imported profile naming (2026-09-01) +# Checkpoint — Imported metadata lookup correction (2026-09-01) ## Where things are - Project: `/home/avi/Projects/Keynctr` -- Git repo: `master` @ `b368958` ("fix: derive imported profile name"). +- Git repo: `master` @ `da33652` ("fix: query imported metadata by public key"). - Working tree: uncommitted Keynctr branding, packaging metadata, and Cosmic palette/branding updates, plus untracked `.directory`, `.opencode/`, `COSMIC_THEME.md`, and `KeynectrAppIconPossibility02.jpeg`. ## What was completed @@ -15,6 +15,7 @@ 6. **Keynctr branding.** Replaced the visible `SOLARPUNK SUMMIT` / `KITCHEN 484` labels with `Keynctr` in the window, page title, sidebar, home screen, settings, and tests. Rebuilt artifacts: `frontend/release/Keynctr-0.1.0.AppImage` and `frontend/release/keynectr_0.1.0_amd64.deb`. ## Commits added in this session (newest first) +- `da33652` fix: query imported metadata by public key - `bde35bc` fix: import existing profile metadata - `d2d773a` fix: remove Stardust background dots - `7605f51` fix: keep NIP-46 signer subscription open @@ -34,6 +35,7 @@ - Stardust verification: `npm test` (99 passed), `npm run typecheck`, `npm run lint`, `npm run electron:build`, and `npm run build` passed. `npm run format:check` still reports existing issues in three unrelated frontend files. - Existing-account import verification: `cargo test` (115 passed), `cargo clippy --all-targets`, `cargo fmt --check`, `cargo build --release`, `npm test` (99 passed), `npm run typecheck`, `npm run lint`, `npm run electron:build`, and `npm run build` passed. `npm run format:check` reports existing issues in three frontend files. - Imported account naming: the name field is no longer required; kind-0 `display_name`/`name` is used automatically, with a shortened npub fallback. Verification: `cargo test` (116 passed), `cargo clippy --all-targets`, `cargo fmt --check`, `cargo build --release`, `npm test` (99 passed), `npm run typecheck`, `npm run lint`, `npm run electron:build`, and `npm run build` passed. `npm run format:check` still reports existing issues in three frontend files. +- Corrected metadata lookup to query with the derived public-key type directly, preventing silent fallback when importing accounts. ## How to resume / reproduce GUI (Cosmic): `cargo build --release && cd frontend && npm run build && npm run electron:build && npm start` (or dev: `npm run dev` in one terminal + `NOSTR_GUI_DEV_URL=http://localhost:5173 npm start` in second). Settings → Appearance → `Cosmic — Stardust`. CLI: `cargo run -- settings set theme cosmic`.