Repository navigation
Start experiences directly in chat and simplify the gallery - #994
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
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. Comment |
There was a problem hiding this comment.
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
Reply with feedback, questions, or to request a fix.
View guided diff | Turn on auto-fix | Re-trigger cubic
| const filtered = filterWorkflows(query, category); | ||
| cards.innerHTML = | ||
| filtered | ||
| features |
There was a problem hiding this comment.
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>
| const filtered = filterWorkflows(query, category); | ||
| cards.innerHTML = | ||
| filtered | ||
| features |
There was a problem hiding this comment.
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>
There was a problem hiding this comment.
2 issues found across 1 file (changes from recent commits).
Confidence score: 3/5
- The moved card video is no longer covered by
syncMotion(), andhide()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); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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>
There was a problem hiding this comment.
1 issue found across 7 files (changes from recent commits).
Confidence score: 4/5
cards.cssis 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 { |
There was a problem hiding this comment.
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>
There was a problem hiding this comment.
1 issue found across 3 files (changes from recent commits).
Confidence score: 3/5
ui/recoup/styles/responsive.cssdrops 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); |
There was a problem hiding this comment.
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>
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.