The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.
TypeScript 3d-modelingagent-frameworkagent-harnessai-agentscadclaude-codecodexcoding-agentsdeveloper-toolsesp32game-developmentmcp-servermulti-agentopen-hardwareopencodeopenharnesspcbroboticsterminaltmux
Simplify welcome text and surface keyboard shortcuts (#216)
Dee6e79a6b4b530
diff --git a/desktop/design/review/welcome-minimal.png b/desktop/design/review/welcome-minimal.pngnew file mode 100644index 000000000..f4488c5ebBinary files /dev/null and b/desktop/design/review/welcome-minimal.png differdiff --git a/desktop/lib/widgets/workspace_welcome.dart b/desktop/lib/widgets/workspace_welcome.dartindex 16645a94c..5759f721b 100644--- a/desktop/lib/widgets/workspace_welcome.dart+++ b/desktop/lib/widgets/workspace_welcome.dart@@ -1,6 +1,5 @@import 'package:flutter/material.dart';-import '../core/app_version.dart';import '../shared/theme/app_theme.dart' as grid;import '../shared/theme/appearance_prefs_store.dart';import '../shared/theme/harness_background.dart';@@ -11,23 +10,16 @@ import '../shortcuts/keymap_commands.dart';import '../terminal/terminal_text.dart';/// A quiet terminal welcome. Opening a command is always an explicit action.-class WorkspaceWelcome extends StatefulWidget {+class WorkspaceWelcome extends StatelessWidget {const WorkspaceWelcome({super.key, required this.onCommand});final ValueChanged<String> onCommand;- @override- State<WorkspaceWelcome> createState() => _WorkspaceWelcomeState();-}--class _WorkspaceWelcomeState extends State<WorkspaceWelcome> {- late final _version = runningAppVersion().catchError((_) => 'development');-static const _actions = [('agent.new', 'New Harness', 'to start a new harness'),('agent.open', 'Open Harness', 'to open a harness'),- ('swarm.new', 'New Tab', 'to open a new tab'),- ('app.store', 'Harness Store', 'to explore the store'),+ ('app.store', 'Harness Store', 'to browse the harness store'),+ ('keyboard.help', 'Keyboard Shortcuts', 'to see keyboard shortcuts'),];@override@@ -86,7 +78,9 @@ class _WorkspaceWelcomeState extends State<WorkspaceWelcome> {final keyWidth = rows.map((row) => widthOf('${row.hint ?? row.label} ')).reduce((a, b) => a > b ? a : b);- final descriptionWidth = widthOf('to start a new harness');+ final descriptionWidth = rows+ .map((row) => widthOf(row.description))+ .reduce((a, b) => a > b ? a : b);final line = MediaQuery.textScalerOf(context).scale(style.fontSize!) * 1.5;return Material(key: const ValueKey('workspace-welcome'),@@ -122,17 +116,12 @@ class _WorkspaceWelcomeState extends State<WorkspaceWelcome> {children: [const Text('HARNESS'),SizedBox(height: line),- FutureBuilder<String>(- future: _version,- builder: (context, snapshot) =>- Text('version ${snapshot.data ?? '…'}'),- ),- const Text('Open source software and hardware'),- SizedBox(height: line * 2),+ const Text('Follow your curiosity.'),+ SizedBox(height: line),for (final row in rows)TextButton(key: ValueKey('welcome-${row.command}'),- onPressed: () => widget.onCommand(row.command),+ onPressed: () => onCommand(row.command),style: TextButton.styleFrom(foregroundColor: ink,textStyle: style,@@ -182,7 +171,7 @@ class _WorkspaceWelcomeState extends State<WorkspaceWelcome> {bottom: 16,child: TextButton.icon(key: const ValueKey('welcome-customize'),- onPressed: () => widget.onCommand('app.customize'),+ onPressed: () => onCommand('app.customize'),icon: const Icon(Icons.edit_outlined, size: 18),label: const Text('Customize Harness'),style: TextButton.styleFrom(diff --git a/desktop/test/terminal_ui_typography_test.dart b/desktop/test/terminal_ui_typography_test.dartindex 068892e62..20e456d9a 100644--- a/desktop/test/terminal_ui_typography_test.dart+++ b/desktop/test/terminal_ui_typography_test.dart@@ -119,11 +119,9 @@ void main() {/// The welcome page is terminal text: the terminal's face at its size.void checkWelcome(WidgetTester tester) {- final line = tester.widget<Text>(- find.text('Open source software and hardware'),- );+ final line = tester.widget<Text>(find.text('Follow your curiosity.'));final style = DefaultTextStyle.of(- tester.element(find.text('Open source software and hardware')),+ tester.element(find.text('Follow your curiosity.')),).style.merge(line.style);expect(style.fontSize, terminalFontStore.size);expect(style.fontFamily, terminalFontStore.value.fontFamily);diff --git a/desktop/test/welcome_wallpaper_shortcuts_test.dart b/desktop/test/welcome_wallpaper_shortcuts_test.dartindex 779fcb020..cc9ffefc7 100644--- a/desktop/test/welcome_wallpaper_shortcuts_test.dart+++ b/desktop/test/welcome_wallpaper_shortcuts_test.dart@@ -16,7 +16,6 @@ import 'package:harness/shortcuts/shortcuts_browser.dart';import 'package:harness/terminal/terminal_text.dart';import 'package:harness/widgets/shortcuts_sheet.dart';import 'package:harness/widgets/workspace_welcome.dart';-import 'package:package_info_plus/package_info_plus.dart';import 'package:xterm/xterm.dart';import 'keymap_host_test.dart' show MemoryKeymap, key;@@ -43,13 +42,6 @@ void main() {savedFont = terminalFontStore.value;savedAppearance = appearancePrefsStore.value;appearancePrefsStore.value = const AppearancePrefs();- PackageInfo.setMockInitialValues(- appName: 'Harness',- packageName: 'ai.autonomous.harness',- version: '1.1.25',- buildNumber: '25',- buildSignature: '',- );});tearDown(() {grid.AppTheme.brightness.value = savedBrightness;diff --git a/desktop/test/workspace_start_guide_test.dart b/desktop/test/workspace_start_guide_test.dartindex 5cee1e33f..7a024868f 100644--- a/desktop/test/workspace_start_guide_test.dart+++ b/desktop/test/workspace_start_guide_test.dart@@ -23,7 +23,6 @@ import 'package:harness/widgets/harness_customize_pane.dart';import 'package:harness/settings/appearance/wallpaper_section.dart';import 'package:harness/widgets/workspace_start_guide.dart';import 'package:harness/widgets/workspace_welcome.dart';-import 'package:package_info_plus/package_info_plus.dart';import 'package:xterm/xterm.dart';import 'keymap_host_test.dart' show MemoryKeymap, key;@@ -126,13 +125,6 @@ Future<void> _mount(void main() {setUp(() {newHarnessOpensInBox = true;- PackageInfo.setMockInitialValues(- appName: 'Harness',- packageName: 'ai.autonomous.harness',- version: '1.1.25',- buildNumber: '1',- buildSignature: '',- );});tearDown(() => newHarnessOpensInBox = false);@@ -144,7 +136,7 @@ void main() {await _mount(tester, app);final search = find.byKey(const ValueKey('swarm-search-input'));expect(find.byType(WorkspaceWelcome), findsOneWidget);- expect(find.text('version 1.1.25'), findsOneWidget);+ expect(find.text('Follow your curiosity.'), findsOneWidget);expect(find.byType(NewHarnessBox), findsNothing);expect(search, findsNothing);await key(tester, LogicalKeyboardKey.keyN, cmd: true);@@ -154,7 +146,7 @@ void main() {await key(tester, LogicalKeyboardKey.keyT, cmd: true);final tab = app.activeSwarmId;expect(find.byType(WorkspaceWelcome), findsOneWidget);- expect(find.text('version 1.1.25'), findsOneWidget);+ expect(find.text('Follow your curiosity.'), findsOneWidget);expect(search, findsNothing);await tester.tap(find.byKey(const ValueKey('welcome-agent.open')));await tester.pump();