-
Notifications
You must be signed in to change notification settings - Fork 2.7k
MM-34366: Migrate 'components/post_view/post_list_virtualized' and associated tests to TypeScript #8516
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.
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
Merge to resolve conflicts
@devinbinnie |
@naftalimurgor Yep, this is the error I'm seeing:
Can we fix this? |
Ok, I'm working on it 👍. I think the error occured after resolving the conflicts. |
fixes this TS error `components/global/product_switcher.tsx:105:17 - error TS2322: Type '"view-grid-outline"' is not assignable to type 'TIconGlyph'. 105 icon={'view-grid-outline'} ~~~~ node_modules/@mattermost/compass-components/components/icon-button/IconButton.props.d.ts:8:5 8 icon: TIconGlyph; ~~~~ The expected type comes from property 'icon' which is declared here on type 'IntrinsicAttributes & PIconButton & RefAttributes<HTMLButtonElement>'`
Merge into `mattermost-master` to synchronize changes.
Hello 👋🏽 @devinbinnie |
@devinbinnie |
Thanks @naftalimurgor, looks like there are a couple conflicts though. Can we fix those up? :) |
'mattermost-master' to resolve conflicts and update upstream repo.
Hey @naftalimurgor, thanks for merging master, but it looks like there's a test failing now. Can you have a look at that? |
Ok. I ran all the tests and several others were failing too. |
@devinbinnie |
Yeah it's possible, you can update them by running |
@devinbinnie |
Looks like it's still failing, here's the error its spitting out:
You can get this output yourself as well by running |
I ran |
I think it's the recent merge conflict, I'll have to look at how I resolved them. I think it's the reason why tests are failing. |
This PR has been automatically labelled "stale" because it hasn't had recent activity. |
@naftalimurgor How's things going? Let us know if you need any help with this. |
Hey @devinbinnie I think I'll have to re-clone this repository to do away with the breaking stuff and resubmit the PR ensuring all the checks pass |
@naftalimurgor let us know if we can help with the resubmission. Really appreciate your help with this contribution! |
Summary
This Pull Request Migrates
components/post_view/post_list_virtualized
and associated tests to TypeScript asdescribed in 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