-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Pr 3319 fix #3321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Pr 3319 fix #3321
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| --- | ||
| "@trigger.dev/core": patch | ||
| "@trigger.dev/sdk": patch | ||
| --- | ||
|
|
||
| Feat(webapp): animated resizable panel | ||
|
|
||
| Adds animated open/close transitions to Resizable panels using react-window-splitter built-in animation hooks. Includes new exports: RESIZABLE_PANEL_ANIMATION, collapsibleHandleClassName(), and useFrozenValue(). Converts inspector/detail side panels from conditionally-mounted to always-mounted collapsible panels across multiple routes (batches, runs, schedules, deployments, logs, waitpoints, bulk-actions). | ||
|
Comment on lines
+1
to
+8
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚩 Changeset targets @trigger.dev/core and @trigger.dev/sdk but PR only modifies webapp files The changeset at Was this helpful? React with 👍 or 👎 to provide feedback. |
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,7 +1,7 @@ | ||||||
| "use client"; | ||||||
|
|
||||||
| import React, { useRef } from "react"; | ||||||
| import { PanelGroup, Panel, PanelResizer } from "@window-splitter/react"; | ||||||
| import { PanelGroup, Panel, PanelResizer } from "react-window-splitter"; | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 Import from non-existent package The import was changed from
Suggested change
Was this helpful? React with 👍 or 👎 to provide feedback. |
||||||
| import { cn } from "~/utils/cn"; | ||||||
|
|
||||||
| const ResizablePanelGroup = ({ className, ...props }: React.ComponentProps<typeof PanelGroup>) => ( | ||||||
|
|
@@ -69,14 +69,10 @@ const ResizableHandle = ({ | |||||
| </PanelResizer> | ||||||
| ); | ||||||
|
|
||||||
| // react-window-splitter drives the collapse animation through @react-spring/rafz, | ||||||
| // which has timing/interaction issues with Firefox that produce visual glitches | ||||||
| // (alternating frames, panels stuck at min, panelHasSpace invariant violations). | ||||||
| // Disable the animation on Firefox; it works correctly in Chromium and Safari. | ||||||
| const RESIZABLE_PANEL_ANIMATION = | ||||||
| typeof navigator !== "undefined" && /firefox/i.test(navigator.userAgent) | ||||||
| ? undefined | ||||||
| : ({ easing: "ease-in-out", duration: 300 } as const); | ||||||
| const RESIZABLE_PANEL_ANIMATION = { | ||||||
| easing: "ease-in-out" as const, | ||||||
| duration: 200, | ||||||
| }; | ||||||
|
Comment on lines
+72
to
+75
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚩 Firefox animation workaround removed without explanation The previous code at Was this helpful? React with 👍 or 👎 to provide feedback. |
||||||
|
|
||||||
| const COLLAPSIBLE_HANDLE_CLASSNAME = "transition-opacity duration-200"; | ||||||
|
|
||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changeset bumps appear to target unrelated packages.
This PR’s code changes are in
apps/webapp, but the changeset bumps@trigger.dev/coreand@trigger.dev/sdk. That will trigger unnecessary package releases/changelog entries. Please retarget the changeset to the actually affected publishable package(s), or remove the changeset if this is webapp-only.