Skip to content

Commit 912c0ea

Browse files
deepshekhardassamejr
andcommitted
fix(webapp): animated resizable panel pattern for route components
Squashed rebase of pr-3319-fix onto official/main. Co-authored-by: James Ritchie <james@trigger.dev>
1 parent 04f9c4e commit 912c0ea

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@trigger.dev/core": patch
3+
"@trigger.dev/sdk": patch
4+
---
5+
6+
Feat(webapp): animated resizable panel
7+
8+
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).

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.logs/route.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ function LogsList({
412412
const frozenLogId = useFrozenValue(selectedLogId);
413413
const frozenLog = useFrozenValue(selectedLog);
414414
const displayLogId = selectedLogId ?? frozenLogId;
415-
const displayLog = selectedLog ?? frozenLog ?? undefined;
415+
const displayLog = selectedLog ?? frozenLog;
416416

417417
const updateUrlWithLog = useCallback((logId: string | undefined) => {
418418
const url = new URL(window.location.href);

0 commit comments

Comments
 (0)