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

web: add code host details page.#46327

Merged
sashaostrikov merged 5 commits into
mainfrom
ao/ui/external-service-display-page
Jan 11, 2023
Merged

web: add code host details page.#46327
sashaostrikov merged 5 commits into
mainfrom
ao/ui/external-service-display-page

Conversation

@sashaostrikov

Copy link
Copy Markdown
Contributor

This commit pretty much touches all code host related pages:

  • Adds redirects to details page after creating/updating a code host
  • Adds links to details page from code host list page
  • Removes connection check from code host list page
  • Removes sync jobs list from update code host page
  • New details page contains code host name and kind, number of synced repos (with a link to /repositories page), code host configuration and sync jobs. Also, it contains buttons for connection check and code host update/deletion.

Test plan:
Local sg run and manual tests with a full code host lifecycle checks, storybook.

THORSTEN, YOU CANNOT MISS IT

externalServiceDetailsPageDemo.mp4

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

@sashaostrikov sashaostrikov added team/repo-management site-admin-ux Issues related to site-admin UX: bugs, papercuts, design, ... labels Jan 11, 2023
@sashaostrikov sashaostrikov requested a review from a team January 11, 2023 13:09
@sashaostrikov sashaostrikov self-assigned this Jan 11, 2023
@cla-bot cla-bot Bot added the cla-signed label Jan 11, 2023
@sg-e2e-regression-test-bob

sg-e2e-regression-test-bob commented Jan 11, 2023

Copy link
Copy Markdown

Bundle size report 📦

Initial size Total size Async size Modules
0.00% (+0.11 kb) 0.16% (+22.68 kb) 🔺 0.20% (+22.57 kb) 🔺 0.14% (+1) 🔺

Look at the Statoscope report for a full comparison between the commits 30ea7fa and ad78058 or learn more.

Open explanation
  • Initial size is the size of the initial bundle (the one that is loaded when you open the page)
  • Total size is the size of the initial bundle + all the async loaded chunks
  • Async size is the size of all the async loaded chunks
  • Modules is the number of modules in the initial bundle

@eseliger

Copy link
Copy Markdown
Member

Great stuff! Awesome improvements :)
Does test connection test if the host is reachable or also if the token is valid? Just curious.

@sashaostrikov

Copy link
Copy Markdown
Contributor Author

Great stuff! Awesome improvements :) Does test connection test if the host is reachable or also if the token is valid? Just curious.

Thanks :)

Currently, the test is implemented as a "ping" thing, not an API call. I think it is planned to make it a real API call some time in future.

@mrnugget mrnugget 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.

Very very very cool!

Comment thread client/web/src/components/externalServices/ExternalServicePage.tsx Outdated
Comment thread client/web/src/components/externalServices/ExternalServicePage.tsx Outdated
Comment thread client/web/src/components/externalServices/ExternalServiceInformation.tsx Outdated
Comment thread client/web/src/components/externalServices/ExternalServiceInformation.tsx Outdated
Comment thread client/web/src/components/externalServices/ExternalServicePage.tsx Outdated
This commit pretty much touches all code host related pages:
- Adds redirects to details page after creating/updating a code host
- Adds links to details page from code host list page
- Removes connection check from code host list page
- Removes sync jobs list from update code host page
- New details page contains code host name and kind, number of synced repos (with a link to /repositories page), code host configuration and sync jobs. Also, it contains buttons for connection check and code host update/deletion.

Test plan:
Local sg run and manual tests with a full code host lifecycle checks, storybook.
@sashaostrikov sashaostrikov force-pushed the ao/ui/external-service-display-page branch from 1a7ecc3 to 30ea7fa Compare January 11, 2023 18:19
@sashaostrikov sashaostrikov enabled auto-merge (squash) January 11, 2023 18:21
@sashaostrikov sashaostrikov merged commit aa2e149 into main Jan 11, 2023
@sashaostrikov sashaostrikov deleted the ao/ui/external-service-display-page branch January 11, 2023 18:33
@sashaostrikov sashaostrikov changed the title web: add code host details page. INCLUDES MUST WATCH DEMO. THIS VIDEO IS SO... web: add code host details page. Jan 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed site-admin-ux Issues related to site-admin UX: bugs, papercuts, design, ...

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add separate "edit" page for code hosts

4 participants