Skip to content

Conversation

@SiobhyB
Copy link

@SiobhyB SiobhyB commented May 2, 2024

Related to 6805-gh-Automattic/dotcom-forge, #28, and #29

Proposed Changes

  • The bordering area of the onboarding and main screens have been made draggable. This is in response to feedback around expecting the top area of the app to always be draggable, as well as expectations for more areas of the app to be draggable than the slim border.
Onboarding Main screen
  • In addition, the left sidebar is now draggable (excluding the interactive buttons).

Testing Instructions

Onboarding screen

Main screen

  • When local sites have been added to the app, verify that the main area of the left sidebar is draggable.
  • Also, verify that the bordering areas of the screen's white section can be dragged, in keeping with the onboarding screen.
  • Verify that all components can still be interacted with as expected e.g. it should still be possible to click the buttons in the left sidebar.

Pre-merge Checklist

  • Have you checked for TypeScript, React or other console errors?

@SiobhyB SiobhyB self-assigned this May 2, 2024
@SiobhyB SiobhyB marked this pull request as ready for review May 2, 2024 00:53
@SiobhyB SiobhyB requested a review from a team May 2, 2024 00:53
@derekblank derekblank self-requested a review May 2, 2024 02:20
<div className="h-[569px] flex flex-col justify-center items-start flex-[1_0_0%] gap-8">
<div className="w-1/2 bg-white p-[50px] flex flex-col">
<div className="h-[569px] flex flex-col justify-center items-start flex-[1_0_0%] gap-8 app-no-drag-region">
<div className="flex flex-col items-start self-stretch gap-6">
Copy link
Contributor

Choose a reason for hiding this comment

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

I noted on the Onboarding screen that there is some non-draggable whitespace above and below the Add Site form. It seems that if the app-no-drag-region class were moved one more element further down, the areas in purple would be draggable as well, still leaving the form itself interactable. I wasn't sure if leaving this space non-draggable was intentional, however, so disregard if so.

<div className="flex flex-col items-start self-stretch gap-6  app-no-drag-region">
Screenshot 2024-05-02 at 12 01 38 pm
Example
draggable.mov

Copy link
Author

Choose a reason for hiding this comment

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

That's a good thought, I've gone ahead to implement your suggestion in f8a790d.

I had been a bit conservative with the amount of "draggable space" I was introducing, but agree that for the onboarding screen, it would feel a bit odd for all of that white space to not be draggable while the blue sidebar is completely draggable.

@derekblank derekblank self-requested a review May 2, 2024 02:31
Copy link
Contributor

@derekblank derekblank left a comment

Choose a reason for hiding this comment

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

I observed the draggable areas mentioned in the PR description have been improved. 👍 Just left a comment for potentially increasing the area even further on the Onboarding screen, but it's not at all a blocker. Otherwise, LGTM! 🚀

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.

3 participants