-
Notifications
You must be signed in to change notification settings - Fork 147
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
chore: Testing types for table input #699
Conversation
Might need some more context on this one since I'm unsure what current use cases we are trying to support/make stronger typing for. |
Basically, I am aiming for the example on the storybook to break, so if a user passes a column which key is not on the data, it should break! |
amundsen_application/static/js/components/common/Table/table.story.tsx
Outdated
Show resolved
Hide resolved
Signed-off-by: Marcos Iglesias <miglesiasvalle@lyft.com>
Signed-off-by: Marcos Iglesias <miglesiasvalle@lyft.com>
Signed-off-by: Marcos Iglesias <miglesiasvalle@lyft.com>
Signed-off-by: Marcos Iglesias <miglesiasvalle@lyft.com>
amundsen_application/static/js/components/common/Table/index.tsx
Outdated
Show resolved
Hide resolved
amundsen_application/static/js/components/common/Table/index.tsx
Outdated
Show resolved
Hide resolved
amundsen_application/static/js/components/common/Table/testDataBuilder.tsx
Show resolved
Hide resolved
Signed-off-by: Marcos Iglesias <miglesiasvalle@lyft.com>
Signed-off-by: Marcos Iglesias <miglesiasvalle@lyft.com>
amundsen_application/static/js/components/common/Table/index.tsx
Outdated
Show resolved
Hide resolved
Signed-off-by: Marcos Iglesias <miglesiasvalle@lyft.com>
Signed-off-by: Marcos Iglesias <miglesiasvalle@lyft.com>
Signed-off-by: Marcos Iglesias <miglesiasvalle@lyft.com>
amundsen_application/static/js/components/common/Table/index.spec.tsx
Outdated
Show resolved
Hide resolved
…pec.tsx Signed-off-by: Marcos Iglesias Valle <golodhros@gmail.com> Co-authored-by: Gago <xeroice@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I like that we are getting more informative errors
Thanks for this PR, learned some helpful patterns. |
Signed-off-by: Marcos Iglesias Valle <golodhros@gmail.com> Signed-off-by: dikshathakur3119 <dikshathakur3119@gmail.com>
Signed-off-by: Marcos Iglesias miglesiasvalle@lyft.com
Summary of Changes
Trying to type the table entry properly, relating the data with the columns
CheckList
Make sure you have checked all steps below to ensure a timely review.