fix: onboarding checklist ticks for any installed module, not just text.*
Some checks failed
Security / Security check (push) Failing after 2s

The doc'd first install is debug.echo, but the Welcome onboarding
checklist only went green for a text.* capability — so a user
following the quickstart saw the box stay unchecked. Match any
non-system (non-built-in) capability instead.

Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
flemming-it 2026-06-13 14:44:31 +02:00
parent d0cfa5df05
commit a0007b9178

View file

@ -551,15 +551,16 @@ class _OnboardingChecklistState extends State<_OnboardingChecklist> {
.catchError((_) => false); .catchError((_) => false);
final module = hub final module = hub
.listModules() .listModules()
// ModuleSummary.name is the module identifier // "A module is installed" = any installed module providing a
// (e.g. `text-extract`, with a hyphen). The Onboarding- // non-built-in capability. We match on the capability rather
// Hinweis fragt nach einem Text-Modul das ist auf // than the module name (which is hyphenated, e.g.
// Capability-Ebene das `text.*`-Präfix (mit Punkt). // `text-extract`), and accept ANY provider so the doc'd
// Vorher haben wir den Modul-Namen geprüft und damit // first install of `debug.echo` ticks the box, not just
// nie gematcht, obwohl text-extract / text-summarize / // `text.*`. `system.*` are built-ins, not installs.
// text-translate installiert waren.
.then( .then(
(m) => m.any((x) => x.capabilities.any((c) => c.startsWith('text.'))), (m) => m.any(
(x) => x.capabilities.any((c) => !c.startsWith('system.')),
),
) )
.catchError((_) => false); .catchError((_) => false);
final flow = hub final flow = hub