Add first-run walkthrough

Guide new users through connecting a server, configuring an agent harness, starting runs, and chatting with agents. Persist completion per device and offer the walkthrough again for empty servers or from Settings, with widget coverage and implementation notes.
This commit is contained in:
2026-11-12 02:23:15 +00:00
parent 2330f50268
commit 30ba70ade8
14 changed files with 1430 additions and 26 deletions
@@ -13,4 +13,5 @@ abstract final class SettingsKeys {
static const keyboardShortcuts = ValueKey<String>(
'settings.keyboardShortcuts',
);
static const walkthrough = ValueKey<String>('settings.walkthrough');
}
@@ -37,6 +37,7 @@ import 'server_connections.dart';
import 'saved_servers_section.dart';
import 'managed_connection_section.dart';
import 'settings_keyboard_shortcuts_section.dart';
import 'settings_walkthrough_section.dart';
part 'settings_topic_pages.dart';
@@ -85,7 +85,10 @@ extension _SettingsTopicPages on _SettingsScreenState {
SettingsGroup(
title: 'Help',
leadingRows: true,
children: const [SettingsKeyboardShortcutsSection()],
children: const [
SettingsKeyboardShortcutsSection(),
SettingsWalkthroughSection(),
],
),
if (widget.onOpenSchedules case final open?)
SettingsGroup(
@@ -0,0 +1,23 @@
import 'package:flutter/material.dart';
import '../walkthrough/first_run_walkthrough.dart';
import 'settings_keys.dart';
import 'settings_row.dart';
/// Reopens the first-run walkthrough. It only shows the walkthrough; it never
/// changes the device's seen record.
class SettingsWalkthroughSection extends StatelessWidget {
const SettingsWalkthroughSection({super.key});
@override
Widget build(BuildContext context) => SettingsRow(
key: SettingsKeys.walkthrough,
leading: const Icon(Icons.school_outlined),
title: const Text('Show the walkthrough'),
subtitle: const Text(
'Four short steps: connect, set up an agent, run, chat.',
),
chevron: true,
onTap: () => showFirstRunWalkthrough(context),
);
}