You've already forked focalboard
							
							
				mirror of
				https://github.com/mattermost/focalboard.git
				synced 2025-10-31 00:17:42 +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:
		| @@ -17,8 +17,10 @@ import CompassIcon from '../../../../webapp/src/widgets/icons/compassIcon' | ||||
|  | ||||
| import {Permission} from '../../../../webapp/src/constants' | ||||
|  | ||||
| import './rhsChannelBoardItem.scss' | ||||
| 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) | ||||
|  | ||||
| @@ -36,6 +38,10 @@ const RHSChannelBoardItem = (props: Props) => { | ||||
|     } | ||||
|  | ||||
|     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') | ||||
|     } | ||||
|  | ||||
|   | ||||
| @@ -50,6 +50,7 @@ export const TelemetryActions = { | ||||
|     LimitCardLimitReached: 'limit_cardLimitReached', | ||||
|     LimitCardLimitLinkOpen: 'limit_cardLimitLinkOpen', | ||||
|     VersionMoreInfo: 'version_more_info', | ||||
|     ClickChannelsRHSBoard: 'click_board_in_channels_RHS', | ||||
| } | ||||
|  | ||||
| interface IEventProps { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user