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

batches: display kpis on list page#42046

Merged
adeola-ak merged 40 commits into
mainfrom
aa/display-kpis
Oct 11, 2022
Merged

batches: display kpis on list page#42046
adeola-ak merged 40 commits into
mainfrom
aa/display-kpis

Conversation

@adeola-ak

@adeola-ak adeola-ak commented Sep 25, 2022

Copy link
Copy Markdown
Contributor

Closes #37750

Adds the kpi dashboard for the batch changes list page. Omitted the merged icon that was included in the figma as it seemed a little redundant.

Test plan

visually tested

@cla-bot cla-bot Bot added the cla-signed label Sep 25, 2022
@adeola-ak adeola-ak marked this pull request as ready for review September 26, 2022 22:17
@sourcegraph-bot

sourcegraph-bot commented Sep 26, 2022

Copy link
Copy Markdown
Contributor

Codenotify: Notifying subscribers in CODENOTIFY files for diff a2a2945...26df071.

Notify File(s)
@courier-new client/web/src/enterprise/batches/list/BatchChangeListPage.story.tsx
client/web/src/enterprise/batches/list/BatchChangeListPage.tsx
client/web/src/enterprise/batches/list/BatchChangeStatsBar.module.scss
client/web/src/enterprise/batches/list/BatchChangeStatsBar.story.tsx
client/web/src/enterprise/batches/list/BatchChangeStatsBar.tsx
client/web/src/enterprise/batches/list/backend.ts
cmd/frontend/graphqlbackend/batches.go
@eseliger client/web/src/enterprise/batches/list/BatchChangeListPage.story.tsx
client/web/src/enterprise/batches/list/BatchChangeListPage.tsx
client/web/src/enterprise/batches/list/BatchChangeStatsBar.module.scss
client/web/src/enterprise/batches/list/BatchChangeStatsBar.story.tsx
client/web/src/enterprise/batches/list/BatchChangeStatsBar.tsx
client/web/src/enterprise/batches/list/backend.ts
cmd/frontend/graphqlbackend/batches.go
enterprise/internal/batches/store/changesets.go
enterprise/internal/batches/store/changesets_test.go
enterprise/internal/batches/store/store.go
enterprise/internal/batches/types/changeset.go

@adeola-ak adeola-ak requested a review from a team September 26, 2022 22:22
Comment thread client/web/src/enterprise/batches/list/BatchChangeStatsBar.module.scss Outdated
Comment thread client/web/src/enterprise/batches/list/BatchChangeStatsBar.tsx Outdated
Comment thread client/web/src/enterprise/batches/list/BatchChangeStatsBar.tsx Outdated
Comment thread client/web/src/enterprise/batches/list/BatchChangeStatsBar.tsx
Comment thread client/web/src/enterprise/batches/list/BatchChangeStatsBar.tsx Outdated
Comment thread cmd/frontend/graphqlbackend/batches.graphql Outdated
Comment thread enterprise/cmd/frontend/internal/batches/resolvers/resolver.go Outdated
Comment thread enterprise/internal/batches/store/changesets.go
Comment thread internal/adminanalytics/batchchanges.go Outdated
Comment thread internal/adminanalytics/batchchanges.go Outdated
@adeola-ak adeola-ak requested review from a team and eseliger October 5, 2022 15:25

@courier-new courier-new 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.

Looking good so far! Left a couple notes -- mostly I'd love to see a Storybook story for this!

I also think the Batch Change List Page story is going to need an additional mock response for the global stats query.

Comment thread client/web/src/enterprise/batches/detail/changesets/ChangesetStatusCell.tsx Outdated
Comment thread client/web/src/enterprise/batches/list/BatchChangeStatsBar.tsx
Comment thread client/web/src/enterprise/batches/list/BatchChangeStatsBar.tsx Outdated
Comment thread client/web/src/enterprise/batches/list/BatchChangeStatsBar.tsx Outdated
Comment thread client/web/src/site-admin/analytics/components/TimeSavedCalculatorGroup.tsx Outdated
Comment thread client/web/src/site-admin/analytics/components/TimeSavedCalculatorGroup.tsx Outdated
Comment thread enterprise/cmd/frontend/internal/batches/resolvers/resolver.go Outdated
Comment thread enterprise/internal/batches/store/changesets.go Outdated
Comment thread enterprise/internal/batches/store/store.go Outdated
Comment thread internal/adminanalytics/batchchanges.go Outdated
@adeola-ak adeola-ak requested a review from courier-new October 7, 2022 02:40
Comment thread client/web/src/enterprise/batches/list/BatchChangeStatsBar.tsx Outdated

@courier-new courier-new 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.

Did a quick design review as well, just had a couple small suggestions! I also have two questions that I'd be curious to hear your thoughts about, or @danielmarquespt!

I don't know about you but I also find the bolding of the numbers in the right set of stats weird, considering they're right above a bunch of changeset stats that aren't bold:

Screen Shot 2022-10-06 at 10 10 20 PM

Should we drop the boldness?


I also saw in the original designs, the icons were gray:

image

I also don't know how I feel about that, considering they're colored everywhere else. Do we want to keep them colored, like you did in your implementation?

Comment thread client/web/src/enterprise/batches/list/BatchChangeStatsBar.tsx
Comment thread client/web/src/enterprise/batches/list/BatchChangeStatsBar.tsx Outdated
Comment thread client/web/src/enterprise/batches/list/BatchChangeStatsBar.tsx
Comment thread client/web/src/enterprise/batches/list/BatchChangeStatsBar.tsx Outdated
Comment thread client/web/src/enterprise/batches/list/BatchChangeStatsBar.tsx Outdated
Comment thread client/web/src/enterprise/batches/list/BatchChangeStatsBar.tsx Outdated
Comment thread client/web/src/enterprise/batches/list/BatchChangeStatsBar.tsx Outdated
adeola-ak and others added 5 commits October 7, 2022 15:38
Co-authored-by: Kelli Rockwell <kelli@sourcegraph.com>
Co-authored-by: Kelli Rockwell <kelli@sourcegraph.com>
Co-authored-by: Kelli Rockwell <kelli@sourcegraph.com>
Co-authored-by: Kelli Rockwell <kelli@sourcegraph.com>
Comment thread client/web/src/enterprise/batches/list/BatchChangeStatsBar.tsx Outdated
Comment thread client/web/src/enterprise/batches/list/BatchChangeStatsBar.tsx
Comment thread client/web/src/enterprise/batches/list/BatchChangeStatsBar.tsx Outdated
Comment thread client/web/src/enterprise/batches/list/BatchChangeStatsBar.tsx Outdated
Comment thread enterprise/internal/batches/types/changeset.go
Comment thread cmd/frontend/graphqlbackend/batches.graphql
Comment thread client/web/src/enterprise/batches/detail/changesets/ChangesetStatusCell.tsx Outdated
Comment thread client/web/src/enterprise/batches/detail/changesets/ChangesetStatusCell.tsx Outdated
Comment thread client/web/src/enterprise/batches/list/BatchChangeStatsBar.tsx
Comment thread enterprise/internal/batches/store/changesets.go
Comment thread enterprise/internal/batches/store/changesets.go

@courier-new courier-new 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.

Fantastic work, it looks really good. 🙂 Approving to unblock merge, so you can demo it tomorrow!! 😉

@adeola-ak adeola-ak merged commit 7fe6cf8 into main Oct 11, 2022
@adeola-ak adeola-ak deleted the aa/display-kpis branch October 11, 2022 02:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Display total KPIs in the List Page

4 participants