mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-10-30 17:27:09 +00:00
feat(studio): all panels move onto the dockable, persisted layout (#4192)
* feat(studio): every Studio panel is a dock panel and the shell moves onto it
EditorShell, App.tsx, the left and right panel columns, and the
inspector hooks now render through Dock.Panel instead of the old
fixed-width sidebars and split-pane inspector. usePanelLayout becomes
a thin facade over the dock store; fitPanels, the resize divider and
the split-inspector hook are dead and removed.
* refactor(studio): drop dead inspector flags and stale fallow entries after dock migration
Collapse inspectorButtonActive into inspectorPanelActive, remove unread
layers/design active fields, un-export unused prop types, flatten a nested
ternary, and point fallow ignores at the renamed/deleted files.
* fix(studio): keep right-panel behaviours the dock migration dropped
Block params dismiss on selection or when Design is hidden, the slideshow
panel can be closed, the selection outline follows the inspector intent,
caption editing focuses Design, and a URL slideshow tab opens once the
panel exists.
* refactor(studio): name the inspector-open state once in the header
* fix(studio): right-panel behaviours survive selection, restore and reopen after the dock migration
Block params stay open over an element that was already selected, caption mode wins over block params, the slideshow panel waits for the dock, the Renders tab title survives a reopen, each side column remembers the tab it last showed, tab switches are reported only when the tab changes, and the e2e thumbnail selector follows the dock.
* docs(studio): describe the dock layout and point comments at the renamed right panels
* fix(studio): block params survive a preview reload of the selected element, and panel titles are covered
The dismissal compares the selected element by its target key instead of object identity, because a preview reload rebuilds the selection for the same element. A closed and reopened panel keeps its custom title, with a test, and the e2e selector is formatted.
* fix(studio): block params leave with any other tab pick, and a restored slideshow placement survives loading
Block params are now dismissed by the tab setter the way their old tab was, including a re-pick of the same element, instead of by comparing selections. The slideshow panel is only closed after a file that was a slideshow stops being one, so a restored layout is not discarded while the file loads.
* refactor(studio): drop the duplicate inspector-open computation
The rebase onto main left two identical inspectorButtonActive/inspectorOpen
constants after a conflict resolution; only the first was still referenced.
* chore(studio): allow the dock migration deletions in the guard
StudioLeftSidebar.tsx, LeftSidebar.tsx and its storage test,
TimelineResizeDivider.tsx, useInspectorSplitResize.ts and fitPanels
are replaced by the dock; the CI deletion guard needs each named
with its reason.
* style(studio): oxfmt the deletion-guard entries
* fix(studio): rename Timeline's aria-label so it does not collide with its dock panel wrapper
Every dock panel wrapper now carries aria-label=<title>, matching the "Timeline"
title for the timeline panel. Timeline.tsx also set aria-label="Timeline" on its
own content div, so `document.querySelector('[aria-label=\"Timeline\"]')` found
the dock wrapper first and the timeline viewport gate CI check timed out waiting
for an attribute the real content div actually carried. Renamed to "Timeline
track view" and updated every consumer: the production diagnostics selector,
its tests, and the e2e viewport-gate script.
* fix(studio): restore inspectorButtonActive as a real prop after a rebase regression
Rebasing PR2 onto main replayed an older local commit whose diff did not
textually overlap main's newer inspectorButtonActive prop, so git applied
it with no conflict marker and silently reverted the header to computing
the value itself instead of receiving it. StudioHeader.dom.test.tsx already
asserts the prop is respected; restoring it makes that test meaningful
again. App.tsx now computes it once (panelLayout.rightCollapsed is already
the dock's effective collapse state, no separate railed-by-width case) and
passes it down.
* chore(studio): wrap a long doc comment in useRightPanelIntents
This commit is contained in:
@@ -32,8 +32,10 @@ npx hyperframes preview
|
||||
|
||||
- **Preview** shows the built project. The live frame is in the middle, the
|
||||
timeline is below, project tools are on the left, and the Inspector is on the
|
||||
right.
|
||||
- **Code**, **Comps**, **Assets**, and **Catalog** expose the project source,
|
||||
right. Drag any panel tab to move it, and use **Window** in the header to
|
||||
reopen a closed panel or reset the layout. Studio remembers your layout for
|
||||
each project.
|
||||
- **Code**, **Compositions**, **Assets**, and **Catalog** expose the project source,
|
||||
compositions, media, and reusable visuals. **Design**, **Layers**,
|
||||
**Variables**, and **Renders** control the selected work.
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ the surfaces without exporting or converting the project.
|
||||
|
||||
## Make a focused source edit
|
||||
|
||||
1. Open **Code** in the left sidebar.
|
||||
1. Open **Code** in the left panel column.
|
||||
2. Select the exact file in the project tree.
|
||||
3. Find the value responsible for the visible result.
|
||||
4. Make one focused change.
|
||||
@@ -68,7 +68,7 @@ must remain true.
|
||||
|
||||
## Run Studio Lint
|
||||
|
||||
Choose **Lint** at the bottom of the left sidebar. Studio opens **HyperFrame
|
||||
Choose **Lint** at the bottom of the left panel column. Studio opens **HyperFrame
|
||||
Lint Results** with errors, warnings, file locations, and fix hints when they
|
||||
are available.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user