Skip to content

internal: allow studio panel to be draggable #31747

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

Merged
merged 6 commits into from
May 23, 2025

Conversation

mabela416
Copy link
Contributor

@mabela416 mabela416 commented May 20, 2025

Additional details

  • @emilmilanov wanted the studio panel to stay at 340px min-width no matter how small the screen shrinks
  • When the window is too small, we allow the user to resize the specs and studio panels as much as they want but this will be addressed here

Steps to test

Dragging

Uploading Screen Recording 2025-05-20 at 2.26.35 PM.mov…

Screenshotting

Screen.Recording.2025-05-20.at.1.54.46.PM.mov

How has the user experience changed?

PR Tasks

@mabela416 mabela416 self-assigned this May 20, 2025
@mabela416 mabela416 linked an issue May 20, 2025 that may be closed by this pull request
Copy link

cypress bot commented May 20, 2025

cypress    Run #62598

Run Properties:  status check passed Passed #62598  •  git commit b394a876e7: Merge remote-tracking branch 'refs/remotes/origin/mabel/issue-31275-dragging-stu...
Project cypress
Branch Review mabel/issue-31275-dragging-studio-panel
Run status status check passed Passed #62598
Run duration 11m 11s
Commit git commit b394a876e7: Merge remote-tracking branch 'refs/remotes/origin/mabel/issue-31275-dragging-stu...
Committer Mabel Amaya
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 689
View all changes introduced in this branch ↗︎
UI Coverage  37.62%
  Untested elements 131  
  Tested elements 79  
Accessibility  92.36%
  Failed rules  3 critical   8 serious   1 moderate   1 minor
  Failed elements 429  

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for a draggable studio panel with a fixed minimum width of 340px. The changes include updating constants to include a minimum width for the studio panel, extending the panel resizing logic and UI to support an additional panel, and adding tests for the new panel functionality.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
packages/app/src/runner/runner-constants.ts Adds a new constant for the studio panel's minimum width
packages/app/src/runner/SpecRunnerOpenMode.vue Introduces new props for studio panel dimensions and updates panel visibility logic
packages/app/src/runner/ResizablePanels.vue Implements resizing functionality and event handling for the studio panel (panel4)
packages/app/src/runner/ResizablePanels.cy.tsx Adds tests verifying panel resizing behavior including the studio panel
Comments suppressed due to low confidence (1)

packages/app/src/runner/ResizablePanels.cy.tsx:8

  • The tests reference runnerConstants.defaultStudioWidth, but the constants file only defines absoluteStudioMinimum. Ensure that a defaultStudioWidth property is defined in runnerConstants or update references accordingly.
const defaultPanel4Width = runnerConstants.defaultStudioWidth

mabela416 added 2 commits May 21, 2025 14:43
…ragging-studio-panel' into mabel/issue-31275-dragging-studio-panel
Copy link
Contributor

@astone123 astone123 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this works well for me - definitely a good first step for improving the user experience 👍🏻

@mabela416 mabela416 merged commit cf2525d into develop May 23, 2025
91 checks passed
@mabela416 mabela416 deleted the mabel/issue-31275-dragging-studio-panel branch May 23, 2025 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Studio: Studio panel should allow dragging to wider/smaller widths
2 participants