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

web: migrate user settings routes - #47451

Merged
valerybugakov merged 9 commits into
mainfrom
main-dry-run/vb/react-router-migration-user-settings
Feb 9, 2023
Merged

web: migrate user settings routes#47451
valerybugakov merged 9 commits into
mainfrom
main-dry-run/vb/react-router-migration-user-settings

Conversation

@valerybugakov

@valerybugakov valerybugakov commented Feb 8, 2023

Copy link
Copy Markdown
Member

Context

Test plan

  1. main-dry-run
  2. visit all affected routes locally

@valerybugakov valerybugakov self-assigned this Feb 8, 2023
@cla-bot cla-bot Bot added the cla-signed label Feb 8, 2023
@github-actions github-actions Bot added the team/code-exploration Issues owned by the Code Exploration team label Feb 8, 2023
@sourcegraph-bot

sourcegraph-bot commented Feb 8, 2023

Copy link
Copy Markdown
Contributor

Codenotify: Notifying subscribers in CODENOTIFY files for diff 1157577...01a9075.

Notify File(s)
@BolajiOlajide client/web/src/enterprise/batches/BatchSpecsPage.tsx
client/web/src/enterprise/batches/batch-spec/edit/EditBatchSpecPage.story.tsx
client/web/src/enterprise/batches/batch-spec/edit/EditBatchSpecPage.tsx
client/web/src/enterprise/batches/batch-spec/execute/ExecuteBatchSpecPage.story.tsx
client/web/src/enterprise/batches/batch-spec/execute/ExecuteBatchSpecPage.tsx
client/web/src/enterprise/batches/batch-spec/execute/workspaces/ExecutionWorkspaces.story.tsx
client/web/src/enterprise/batches/batch-spec/execute/workspaces/ExecutionWorkspaces.tsx
client/web/src/enterprise/batches/close/BatchChangeClosePage.story.tsx
client/web/src/enterprise/batches/close/BatchChangeClosePage.tsx
client/web/src/enterprise/batches/detail/BatchChangeDetailsPage.story.tsx
client/web/src/enterprise/batches/detail/BatchChangeDetailsPage.tsx
client/web/src/enterprise/batches/global/GlobalBatchChangesArea.tsx
client/web/src/enterprise/batches/preview/BatchChangePreviewPage.story.tsx
client/web/src/enterprise/batches/preview/BatchChangePreviewPage.tsx
client/web/src/enterprise/batches/preview/BatchChangePreviewTabs.tsx
client/web/src/enterprise/batches/preview/CreateUpdateBatchChangeAlert.tsx
client/web/src/enterprise/batches/preview/list/ChangesetApplyPreviewNode.tsx
client/web/src/enterprise/batches/preview/list/PreviewFilterRow.tsx
client/web/src/enterprise/batches/preview/list/PreviewList.tsx
@courier-new client/web/src/enterprise/batches/BatchSpecsPage.tsx
client/web/src/enterprise/batches/batch-spec/edit/EditBatchSpecPage.story.tsx
client/web/src/enterprise/batches/batch-spec/edit/EditBatchSpecPage.tsx
client/web/src/enterprise/batches/batch-spec/execute/ExecuteBatchSpecPage.story.tsx
client/web/src/enterprise/batches/batch-spec/execute/ExecuteBatchSpecPage.tsx
client/web/src/enterprise/batches/batch-spec/execute/workspaces/ExecutionWorkspaces.story.tsx
client/web/src/enterprise/batches/batch-spec/execute/workspaces/ExecutionWorkspaces.tsx
client/web/src/enterprise/batches/close/BatchChangeClosePage.story.tsx
client/web/src/enterprise/batches/close/BatchChangeClosePage.tsx
client/web/src/enterprise/batches/detail/BatchChangeDetailsPage.story.tsx
client/web/src/enterprise/batches/detail/BatchChangeDetailsPage.tsx
client/web/src/enterprise/batches/global/GlobalBatchChangesArea.tsx
client/web/src/enterprise/batches/preview/BatchChangePreviewPage.story.tsx
client/web/src/enterprise/batches/preview/BatchChangePreviewPage.tsx
client/web/src/enterprise/batches/preview/BatchChangePreviewTabs.tsx
client/web/src/enterprise/batches/preview/CreateUpdateBatchChangeAlert.tsx
client/web/src/enterprise/batches/preview/list/ChangesetApplyPreviewNode.tsx
client/web/src/enterprise/batches/preview/list/PreviewFilterRow.tsx
client/web/src/enterprise/batches/preview/list/PreviewList.tsx
@efritz client/web/src/enterprise/executors/ExecutorsOrgArea.tsx
client/web/src/enterprise/executors/ExecutorsUserArea.tsx
client/web/src/enterprise/executors/secrets/ExecutorSecretsListPage.tsx
@eseliger client/web/src/enterprise/batches/BatchSpecsPage.tsx
client/web/src/enterprise/batches/batch-spec/edit/EditBatchSpecPage.story.tsx
client/web/src/enterprise/batches/batch-spec/edit/EditBatchSpecPage.tsx
client/web/src/enterprise/batches/batch-spec/execute/ExecuteBatchSpecPage.story.tsx
client/web/src/enterprise/batches/batch-spec/execute/ExecuteBatchSpecPage.tsx
client/web/src/enterprise/batches/batch-spec/execute/workspaces/ExecutionWorkspaces.story.tsx
client/web/src/enterprise/batches/batch-spec/execute/workspaces/ExecutionWorkspaces.tsx
client/web/src/enterprise/batches/close/BatchChangeClosePage.story.tsx
client/web/src/enterprise/batches/close/BatchChangeClosePage.tsx
client/web/src/enterprise/batches/detail/BatchChangeDetailsPage.story.tsx
client/web/src/enterprise/batches/detail/BatchChangeDetailsPage.tsx
client/web/src/enterprise/batches/global/GlobalBatchChangesArea.tsx
client/web/src/enterprise/batches/preview/BatchChangePreviewPage.story.tsx
client/web/src/enterprise/batches/preview/BatchChangePreviewPage.tsx
client/web/src/enterprise/batches/preview/BatchChangePreviewTabs.tsx
client/web/src/enterprise/batches/preview/CreateUpdateBatchChangeAlert.tsx
client/web/src/enterprise/batches/preview/list/ChangesetApplyPreviewNode.tsx
client/web/src/enterprise/batches/preview/list/PreviewFilterRow.tsx
client/web/src/enterprise/batches/preview/list/PreviewList.tsx
client/web/src/enterprise/executors/ExecutorsOrgArea.tsx
client/web/src/enterprise/executors/ExecutorsUserArea.tsx
client/web/src/enterprise/executors/secrets/ExecutorSecretsListPage.tsx

@sourcegraph-bot

sourcegraph-bot commented Feb 8, 2023

Copy link
Copy Markdown
Contributor

Codenotify: Notifying subscribers in OWNERS files for diff 1157577...01a9075.

Notify File(s)
@sourcegraph/code-exploration-devs client/wildcard/src/testing/render-with-branded-context.tsx
@vovakulikov client/wildcard/src/testing/render-with-branded-context.tsx

@valerybugakov

Copy link
Copy Markdown
Member Author

Percy is not happy, but I cannot repro the issue locally yet. Looking into it!

@valerybugakov
valerybugakov requested review from a team, courier-new and eseliger February 8, 2023 09:44

@philipp-spiess philipp-spiess 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.

Awesome stuff

Biden Smile

/>
}
/>
</Routes>

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.

NICE!

/>
{batchSpec.applyURL ? (
<Routes>
<Route element={<Navigate to="execution" replace={true} />} index={true} />

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.

Oh is there a difference between index={true} and path=""?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Based on the documentation, it seems that index={true} is the recommended approach. From the functional point of view, I didn't notice any differences yet.

import { BackToAllSubscriptionsLink } from './BackToAllSubscriptionsLink'
import { UserProductSubscriptionStatus } from './UserProductSubscriptionStatus'

interface Props extends Pick<RouteComponentProps<{ subscriptionUUID: string }>, 'match'> {

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.

It feels so good to get rid of this stuff everywhere 😅

Comment thread client/web/src/org/area/routes.tsx Outdated
Comment thread client/web/src/user/settings/routes.tsx
@valerybugakov
valerybugakov force-pushed the main-dry-run/vb/react-router-migration-user-settings branch from 25a0e9b to 01a9075 Compare February 9, 2023 08:32
@valerybugakov

Copy link
Copy Markdown
Member Author

Fixed Percy!

@valerybugakov
valerybugakov merged commit 9d91d74 into main Feb 9, 2023
@valerybugakov
valerybugakov deleted the main-dry-run/vb/react-router-migration-user-settings branch February 9, 2023 09:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed storm team/code-exploration Issues owned by the Code Exploration team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants