Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

batches: temporarily disable namespace selector#37187

Merged
courier-new merged 5 commits into
mainfrom
kr/disable-namespace-selector
Jun 14, 2022
Merged

batches: temporarily disable namespace selector#37187
courier-new merged 5 commits into
mainfrom
kr/disable-namespace-selector

Conversation

@courier-new

@courier-new courier-new commented Jun 14, 2022

Copy link
Copy Markdown
Contributor

Closes https://github.com/sourcegraph/sourcegraph/issues/37135.

Just comments out code related to the namespace selector and adds TODO notes with instructions for how to restore. Creating a batch change from the user or org list page will also both temporarily point to the default create page, since the user- and org-specific create pages pre-select a different namespace.

Test plan

Manually tested that creating a batch change uses the user namespace only. Form has storybook coverage as well and should report a diff to Chromatic.

App preview:

Check out the client app preview documentation to learn more.

@courier-new courier-new added batch-changes Issues related to Batch Changes server-side Issues that relate to server side batch changes labels Jun 14, 2022
@courier-new courier-new requested a review from a team June 14, 2022 04:45
@courier-new courier-new self-assigned this Jun 14, 2022
@cla-bot cla-bot Bot added the cla-signed label Jun 14, 2022
@courier-new courier-new mentioned this pull request Jun 14, 2022
@sourcegraph-bot

sourcegraph-bot commented Jun 14, 2022

Copy link
Copy Markdown
Contributor

Codenotify: Notifying subscribers in CODENOTIFY files for diff b65db9c...4f1ad80.

Notify File(s)
@eseliger client/web/src/enterprise/batches/create/ConfigurationForm.tsx
client/web/src/enterprise/batches/create/NamespaceSelector.tsx
client/web/src/enterprise/batches/list/BatchChangeListPage.tsx

@courier-new

Copy link
Copy Markdown
Contributor Author

Chromatic diff looks good.

<Container className="mb-4">
{error && <ErrorAlert error={error} />}
<NamespaceSelector
{/* TODO: As we haven't finished implementing support for orgs, we've temporary

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we just disable it? Otherwise the UI is so empty 😆

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

If we disable it, I think we need the "coming soon" indicator too or something. 😅 I'll see how easy it is to slap that on instead.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done!

image

Fixed the mis-matched label text style while I was there. 😄

@LawnGnome LawnGnome left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1 to Erik's comment, otherwise LGTM.

@courier-new courier-new enabled auto-merge (squash) June 14, 2022 22:38
@courier-new courier-new merged commit 4c1d0c5 into main Jun 14, 2022
@courier-new courier-new deleted the kr/disable-namespace-selector branch June 14, 2022 22:43
LawnGnome added a commit that referenced this pull request Sep 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

batch-changes Issues related to Batch Changes cla-signed server-side Issues that relate to server side batch changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SSBC: Disable namespace dropdown in the create batch change UI

6 participants