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
feat(web): update links to the Harness product page and add tests for new behavior
Dev jacob8f158bb498e9
diff --git a/desktop/lib/sharing/shared_agent_page.dart b/desktop/lib/sharing/shared_agent_page.dartindex c81ea481a..63cf1f24c 100644--- a/desktop/lib/sharing/shared_agent_page.dart+++ b/desktop/lib/sharing/shared_agent_page.dart@@ -159,8 +159,11 @@ class _SharedAgentPageState extends State<SharedAgentPage> {alignment: WrapAlignment.spaceBetween,crossAxisAlignment: WrapCrossAlignment.center,children: [+ // The product page, in a new tab: a visitor keeps the+ // harness they were shown open behind it.Link(- uri: Uri.parse('/'),+ uri: harnessAppPage,+ target: LinkTarget.blank,builder: (context, follow) => DesktopPill(label: 'Harness',quiet: true,diff --git a/desktop/lib/widgets/web_download_button.dart b/desktop/lib/widgets/web_download_button.dartindex d50ecede1..ef57ba51e 100644--- a/desktop/lib/widgets/web_download_button.dart+++ b/desktop/lib/widgets/web_download_button.dart@@ -12,6 +12,9 @@ import 'workspace_share_button.dart';Future<bool> openInNewTab(Uri uri) =>launchUrl(uri, webOnlyWindowName: '_blank');+/// The Harness product page; its download view is one query away.+final harnessAppPage = Uri.parse('https://www.autonomous.ai/harness-app');+/// The browser's consistent handoff to the existing macOS/Linux download page,/// in a new tab so the workspace stays open behind it.class WebDownloadButton extends StatelessWidget {@@ -27,8 +30,8 @@ class WebDownloadButton extends StatelessWidget {/// True fills it like Share: the bar's one filled action when Share is off.final bool prominent;- static final uri = Uri.parse(- 'https://www.autonomous.ai/harness-app?page=download',+ static final uri = harnessAppPage.replace(+ queryParameters: {'page': 'download'},);static const _text = 'Download app';diff --git a/desktop/test/shared_agent_page_test.dart b/desktop/test/shared_agent_page_test.dartindex ebc4335a5..0b5b5b470 100644--- a/desktop/test/shared_agent_page_test.dart+++ b/desktop/test/shared_agent_page_test.dart@@ -13,6 +13,8 @@ import 'package:harness/sharing/shared_agent_page.dart';import 'package:harness/sharing/shared_harness_panel.dart';import 'package:harness/shared/theme/app_theme.dart' as grid;import 'package:harness/state/app_state.dart';+import 'package:harness/widgets/web_download_button.dart';+import 'package:url_launcher/link.dart';import 'support/real_fonts.dart';@@ -113,6 +115,22 @@ void main() {});}+ testWidgets('the Harness mark opens the product page in a new tab', (+ tester,+ ) async {+ await show(tester);+ final link = tester.widget<Link>(+ find.ancestor(of: find.text('Harness'), matching: find.byType(Link)),+ );+ expect(link.uri, Uri.parse('https://www.autonomous.ai/harness-app'));+ expect(link.target, LinkTarget.blank);+ expect(+ WebDownloadButton.uri,+ Uri.parse('https://www.autonomous.ai/harness-app?page=download'),+ );+ await tester.pumpWidget(const SizedBox());+ });+testWidgets('incomplete and changed owner identities never open a viewer', (tester,) async {