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

chore: remove usage stats #10260

Merged
merged 15 commits into from
Oct 21, 2024
Merged
12 changes: 1 addition & 11 deletions packages/client/components/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,13 @@ import {PALETTE} from '~/styles/paletteV3'
import {Breakpoint} from '~/types/constEnums'
import {DashboardQuery} from '../__generated__/DashboardQuery.graphql'
import useSidebar from '../hooks/useSidebar'
import useUsageSnackNag from '../hooks/useUsageSnackNag'
import DashTopBar from './DashTopBar'
import DashSidebar from './Dashboard/DashSidebar'
import MobileDashSidebar from './Dashboard/MobileDashSidebar'
import MobileDashTopBar from './MobileDashTopBar'
import RequestToJoinComponent from './RequestToJoin'
import SwipeableDashSidebar from './SwipeableDashSidebar'

const InsightsRoot = lazy(
() => import(/* webpackChunkName: 'Insights' */ '../components/InsightsRoot')
)
const MeetingsDash = lazy(
() => import(/* webpackChunkName: 'MeetingsDash' */ '../components/MeetingsDash')
)
Expand Down Expand Up @@ -105,9 +101,6 @@ const Dashboard = (props: Props) => {
...DashSidebar_viewer
...useNewFeatureSnackbar_viewer
overLimitCopy
featureFlags {
insights
}
teams {
activeMeetings {
...useSnacksForNewMeetings_meetings
Expand All @@ -119,15 +112,13 @@ const Dashboard = (props: Props) => {
queryRef
)
const {viewer} = data
const {teams, featureFlags} = viewer
const {insights} = featureFlags
const {teams} = viewer
const activeMeetings = teams.flatMap((team) => team.activeMeetings).filter(Boolean)
const {isOpen, toggle, handleMenuClick} = useSidebar()
const isDesktop = useBreakpoint(Breakpoint.SIDEBAR_LEFT)
const overLimitCopy = viewer?.overLimitCopy
const meetingsDashRef = useRef<HTMLDivElement>(null)
useSnackNag(overLimitCopy)
useUsageSnackNag(insights)
useSnacksForNewMeetings(activeMeetings)
useNewFeatureSnackbar(viewer)

Expand Down Expand Up @@ -165,7 +156,6 @@ const Dashboard = (props: Props) => {
/>
<Route path='/team/:teamId' component={TeamRoot} />
<Route path='/newteam/:defaultOrgId?' component={NewTeam} />
<Route path='/usage' component={InsightsRoot} />
</Switch>
</DashMain>
</DashPanel>
Expand Down
66 changes: 0 additions & 66 deletions packages/client/components/Insights.tsx

This file was deleted.

Loading
Loading