fix: onboarding checklist ticks for any installed module, not just text.*
Some checks failed
Security / Security check (push) Failing after 2s
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:
parent
d0cfa5df05
commit
a0007b9178
1 changed files with 9 additions and 8 deletions
|
|
@ -551,15 +551,16 @@ class _OnboardingChecklistState extends State<_OnboardingChecklist> {
|
|||
.catchError((_) => false);
|
||||
final module = hub
|
||||
.listModules()
|
||||
// ModuleSummary.name is the module identifier
|
||||
// (e.g. `text-extract`, with a hyphen). The Onboarding-
|
||||
// Hinweis fragt nach einem Text-Modul — das ist auf
|
||||
// Capability-Ebene das `text.*`-Präfix (mit Punkt).
|
||||
// Vorher haben wir den Modul-Namen geprüft und damit
|
||||
// nie gematcht, obwohl text-extract / text-summarize /
|
||||
// text-translate installiert waren.
|
||||
// "A module is installed" = any installed module providing a
|
||||
// non-built-in capability. We match on the capability rather
|
||||
// than the module name (which is hyphenated, e.g.
|
||||
// `text-extract`), and accept ANY provider — so the doc'd
|
||||
// first install of `debug.echo` ticks the box, not just
|
||||
// `text.*`. `system.*` are built-ins, not installs.
|
||||
.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);
|
||||
final flow = hub
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue