Skip to content

Conversation

@spalmurray-codecov
Copy link
Contributor

@spalmurray-codecov spalmurray-codecov commented Oct 17, 2024

Adds the last piece of this feature: the organization list!
During development we ran into some issues with the API and not having proper access, but that has been fixed over there pending my PR getting merged.

(Minor design changes have been okayed with design folks)
Design

Screenshot 2024-10-17 at 15 19 28

Closes codecov/engineering-team#2564

const variables = {
first,
ordering,
orderingDirection,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@codecov-staging
Copy link

codecov-staging bot commented Oct 17, 2024

Bundle Report

Changes will increase total bundle size by 9.74kB (0.06%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-staging-system-esm 5.55MB 4.98kB (0.09%) ⬆️
gazebo-staging-system 5.5MB 4.76kB (0.09%) ⬆️

@codecov-qa
Copy link

codecov-qa bot commented Oct 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.15%. Comparing base (34c9ae8) to head (ef99716).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3407   +/-   ##
=======================================
  Coverage   99.15%   99.15%           
=======================================
  Files         809      809           
  Lines       14239    14275   +36     
  Branches     3928     3935    +7     
=======================================
+ Hits        14118    14154   +36     
  Misses        112      112           
  Partials        9        9           
Files with missing lines Coverage Δ
...bRoutes/CurrentOrgPlan/AccountOrgs/AccountOrgs.tsx 100.00% <100.00%> (ø)
...ntOrgPlan/hooks/useInfiniteAccountOrganizations.ts 100.00% <ø> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.89% <100.00%> (+<0.01%) ⬆️
Services 99.45% <ø> (ø)
Shared 99.80% <ø> (ø)
UI 99.06% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 34c9ae8...ef99716. Read the comment docs.

@codecov-notifications
Copy link

codecov-notifications bot commented Oct 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3407   +/-   ##
=======================================
  Coverage   99.15%   99.15%           
=======================================
  Files         809      809           
  Lines       14239    14275   +36     
  Branches     3923     3935   +12     
=======================================
+ Hits        14118    14154   +36     
  Misses        112      112           
  Partials        9        9           
Files with missing lines Coverage Δ
...bRoutes/CurrentOrgPlan/AccountOrgs/AccountOrgs.tsx 100.00% <100.00%> (ø)
...ntOrgPlan/hooks/useInfiniteAccountOrganizations.ts 100.00% <ø> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.89% <100.00%> (+<0.01%) ⬆️
Services 99.45% <ø> (ø)
Shared 99.80% <ø> (ø)
UI 99.06% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 34c9ae8...ef99716. Read the comment docs.

@codecov-public-qa
Copy link

codecov-public-qa bot commented Oct 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.15%. Comparing base (34c9ae8) to head (ef99716).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3407   +/-   ##
=======================================
  Coverage   99.15%   99.15%           
=======================================
  Files         809      809           
  Lines       14239    14275   +36     
  Branches     3923     3942   +19     
=======================================
+ Hits        14118    14154   +36     
  Misses        112      112           
  Partials        9        9           
Files Coverage Δ
...bRoutes/CurrentOrgPlan/AccountOrgs/AccountOrgs.tsx 100.00% <100.00%> (ø)
...ntOrgPlan/hooks/useInfiniteAccountOrganizations.ts 100.00% <ø> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.89% <100.00%> (+<0.01%) ⬆️
Services 99.45% <ø> (ø)
Shared 99.80% <ø> (ø)
UI 99.06% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 34c9ae8...ef99716. Read the comment docs.

@codecov-releaser
Copy link
Contributor

codecov-releaser commented Oct 17, 2024

✅ Deploy preview for gazebo ready!

Previews expire after 1 month automatically.

Storybook

Commit Created Cloud Enterprise
054db76 Thu, 17 Oct 2024 19:22:22 GMT Expired Expired
61d26e3 Fri, 18 Oct 2024 21:18:51 GMT Expired Expired
f9d96c3 Mon, 21 Oct 2024 14:34:44 GMT Expired Expired
87d7736 Mon, 21 Oct 2024 15:15:08 GMT Expired Expired
0528f10 Mon, 21 Oct 2024 15:32:57 GMT Expired Expired
2ea8748 Mon, 21 Oct 2024 15:52:24 GMT Expired Expired
90ff363 Mon, 21 Oct 2024 17:04:34 GMT Expired Expired
ef99716 Mon, 21 Oct 2024 17:39:54 GMT Cloud Enterprise

@spalmurray-codecov spalmurray-codecov marked this pull request as ready for review October 18, 2024 22:27
@codecov
Copy link

codecov bot commented Oct 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.15%. Comparing base (34c9ae8) to head (ef99716).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3407   +/-   ##
=======================================
  Coverage   99.15%   99.15%           
=======================================
  Files         809      809           
  Lines       14239    14275   +36     
  Branches     3923     3942   +19     
=======================================
+ Hits        14118    14154   +36     
  Misses        112      112           
  Partials        9        9           
Files with missing lines Coverage Δ
...bRoutes/CurrentOrgPlan/AccountOrgs/AccountOrgs.tsx 100.00% <100.00%> (ø)
...ntOrgPlan/hooks/useInfiniteAccountOrganizations.ts 100.00% <ø> (ø)
Components Coverage Δ
Assets 100.00% <ø> (ø)
Layouts 100.00% <ø> (ø)
Pages 98.89% <100.00%> (+<0.01%) ⬆️
Services 99.45% <ø> (ø)
Shared 99.80% <ø> (ø)
UI 99.06% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 34c9ae8...ef99716. Read the comment docs.

@codecov
Copy link

codecov bot commented Oct 21, 2024

Bundle Report

Changes will increase total bundle size by 9.74kB (0.06%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
gazebo-production-system 5.5MB 4.76kB (0.09%) ⬆️
gazebo-production-system-esm 5.55MB 4.98kB (0.09%) ⬆️

Copy link
Contributor

@nicholas-codecov nicholas-codecov left a comment

Choose a reason for hiding this comment

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

couple of comments to take a peek at

Comment on lines +195 to +203
<th
key={header.id}
scope="col"
data-sortable={header.column.getCanSort()}
onClick={header.column.getToggleSortingHandler()}
>
<div className="flex">
{flexRender(
header.column.columnDef.header,
header.getContext()
)}
<span
className="text-ds-blue-darker group-hover/columnheader:opacity-100"
data-sort-direction={header.column.getIsSorted()}
>
<Icon name="arrowUp" size="sm" />
</span>
</div>
</th>
Copy link
Contributor

Choose a reason for hiding this comment

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

Has cursor:pointer been disabled on non-sortable headers? I don't see anything explicit here tho it may be somewhere else, and I don't think we have a test org on staging to check this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Codecov org works for testing. I set the sortability on the column definitions see line 82.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ahh okay, was just making sure that the styles were being applied correctly when they're set to false, everything looks good 👍

<tr
key={row.id}
className="h-14 hover:cursor-pointer hover:bg-ds-gray-primary"
onClick={() => linkToMembersTab(row.original.name)}
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of using an onClick handler here, are we able to make the org name an anchor tag?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this could probably be done up in the column declarations

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We want the whole row to be a button, not just a single column. Tried wrapping the whole thing in anchor and also played around with Applink/NavLink/A. This was the best I could find for achieving what we want. The one thing I think this is missing is proper a11y treatment, I will add this.

@spalmurray-codecov spalmurray-codecov force-pushed the spalmurray/account-orgs-list branch from 2ea8748 to 90ff363 Compare October 21, 2024 16:57
Comment on lines 222 to 237
<div className="flex w-full justify-end">
{/* @ts-ignore-error */}
<A
to={{
pageName: 'membersTab',
options: {
owner: encodeURIComponent(
row.original.name
),
provider,
},
}}
>
{cell.getValue()}
</A>
</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

Thoughts on bumping this up into the cell function for this column?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I considered this, but thought it wasn't possible due to dependency on provider. Do you have magic for this?

Copy link
Contributor

Choose a reason for hiding this comment

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

You shouldn't have to provide the provider for this

Copy link
Contributor

Choose a reason for hiding this comment

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

useNavLinks under the hood should get this value for you

@spalmurray-codecov spalmurray-codecov added this pull request to the merge queue Oct 21, 2024
Merged via the queue into main with commit ddf8ef4 Oct 21, 2024
60 checks passed
@spalmurray-codecov spalmurray-codecov deleted the spalmurray/account-orgs-list branch October 21, 2024 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Gazebo] Add org list to multiple org Account details card on plan page

5 participants