Skip to content
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

MM-59373: Respecting name display preference in boards #22

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Rajat-Dabade
Copy link
Contributor

Summary

Added support to respect name display preference from channel to boards.

Ticket Link

https://mattermost.atlassian.net/browse/MM-59373

@Rajat-Dabade Rajat-Dabade self-assigned this Oct 8, 2024
@Rajat-Dabade Rajat-Dabade added 2: Dev Review Requires review by a core committer 2: QA Review Requires review by a QA tester labels Oct 8, 2024
Copy link
Member

@jespino jespino left a comment

Choose a reason for hiding this comment

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

LGTM

className='comment-text'
dangerouslySetInnerHTML={{__html: html}}
/>
<Provider store={(window as any).store}>
Copy link
Member

Choose a reason for hiding this comment

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

Can you share why do we need to create a store provider here? It does't look right.

@@ -87,3 +93,19 @@ export const getCurrentTeamId = (state: RootState): string => state.teams.curren
export const getCurrentTeam = (state: RootState): Team|null => state.teams.current
export const getFirstTeam = (state: RootState): Team|null => state.teams.allTeams[0]
export const getAllTeams = (state: RootState): Team[] => state.teams.allTeams


export const getChannelsNameMapInTeam: (state: GlobalState, teamId: string) => Record<string, Channel> = createSelector(
Copy link
Member

Choose a reason for hiding this comment

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

This can be removed as its not being used. We're using the selector directly from MM redux package.

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.

export const {
Copy link
Member

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2: Dev Review Requires review by a core committer 2: QA Review Requires review by a QA tester
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants