Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

DEVPROD-1970: Migrate CodeChanges Table to LG #2310

Merged
merged 3 commits into from
Mar 22, 2024

Conversation

SupaJoon
Copy link
Contributor

@SupaJoon SupaJoon commented Mar 20, 2024

DEVPROD-1970

Description

These code changes swap the antd table for the LG table. Originally the code changes table on the commit queue card didn't include table column headers but I added them back in. I think the table looks better with the headers and it's also kind of complicated styling to not show the table headers and have the table cells respect width props.

Screenshots

New render:
Screenshot 2024-03-20 at 5 56 41 PM
Screenshot 2024-03-20 at 5 57 10 PM

Old render:
Screenshot 2024-03-20 at 6 04 13 PM
Screenshot 2024-03-20 at 6 03 14 PM

@SupaJoon SupaJoon requested a review from a team March 20, 2024 22:01
<BaseTable
data-cy="code-changes-table"
data-cy-row="code-changes-table-row"
emptyComponent={<TablePlaceholder message="No diffs." />}
Copy link
Contributor

Choose a reason for hiding this comment

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

[nit] I don't think you need this because we don't show the table if there are no diffs
image

dataIndex: "fileName",
key: "fileName",
render: (text: string, record: FileDiffsFragment): JSX.Element => (
id: "fileName",
Copy link
Contributor

Choose a reason for hiding this comment

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

[nit] You can delete the id fields since they're not used for anything. Other tables use them for sorting, but here they just duplicate the accessorKey field, which is what's used by TanStack table when no id field is provided.

@SupaJoon SupaJoon merged commit 1e28085 into evergreen-ci:main Mar 22, 2024
4 checks passed
@SupaJoon SupaJoon deleted the DEVPROD-1970 branch March 22, 2024 15:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants