Skip to content

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.

Restore illustrated Discover and keep demos in Featured (#210)

Deed5fec7c7b2c1
diff --git a/desktop/assets/store/README.md b/desktop/assets/store/README.md
index bdda1486c..7e0554f31 100644
--- a/desktop/assets/store/README.md
+++ b/desktop/assets/store/README.md
@@ -10,8 +10,8 @@ in the local machine's catalog.
`editorial-*.png` are eleven original illustrations generated with the built-in
imagegen tool. The exact prompts and file mapping are in
[`editorial-prompts.json`](../../tool/store_artwork/editorial-prompts.json).
-Discover uses three illustrated features (coding, 3D design, circuits) when the catalog
-has no recorded examples; each discipline uses one feature. Catalog rows use app icons.
+Discover uses three illustrated features (coding, 3D design, circuits); each discipline
+uses one feature. Recordings have their own Featured tab. Catalog rows use app icons.
These illustrations depict a craft,
not an app screenshot or a claimed agent result.
diff --git a/desktop/design/review/store-discover.png b/desktop/design/review/store-discover.png
index bb6d74991..5856a234c 100644
Binary files a/desktop/design/review/store-discover.png and b/desktop/design/review/store-discover.png differ
diff --git a/desktop/design/review/store-featured.png b/desktop/design/review/store-featured.png
index d6edcf8ec..05a551bb2 100644
Binary files a/desktop/design/review/store-featured.png and b/desktop/design/review/store-featured.png differ
diff --git a/desktop/lib/store/store_discover.dart b/desktop/lib/store/store_discover.dart
index 5fd5521e9..9236b1174 100644
--- a/desktop/lib/store/store_discover.dart
+++ b/desktop/lib/store/store_discover.dart
@@ -12,10 +12,9 @@ import 'store_explore_widgets.dart';
import 'store_featured_art.dart';
import 'store_listing.dart';
import 'store_models.dart';
-import 'store_sessions.dart';
-/// Recorded sessions lead discovery whenever the live catalog provides them.
-/// Older catalogs still have the editorial invitations and ordinary collections.
+/// Three editorial features invite exploration before the icon collections. The catalog itself
+/// uses the same recognizable icons and rows as categories and search.
class StoreDiscover extends StatelessWidget {
const StoreDiscover({
super.key,
@@ -26,7 +25,6 @@ class StoreDiscover extends StatelessWidget {
required this.onCategory,
required this.onAll,
required this.onEngines,
- required this.onSessions,
});
final List<DshEntry> entries;
@@ -36,13 +34,11 @@ class StoreDiscover extends StatelessWidget {
final ValueChanged<String> onCategory;
final VoidCallback onAll;
final VoidCallback onEngines;
- final VoidCallback onSessions;
@override
Widget build(BuildContext context) {
grid.AppTheme.watch(context);
final byId = {for (final entry in entries) entry.id: entry};
- final sessions = storeRecordedSessions(entries);
// Editorial stories share an art direction and open actual catalog entries.
final features = [
?(byId['codex'] ?? byId['claude']),
@@ -96,35 +92,7 @@ class StoreDiscover extends StatelessWidget {
color: grid.AppPalette.textPrimary,
),
),
- if (sessions.isNotEmpty) ...[
- const SizedBox(height: 24),
- StoreExploreHeading(
- title: 'Featured harnesses',
- subtitle: 'Watch a real session. Find something you want to make.',
- action: 'See all ${sessions.length}',
- onAction: onSessions,
- ),
- const SizedBox(height: 20),
- StoreSessionGrid(
- sessions: sessions.take(6).toList(),
- onOpen: onOpen,
- ),
- const SizedBox(height: 12),
- Align(
- alignment: Alignment.centerLeft,
- child: TextButton.icon(
- key: const ValueKey('store-all-sessions'),
- onPressed: onSessions,
- style: TextButton.styleFrom(
- foregroundColor: grid.AppPalette.accentOnSurface,
- ),
- icon: const Icon(LucideIcons.play300, size: 15),
- label: Text(
- 'Explore all ${sessions.length} featured harnesses',
- ),
- ),
- ),
- ] else if (features.isNotEmpty) ...[
+ if (features.isNotEmpty) ...[
const SizedBox(height: 24),
LayoutBuilder(
builder: (context, constraints) {
diff --git a/desktop/lib/store/store_screen.dart b/desktop/lib/store/store_screen.dart
index 9d8c0d314..c8cab18c6 100644
--- a/desktop/lib/store/store_screen.dart
+++ b/desktop/lib/store/store_screen.dart
@@ -548,8 +548,6 @@ class _StoreTabState extends State<StoreTab> {
onCategory: (name) =>
_show(_Category(name)),
onAll: () => _show(const _All()),
- onSessions: () =>
- _show(const _Sessions()),
onEngines: () =>
_show(const _Category('Coding')),
)
diff --git a/desktop/lib/store/store_sessions.dart b/desktop/lib/store/store_sessions.dart
index 8c20af024..eee041da5 100644
--- a/desktop/lib/store/store_sessions.dart
+++ b/desktop/lib/store/store_sessions.dart
@@ -9,7 +9,7 @@ import 'store_editorial.dart';
import 'store_listing.dart';
/// A permanent way to browse the catalog's recordings, including sessions that
-/// arrive after this desktop release. The same cards lead Discover.
+/// arrive after this desktop release. Discover keeps its editorial illustrations.
class StoreSessions extends StatelessWidget {
const StoreSessions({
super.key,
diff --git a/desktop/test/store_discover_test.dart b/desktop/test/store_discover_test.dart
index 90d27c1a3..5cd0abc9c 100644
--- a/desktop/test/store_discover_test.dart
+++ b/desktop/test/store_discover_test.dart
@@ -557,66 +557,84 @@ void main() {
(1440.0, 1.0, Brightness.light),
(760.0, 1.5, Brightness.dark),
]) {
- testWidgets('recorded discovery fits $width at $scale in ${brightness.name}', (
- tester,
- ) async {
- final entries = _recordedCatalog();
- await _cacheRecordingPosters(tester, entries);
- final (_, key) = await _open(
- tester,
- entries: entries,
- width: width,
- height: 1080,
- scale: scale,
- brightness: brightness,
- );
- expect(find.text('Featured harnesses'), findsOneWidget);
- expect(find.text('See all 8'), findsOneWidget);
- expect(find.byType(StoreFeaturedArt), findsNothing);
- expect(find.byType(WebViewWidget), findsNothing);
- for (final entry in entries) {
- final card = find.byKey(ValueKey('store-session:${entry.id}'));
- if (card.evaluate().isEmpty) continue;
- final poster = tester.widget<Image>(
- find.descendant(
- of: card,
- matching: find.byWidgetPredicate(
- (widget) => widget is Image && widget.image is NetworkImage,
+ testWidgets(
+ 'illustrated Discover and Featured fit $width at $scale in ${brightness.name}',
+ (tester) async {
+ final entries = _recordedCatalog();
+ await _cacheRecordingPosters(tester, entries);
+ final (_, key) = await _open(
+ tester,
+ entries: [
+ ..._catalog.where(
+ (entry) => !entries.any((recorded) => recorded.id == entry.id),
),
- ),
+ ...entries,
+ ],
+ width: width,
+ height: 1080,
+ scale: scale,
+ brightness: brightness,
);
- expect((poster.image as NetworkImage).url, entry.examples.first.image);
- expect(poster.fit, BoxFit.contain);
- }
- await _capture(
- tester,
- key,
- 'featured-${width.toInt()}-${brightness.name}-${scale.toStringAsFixed(1)}',
- );
- await tester.tap(find.text('See all 8'));
- await tester.pumpAndSettle();
- for (final entry in entries) {
+ expect(find.text('Featured harnesses'), findsNothing);
+ expect(find.text('See all 8'), findsNothing);
+ expect(find.byType(StoreFeaturedArt), findsNWidgets(3));
expect(
- find.byKey(ValueKey('store-session:${entry.id}')),
- findsOneWidget,
+ find.byKey(const ValueKey('store-session:autonomous/blender')),
+ findsNothing,
);
- expect(find.text(entry.examples.first.caption!), findsOneWidget);
- }
- expect(
- tester
- .widget<SidebarItem>(
- find.byKey(const ValueKey('store-shelf-sessions')),
- )
- .selected,
- isTrue,
- );
- await _capture(
- tester,
- key,
- 'featured-all-${width.toInt()}-${brightness.name}-${scale.toStringAsFixed(1)}',
- );
- expect(tester.takeException(), isNull);
- });
+ expect(find.byType(WebViewWidget), findsNothing);
+ await _capture(
+ tester,
+ key,
+ 'restored-discover-${width.toInt()}-${brightness.name}-${scale.toStringAsFixed(1)}',
+ );
+ // Discover's illustrations may evict posters that are not visible yet.
+ await _cacheRecordingPosters(tester, entries);
+ await tester.tap(find.byKey(const ValueKey('store-shelf-sessions')));
+ await tester.pumpAndSettle();
+ expect(find.text('Featured harnesses'), findsOneWidget);
+ expect(find.text('Preview unavailable'), findsNothing);
+ expect(find.byType(StoreFeaturedArt), findsNothing);
+ for (final entry in entries) {
+ final card = find.byKey(ValueKey('store-session:${entry.id}'));
+ if (card.evaluate().isEmpty) continue;
+ final poster = tester.widget<Image>(
+ find.descendant(
+ of: card,
+ matching: find.byWidgetPredicate(
+ (widget) => widget is Image && widget.image is NetworkImage,
+ ),
+ ),
+ );
+ expect(
+ (poster.image as NetworkImage).url,
+ entry.examples.first.image,
+ );
+ expect(poster.fit, BoxFit.contain);
+ }
+ for (final entry in entries) {
+ expect(
+ find.byKey(ValueKey('store-session:${entry.id}')),
+ findsOneWidget,
+ );
+ expect(find.text(entry.examples.first.caption!), findsOneWidget);
+ }
+ expect(
+ tester
+ .widget<SidebarItem>(
+ find.byKey(const ValueKey('store-shelf-sessions')),
+ )
+ .selected,
+ isTrue,
+ );
+ await _capture(
+ tester,
+ key,
+ 'featured-all-${width.toInt()}-${brightness.name}-${scale.toStringAsFixed(1)}',
+ );
+ expect(tester.takeException(), isNull);
+ },
+ );
}
testWidgets('featured recordings play on demand and open the right harness', (
@@ -625,6 +643,8 @@ void main() {
final entries = _recordedCatalog();
final (app, _) = await _open(tester, entries: entries);
final initialSwarms = app.swarms.length;
+ await tester.tap(find.byKey(const ValueKey('store-shelf-sessions')));
+ await tester.pumpAndSettle();
expect(find.byType(StoreDemoDialog), findsNothing);
await tester.tap(
find.byKey(const ValueKey('store-session-watch:autonomous/blender')),
@@ -653,8 +673,6 @@ void main() {
await tester.tap(find.byKey(const ValueKey('store-back')));
await tester.pumpAndSettle();
expect(find.text('Featured harnesses'), findsOneWidget);
- await tester.tap(find.text('See all 8'));
- await tester.pumpAndSettle();
await tester.ensureVisible(
find.byKey(const ValueKey('store-session-open:autonomous/rdkit')),
);
@@ -687,7 +705,7 @@ void main() {
'featured shelf follows catalog publications and removals while open',
(tester) async {
final (app, _) = await _open(tester, entries: _recordedCatalog());
- await tester.tap(find.text('See all 8'));
+ await tester.tap(find.byKey(const ValueKey('store-shelf-sessions')));
await tester.pumpAndSettle();
const newcomer = DshEntry(
id: 'community/after-release',
diff --git a/desktop/test/store_viewers_test.dart b/desktop/test/store_viewers_test.dart
index 6e6d9e3be..f4c1236a5 100644
--- a/desktop/test/store_viewers_test.dart
+++ b/desktop/test/store_viewers_test.dart
@@ -173,7 +173,6 @@ void main() {
await _show(
tester,
StoreDiscover(
- onSessions: () {},
entries: const [
DshEntry(
id: 'autonomous/strudel',
diff --git a/store/README.md b/store/README.md
index 10c2f44d5..46534bd40 100644
--- a/store/README.md
+++ b/store/README.md
@@ -154,13 +154,13 @@ whole native pane, and stops when the recording closes. Older clients keep showi
and picture. The eight hands-on recordings reuse their original PNG/MP4 assets in `docs/images/`
rather than the JPEG convention above.
-Recordings also lead the desktop Store's **Discover** page under **Featured harnesses**
-and appear on the **Featured** shelf.
+Recordings appear in the desktop Store's **Featured** tab. **Discover** keeps its
+illustrated editorial features.
To join that collection, publish an example with both an HTTPS `image` poster and an HTTPS
`video`. The first complete recording per harness is used; the card shows the harness's
`tagline` and the recording's `caption`, with Watch session and Explore harness actions.
-Use the caption to identify the actual result and any demo limitations. The Discover preview
-mixes disciplines and links to the full collection; new catalog recordings join automatically
+Use the caption to identify the actual result and any demo limitations. The Featured tab
+mixes disciplines and shows the full collection; new catalog recordings join automatically
on clients with this discovery UI. No per-harness desktop artwork or ID list is needed.
Example prompts and captions are searchable too.