From 0dd173f1131e8a62303eb37e5f4f83c200f6d943 Mon Sep 17 00:00:00 2001 From: Oleksandr Kozachuk <201152+ok2@users.noreply.github.com> Date: Tue, 9 Jun 2026 23:12:48 +0200 Subject: [PATCH] helwasm: store-on-correct, store button reflects existence, use stored spec MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - new read-only export hel_entry(name): the entry's canonical stored form, or "" - Mark correct now also stores the name (keeps the entry); unmark keeps the stored name and just drops the hash (wraps add/rm for an ephemeral entry so the right hash is removed) - Store button shows "Stored ✓" (disabled, ocean outline) when the name is already in the catalog, "Store" otherwise - when a typed name already exists, the field adopts the full stored spec on blur (real mode/seq/date/parent) instead of a default-extended parse --- helwasm/index.html | 46 +++++++++++++++++++++++-------- helwasm/pkg/helwasm.d.ts | 11 +++++++- helwasm/pkg/helwasm.js | 23 ++++++++++++++++ helwasm/pkg/helwasm_bg.wasm | Bin 1526167 -> 1528972 bytes helwasm/pkg/helwasm_bg.wasm.d.ts | 3 +- helwasm/src/hel_state.rs | 14 ++++++++++ helwasm/style.css | 3 ++ 7 files changed, 86 insertions(+), 14 deletions(-) diff --git a/helwasm/index.html b/helwasm/index.html index 0abc71a..5641fa9 100644 --- a/helwasm/index.html +++ b/helwasm/index.html @@ -201,7 +201,7 @@