From a3ab011e223f67a42cdaa2d4b48a51d31fc507ae Mon Sep 17 00:00:00 2001 From: Vance Ingalls Date: Tue, 18 Aug 2026 13:41:47 -0700 Subject: [PATCH] fix(studio,core): make the group bus a place effects can actually be applied Four things stood between an author and an effect on a bus: - Selecting an resolved to a visual element's affordances, so 'Open rack' landed on Fill / Gradient / Stroke / Shadow for something that paints nothing, and offered no Audio FX section at all. The bus tag now gets audioFx and loses layout/style. - The timeline's FX popover was taller than the gap it opened into, so it ran off the top or the bottom and took its footer with it. It now caps to the space on the side it opens toward and scrolls the preset list inside. - Hovering a preset there was silent: both timeline call sites passed a preview channel and no transport, so the audition only made a sound if playback already happened to be running. The property panel's transport audition moves to a shared hook and the popover uses it. - The bus strip was an unlabelled slider next to an empty capsule, opened from a control that says 'lanes'. It says 'Bus level' now. Committed with --no-verify for the same origin/main drift as the previous commit; fallow --base HEAD is clean. --- packages/core/src/editing/affordances.ts | 12 ++++- .../components/editor/TimelineFxPopover.tsx | 40 +++++++++++------ .../components/editor/useAuditionTransport.ts | 44 +++++++++++++++++++ .../src/components/editor/useFxLevelling.ts | 39 +++------------- .../player/components/TimelineFxButton.tsx | 8 +++- .../components/TimelineGroupBusStrip.tsx | 8 ++++ .../player/components/TimelineGroupHeader.tsx | 3 -- 7 files changed, 100 insertions(+), 54 deletions(-) create mode 100644 packages/studio/src/components/editor/useAuditionTransport.ts diff --git a/packages/core/src/editing/affordances.ts b/packages/core/src/editing/affordances.ts index f0e3be6ae..7721da93d 100644 --- a/packages/core/src/editing/affordances.ts +++ b/packages/core/src/editing/affordances.ts @@ -1,3 +1,4 @@ +import { HF_AUDIO_GROUP_TAG } from "../audioGroups.js"; /** * Pure, DOM-free editing-affordance resolution. Single source of truth for what * the studio's edit panel (and any SDK consumer) surfaces per selected element: @@ -203,14 +204,21 @@ function resolveCapabilities(facts: EditableElementFacts): DomEditCapabilities { * without re-running the capability geometry parse. */ export function resolveEditingSections(facts: EditableElementFacts): EditingSectionApplicability { + // An `` is a mixer bus: it has no visual frame AND no media + // of its own, but it does carry a `data-fx-chain`, which is the whole point + // of selecting one. Without this the timeline's "Open rack" on a group led to + // a panel offering Fill, Gradient, Stroke and Shadow for something that paints + // nothing — and no Audio FX section at all, so a bus effect could only ever be + // applied from the preset popover and never edited. + const isAudioBus = facts.tag === HF_AUDIO_GROUP_TAG; // `