-
Notifications
You must be signed in to change notification settings - Fork 2.7k
MM-34366: Wip: Migrate 'components/post_view/post_list_virtualized' and associated tests to TypeScript #8347
Conversation
fork sync
Syncronize fork
…cript add type definitions for 'dynamic-virtualized-list` package.
…cript Refactor tests in `post_list_virtualized.test.jsx` for PostList component.
…cript lint `dynamic-virtualized-list.d.ts` to remove trailing white spaces.
Hello @naftalimurgor, Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here. |
@devinbinnie Yup, It's a WIP. |
This PR has been automatically labelled "stale" because it hasn't had recent activity. |
Hey @naftalimurgor, just wondering how things are going/if you had any questions to get this moved along. |
Hey @devinbinnie
|
My questions are kinda ambigous, bear with me,
Thanks |
No worries @naftalimurgor. So what you would want to do is rename the files using the new extension, and then in the same commit, do a As a suggestion, if you use an editor like Visual Studio Code and stage the changes altogether, it should do all of this for you. |
Thanks @devinbinnie for the insight. Will submit the above mentioned PRs so we can move foward with this issue. |
Make `isRhsPost` prop optional in `components/post_view/floating_timestamp/floating_timestamp.tsx` as it is not explicitly required in `/home/slax/git/enterprise/mattermost-webapp/components/post_view/post_list_row/post_list_row.tsx`
Update `togglePostMenu` function prop to accept `opened` as a boolean argument
change `post` and `channel` props to optional as they are not explicitly required in `PostListRow` component
…st_virtualized.tsx` to TypeScript Add type definitions and all relevant type definitions imports.
Migrate 'components/post_view/post_list_virtualized' and associated tests to TypeScript
add `@types/react-virtualized-auto-sizer` from npm
Lint and fix to conform to EsLint rules
Lint and fix to conform to EsLint rules
…irtualized.test.tsx`
…ist_virtualized.test.tsx`
…ist_virtualized.test.tsx` add type definitions for `AutoSizer` and `DynamicSizeList`, change from type `any` to `DynamicSizeListDimensions`
MM-34366: Migrate 'components/post_view/post_list_virtualized' and associated tests to TypeScript
Hey @devinbinnie |
Summary
This pull request makes TypeScript type definitions available for
DynamicSizeList
component which used inPostList
component incomponents/post_view/post_list_virtualized.jsx
This is work in progress for this issue mattermost/mattermost#17289
Ticket Link
JIRA: https://mattermost.atlassian.net/browse/MM-34366
issue: mattermost/mattermost#17289
Related Pull Requests
Screenshots
Release Note