Something went wrong on our end. Please try again.
Created by: courier-new
This PR is a two-for-one because I started fixing the layout of the "Create" page and realized it was easier if the namespace default selection was already done.
So, the default namespace selected when you land on the "Create" page is as follows:
/organizations/my-org/batch-changes
, my-org
will be preselected (assuming you're a member of that org)/users/courier-new/batch-changes
, courier-new
will be preselected (assuming that's you)(In a small follow-up PR, we're actually going to hide the "Create" button from user batch change pages for users other than yourself)
One change is that all three "Create" pages now redirect to the same URL: /batch-changes/create
. The reason being that:
The origin source and default namespace selection are conveyed through a URL parameter instead, so coming from /users/courier-new/batch-changes
would take me to /batch-changes/create?namespace=courier-new
, for example.
In turn, this allows us to break out of the Page
layout for our create page and take over with a full-width two column layout where the editor and workspaces previews take center stage, which begins bringing the "Create" page layout closer to the EM3 designs.
There's two other TODOs in here, one of which for getting the link URL to go to a namespace, which isn't part of the settings cascade yet, and the other of which is for dynamically computing the editor height based on the remaining vertical window space. These will both also be follow-up PRs.