helwasm: store-on-correct, store button reflects existence, use stored spec

- 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
This commit is contained in:
Oleksandr Kozachuk
2026-06-09 23:12:48 +02:00
parent c60e6c8ce2
commit 0dd173f113
7 changed files with 86 additions and 14 deletions
+3
View File
@@ -185,6 +185,9 @@ input.mask.revealed { -webkit-text-security: none; }
.btn.small.is-correct { background: var(--ocean); color: var(--cream); border-color: var(--ocean); }
.btn.small.is-correct:hover { background: var(--deep); border-color: var(--deep); }
.btn:disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
/* "Stored ✓": not an action (disabled), but shown as a confirmed ocean outline
rather than the dimmed disabled look. */
.btn.small.is-stored { opacity: 1; background: transparent; color: var(--ocean); border-color: var(--ocean); }
/* Quick-gen result row */
.result {