Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

MM-47663 : Test out MUI for menu components POC #11521

Closed
wants to merge 82 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
d8bddcd
Upgrade React and relevant packages to v17
Jul 26, 2022
8d4711a
Merge branch 'master' into MM-34187
Jul 27, 2022
c72e8e0
dependency package
Jul 27, 2022
100a78a
add package lock
Jul 28, 2022
3285f1b
Merge branch 'master' into MM-34187
Jul 28, 2022
888045c
Fix lint
Jul 29, 2022
2e08992
Update react
Aug 1, 2022
f66ba52
Merge branch 'master' into MM-34187
Aug 1, 2022
771ab9e
remoe cypress change
Aug 1, 2022
fc8bc5e
Don't scroll RHS when emoji picker is open
Aug 1, 2022
03c6ffe
Merge branch 'master' into MM-34187
Aug 3, 2022
8a7ae34
skip integrity check
Aug 3, 2022
df00bef
Merge branch 'master' into MM-34187
Aug 3, 2022
df02b9a
check ts version
Aug 5, 2022
76f5433
Merge branch 'master' into MM-34187
Aug 15, 2022
e666869
Updates
Aug 15, 2022
150fbfc
skip integrity AGAIN
Aug 15, 2022
11bf3f4
skip ts and lint checks for the components package node modules
Aug 15, 2022
8f72ffd
dd package-lock
Aug 15, 2022
3fd2b7d
skip check
Aug 15, 2022
d4e3652
change typescript plugin for rollup build
Aug 16, 2022
8edaaad
remove changes from ts config
Aug 16, 2022
171848f
PR comments
Aug 16, 2022
2e5dcb1
Merge branch 'master' into MM-34187
Aug 16, 2022
e32d0fc
Change up react-router name
Aug 16, 2022
e6c3962
clear cache when building webapp
Aug 16, 2022
9a94ea5
fix makefile
Aug 16, 2022
dbc5810
update circle ci
Aug 16, 2022
ae65e92
skip check
Aug 16, 2022
f16d28a
rm node modules before lint command
Aug 17, 2022
fbb2096
Update CI commands
Aug 17, 2022
d792b15
fix test
Aug 17, 2022
7e97d01
update pdfjs
Aug 17, 2022
afb8695
Merge branch 'master' into MM-34187
Aug 18, 2022
31ee166
fix type
Aug 18, 2022
4756496
Fix final type error
Aug 18, 2022
89f810d
Add components package node_modules to CircleCI cache
hmhealey Aug 19, 2022
eca9c59
Merge branch 'master' into MM-34187
Aug 22, 2022
765bc4c
PR comments
Aug 22, 2022
7587f2a
revert pdfjs update
Aug 23, 2022
ec893ef
Merge branch 'master' into MM-34187
Aug 30, 2022
ecce5f0
Update e2e tests
Sep 1, 2022
2a4544f
Merge branch 'master' into MM-34187
Sep 1, 2022
153c486
fix tests
Sep 1, 2022
2edfe20
Fix lint
Sep 1, 2022
6e1553a
Update react-overlays and re-add rootClose for profile popover (#11057)
hmhealey Sep 3, 2022
2b8a95d
Merge branch 'master' into MM-34187
Sep 3, 2022
3bfffb8
integrity
Sep 3, 2022
9b82c55
Merge branch 'master' into MM-34187
Sep 9, 2022
13709d0
Merge branch 'master' into MM-34187
Sep 10, 2022
e4ec1dc
Upgrade integrity
Sep 10, 2022
2048a7d
Merge branch 'master' into MM-34187
Sep 13, 2022
18cf551
Fix e2e
Sep 13, 2022
6fd812e
Fix lint
Sep 13, 2022
559e36d
Merge branch 'master' into MM-34187
mattermod Sep 13, 2022
5026f24
Merge branch 'master' of github.com:mattermost/mattermost-webapp into…
M-ZubairAhmed Nov 2, 2022
64a5e42
mui package added
M-ZubairAhmed Nov 3, 2022
c1aba72
basic menu created
M-ZubairAhmed Nov 3, 2022
297f950
basic menu added in channel options
M-ZubairAhmed Nov 3, 2022
b560905
sub menu
M-ZubairAhmed Nov 6, 2022
e2f59b8
category sub menus
M-ZubairAhmed Nov 7, 2022
1975d90
open submenus direction
M-ZubairAhmed Nov 7, 2022
8551831
Merge branch 'master' of github.com:mattermost/mattermost-webapp into…
M-ZubairAhmed Nov 22, 2022
2c9607b
category_menu_items & sidebar_channel_menu
M-ZubairAhmed Nov 22, 2022
d5d6604
rename category_menu_items to ChannelMoveToSubmenu
M-ZubairAhmed Nov 22, 2022
9849451
sidebar_category_menu
M-ZubairAhmed Nov 22, 2022
37c2314
sidebar_category_sorting_menu
M-ZubairAhmed Nov 22, 2022
4ea22e8
add loading indicator in RHS
M-ZubairAhmed Nov 23, 2022
d423eb8
center the loading indicator in Center and RHS
M-ZubairAhmed Nov 23, 2022
1f92f4f
fix bug of saved post crash
M-ZubairAhmed Nov 24, 2022
746e203
selective import utils
M-ZubairAhmed Nov 24, 2022
a5d978d
remove unneccasry listener
M-ZubairAhmed Nov 24, 2022
49a4fe5
tests and snap updates
M-ZubairAhmed Nov 23, 2022
d0661cf
e2e
M-ZubairAhmed Nov 24, 2022
a785a02
Merge branch 'master' into MM-48573-a
mattermod Nov 24, 2022
c6d2678
Merge branch 'master' into MM-48573-a
mattermod Nov 24, 2022
b864590
Merge branch 'MM-48573-a' of github.com:mattermost/mattermost-webapp …
M-ZubairAhmed Nov 25, 2022
20a09ba
Merge branch 'master' of github.com:mattermost/mattermost-webapp into…
M-ZubairAhmed Nov 25, 2022
056a932
rev comments
M-ZubairAhmed Nov 25, 2022
12a9547
Update package-lock.json
M-ZubairAhmed Nov 25, 2022
fea1a54
menu modla
M-ZubairAhmed Nov 25, 2022
d1aa6c5
sub menu in mobile
M-ZubairAhmed Nov 26, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 0 additions & 2 deletions components/__snapshots__/list_modal.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ exports[`components/ListModal should match snapshot 1`] = `
<LoadingScreen
key="loading"
position="absolute"
style={Object {}}
/>
</div>
</div>
Expand Down Expand Up @@ -212,7 +211,6 @@ exports[`components/ListModal should match snapshot with title bar button 1`] =
<LoadingScreen
key="loading"
position="absolute"
style={Object {}}
/>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ exports[`components/SearchableChannelList should match init snapshot 1`] = `
inputComponent={
Object {
"$$typeof": Symbol(react.forward_ref),
"displayName": "LocalizedInput",
"render": [Function],
}
}
Expand All @@ -37,10 +36,7 @@ exports[`components/SearchableChannelList should match init snapshot 1`] = `
<div
id="moreChannelsList"
>
<LoadingScreen
position="relative"
style={Object {}}
/>
<LoadingScreen />
</div>
</div>
<div
Expand Down
4 changes: 0 additions & 4 deletions components/__snapshots__/textbox.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ exports[`components/TextBox should match snapshot with additional, optional prop
inputComponent={
Object {
"$$typeof": Symbol(react.forward_ref),
"displayName": "AutosizeTextarea",
"render": [Function],
}
}
Expand Down Expand Up @@ -125,7 +124,6 @@ exports[`components/TextBox should match snapshot with required props 1`] = `
inputComponent={
Object {
"$$typeof": Symbol(react.forward_ref),
"displayName": "AutosizeTextarea",
"render": [Function],
}
}
Expand Down Expand Up @@ -220,7 +218,6 @@ exports[`components/TextBox should throw error when new property is too long 1`]
inputComponent={
Object {
"$$typeof": Symbol(react.forward_ref),
"displayName": "AutosizeTextarea",
"render": [Function],
}
}
Expand Down Expand Up @@ -315,7 +312,6 @@ exports[`components/TextBox should throw error when value is too long 1`] = `
inputComponent={
Object {
"$$typeof": Symbol(react.forward_ref),
"displayName": "AutosizeTextarea",
"render": [Function],
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,7 @@ exports[`components/AccessHistoryModal should match snapshot when no audits exis
bsClass="modal-body"
componentClass="div"
>
<LoadingScreen
position="relative"
style={Object {}}
/>
<LoadingScreen />
</ModalBody>
<ModalFooter
bsClass="modal-footer"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ exports[`components/admin_console/CustomTermsOfServiceSettings should match snap
id="admin.support.termsOfServiceTitle"
/>
</AdminHeader>
<LoadingScreen
position="relative"
style={Object {}}
/>
<LoadingScreen />
<div
className="admin-console-save"
>
Expand Down Expand Up @@ -77,10 +74,7 @@ exports[`components/admin_console/CustomTermsOfServiceSettings should match snap
id="admin.support.termsOfServiceTitle"
/>
</AdminHeader>
<LoadingScreen
position="relative"
style={Object {}}
/>
<LoadingScreen />
<div
className="admin-console-save"
>
Expand Down Expand Up @@ -139,10 +133,7 @@ exports[`components/admin_console/CustomTermsOfServiceSettings should match snap
id="admin.support.termsOfServiceTitle"
/>
</AdminHeader>
<LoadingScreen
position="relative"
style={Object {}}
/>
<LoadingScreen />
<div
className="admin-console-save"
>
Expand Down Expand Up @@ -201,10 +192,7 @@ exports[`components/admin_console/CustomTermsOfServiceSettings should match snap
id="admin.support.termsOfServiceTitle"
/>
</AdminHeader>
<LoadingScreen
position="relative"
style={Object {}}
/>
<LoadingScreen />
<div
className="admin-console-save"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ exports[`components/admin_console/data_retention_settings/channel_list should ma
"$$typeof": Symbol(react.memo),
"WrappedComponent": [Function],
"compare": null,
"displayName": "Connect(TeamFilterDropdown)",
"type": [Function],
},
"values": Object {
Expand Down Expand Up @@ -229,7 +228,6 @@ exports[`components/admin_console/data_retention_settings/channel_list should ma
"$$typeof": Symbol(react.memo),
"WrappedComponent": [Function],
"compare": null,
"displayName": "Connect(TeamFilterDropdown)",
"type": [Function],
},
"values": Object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@ exports[`ManageTeamsModal should match snapshot init 1`] = `
<div
className="manage-teams__teams"
>
<LoadingScreen
position="relative"
style={Object {}}
/>
<LoadingScreen />
</div>
</div>
</ModalBody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,7 @@ exports[`components/admin_console/manage_tokens_modal/manage_tokens_modal.tsx sh
<div
className="manage-teams__teams"
>
<LoadingScreen
position="relative"
style={Object {}}
/>
<LoadingScreen />
</div>
</div>
</ModalBody>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`components/admin_console/permission_schemes_settings/permission_schemes_settings should match snapshot loading 1`] = `
<LoadingScreen
position="relative"
style={Object {}}
/>
`;
exports[`components/admin_console/permission_schemes_settings/permission_schemes_settings should match snapshot loading 1`] = `<LoadingScreen />`;

exports[`components/admin_console/permission_schemes_settings/permission_schemes_settings should match snapshot with schemes 1`] = `
<div
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`components/admin_console/permission_schemes_settings/permission_system_scheme_settings/permission_system_scheme_settings should match snapshot on roles with permissions 1`] = `
<LoadingScreen
position="relative"
style={Object {}}
/>
`;
exports[`components/admin_console/permission_schemes_settings/permission_system_scheme_settings/permission_system_scheme_settings should match snapshot on roles with permissions 1`] = `<LoadingScreen />`;

exports[`components/admin_console/permission_schemes_settings/permission_system_scheme_settings/permission_system_scheme_settings should match snapshot on roles with permissions 2`] = `
Object {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`components/admin_console/permission_schemes_settings/permission_team_scheme_settings/permission_team_scheme_settings should match snapshot on edit with permissions 1`] = `
<LoadingScreen
position="relative"
style={Object {}}
/>
`;
exports[`components/admin_console/permission_schemes_settings/permission_team_scheme_settings/permission_team_scheme_settings should match snapshot on edit with permissions 1`] = `<LoadingScreen />`;

exports[`components/admin_console/permission_schemes_settings/permission_team_scheme_settings/permission_team_scheme_settings should match snapshot on edit with permissions 2`] = `
Object {
Expand Down Expand Up @@ -1069,12 +1064,7 @@ Object {
}
`;

exports[`components/admin_console/permission_schemes_settings/permission_team_scheme_settings/permission_team_scheme_settings should match snapshot on new with default roles with permissions 1`] = `
<LoadingScreen
position="relative"
style={Object {}}
/>
`;
exports[`components/admin_console/permission_schemes_settings/permission_team_scheme_settings/permission_team_scheme_settings should match snapshot on new with default roles with permissions 1`] = `<LoadingScreen />`;

exports[`components/admin_console/permission_schemes_settings/permission_team_scheme_settings/permission_team_scheme_settings should match snapshot on new with default roles with permissions 2`] = `
Object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ exports[`admin_console/system_role_users should match snapshot 1`] = `
"$$typeof": Symbol(react.memo),
"WrappedComponent": [Function],
"compare": null,
"displayName": "Connect(AddUsersToRoleModal)",
"type": [Function],
}
}
Expand Down Expand Up @@ -473,7 +472,6 @@ exports[`admin_console/system_role_users should match snapshot with readOnly tru
"$$typeof": Symbol(react.memo),
"WrappedComponent": [Function],
"compare": null,
"displayName": "Connect(AddUsersToRoleModal)",
"type": [Function],
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ exports[`components/admin_console/system_users/list should match default snapsho
"$$typeof": Symbol(react.memo),
"WrappedComponent": [Function],
"compare": null,
"displayName": "Connect(SystemUsersDropdown)",
"type": [Function],
},
]
Expand All @@ -45,7 +44,6 @@ exports[`components/admin_console/system_users/list should match default snapsho
"$$typeof": Symbol(react.memo),
"WrappedComponent": [Function],
"compare": null,
"displayName": "Connect(UserListRowWithError)",
"type": [Function],
}
}
Expand Down Expand Up @@ -108,7 +106,6 @@ exports[`components/admin_console/system_users/list should match default snapsho
"$$typeof": Symbol(react.memo),
"WrappedComponent": [Function],
"compare": null,
"displayName": "Connect(SystemUsersDropdown)",
"type": [Function],
},
]
Expand Down Expand Up @@ -229,7 +226,6 @@ exports[`components/admin_console/system_users/list should match default snapsho
"$$typeof": Symbol(react.memo),
"WrappedComponent": [Function],
"compare": null,
"displayName": "Connect(UserListRowWithError)",
"type": [Function],
}
}
Expand Down Expand Up @@ -313,7 +309,6 @@ exports[`components/admin_console/system_users/list should match default snapsho
"$$typeof": Symbol(react.memo),
"WrappedComponent": [Function],
"compare": null,
"displayName": "Connect(SystemUsersDropdown)",
"type": [Function],
},
]
Expand Down Expand Up @@ -459,7 +454,6 @@ exports[`components/admin_console/system_users/list should match default snapsho
"$$typeof": Symbol(react.memo),
"WrappedComponent": [Function],
"compare": null,
"displayName": "Connect(UserListRowWithError)",
"type": [Function],
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ exports[`admin_console/team_channel_settings/channel/ChannelGroups should match
"$$typeof": Symbol(react.memo),
"WrappedComponent": [Function],
"compare": null,
"displayName": "Connect(AddGroupsToChannelModal)",
"type": [Function],
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ exports[`admin_console/team_channel_settings/channel/ChannelMembers should match
"$$typeof": Symbol(react.memo),
"WrappedComponent": [Function],
"compare": null,
"displayName": "Connect(ChannelInviteModal)",
"type": [Function],
}
}
Expand Down Expand Up @@ -343,7 +342,6 @@ exports[`admin_console/team_channel_settings/channel/ChannelMembers should match
"$$typeof": Symbol(react.memo),
"WrappedComponent": [Function],
"compare": null,
"displayName": "Connect(ChannelInviteModal)",
"type": [Function],
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ exports[`admin_console/team_channel_settings/channel/ChannelList should match sn
"$$typeof": Symbol(react.memo),
"WrappedComponent": [Function],
"compare": null,
"displayName": "Connect(TeamFilterDropdown)",
"type": [Function],
},
"values": Object {
Expand Down Expand Up @@ -317,7 +316,6 @@ exports[`admin_console/team_channel_settings/channel/ChannelList should match sn
"$$typeof": Symbol(react.memo),
"WrappedComponent": [Function],
"compare": null,
"displayName": "Connect(TeamFilterDropdown)",
"type": [Function],
},
"values": Object {
Expand Down Expand Up @@ -925,7 +923,6 @@ exports[`admin_console/team_channel_settings/channel/ChannelList should match sn
"$$typeof": Symbol(react.memo),
"WrappedComponent": [Function],
"compare": null,
"displayName": "Connect(TeamFilterDropdown)",
"type": [Function],
},
"values": Object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ exports[`admin_console/team_channel_settings/team/TeamGroups should match snapsh
"$$typeof": Symbol(react.memo),
"WrappedComponent": [Function],
"compare": null,
"displayName": "Connect(AddGroupsToTeamModal)",
"type": [Function],
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ exports[`admin_console/team_channel_settings/team/TeamMembers should match snaps
"$$typeof": Symbol(react.memo),
"WrappedComponent": [Function],
"compare": null,
"displayName": "Connect(AddUsersToTeamModal)",
"type": [Function],
}
}
Expand Down Expand Up @@ -317,7 +316,6 @@ exports[`admin_console/team_channel_settings/team/TeamMembers should match snaps
"$$typeof": Symbol(react.memo),
"WrappedComponent": [Function],
"compare": null,
"displayName": "Connect(AddUsersToTeamModal)",
"type": [Function],
}
}
Expand Down
4 changes: 0 additions & 4 deletions components/category_menu_items/index.ts

This file was deleted.

1 change: 1 addition & 0 deletions components/channel_header/channel_info_button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const ChannelInfoButton = ({channel}: Props) => {
buttonClass={buttonClass}
buttonId='channel-info-btn'
onClick={toggleRHS}
ariaLabel={true}
iconComponent={<Icon className='icon-information-outline'/>}
tooltipKey={tooltipKey}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {isGuest} from 'mattermost-redux/utils/user_utils';

import MobileChannelHeaderPlug from 'plugins/mobile_channel_header_plug';

import CategoryMenuItems from 'components/category_menu_items';
import ChannelMoveToSubmenu from 'components/channel_move_to_submenu';
import ChannelNotificationsModal from 'components/channel_notifications_modal';
import ChannelInviteModal from 'components/channel_invite_modal';
import EditChannelHeaderModal from 'components/edit_channel_header_modal';
Expand Down Expand Up @@ -108,11 +108,9 @@ export default class ChannelHeaderDropdown extends React.PureComponent<Props> {
show={channel.type !== Constants.DM_CHANNEL && channel.type !== Constants.GM_CHANNEL}
channel={channel}
/>
<CategoryMenuItems
{/* <ChannelMoveToSubmenu
channel={channel}
openUp={false}
location={'channel'}
/>
/> */}
<Menu.Group divider={divider}>
<MenuItemToggleFavoriteChannel
show={isMobile}
Expand Down