chain-studio/lib/pages
flemming-it 98a6414eaa
Some checks failed
Security / Security check (push) Failing after 1s
fix(store): localised docs, debounced typing, explicit-submit always AI
Three Stefan-found bugs in one pass:

1. Documentation rendered in English even when Studio was set
   to German. _loadDocs now passes Localizations.localeOf(...)
   to fetchModuleDocs(); the hub tries README.de.md before
   README.md when locale='de'.

2. 'Keine Treffer' flickered on every keystroke. _onAskTyping
   used to call _runSearch synchronously per character — a
   short 2-3-letter substring matched nothing, so the empty-
   state showed for a frame, then the next character revealed
   results. Add a 250ms typing debounce (Timer + cancel on
   dispose) so the search only re-runs once typing pauses.

3. Submit button did substring search even when System-AI was
   enabled — the _looksLikeQuestion heuristic only routed
   4+-word / question-mark queries through the LLM. The user
   reasonably expected an explicit submit (with the AI-icon
   showing on the button) to actually use AI. New behaviour:
   when system-AI is enabled, the submit button always calls
   _runAiQuery; live-typing keeps substring filtering. The
   heuristic helper was removed (now unused).

Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
2026-05-24 22:07:40 +02:00
..
approvals.dart feat(studio): operator QoL — flow runnability, audit grouping, batch approvals, welcome celebration (v0.42.0) 2026-05-09 11:24:57 +02:00
audit.dart feat(studio): operator QoL — flow runnability, audit grouping, batch approvals, welcome celebration (v0.42.0) 2026-05-09 11:24:57 +02:00
doctor.dart feat(studio): @-syntax file inputs in flows, copyable doc errors, services-row overflow (v0.40.0) 2026-05-09 02:07:31 +02:00
flows.dart feat(studio): contextual "Add registry token" CTA on install auth wall (v0.46.0) 2026-05-09 19:32:13 +02:00
modules.dart feat(studio): Doctor + Modules localized + sparse-store federation nudge (v0.25.0) 2026-05-08 01:39:42 +02:00
store.dart fix(store): localised docs, debounced typing, explicit-submit always AI 2026-05-24 22:07:40 +02:00
welcome.dart fix(welcome): defer doc-load to didChangeDependencies 2026-05-23 17:47:23 +02:00