Skip to content

Conversation

taysea
Copy link
Collaborator

@taysea taysea commented Oct 6, 2022

What does this PR do?

Errors were being caused for some TS users bc the groupBy object notation was requiring all parameters. However, our storybook example that is just JS doesn't use all the parameters. The TS should mirror the non-typed experience.

Where should the reviewer start?

src/js/components/DataTable/index.d.ts

What testing has been done on this PR?

How should this be manually tested?

Do Jest tests follow these best practices?

  • screen is used for querying.
  • The correct query is used. (Refer to this list of queries)
  • userEvent is used in place of fireEvent.
  • asFragment() is used for snapshot testing.

Any background context you want to provide?

What are the relevant issues?

Screenshots (if appropriate)

Do the grommet docs need to be updated?

Should this PR be mentioned in the release notes?

Yes. Updated groupBy typescript definition.

Is this change backwards compatible or is it a breaking change?

Backwards compatible.

@taysea taysea requested review from MikeKingdom and jcfilben October 6, 2022 15:09
Copy link
Collaborator

@MikeKingdom MikeKingdom left a comment

Choose a reason for hiding this comment

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

Thanks Taylor

@ericsoderberghp ericsoderberghp merged commit dd435cb into grommet:master Oct 6, 2022
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.

4 participants