Skip to content

Start experiences directly in chat and simplify the gallery - #994

Merged
sidneyswift merged 5 commits into
mainfrom
codex/mcp-remove-toolbar
Oct 10, 2026
Merged

sidneyswift merged 5 commits into
mainfrom
codex/mcp-remove-toolbar

Conversation

@sidneyswift

@sidneyswift sidneyswift commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Clicking an experience now sends its workflow directly to the host conversation instead of opening a generic brief modal. The agent uses existing context and asks only for missing essentials. Both thumbnail and expanded-card clicks share the handoff, with duplicate-click protection and retry feedback.

Also removes the gallery toolbar, reuses playing videos during hover expansion, and improves hover responsiveness. Keyboard focus can expand the preview without interrupting pointer clicks.

Validation: 10 UI unit tests pass; UI ESLint, bundle compilation, and diff checks pass. Pointer and keyboard activation verified in the local preview with a simulated host. Live ChatGPT handoff has not yet been verified.

@vercel

vercel Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
api Ready Ready Preview Oct 10, 2026 1:13pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Repository: recoupable/api/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 97b2d3e4-996c-47ad-bc4a-402dff0748ff

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 issues found across 1 file

Confidence score: 3/5

  • In ui/recoup/main.ts, removing search and filters means users can no longer narrow the catalog, and the tests don’t cover the changed DOM behavior. Add a regression test for the new gallery behavior.
  • The UI README still promises category filters and catalog search and asks reviewers to verify search. Update it to describe the no-search gallery.
Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="ui/recoup/main.ts">

<violation number="1" location="ui/recoup/main.ts:36">
P3: The UI README still promises category filters and catalog search, and its deployment checklist still asks reviewers to verify search. Update it to describe the no-search gallery.</violation>

<violation number="2" location="ui/recoup/main.ts:36">
P2: Custom agent: **Flag AI Slop and Fabricated Changes**

This PR removes the search/filter UI and makes `renderCards` always render `features`, but the extension tests do not assert either changed DOM behavior. Add a regression test for the absent search controls and full catalog rendering, or extract a testable renderer.</violation>
</file>
Architecture diagram
sequenceDiagram
    participant UI as DOM Render
    participant Cards as Experience Cards
    participant Detail as Feature Dialog
    participant Video as Video Observer
    
    Note over UI,Cards: Simplified Experience Rendering Flow
    
    UI->>Cards: Initial render with full catalog
    Cards->>Cards: Pause existing videos
    Cards->>Cards: Map features to card elements
    Cards->>Cards: Group experience cards
    Cards->>Video: Attach video elements and observers
    Video->>Video: IntersectionObserver watches cards
    
    alt User hovers card
        Cards->>Detail: Show feature dialog
        Detail->>Video: Pause previews (syncMotion)
    end
    
    alt User clicks Pause previews button
        UI->>Video: Toggle preview pause state
        Video->>Video: Sync with reduced motion preference
    end
    
    Note over UI,Cards: Dialog and host bridge interactions
    Detail->>UI: Open feature workflow
    UI->>UI: Setup host bridge connection from card interaction
Loading

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

Comment thread ui/recoup/main.ts
const filtered = filterWorkflows(query, category);
cards.innerHTML =
filtered
features

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Custom agent: Flag AI Slop and Fabricated Changes

This PR removes the search/filter UI and makes renderCards always render features, but the extension tests do not assert either changed DOM behavior. Add a regression test for the absent search controls and full catalog rendering, or extract a testable renderer.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At ui/recoup/main.ts, line 36:

<comment>This PR removes the search/filter UI and makes `renderCards` always render `features`, but the extension tests do not assert either changed DOM behavior. Add a regression test for the absent search controls and full catalog rendering, or extract a testable renderer.</comment>

<file context>
@@ -35,15 +32,14 @@ const observer = new IntersectionObserver(
-  const filtered = filterWorkflows(query, category);
   cards.innerHTML =
-    filtered
+    features
       .map(
         f =>
</file context>

Comment thread ui/recoup/main.ts
const filtered = filterWorkflows(query, category);
cards.innerHTML =
filtered
features

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: The UI README still promises category filters and catalog search, and its deployment checklist still asks reviewers to verify search. Update it to describe the no-search gallery.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At ui/recoup/main.ts, line 36:

<comment>The UI README still promises category filters and catalog search, and its deployment checklist still asks reviewers to verify search. Update it to describe the no-search gallery.</comment>

<file context>
@@ -35,15 +32,14 @@ const observer = new IntersectionObserver(
-  const filtered = filterWorkflows(query, category);
   cards.innerHTML =
-    filtered
+    features
       .map(
         f =>
</file context>

@sidneyswift sidneyswift changed the title Remove experience library heading and search toolbar Simplify the experience gallery and improve hover responsiveness Oct 10, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 issues found across 1 file (changes from recent commits).

Confidence score: 3/5

  • The moved card video is no longer covered by syncMotion(), and hide() restores it without pausing, so it can keep playing after the preview closes even when previews are marked paused. Keep it in the pause/resume lifecycle and pause it on hide.
  • There’s no regression test for moving and restoring the live video or for the timing changes in createExperienceHover.ts, so lifecycle regressions could slip through. Add coverage for those behaviors.
Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="ui/recoup/createExperienceHover.ts">

<violation number="1" location="ui/recoup/createExperienceHover.ts:20">
P2: Custom agent: **Flag AI Slop and Fabricated Changes**

This behavior-changing hover lifecycle has no regression test: the new code moves the live video into the panel and restores it on hide, while also changing timing and playback handling. Add a Vitest test that asserts the same video node moves into the panel and returns to its card after hiding.</violation>

<violation number="2" location="ui/recoup/createExperienceHover.ts:49">
P2: Moving the card video out of `cards` makes `syncMotion()` miss it when the footer toggles “Pause previews”; `hide()` restores it without pausing, so it can keep playing after the preview closes despite the paused state. Keep the relocated video in the pause/resume path.</violation>
</file>

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

if (source) {
videoHome = document.createComment("preview video home");
source.replaceWith(videoHome);
panel.querySelector(".hover-thumbnail")!.prepend(source);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Moving the card video out of cards makes syncMotion() miss it when the footer toggles “Pause previews”; hide() restores it without pausing, so it can keep playing after the preview closes despite the paused state. Keep the relocated video in the pause/resume path.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At ui/recoup/createExperienceHover.ts, line 49:

<comment>Moving the card video out of `cards` makes `syncMotion()` miss it when the footer toggles “Pause previews”; `hide()` restores it without pausing, so it can keep playing after the preview closes despite the paused state. Keep the relocated video in the pause/resume path.</comment>

<file context>
@@ -35,7 +40,15 @@ export function createExperienceHover(container: HTMLElement, openFeature: (id:
+    if (source) {
+      videoHome = document.createComment("preview video home");
+      source.replaceWith(videoHome);
+      panel.querySelector(".hover-thumbnail")!.prepend(source);
+      liveVideo = source;
+    }
</file context>

panel.getAnimations().forEach(animation => animation.cancel());
panel.querySelector("video")?.pause();
panel.getAnimations({ subtree: true }).forEach(animation => animation.cancel());
if (videoHome && liveVideo) videoHome.replaceWith(liveVideo);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Custom agent: Flag AI Slop and Fabricated Changes

This behavior-changing hover lifecycle has no regression test: the new code moves the live video into the panel and restores it on hide, while also changing timing and playback handling. Add a Vitest test that asserts the same video node moves into the panel and returns to its card after hiding.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At ui/recoup/createExperienceHover.ts, line 20:

<comment>This behavior-changing hover lifecycle has no regression test: the new code moves the live video into the panel and restores it on hide, while also changing timing and playback handling. Add a Vitest test that asserts the same video node moves into the panel and returns to its card after hiding.</comment>

<file context>
@@ -11,11 +11,15 @@ export function createExperienceHover(container: HTMLElement, openFeature: (id:
-    panel.getAnimations().forEach(animation => animation.cancel());
-    panel.querySelector("video")?.pause();
+    panel.getAnimations({ subtree: true }).forEach(animation => animation.cancel());
+    if (videoHome && liveVideo) videoHome.replaceWith(liveVideo);
+    videoHome = null;
+    liveVideo = null;
</file context>

@sidneyswift sidneyswift changed the title Simplify the experience gallery and improve hover responsiveness Start experiences directly in chat and simplify the gallery Oct 10, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 7 files (changes from recent commits).

Confidence score: 4/5

  • cards.css is already 484 lines, and adding another rule block makes it harder to maintain under the stated file-size guideline. Move the new styles into a smaller stylesheet.
Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="ui/recoup/styles/cards.css">

<violation number="1" location="ui/recoup/styles/cards.css:470">
P2: Custom agent: **Enforce Clear Code Style and Maintainability Practices**

`cards.css` is already 484 lines, and this change adds another 16-line rule block, violating the rule's under-100-lines requirement. Move the handoff styling into a smaller, focused stylesheet and include it from the appropriate entry point.</violation>
</file>

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

line-height: 1.5;
}

.connection.handoff-active {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Custom agent: Enforce Clear Code Style and Maintainability Practices

cards.css is already 484 lines, and this change adds another 16-line rule block, violating the rule's under-100-lines requirement. Move the handoff styling into a smaller, focused stylesheet and include it from the appropriate entry point.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At ui/recoup/styles/cards.css, line 470:

<comment>`cards.css` is already 484 lines, and this change adds another 16-line rule block, violating the rule's under-100-lines requirement. Move the handoff styling into a smaller, focused stylesheet and include it from the appropriate entry point.</comment>

<file context>
@@ -466,3 +466,19 @@
   line-height: 1.5;
 }
+
+.connection.handoff-active {
+  position: fixed;
+  left: 50%;
</file context>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 3 files (changes from recent commits).

Confidence score: 3/5

  • ui/recoup/styles/responsive.css drops the heading size from 52px at 640px to 32px at 641px, creating a visible jump at the breakpoint. Align the adjacent rules to avoid the abrupt size change.
Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="ui/recoup/styles/responsive.css">

<violation number="1" location="ui/recoup/styles/responsive.css:16">
P2: Custom agent: **Flag AI Slop and Fabricated Changes**

This creates a 20px heading-size drop at the 640px breakpoint: the mobile rule resolves to 52px at 640px, but this new rule resolves to 32px at 641px. Align the adjacent breakpoint values (or retain the previous 44px behavior) and add a regression assertion for the responsive sizing.</violation>
</file>

Reply with feedback, questions, or to request a fix.

View guided diff | Turn on auto-fix | Re-trigger cubic

}
.hero h1 {
font-size: 44px;
font-size: clamp(32px, 4.4vw, 56px);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Custom agent: Flag AI Slop and Fabricated Changes

This creates a 20px heading-size drop at the 640px breakpoint: the mobile rule resolves to 52px at 640px, but this new rule resolves to 32px at 641px. Align the adjacent breakpoint values (or retain the previous 44px behavior) and add a regression assertion for the responsive sizing.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At ui/recoup/styles/responsive.css, line 16:

<comment>This creates a 20px heading-size drop at the 640px breakpoint: the mobile rule resolves to 52px at 640px, but this new rule resolves to 32px at 641px. Align the adjacent breakpoint values (or retain the previous 44px behavior) and add a regression assertion for the responsive sizing.</comment>

<file context>
@@ -13,7 +13,7 @@
   }
   .hero h1 {
-    font-size: 44px;
+    font-size: clamp(32px, 4.4vw, 56px);
   }
 }
</file context>

@sidneyswift
sidneyswift merged commit b32479d into main Oct 10, 2026
7 checks passed

This branch was successfully deployed

1 active deployment
Preview — 158c204f Deployed Oct 10, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant