mirror of
https://github.com/mattermost/focalboard.git
synced 2025-02-01 19:14:35 +02:00
Merge pull request #4539 from mattermost/MM-48246-ABtest-openRhs-withBoard
MM-48246 - ab test open RHS with linked board; add telemetry info
This commit is contained in:
commit
7cf0a88cc6
@ -17,8 +17,10 @@ import CompassIcon from '../../../../webapp/src/widgets/icons/compassIcon'
|
|||||||
|
|
||||||
import {Permission} from '../../../../webapp/src/constants'
|
import {Permission} from '../../../../webapp/src/constants'
|
||||||
|
|
||||||
import './rhsChannelBoardItem.scss'
|
|
||||||
import BoardPermissionGate from '../../../../webapp/src/components/permissions/boardPermissionGate'
|
import BoardPermissionGate from '../../../../webapp/src/components/permissions/boardPermissionGate'
|
||||||
|
import TelemetryClient, {TelemetryActions, TelemetryCategory} from '../../../../webapp/src/telemetry/telemetryClient'
|
||||||
|
|
||||||
|
import './rhsChannelBoardItem.scss'
|
||||||
|
|
||||||
const windowAny = (window as SuiteWindow)
|
const windowAny = (window as SuiteWindow)
|
||||||
|
|
||||||
@ -36,6 +38,10 @@ const RHSChannelBoardItem = (props: Props) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const handleBoardClicked = (boardID: string) => {
|
const handleBoardClicked = (boardID: string) => {
|
||||||
|
// send the telemetry information for the clicked board
|
||||||
|
const extraData = {teamID: team.id, board: boardID}
|
||||||
|
TelemetryClient.trackEvent(TelemetryCategory, TelemetryActions.ClickChannelsRHSBoard, extraData)
|
||||||
|
|
||||||
window.open(`${windowAny.frontendBaseURL}/team/${team.id}/${boardID}`, '_blank', 'noopener')
|
window.open(`${windowAny.frontendBaseURL}/team/${team.id}/${boardID}`, '_blank', 'noopener')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50,6 +50,7 @@ export const TelemetryActions = {
|
|||||||
LimitCardLimitReached: 'limit_cardLimitReached',
|
LimitCardLimitReached: 'limit_cardLimitReached',
|
||||||
LimitCardLimitLinkOpen: 'limit_cardLimitLinkOpen',
|
LimitCardLimitLinkOpen: 'limit_cardLimitLinkOpen',
|
||||||
VersionMoreInfo: 'version_more_info',
|
VersionMoreInfo: 'version_more_info',
|
||||||
|
ClickChannelsRHSBoard: 'click_board_in_channels_RHS',
|
||||||
}
|
}
|
||||||
|
|
||||||
interface IEventProps {
|
interface IEventProps {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user