Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(#1423): Add table page (code review needed) #27

Merged
merged 2 commits into from
Nov 16, 2023

Conversation

vanessatran-ddi
Copy link
Collaborator

Add table page:
image

@vanessatran-ddi vanessatran-ddi self-assigned this Nov 13, 2023
Copy link

netlify bot commented Nov 13, 2023

Deploy Preview for abgov-ui-component-docs failed.

Name Link
🔨 Latest commit 6169d5a
🔍 Latest deploy log https://app.netlify.com/sites/abgov-ui-component-docs/deploys/6556445792f1990008579f0f

@vanessatran-ddi vanessatran-ddi marked this pull request as draft November 13, 2023 21:21
@vanessatran-ddi vanessatran-ddi linked an issue Nov 13, 2023 that may be closed by this pull request
9 tasks
@vanessatran-ddi vanessatran-ddi marked this pull request as ready for review November 15, 2023 19:52
@chrisolsen
Copy link
Collaborator

chrisolsen commented Nov 15, 2023

  • The props table should be 100%
    image

  • No difference is seen when switching between relaxed and normal

Comment on lines 251 to 269
];
setUsers(_users);
}, []);
function sortData(sortBy: string, sortDir: number) {
const _users = [...users];
_users.sort((a: any, b: any) => {
return (a[sortBy] > b[sortBy] ? 1 : -1) * sortDir;
});
setUsers(_users);
}
return (
<GoATable onSort={sortData}>
<thead>
<tr>
<th>
<GoATableSortHeader name="firstName">First name</GoATableSortHeader>
Copy link
Collaborator

Choose a reason for hiding this comment

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

The code snippets allow for whitespace (storybook didn't). So we should keep things readable by adding whitespace where necessary.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thank you @chrisolsen I added the space.

@vanessatran-ddi vanessatran-ddi changed the title feat(#1423): Add table page feat(#1423): Add table page (code review needed) Nov 15, 2023
@vanessatran-ddi
Copy link
Collaborator Author

  • The props table should be 100%
    image
  • No difference is seen when switching between relaxed and normal
  1. Yes I am adding another PR to address the issue, beside this table, we have other tables to be taken care of as well.
    chore: make table's width 100% - code review needed #29

  2. Looks like there is a bug of the table. I see no difference in our user story. So I created a bug [Bug]: Table's variant relaxed and normal ui-components#1466

Signed-off-by: Vanessa Tran <[email protected]>
@chrisolsen chrisolsen merged commit 46ac3e0 into GovAlta:main Nov 16, 2023
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.

Design system website - Content layout components
2 participants