From d73b305f80edf0319f7d0e11553afb0ca6769430 Mon Sep 17 00:00:00 2001 From: Georg Bremer Date: Thu, 11 Apr 2024 13:08:07 +0200 Subject: [PATCH 1/3] chore: Remove old template editing logic This is orphaned with the removel of the legacy new meeting dialog. --- .../client/components/NewMeetingSettings.tsx | 42 --- .../components/NewMeetingSettingsAction.tsx | 27 -- .../components/NewMeetingSettingsPoker.tsx | 34 --- .../NewMeetingSettingsRetrospective.tsx | 38 --- ...ewMeetingSettingsRetrospectiveSettings.tsx | 96 ------- .../NewMeetingSettingsTeamPrompt.tsx | 24 -- .../components/AddNewPokerTemplate.tsx | 110 -------- .../components/AddNewReflectTemplate.tsx | 109 -------- .../meeting/components/PokerTemplateList.tsx | 195 -------------- .../components/PokerTemplateListOrg.tsx | 118 --------- .../components/PokerTemplateListOrgRoot.tsx | 24 -- .../components/PokerTemplateListPublic.tsx | 71 ------ .../PokerTemplateListPublicRoot.tsx | 26 -- .../components/PokerTemplateListTeam.tsx | 114 --------- .../meeting/components/PokerTemplateModal.tsx | 108 -------- .../components/PokerTemplatePicker.tsx | 70 ----- .../components/ReflectTemplateDetails.tsx | 189 -------------- .../components/ReflectTemplateItem.tsx | 111 -------- .../components/ReflectTemplateList.tsx | 240 ------------------ .../components/ReflectTemplateListOrg.tsx | 134 ---------- .../components/ReflectTemplateListOrgRoot.tsx | 25 -- .../components/ReflectTemplateListPublic.tsx | 104 -------- .../ReflectTemplateListPublicRoot.tsx | 28 -- .../components/ReflectTemplateListTeam.tsx | 137 ---------- .../components/ReflectTemplateModal.tsx | 102 -------- .../components/ReflectTemplateSearchBar.tsx | 139 ---------- .../components/RetroTemplatePicker.tsx | 71 ------ .../mutations/RemovePokerTemplateMutation.ts | 9 +- .../UpdatePokerTemplateScopeMutation.ts | 15 +- .../connections/getPokerTemplateOrgConn.ts | 13 - .../connections/getPokerTemplatePublicConn.ts | 10 - .../handlers/handleRemovePokerTemplate.ts | 20 +- 32 files changed, 6 insertions(+), 2547 deletions(-) delete mode 100644 packages/client/components/NewMeetingSettings.tsx delete mode 100644 packages/client/components/NewMeetingSettingsAction.tsx delete mode 100644 packages/client/components/NewMeetingSettingsPoker.tsx delete mode 100644 packages/client/components/NewMeetingSettingsRetrospective.tsx delete mode 100644 packages/client/components/NewMeetingSettingsRetrospectiveSettings.tsx delete mode 100644 packages/client/components/NewMeetingSettingsTeamPrompt.tsx delete mode 100644 packages/client/modules/meeting/components/AddNewPokerTemplate.tsx delete mode 100644 packages/client/modules/meeting/components/AddNewReflectTemplate.tsx delete mode 100644 packages/client/modules/meeting/components/PokerTemplateList.tsx delete mode 100644 packages/client/modules/meeting/components/PokerTemplateListOrg.tsx delete mode 100644 packages/client/modules/meeting/components/PokerTemplateListOrgRoot.tsx delete mode 100644 packages/client/modules/meeting/components/PokerTemplateListPublic.tsx delete mode 100644 packages/client/modules/meeting/components/PokerTemplateListPublicRoot.tsx delete mode 100644 packages/client/modules/meeting/components/PokerTemplateListTeam.tsx delete mode 100644 packages/client/modules/meeting/components/PokerTemplateModal.tsx delete mode 100644 packages/client/modules/meeting/components/PokerTemplatePicker.tsx delete mode 100644 packages/client/modules/meeting/components/ReflectTemplateDetails.tsx delete mode 100644 packages/client/modules/meeting/components/ReflectTemplateItem.tsx delete mode 100644 packages/client/modules/meeting/components/ReflectTemplateList.tsx delete mode 100644 packages/client/modules/meeting/components/ReflectTemplateListOrg.tsx delete mode 100644 packages/client/modules/meeting/components/ReflectTemplateListOrgRoot.tsx delete mode 100644 packages/client/modules/meeting/components/ReflectTemplateListPublic.tsx delete mode 100644 packages/client/modules/meeting/components/ReflectTemplateListPublicRoot.tsx delete mode 100644 packages/client/modules/meeting/components/ReflectTemplateListTeam.tsx delete mode 100644 packages/client/modules/meeting/components/ReflectTemplateModal.tsx delete mode 100644 packages/client/modules/meeting/components/ReflectTemplateSearchBar.tsx delete mode 100644 packages/client/modules/meeting/components/RetroTemplatePicker.tsx delete mode 100644 packages/client/mutations/connections/getPokerTemplateOrgConn.ts delete mode 100644 packages/client/mutations/connections/getPokerTemplatePublicConn.ts diff --git a/packages/client/components/NewMeetingSettings.tsx b/packages/client/components/NewMeetingSettings.tsx deleted file mode 100644 index 26993d5e365..00000000000 --- a/packages/client/components/NewMeetingSettings.tsx +++ /dev/null @@ -1,42 +0,0 @@ -import graphql from 'babel-plugin-relay/macro' -import React from 'react' -import {useFragment} from 'react-relay' -import {MeetingTypeEnum} from '~/__generated__/MeetingSelectorQuery.graphql' -import {NewMeetingSettings_selectedTeam$key} from '~/__generated__/NewMeetingSettings_selectedTeam.graphql' -import NewMeetingSettingsAction from './NewMeetingSettingsAction' -import NewMeetingSettingsPoker from './NewMeetingSettingsPoker' -import NewMeetingSettingsRetrospective from './NewMeetingSettingsRetrospective' -import NewMeetingSettingsTeamPrompt from './NewMeetingSettingsTeamPrompt' - -interface Props { - meetingType: MeetingTypeEnum - selectedTeamRef: NewMeetingSettings_selectedTeam$key -} - -const settingsLookup = { - action: NewMeetingSettingsAction, - retrospective: NewMeetingSettingsRetrospective, - poker: NewMeetingSettingsPoker, - teamPrompt: NewMeetingSettingsTeamPrompt -} - -const NewMeetingSettings = (props: Props) => { - const {meetingType, selectedTeamRef} = props - const selectedTeam = useFragment( - graphql` - fragment NewMeetingSettings_selectedTeam on Team { - ...NewMeetingSettingsRetrospective_team - ...NewMeetingSettingsAction_team - ...NewMeetingSettingsPoker_team - ...NewMeetingSettingsTeamPrompt_team - id - } - `, - selectedTeamRef - ) - - const Settings = settingsLookup[meetingType] - return -} - -export default NewMeetingSettings diff --git a/packages/client/components/NewMeetingSettingsAction.tsx b/packages/client/components/NewMeetingSettingsAction.tsx deleted file mode 100644 index db7e1a75d88..00000000000 --- a/packages/client/components/NewMeetingSettingsAction.tsx +++ /dev/null @@ -1,27 +0,0 @@ -import graphql from 'babel-plugin-relay/macro' -import React from 'react' -import {useFragment} from 'react-relay' -import {NewMeetingSettingsAction_team$key} from '../__generated__/NewMeetingSettingsAction_team.graphql' -import NewMeetingSettingsToggleCheckIn from './NewMeetingSettingsToggleCheckIn' - -interface Props { - teamRef: NewMeetingSettingsAction_team$key -} - -const NewMeetingSettingsAction = (props: Props) => { - const {teamRef} = props - const team = useFragment( - graphql` - fragment NewMeetingSettingsAction_team on Team { - actionSettings: meetingSettings(meetingType: action) { - ...NewMeetingSettingsToggleCheckIn_settings - } - } - `, - teamRef - ) - const {actionSettings} = team - return -} - -export default NewMeetingSettingsAction diff --git a/packages/client/components/NewMeetingSettingsPoker.tsx b/packages/client/components/NewMeetingSettingsPoker.tsx deleted file mode 100644 index f546a8cd65a..00000000000 --- a/packages/client/components/NewMeetingSettingsPoker.tsx +++ /dev/null @@ -1,34 +0,0 @@ -import graphql from 'babel-plugin-relay/macro' -import React from 'react' -import {useFragment} from 'react-relay' -import {NewMeetingSettingsPoker_team$key} from '~/__generated__/NewMeetingSettingsPoker_team.graphql' -import PokerTemplatePicker from '../modules/meeting/components/PokerTemplatePicker' -import NewMeetingSettingsToggleCheckIn from './NewMeetingSettingsToggleCheckIn' - -interface Props { - teamRef: NewMeetingSettingsPoker_team$key -} - -const NewMeetingSettingsPoker = (props: Props) => { - const {teamRef} = props - const team = useFragment( - graphql` - fragment NewMeetingSettingsPoker_team on Team { - pokerSettings: meetingSettings(meetingType: poker) { - ...PokerTemplatePicker_settings - ...NewMeetingSettingsToggleCheckIn_settings - } - } - `, - teamRef - ) - const {pokerSettings} = team - return ( - <> - - - - ) -} - -export default NewMeetingSettingsPoker diff --git a/packages/client/components/NewMeetingSettingsRetrospective.tsx b/packages/client/components/NewMeetingSettingsRetrospective.tsx deleted file mode 100644 index 75f1d3ab983..00000000000 --- a/packages/client/components/NewMeetingSettingsRetrospective.tsx +++ /dev/null @@ -1,38 +0,0 @@ -import graphql from 'babel-plugin-relay/macro' -import React from 'react' -import {useFragment} from 'react-relay' -import {NewMeetingSettingsRetrospective_team$key} from '~/__generated__/NewMeetingSettingsRetrospective_team.graphql' -import RetroTemplatePicker from '../modules/meeting/components/RetroTemplatePicker' -import NewMeetingSettingsRetrospectiveSettings from './NewMeetingSettingsRetrospectiveSettings' - -interface Props { - teamRef: NewMeetingSettingsRetrospective_team$key -} - -const NewMeetingSettingsRetrospective = (props: Props) => { - const {teamRef} = props - const team = useFragment( - graphql` - fragment NewMeetingSettingsRetrospective_team on Team { - ...NewMeetingSettingsRetrospectiveSettings_team - retroSettings: meetingSettings(meetingType: retrospective) { - ...RetroTemplatePicker_settings - } - organization { - ...NewMeetingSettingsRetrospectiveSettings_organization - } - } - `, - teamRef - ) - const {organization} = team - const {retroSettings} = team - return ( - <> - - - - ) -} - -export default NewMeetingSettingsRetrospective diff --git a/packages/client/components/NewMeetingSettingsRetrospectiveSettings.tsx b/packages/client/components/NewMeetingSettingsRetrospectiveSettings.tsx deleted file mode 100644 index 36f569d2723..00000000000 --- a/packages/client/components/NewMeetingSettingsRetrospectiveSettings.tsx +++ /dev/null @@ -1,96 +0,0 @@ -import styled from '@emotion/styled' -import graphql from 'babel-plugin-relay/macro' -import React from 'react' -import {useFragment} from 'react-relay' -import {NewMeetingSettingsRetrospectiveSettings_team$key} from '~/__generated__/NewMeetingSettingsRetrospectiveSettings_team.graphql' -import {NewMeetingSettingsRetrospectiveSettings_organization$key} from '~/__generated__/NewMeetingSettingsRetrospectiveSettings_organization.graphql' -import {MenuPosition} from '../hooks/useCoords' -import useMenu from '../hooks/useMenu' -import {PortalStatus} from '../hooks/usePortal' -import NewMeetingDropdown from './NewMeetingDropdown' -import NewMeetingSettingsToggleAnonymity from './NewMeetingSettingsToggleAnonymity' -import NewMeetingSettingsToggleCheckIn from './NewMeetingSettingsToggleCheckIn' -import NewMeetingSettingsToggleTranscription from './NewMeetingSettingsToggleTranscription' -import NewMeetingSettingsToggleTeamHealth from './NewMeetingSettingsToggleTeamHealth' - -const NewMeetingSettingsToggleCheckInMenuEntry = styled(NewMeetingSettingsToggleCheckIn)({ - background: 'none', - borderRadius: 0 -}) - -const NewMeetingSettingsToggleTeamHealthMenuEntry = styled(NewMeetingSettingsToggleTeamHealth)({ - background: 'none', - borderRadius: 0 -}) - -const NewMeetingSettingsToggleAnonymityMenuEntry = styled(NewMeetingSettingsToggleAnonymity)({ - background: 'none', - borderRadius: 0 -}) - -interface Props { - teamRef: NewMeetingSettingsRetrospectiveSettings_team$key - organizationRef: NewMeetingSettingsRetrospectiveSettings_organization$key -} - -const NewMeetingSettingsRetrospectiveSettings = (props: Props) => { - const {teamRef, organizationRef} = props - const {togglePortal, menuPortal, originRef, menuProps, portalStatus} = useMenu( - MenuPosition.LOWER_RIGHT, - { - isDropdown: true - } - ) - - const team = useFragment( - graphql` - fragment NewMeetingSettingsRetrospectiveSettings_team on Team { - ...NewMeetingSettingsToggleTeamHealth_team - retroSettings: meetingSettings(meetingType: retrospective) { - ...NewMeetingSettingsToggleCheckIn_settings - ...NewMeetingSettingsToggleTeamHealth_settings - ...NewMeetingSettingsToggleAnonymity_settings - ...NewMeetingSettingsToggleTranscription_settings - } - } - `, - teamRef - ) - const {retroSettings} = team - - const organization = useFragment( - graphql` - fragment NewMeetingSettingsRetrospectiveSettings_organization on Organization { - featureFlags { - zoomTranscription - } - } - `, - organizationRef - ) - const {zoomTranscription} = organization.featureFlags - - return ( - <> - - {menuPortal( -
- - - - {zoomTranscription && ( - - )} -
- )} - - ) -} - -export default NewMeetingSettingsRetrospectiveSettings diff --git a/packages/client/components/NewMeetingSettingsTeamPrompt.tsx b/packages/client/components/NewMeetingSettingsTeamPrompt.tsx deleted file mode 100644 index 0d396e4fa9f..00000000000 --- a/packages/client/components/NewMeetingSettingsTeamPrompt.tsx +++ /dev/null @@ -1,24 +0,0 @@ -import graphql from 'babel-plugin-relay/macro' -import {useFragment} from 'react-relay' -import {NewMeetingSettingsTeamPrompt_team$key} from '../__generated__/NewMeetingSettingsTeamPrompt_team.graphql' - -interface Props { - teamRef: NewMeetingSettingsTeamPrompt_team$key -} - -const NewMeetingSettingsTeamPrompt = (props: Props) => { - const {teamRef} = props - useFragment( - graphql` - fragment NewMeetingSettingsTeamPrompt_team on Team { - teamPromptSettings: meetingSettings(meetingType: teamPrompt) { - id - } - } - `, - teamRef - ) - - return null -} -export default NewMeetingSettingsTeamPrompt diff --git a/packages/client/modules/meeting/components/AddNewPokerTemplate.tsx b/packages/client/modules/meeting/components/AddNewPokerTemplate.tsx deleted file mode 100644 index b1e4c9e5206..00000000000 --- a/packages/client/modules/meeting/components/AddNewPokerTemplate.tsx +++ /dev/null @@ -1,110 +0,0 @@ -import styled from '@emotion/styled' -import graphql from 'babel-plugin-relay/macro' -import React, {useEffect, useRef} from 'react' -import {useFragment} from 'react-relay' -import LinkButton from '../../../components/LinkButton' -import TooltipStyled from '../../../components/TooltipStyled' -import useAtmosphere from '../../../hooks/useAtmosphere' -import useMutationProps from '../../../hooks/useMutationProps' -import AddPokerTemplateMutation from '../../../mutations/AddPokerTemplateMutation' -import {AddNewPokerTemplate_pokerTemplates$key} from '../../../__generated__/AddNewPokerTemplate_pokerTemplates.graphql' -import {AddNewPokerTemplate_team$key} from '../../../__generated__/AddNewPokerTemplate_team.graphql' - -const ErrorLine = styled(TooltipStyled)({ - margin: '0 0 8px' -}) - -const AddPokerTemplateLink = styled(LinkButton)({ - alignItems: 'center', - display: 'flex', - justifyContent: 'flex-start', - fontSize: 16, - fontWeight: 600, - lineHeight: '24px', - outline: 'none', - padding: '20px 16px', - width: '100%' -}) - -interface Props { - gotoTeamTemplates: () => void - pokerTemplatesRef: AddNewPokerTemplate_pokerTemplates$key - teamRef: AddNewPokerTemplate_team$key - displayUpgradeDetails: () => void -} - -const AddNewPokerTemplate = (props: Props) => { - const {gotoTeamTemplates, teamRef, pokerTemplatesRef, displayUpgradeDetails} = props - const atmosphere = useAtmosphere() - const pokerTemplates = useFragment( - graphql` - fragment AddNewPokerTemplate_pokerTemplates on PokerTemplate @relay(plural: true) { - name - } - `, - pokerTemplatesRef - ) - const team = useFragment( - graphql` - fragment AddNewPokerTemplate_team on Team { - id - tier - viewerTeamMember { - id - user { - id - freeCustomPokerTemplatesRemaining - } - } - } - `, - teamRef - ) - const {id: teamId, tier, viewerTeamMember} = team - const {user} = viewerTeamMember || {} - const {freeCustomPokerTemplatesRemaining} = user || {} - - const {onError, onCompleted, submitMutation, submitting, error} = useMutationProps() - const errorTimerId = useRef() - useEffect(() => { - return () => { - window.clearTimeout(errorTimerId.current) - } - }, []) - const canEditTemplates = - tier !== 'starter' || - (freeCustomPokerTemplatesRemaining && freeCustomPokerTemplatesRemaining > 0) - const addNewTemplate = () => { - if (submitting) return - if (!canEditTemplates) { - displayUpgradeDetails() - return - } - if (pokerTemplates.find((template) => template.name.startsWith('*New Template'))) { - onError(new Error('You already have a new template. Try renaming that one first.')) - errorTimerId.current = window.setTimeout(() => { - onCompleted() - }, 8000) - return - } - submitMutation() - AddPokerTemplateMutation(atmosphere, {teamId}, {onError, onCompleted}) - gotoTeamTemplates() - } - - const containsNewTemplate = pokerTemplates.find((template) => - template.name.startsWith('*New Template') - ) - - if (containsNewTemplate) return null - return ( -
- {error && {error.message}} - - Create New Template {!canEditTemplates && '🔒'} - -
- ) -} - -export default AddNewPokerTemplate diff --git a/packages/client/modules/meeting/components/AddNewReflectTemplate.tsx b/packages/client/modules/meeting/components/AddNewReflectTemplate.tsx deleted file mode 100644 index 4e1bff87056..00000000000 --- a/packages/client/modules/meeting/components/AddNewReflectTemplate.tsx +++ /dev/null @@ -1,109 +0,0 @@ -import styled from '@emotion/styled' -import graphql from 'babel-plugin-relay/macro' -import React, {useEffect, useRef} from 'react' -import {useFragment} from 'react-relay' -import LinkButton from '../../../components/LinkButton' -import TooltipStyled from '../../../components/TooltipStyled' -import useAtmosphere from '../../../hooks/useAtmosphere' -import useMutationProps from '../../../hooks/useMutationProps' -import AddReflectTemplateMutation from '../../../mutations/AddReflectTemplateMutation' -import {AddNewReflectTemplate_reflectTemplates$key} from '../../../__generated__/AddNewReflectTemplate_reflectTemplates.graphql' -import {AddNewReflectTemplate_team$key} from '../../../__generated__/AddNewReflectTemplate_team.graphql' - -const ErrorLine = styled(TooltipStyled)({ - margin: '0 0 8px' -}) - -const AddRetroTemplateLink = styled(LinkButton)({ - alignItems: 'center', - display: 'flex', - justifyContent: 'flex-start', - fontSize: 16, - fontWeight: 600, - lineHeight: '24px', - outline: 'none', - padding: '20px 16px', - width: '100%' -}) - -interface Props { - gotoTeamTemplates: () => void - reflectTemplatesRef: AddNewReflectTemplate_reflectTemplates$key - displayUpgradeDetails: () => void - teamRef: AddNewReflectTemplate_team$key -} - -const AddNewReflectTemplate = (props: Props) => { - const {gotoTeamTemplates, reflectTemplatesRef, teamRef, displayUpgradeDetails} = props - const atmosphere = useAtmosphere() - const reflectTemplates = useFragment( - graphql` - fragment AddNewReflectTemplate_reflectTemplates on ReflectTemplate @relay(plural: true) { - name - } - `, - reflectTemplatesRef - ) - const team = useFragment( - graphql` - fragment AddNewReflectTemplate_team on Team { - id - tier - viewerTeamMember { - id - user { - id - freeCustomRetroTemplatesRemaining - } - } - } - `, - teamRef - ) - const {id: teamId, tier, viewerTeamMember} = team - const {user} = viewerTeamMember || {} - const {freeCustomRetroTemplatesRemaining} = user || {} - const {onError, onCompleted, submitMutation, submitting, error} = useMutationProps() - const errorTimerId = useRef() - useEffect(() => { - return () => { - window.clearTimeout(errorTimerId.current) - } - }, []) - const canEditTemplates = - tier !== 'starter' || - (freeCustomRetroTemplatesRemaining && freeCustomRetroTemplatesRemaining > 0) - const addNewTemplate = () => { - if (submitting) return - if (!canEditTemplates) { - displayUpgradeDetails() - return - } - if (reflectTemplates.find((template) => template.name.startsWith('*New Template'))) { - onError(new Error('You already have a new template. Try renaming that one first.')) - errorTimerId.current = window.setTimeout(() => { - onCompleted() - }, 8000) - return - } - submitMutation() - AddReflectTemplateMutation(atmosphere, {teamId}, {onError, onCompleted}) - gotoTeamTemplates() - } - - const containsNewTemplate = reflectTemplates.find((template) => - template.name.startsWith('*New Template') - ) - - if (containsNewTemplate) return null - return ( -
- {error && {error.message}} - - Create New Template {!canEditTemplates && '🔒'} - -
- ) -} - -export default AddNewReflectTemplate diff --git a/packages/client/modules/meeting/components/PokerTemplateList.tsx b/packages/client/modules/meeting/components/PokerTemplateList.tsx deleted file mode 100644 index d3c4b3f0f89..00000000000 --- a/packages/client/modules/meeting/components/PokerTemplateList.tsx +++ /dev/null @@ -1,195 +0,0 @@ -import styled from '@emotion/styled' -import { - Business as BusinessIcon, - Group as GroupIcon, - Public as PublicIcon -} from '@mui/icons-material' -import graphql from 'babel-plugin-relay/macro' -import React from 'react' -import {useFragment} from 'react-relay' -import SwipeableViews from 'react-swipeable-views' -import Tab from '../../../components/Tab/Tab' -import Tabs from '../../../components/Tabs/Tabs' -import useBreakpoint from '../../../hooks/useBreakpoint' -import {desktopSidebarShadow} from '../../../styles/elevation' -import {PALETTE} from '../../../styles/paletteV3' -import {Breakpoint} from '../../../types/constEnums' -import {PokerTemplateList_settings$key} from '../../../__generated__/PokerTemplateList_settings.graphql' -import AddNewPokerTemplate from './AddNewPokerTemplate' -import PokerTemplateListOrgRoot from './PokerTemplateListOrgRoot' -import PokerTemplateListPublicRoot from './PokerTemplateListPublicRoot' -import PokerTemplateListTeam from './PokerTemplateListTeam' - -const WIDTH = 360 -const TemplateSidebar = styled('div')<{isDesktop: boolean}>(({isDesktop}) => ({ - boxShadow: desktopSidebarShadow, - display: 'flex', - flexDirection: 'column', - position: 'relative', - width: !isDesktop ? '100%' : WIDTH, - zIndex: 1 // show above template details to show box-shadow -})) - -const Label = styled('div')({ - color: PALETTE.SLATE_700, - fontSize: 20, - fontWeight: 600, - lineHeight: '24px', - paddingTop: 16, - paddingLeft: 24, - paddingBottom: 8 -}) - -const StyledTabsBar = styled(Tabs)({ - boxShadow: `inset 0 -1px 0 ${PALETTE.SLATE_300}` -}) - -const FullTab = styled(Tab)({ - padding: '4px 0 8px', - width: '30%' -}) - -const WideTab = styled(FullTab)({ - width: '40%' -}) - -const TabContents = styled('div')({ - display: 'flex', - flexDirection: 'column', - height: '100%' -}) - -const TabLabel = styled('div')({ - display: 'flex', - justifyContent: 'center', - alignItems: 'center' -}) - -const TabIcon = styled('div')({ - height: 24, - width: 24, - marginRight: 4 -}) - -const containerStyle = {height: '100%'} -const innerStyle = {width: '100%', height: '100%'} -interface Props { - activeIdx: number - setActiveIdx: (idx: number) => void - settingsRef: PokerTemplateList_settings$key - displayUpgradeDetails: () => void -} - -const PokerTemplateList = (props: Props) => { - const {activeIdx, setActiveIdx, settingsRef, displayUpgradeDetails} = props - const settings = useFragment( - graphql` - fragment PokerTemplateList_settings on PokerMeetingSettings { - id - team { - ...PokerTemplateListTeam_team - ...AddNewPokerTemplate_team - id - } - activeTemplate { - ...getTemplateList_template - id - } - teamTemplates { - ...PokerTemplateListTeam_teamTemplates - ...AddNewPokerTemplate_pokerTemplates - id - } - } - `, - settingsRef - ) - const {team, teamTemplates} = settings - const {id: teamId} = team - const activeTemplateId = settings.activeTemplate?.id ?? '-tmp' - - const gotoTeamTemplates = () => { - setActiveIdx(0) - } - const gotoPublicTemplates = () => { - setActiveIdx(2) - } - const onChangeIdx = (idx: number, _fromIdx: number, props: {reason: string}) => { - //very buggy behavior, probably linked to the vertical scrolling. - // to repro, go from team > org > team > org by clicking tabs & see this this get called for who knows why - if (props.reason === 'focus') return - setActiveIdx(idx) - } - const isDesktop = useBreakpoint(Breakpoint.NEW_MEETING_GRID) - - return ( - - - - - - - {' '} - Team - - } - onClick={gotoTeamTemplates} - /> - - - - {' '} - Organization - - } - onClick={() => setActiveIdx(1)} - /> - - - - {' '} - Public - - } - onClick={gotoPublicTemplates} - /> - - - - - - - {activeIdx === 1 && } - - {activeIdx === 2 && } - - - {/* add a key to clear the error when they change */} - - ) -} - -export default PokerTemplateList diff --git a/packages/client/modules/meeting/components/PokerTemplateListOrg.tsx b/packages/client/modules/meeting/components/PokerTemplateListOrg.tsx deleted file mode 100644 index 1f12196d9d0..00000000000 --- a/packages/client/modules/meeting/components/PokerTemplateListOrg.tsx +++ /dev/null @@ -1,118 +0,0 @@ -import styled from '@emotion/styled' -import graphql from 'babel-plugin-relay/macro' -import React from 'react' -import {PreloadedQuery, usePreloadedQuery} from 'react-relay' -import {useHistory} from 'react-router' -import useActiveTopTemplate from '../../../hooks/useActiveTopTemplate' -import useAtmosphere from '../../../hooks/useAtmosphere' -import SendClientSideEvent from '../../../utils/SendClientSideEvent' -import {PALETTE} from '../../../styles/paletteV3' -import {PokerTemplateListOrgQuery} from '../../../__generated__/PokerTemplateListOrgQuery.graphql' -import PokerTemplateItem from './PokerTemplateItem' - -const TemplateList = styled('ul')({ - listStyle: 'none', - paddingLeft: 0, - marginTop: 0 -}) - -const StyledLink = styled('span')({ - color: PALETTE.SKY_500, - cursor: 'pointer', - outline: 0, - ':hover, :focus, :active': { - color: PALETTE.SKY_600 - } -}) - -const Message = styled('div')({ - border: `1px dashed ${PALETTE.SLATE_400}`, - borderRadius: 4, - color: PALETTE.SLATE_600, - fontSize: 14, - fontStyle: 'italic', - lineHeight: '20px', - margin: 'auto 32px', - padding: '8px 16px' -}) -interface Props { - queryRef: PreloadedQuery -} - -const query = graphql` - query PokerTemplateListOrgQuery($teamId: ID!) { - viewer { - id - team(teamId: $teamId) { - id - tier - orgId - meetingSettings(meetingType: poker) { - ... on PokerMeetingSettings { - organizationTemplates(first: 20) - @connection(key: "PokerTemplateListOrg_organizationTemplates") { - edges { - node { - ...PokerTemplateItem_template - id - } - } - } - activeTemplate { - id - } - } - } - } - } - } -` -const PokerTemplateListOrg = (props: Props) => { - const {queryRef} = props - const data = usePreloadedQuery(query, queryRef) - const {viewer} = data - const team = viewer.team! - const {id: teamId, meetingSettings, tier, orgId} = team - const activeTemplateId = meetingSettings.activeTemplate?.id ?? '-tmp' - const organizationTemplates = meetingSettings.organizationTemplates! - const {edges} = organizationTemplates - useActiveTopTemplate(edges, activeTemplateId, teamId, true, 'poker') - const atmosphere = useAtmosphere() - const history = useHistory() - - if (edges.length === 0) { - if (tier === 'starter') { - const goToBilling = () => { - SendClientSideEvent(atmosphere, 'Upgrade CTA Clicked', { - upgradeCTALocation: 'orgTemplate', - meetingType: 'poker' - }) - history.push(`/me/organizations/${orgId}`) - } - return ( - - Upgrade - to create custom templates for your organization - - ) - } - return {'No other teams in your organization are sharing a template.'} - } - return ( - - {edges.map(({node: template}) => { - return ( - - ) - })} - - ) -} - -export default PokerTemplateListOrg diff --git a/packages/client/modules/meeting/components/PokerTemplateListOrgRoot.tsx b/packages/client/modules/meeting/components/PokerTemplateListOrgRoot.tsx deleted file mode 100644 index b1ae0cc1d52..00000000000 --- a/packages/client/modules/meeting/components/PokerTemplateListOrgRoot.tsx +++ /dev/null @@ -1,24 +0,0 @@ -import React, {Suspense} from 'react' -import useQueryLoaderNow from '../../../hooks/useQueryLoaderNow' -import pokerTemplateListOrgQuery, { - PokerTemplateListOrgQuery -} from '../../../__generated__/PokerTemplateListOrgQuery.graphql' -import MockTemplateList from './MockTemplateList' -import PokerTemplateListOrg from './PokerTemplateListOrg' - -interface Props { - teamId: string -} - -const PokerTemplateListOrgRoot = (props: Props) => { - const {teamId} = props - const queryRef = useQueryLoaderNow(pokerTemplateListOrgQuery, {teamId}) - - return ( - }> - {queryRef && } - - ) -} - -export default PokerTemplateListOrgRoot diff --git a/packages/client/modules/meeting/components/PokerTemplateListPublic.tsx b/packages/client/modules/meeting/components/PokerTemplateListPublic.tsx deleted file mode 100644 index 1e990c56e20..00000000000 --- a/packages/client/modules/meeting/components/PokerTemplateListPublic.tsx +++ /dev/null @@ -1,71 +0,0 @@ -import styled from '@emotion/styled' -import graphql from 'babel-plugin-relay/macro' -import React from 'react' -import {PreloadedQuery, usePreloadedQuery} from 'react-relay' -import useActiveTopTemplate from '../../../hooks/useActiveTopTemplate' -import {PokerTemplateListPublicQuery} from '../../../__generated__/PokerTemplateListPublicQuery.graphql' -import PokerTemplateItem from './PokerTemplateItem' - -const TemplateList = styled('ul')({ - listStyle: 'none', - paddingLeft: 0, - marginTop: 0 -}) - -interface Props { - queryRef: PreloadedQuery -} -const query = graphql` - query PokerTemplateListPublicQuery($teamId: ID!) { - viewer { - id - team(teamId: $teamId) { - id - meetingSettings(meetingType: poker) { - ... on PokerMeetingSettings { - publicTemplates(first: 20) @connection(key: "PokerTemplateListPublic_publicTemplates") { - edges { - node { - ...PokerTemplateItem_template - id - } - } - } - activeTemplate { - id - } - } - } - } - } - } -` - -const PokerTemplateListPublic = (props: Props) => { - const {queryRef} = props - const data = usePreloadedQuery(query, queryRef) - const {viewer} = data - const team = viewer.team! - const {id: teamId, meetingSettings} = team - const publicTemplates = meetingSettings.publicTemplates! - const activeTemplateId = meetingSettings.activeTemplate?.id ?? '-tmp' - const {edges} = publicTemplates - useActiveTopTemplate(edges, activeTemplateId, teamId, true, 'poker') - return ( - - {edges.map(({node: template}) => { - return ( - - ) - })} - - ) -} - -export default PokerTemplateListPublic diff --git a/packages/client/modules/meeting/components/PokerTemplateListPublicRoot.tsx b/packages/client/modules/meeting/components/PokerTemplateListPublicRoot.tsx deleted file mode 100644 index 6f59f30c4b1..00000000000 --- a/packages/client/modules/meeting/components/PokerTemplateListPublicRoot.tsx +++ /dev/null @@ -1,26 +0,0 @@ -import React, {Suspense} from 'react' -import useQueryLoaderNow from '../../../hooks/useQueryLoaderNow' -import pokerTemplateListPublicQuery, { - PokerTemplateListPublicQuery -} from '../../../__generated__/PokerTemplateListPublicQuery.graphql' -import MockTemplateList from './MockTemplateList' -import PokerTemplateListPublic from './PokerTemplateListPublic' - -interface Props { - teamId: string -} - -const PokerTemplateListPublicRoot = (props: Props) => { - const {teamId} = props - const queryRef = useQueryLoaderNow(pokerTemplateListPublicQuery, { - teamId - }) - - return ( - }> - {queryRef && } - - ) -} - -export default PokerTemplateListPublicRoot diff --git a/packages/client/modules/meeting/components/PokerTemplateListTeam.tsx b/packages/client/modules/meeting/components/PokerTemplateListTeam.tsx deleted file mode 100644 index 6bab382b0bd..00000000000 --- a/packages/client/modules/meeting/components/PokerTemplateListTeam.tsx +++ /dev/null @@ -1,114 +0,0 @@ -import styled from '@emotion/styled' -import graphql from 'babel-plugin-relay/macro' -import React from 'react' -import {useFragment} from 'react-relay' -import {useHistory} from 'react-router' -import useActiveTopTemplate from '../../../hooks/useActiveTopTemplate' -import useAtmosphere from '../../../hooks/useAtmosphere' -import SendClientSideEvent from '../../../utils/SendClientSideEvent' -import {PALETTE} from '../../../styles/paletteV3' -import {PokerTemplateListTeam_team$key} from '../../../__generated__/PokerTemplateListTeam_team.graphql' -import {PokerTemplateListTeam_teamTemplates$key} from '../../../__generated__/PokerTemplateListTeam_teamTemplates.graphql' -import PokerTemplateItem from './PokerTemplateItem' - -const TemplateList = styled('ul')({ - listStyle: 'none', - paddingLeft: 0, - marginTop: 0 -}) - -const Message = styled('div')({ - border: `1px dashed ${PALETTE.SLATE_400}`, - borderRadius: 4, - color: PALETTE.SLATE_600, - fontSize: 14, - fontStyle: 'italic', - lineHeight: '20px', - margin: 'auto 32px', - padding: '8px 16px' -}) - -const StyledLink = styled('span')({ - color: PALETTE.SKY_500, - cursor: 'pointer', - outline: 0, - ':hover, :focus, :active': { - color: PALETTE.SKY_600 - } -}) - -interface Props { - isActive: boolean - activeTemplateId: string - showPublicTemplates: () => void - teamTemplatesRef: PokerTemplateListTeam_teamTemplates$key - teamRef: PokerTemplateListTeam_team$key -} - -const PokerTemplateListTeam = (props: Props) => { - const {isActive, activeTemplateId, showPublicTemplates, teamTemplatesRef, teamRef} = props - const teamTemplates = useFragment( - graphql` - fragment PokerTemplateListTeam_teamTemplates on PokerTemplate @relay(plural: true) { - id - ...PokerTemplateItem_template - } - `, - teamTemplatesRef - ) - const team = useFragment( - graphql` - fragment PokerTemplateListTeam_team on Team { - id - orgId - tier - } - `, - teamRef - ) - const {id: teamId, tier, orgId} = team - const edges = teamTemplates.map((t) => ({node: {id: t.id}})) as readonly {node: {id: string}}[] - useActiveTopTemplate(edges, activeTemplateId, teamId, isActive, 'poker') - const atmosphere = useAtmosphere() - const history = useHistory() - if (teamTemplates.length === 0) { - if (tier === 'starter') { - const goToBilling = () => { - SendClientSideEvent(atmosphere, 'Upgrade CTA Clicked', { - upgradeCTALocation: 'teamTemplate', - meetingType: 'poker' - }) - history.push(`/me/organizations/${orgId}`) - } - return ( - - Upgrade - to create custom templates for your team - - ) - } - return ( - - Your custom templates will show up here. Get started with a - Public Template - - ) - } - return ( - - {teamTemplates.map((template) => { - return ( - - ) - })} - - ) -} - -export default PokerTemplateListTeam diff --git a/packages/client/modules/meeting/components/PokerTemplateModal.tsx b/packages/client/modules/meeting/components/PokerTemplateModal.tsx deleted file mode 100644 index 007c360db22..00000000000 --- a/packages/client/modules/meeting/components/PokerTemplateModal.tsx +++ /dev/null @@ -1,108 +0,0 @@ -import styled from '@emotion/styled' -import graphql from 'babel-plugin-relay/macro' -import React, {useEffect, useState} from 'react' -import {useFragment} from 'react-relay' -import DialogContainer from '../../../components/DialogContainer' -import useAtmosphere from '../../../hooks/useAtmosphere' -import getTemplateList from '../../../utils/getTemplateList' -import {setActiveTemplate} from '../../../utils/relay/setActiveTemplate' -import {PokerTemplateModal_pokerMeetingSettings$key} from '../../../__generated__/PokerTemplateModal_pokerMeetingSettings.graphql' -import CustomTemplateUpgradeMsg from './CustomTemplateUpgradeMsg' -import PokerTemplateDetails from './PokerTemplateDetails' -import PokerTemplateList from './PokerTemplateList' -import PokerTemplateScaleDetails from './PokerTemplateScaleDetails' - -interface Props { - closePortal: () => void - pokerMeetingSettingsRef: PokerTemplateModal_pokerMeetingSettings$key -} - -const StyledDialogContainer = styled(DialogContainer)({ - flexDirection: 'row', - width: 880, - maxHeight: 520, - minHeight: 520 -}) - -const SCOPES = ['TEAM', 'ORGANIZATION', 'PUBLIC'] - -const PokerTemplateModal = (props: Props) => { - const {closePortal, pokerMeetingSettingsRef} = props - const pokerMeetingSettings = useFragment( - graphql` - fragment PokerTemplateModal_pokerMeetingSettings on PokerMeetingSettings { - ...PokerTemplateList_settings - ...PokerTemplateDetails_settings - meetingType - team { - ...PokerTemplateScaleDetails_team - id - orgId - editingScaleId - } - selectedTemplate { - id - ...getTemplateList_template - } - activeTemplate { - id - } - } - `, - pokerMeetingSettingsRef - ) - - const {selectedTemplate, team, activeTemplate, meetingType} = pokerMeetingSettings - const {id: teamId, orgId, editingScaleId} = team - const lowestScope = getTemplateList(teamId, orgId, selectedTemplate) - const listIdx = SCOPES.indexOf(lowestScope) - const [activeIdx, setActiveIdx] = useState(listIdx) - const [showUpgradeDetails, setShowUpgradeDetails] = useState(false) - const gotoTeamTemplates = () => { - setActiveIdx(0) - } - const gotoPublicTemplates = () => { - setActiveIdx(2) - } - - const atmosphere = useAtmosphere() - useEffect(() => { - setActiveTemplate(atmosphere, teamId, selectedTemplate.id, 'poker') - }, []) - - const displayUpgradeDetails = () => { - setShowUpgradeDetails(true) - } - - const hideUpgradeDetails = () => { - setShowUpgradeDetails(false) - } - - useEffect(() => { - if (showUpgradeDetails) hideUpgradeDetails() - }, [activeTemplate]) - - return ( - - - {showUpgradeDetails ? ( - - ) : editingScaleId ? ( - - ) : ( - - )} - - ) -} -export default PokerTemplateModal diff --git a/packages/client/modules/meeting/components/PokerTemplatePicker.tsx b/packages/client/modules/meeting/components/PokerTemplatePicker.tsx deleted file mode 100644 index 33940b0581a..00000000000 --- a/packages/client/modules/meeting/components/PokerTemplatePicker.tsx +++ /dev/null @@ -1,70 +0,0 @@ -import graphql from 'babel-plugin-relay/macro' -import React from 'react' -import {useFragment} from 'react-relay' -import NewMeetingDropdown from '../../../components/NewMeetingDropdown' -import useAtmosphere from '../../../hooks/useAtmosphere' -import useModal from '../../../hooks/useModal' -import SendClientSideEvent from '../../../utils/SendClientSideEvent' -import lazyPreload from '../../../utils/lazyPreload' -import {PokerTemplatePicker_settings$key} from '../../../__generated__/PokerTemplatePicker_settings.graphql' - -interface Props { - settingsRef: PokerTemplatePicker_settings$key -} - -const PokerTemplateModal = lazyPreload( - () => - import( - /* webpackChunkName: 'PokerTemplateModal' */ - './PokerTemplateModal' - ) -) - -const PokerTemplatePicker = (props: Props) => { - const {settingsRef} = props - const settings = useFragment( - graphql` - fragment PokerTemplatePicker_settings on PokerMeetingSettings { - ...PokerTemplateModal_pokerMeetingSettings - selectedTemplate { - id - name - scope - ...PokerTemplateDetailsTemplate - } - } - `, - settingsRef - ) - const {selectedTemplate} = settings - const {name: templateName, scope} = selectedTemplate - const {togglePortal, modalPortal, closePortal} = useModal({ - id: 'templateModal' - }) - const atmosphere = useAtmosphere() - - const handleClick = () => { - togglePortal() - SendClientSideEvent(atmosphere, 'Opened Template Picker', { - meetingType: 'poker', - scope - }) - } - - return ( - <> - - {modalPortal( - - )} - - ) -} - -export default PokerTemplatePicker diff --git a/packages/client/modules/meeting/components/ReflectTemplateDetails.tsx b/packages/client/modules/meeting/components/ReflectTemplateDetails.tsx deleted file mode 100644 index 2d45402d52e..00000000000 --- a/packages/client/modules/meeting/components/ReflectTemplateDetails.tsx +++ /dev/null @@ -1,189 +0,0 @@ -import styled from '@emotion/styled' -import graphql from 'babel-plugin-relay/macro' -import React from 'react' -import {useFragment} from 'react-relay' -import useAtmosphere from '../../../hooks/useAtmosphere' -import useMutationProps from '../../../hooks/useMutationProps' -import AddReflectTemplateMutation from '../../../mutations/AddReflectTemplateMutation' -import {PALETTE} from '../../../styles/paletteV3' -import getTemplateList from '../../../utils/getTemplateList' -import useTemplateDescription from '../../../utils/useTemplateDescription' -import {ReflectTemplateDetails_settings$key} from '../../../__generated__/ReflectTemplateDetails_settings.graphql' -import AddTemplatePrompt from './AddTemplatePrompt' -import CloneTemplate from './CloneTemplate' -import EditableTemplateName from './EditableTemplateName' -import RemoveTemplate from './RemoveTemplate' -import SelectTemplate from './SelectTemplate' -import TemplatePromptList from './TemplatePromptList' -import TemplateSharing from './TemplateSharing' - -const TemplateHeader = styled('div')({ - display: 'flex', - flexDirection: 'column', - margin: '16px 0', - paddingLeft: 56, - paddingRight: 16, - width: '100%', - flexShrink: 0 -}) - -const PromptEditor = styled('div')({ - alignItems: 'flex-start', - background: '#fff', - borderRadius: 8, - display: 'flex', - flexDirection: 'column', - overflow: 'hidden', - maxWidth: 520, - width: '100%' -}) - -const TemplateImage = styled('img')({ - margin: '0 auto', - maxWidth: 360, - maxHeight: 200, - padding: '16px 0 0', - width: '100%', - objectFit: 'contain' -}) - -const Description = styled('div')({ - color: PALETTE.SLATE_700, - fontSize: 14, - lineHeight: '20px' -}) - -const FirstLine = styled('div')({ - alignItems: 'center', - display: 'flex' -}) - -const Scrollable = styled('div')<{isActiveTemplate: boolean}>(({isActiveTemplate}) => ({ - display: 'flex', - flexDirection: 'column', - overflow: 'auto', - paddingBottom: isActiveTemplate ? undefined : 56, - width: '100%' -})) - -interface Props { - gotoTeamTemplates: () => void - gotoPublicTemplates: () => void - closePortal: () => void - settings: ReflectTemplateDetails_settings$key -} - -const ReflectTemplateDetails = (props: Props) => { - const {gotoTeamTemplates, gotoPublicTemplates, closePortal, settings: settingsRef} = props - const settings = useFragment( - graphql` - fragment ReflectTemplateDetails_settings on RetrospectiveMeetingSettings { - activeTemplate { - ...ReflectTemplateDetailsTemplate @relay(mask: false) - ...SelectTemplate_template - illustrationUrl - } - selectedTemplate { - ...ReflectTemplateDetailsTemplate @relay(mask: false) - ...SelectTemplate_template - } - teamTemplates { - ...RemoveTemplate_teamTemplates - } - team { - id - orgId - tier - viewerTeamMember { - user { - id - featureFlags { - noTemplateLimit - } - } - } - } - } - `, - settingsRef - ) - const {teamTemplates, team} = settings - const activeTemplate = settings.activeTemplate ?? settings.selectedTemplate - const {id: templateId, name: templateName, prompts, illustrationUrl} = activeTemplate - const {id: teamId, orgId, tier, viewerTeamMember} = team - const noTemplateLimit = viewerTeamMember?.user?.featureFlags?.noTemplateLimit - const lowestScope = getTemplateList(teamId, orgId, activeTemplate) - const isOwner = activeTemplate.teamId === teamId - const description = useTemplateDescription(lowestScope, activeTemplate, tier) - const atmosphere = useAtmosphere() - const {onError, onCompleted, submitting, submitMutation} = useMutationProps() - const onClone = () => { - if (submitting) return - submitMutation() - AddReflectTemplateMutation( - atmosphere, - {parentTemplateId: templateId, teamId}, - {onError, onCompleted} - ) - gotoTeamTemplates() - } - const isActiveTemplate = templateId === settings.selectedTemplate.id - const showClone = !isOwner && tier !== 'starter' - return ( - - - - - - - {isOwner && ( - - )} - {showClone && } - - {description} - - - {isOwner && } - - - {!isActiveTemplate && ( - - )} - - ) -} - -graphql` - fragment ReflectTemplateDetailsTemplate on ReflectTemplate { - ...TemplateSharing_template - ...getTemplateList_template - ...useTemplateDescription_template - id - name - prompts { - ...TemplatePromptList_prompts - ...AddTemplatePrompt_prompts - } - teamId - } -` -export default ReflectTemplateDetails diff --git a/packages/client/modules/meeting/components/ReflectTemplateItem.tsx b/packages/client/modules/meeting/components/ReflectTemplateItem.tsx deleted file mode 100644 index 1be0bb114a8..00000000000 --- a/packages/client/modules/meeting/components/ReflectTemplateItem.tsx +++ /dev/null @@ -1,111 +0,0 @@ -import styled from '@emotion/styled' -import graphql from 'babel-plugin-relay/macro' -import React, {useEffect, useRef} from 'react' -import {useFragment} from 'react-relay' -import TypeAheadLabel from '~/components/TypeAheadLabel' -import useAtmosphere from '../../../hooks/useAtmosphere' -import useScrollIntoView from '../../../hooks/useScrollIntoVIew' -import SendClientSideEvent from '../../../utils/SendClientSideEvent' -import {DECELERATE} from '../../../styles/animation' -import textOverflow from '../../../styles/helpers/textOverflow' -import {PALETTE} from '../../../styles/paletteV3' -import useTemplateDescription from '../../../utils/useTemplateDescription' -import {setActiveTemplate} from '../../../utils/relay/setActiveTemplate' -import {ReflectTemplateItem_template$key} from '../../../__generated__/ReflectTemplateItem_template.graphql' -import {TierEnum} from '../../../__generated__/OrganizationSubscription.graphql' - -const TemplateItem = styled('li')<{isActive: boolean}>(({isActive}) => ({ - backgroundColor: isActive ? PALETTE.SLATE_200 : undefined, - cursor: 'pointer', - display: 'flex', - fontSize: 14, - justifyContent: 'space-between', - lineHeight: '22px', - paddingTop: 12, - paddingBottom: 12, - paddingLeft: 16, - transition: `background-color 300ms ${DECELERATE}`, - userSelect: 'none', - width: '100%' -})) - -const TemplateItemDetails = styled('div')({ - display: 'flex', - flexDirection: 'column', - width: '100%' -}) - -const TemplateTitle = styled('div')({ - ...textOverflow, - color: PALETTE.SLATE_700, - fontSize: 16, - fontWeight: 600, - lineHeight: '24px' -}) - -const TemplateDescription = styled('div')({ - ...textOverflow, - color: PALETTE.SLATE_600, - fontSize: 12, - lineHeight: '16px' -}) - -const TemplateItemAction = styled('div')({}) - -interface Props { - isActive: boolean - teamId: string - template: ReflectTemplateItem_template$key - lowestScope: 'TEAM' | 'ORGANIZATION' | 'PUBLIC' - templateSearchQuery: string - tier?: TierEnum -} - -const ReflectTemplateItem = (props: Props) => { - const {lowestScope, isActive, teamId, template: templateRef, templateSearchQuery, tier} = props - const template = useFragment( - graphql` - fragment ReflectTemplateItem_template on ReflectTemplate { - #get the details here so we can show them in the details view - ...ReflectTemplateDetailsTemplate - ...useTemplateDescription_template - id - name - lastUsedAt - scope - isFree - } - `, - templateRef - ) - const {id: templateId, name: templateName, scope, isFree} = template - const description = useTemplateDescription(lowestScope, template, tier) - const atmosphere = useAtmosphere() - const ref = useRef(null) - useScrollIntoView(ref, isActive, true) - const selectTemplate = () => { - setActiveTemplate(atmosphere, teamId, templateId, 'retrospective') - } - useEffect(() => { - if (!isActive) return - SendClientSideEvent(atmosphere, 'Viewed Template', { - meetingType: 'retrospective', - scope, - templateName, - isFree - }) - }, [isActive]) - return ( - - - - - - {description} - - - - ) -} - -export default ReflectTemplateItem diff --git a/packages/client/modules/meeting/components/ReflectTemplateList.tsx b/packages/client/modules/meeting/components/ReflectTemplateList.tsx deleted file mode 100644 index c781df75727..00000000000 --- a/packages/client/modules/meeting/components/ReflectTemplateList.tsx +++ /dev/null @@ -1,240 +0,0 @@ -import styled from '@emotion/styled' -import { - Business as BusinessIcon, - Group as GroupIcon, - Public as PublicIcon -} from '@mui/icons-material' -import graphql from 'babel-plugin-relay/macro' -import React, {useEffect, useRef} from 'react' -import {commitLocalUpdate, useFragment} from 'react-relay' -import SwipeableViews from 'react-swipeable-views' -import useAtmosphere from '~/hooks/useAtmosphere' -import {SharingScopeEnum} from '~/__generated__/ReflectTemplateItem_template.graphql' -import Tab from '../../../components/Tab/Tab' -import Tabs from '../../../components/Tabs/Tabs' -import useBreakpoint from '../../../hooks/useBreakpoint' -import {desktopSidebarShadow} from '../../../styles/elevation' -import {PALETTE} from '../../../styles/paletteV3' -import {Breakpoint} from '../../../types/constEnums' -import {ReflectTemplateList_settings$key} from '../../../__generated__/ReflectTemplateList_settings.graphql' -import AddNewReflectTemplate from './AddNewReflectTemplate' -import ReflectTemplateListOrgRoot from './ReflectTemplateListOrgRoot' -import ReflectTemplateListPublicRoot from './ReflectTemplateListPublicRoot' -import ReflectTemplateListTeam from './ReflectTemplateListTeam' -import ReflectTemplateSearchBar from './ReflectTemplateSearchBar' - -const WIDTH = 360 -const TemplateSidebar = styled('div')<{isDesktop: boolean}>(({isDesktop}) => ({ - boxShadow: desktopSidebarShadow, - display: 'flex', - flexDirection: 'column', - position: 'relative', - width: !isDesktop ? '100%' : WIDTH, - zIndex: 1 // show above template details to show box-shadow -})) - -const Label = styled('div')({ - color: PALETTE.SLATE_700, - fontSize: 20, - fontWeight: 600, - lineHeight: '24px', - paddingTop: 16, - paddingLeft: 24, - paddingBottom: 8 -}) - -const StyledTabsBar = styled(Tabs)({ - boxShadow: `inset 0 -1px 0 ${PALETTE.SLATE_300}`, - flexShrink: 0 -}) - -const FullTab = styled(Tab)({ - padding: '4px 0 8px', - width: '30%' -}) - -const WideTab = styled(FullTab)({ - width: '40%' -}) - -const TabContents = styled('div')({ - display: 'flex', - flexDirection: 'column', - height: '100%' -}) - -const TabLabel = styled('div')({ - display: 'flex', - justifyContent: 'center', - alignItems: 'center' -}) - -const TabIcon = styled('div')({ - width: 24, - height: 24, - marginRight: 4 -}) - -const containerStyle = {height: '100%'} -const innerStyle = {width: '100%', height: '100%'} -interface Props { - activeIdx: number - setActiveIdx: (idx: number) => void - displayUpgradeDetails: () => void - settingsRef: ReflectTemplateList_settings$key -} - -const useReadyToSmoothScroll = (activeTemplateId: string) => { - // Don't animate the scroll behavior on the initial render - const oldActiveTemplateIdRef = useRef(activeTemplateId) - const oldActiveTemplateId = oldActiveTemplateIdRef.current - useEffect(() => { - oldActiveTemplateIdRef.current = activeTemplateId - }, [activeTemplateId]) - return oldActiveTemplateId !== activeTemplateId && oldActiveTemplateId !== '-tmp' -} - -export const templateIdxs = { - TEAM: 0, - ORGANIZATION: 1, - PUBLIC: 2 -} as const - -const ReflectTemplateList = (props: Props) => { - const {activeIdx, setActiveIdx, settingsRef, displayUpgradeDetails} = props - const settings = useFragment( - graphql` - fragment ReflectTemplateList_settings on RetrospectiveMeetingSettings { - ...ReflectTemplateSearchBar_settings - id - templateSearchQuery - team { - ...AddNewReflectTemplate_team - ...ReflectTemplateListTeam_team - id - } - activeTemplate { - ...getTemplateList_template - id - } - teamTemplates { - ...AddNewReflectTemplate_reflectTemplates - ...ReflectTemplateListTeam_teamTemplates - id - } - } - `, - settingsRef - ) - const {id: settingsId, team, teamTemplates, templateSearchQuery} = settings - const {id: teamId} = team - const activeTemplateId = settings.activeTemplate?.id ?? '-tmp' - const readyToScrollSmooth = useReadyToSmoothScroll(activeTemplateId) - const atmosphere = useAtmosphere() - const slideStyle = {scrollBehavior: readyToScrollSmooth ? 'smooth' : undefined} - const templateType = Object.keys(templateIdxs).find( - (key) => templateIdxs[key as keyof typeof templateIdxs] === activeIdx - ) as SharingScopeEnum - - const clearSearch = () => { - commitLocalUpdate(atmosphere, (store) => { - const settings = store.get(settingsId) - if (!settings) return - settings.setValue('', 'templateSearchQuery') - }) - } - - const goToTab = (templateType: SharingScopeEnum) => { - setActiveIdx(templateIdxs[templateType]) - clearSearch() - } - - const onChangeIdx = (idx: number, _fromIdx: number, props: {reason: string}) => { - //very buggy behavior, probably linked to the vertical scrolling. - // to repro, go from team > org > team > org by clicking tabs & see this this get called for who knows why - if (props.reason === 'focus') return - setActiveIdx(idx) - clearSearch() - } - const isDesktop = useBreakpoint(Breakpoint.NEW_MEETING_GRID) - - return ( - - - - - - - {' '} - Team - - } - onClick={() => goToTab('TEAM')} - /> - - - - {' '} - Organization - - } - onClick={() => goToTab('ORGANIZATION')} - /> - - - - {' '} - Public - - } - onClick={() => goToTab('PUBLIC')} - /> - - - goToTab('TEAM')} - /> - - - goToTab('PUBLIC')} - templateSearchQuery={templateSearchQuery ?? ''} - teamRef={team} - teamTemplatesRef={teamTemplates} - isActive={activeIdx === 0} - /> - - - {activeIdx === 1 && } - - - {activeIdx === 2 && } - - - {/* add a key to clear the error when they change */} - - ) -} - -export default ReflectTemplateList diff --git a/packages/client/modules/meeting/components/ReflectTemplateListOrg.tsx b/packages/client/modules/meeting/components/ReflectTemplateListOrg.tsx deleted file mode 100644 index 0384993ebcf..00000000000 --- a/packages/client/modules/meeting/components/ReflectTemplateListOrg.tsx +++ /dev/null @@ -1,134 +0,0 @@ -import styled from '@emotion/styled' -import graphql from 'babel-plugin-relay/macro' -import React from 'react' -import {PreloadedQuery, usePreloadedQuery} from 'react-relay' -import {useHistory} from 'react-router' -import useFilteredItems from '~/hooks/useFilteredItems' -import useActiveTopTemplate from '../../../hooks/useActiveTopTemplate' -import useAtmosphere from '../../../hooks/useAtmosphere' -import SendClientSideEvent from '../../../utils/SendClientSideEvent' -import {PALETTE} from '../../../styles/paletteV3' -import {ReflectTemplateListOrgQuery} from '../../../__generated__/ReflectTemplateListOrgQuery.graphql' -import ReflectTemplateItem from './ReflectTemplateItem' - -const TemplateList = styled('ul')({ - listStyle: 'none', - paddingLeft: 0, - marginTop: 0 -}) - -const StyledLink = styled('span')({ - color: PALETTE.SKY_500, - cursor: 'pointer', - outline: 0, - ':hover, :focus, :active': { - color: PALETTE.SKY_600 - } -}) - -const Message = styled('div')({ - border: `1px dashed ${PALETTE.SLATE_400}`, - borderRadius: 4, - color: PALETTE.SLATE_600, - fontSize: 14, - fontStyle: 'italic', - lineHeight: '20px', - margin: 'auto 32px', - padding: '8px 16px' -}) -interface Props { - queryRef: PreloadedQuery -} - -const getValue = (item: {node: {id: string; name: string}}) => { - return item.node.name.toLowerCase() -} - -const query = graphql` - query ReflectTemplateListOrgQuery($teamId: ID!) { - viewer { - id - team(teamId: $teamId) { - id - orgId - tier - meetingSettings(meetingType: retrospective) { - ... on RetrospectiveMeetingSettings { - templateSearchQuery - organizationTemplates(first: 20) - @connection(key: "ReflectTemplateListOrg_organizationTemplates") { - edges { - node { - ...ReflectTemplateItem_template - id - name - } - } - } - activeTemplate { - id - } - } - } - } - } - } -` - -const ReflectTemplateListOrg = (props: Props) => { - const {queryRef} = props - const data = usePreloadedQuery(query, queryRef) - const atmosphere = useAtmosphere() - const history = useHistory() - const {viewer} = data - const team = viewer.team! - const {id: teamId, meetingSettings, orgId, tier} = team - const {templateSearchQuery, organizationTemplates, activeTemplate} = meetingSettings - const searchQuery = templateSearchQuery ?? '' - const activeTemplateId = activeTemplate?.id ?? '-tmp' - const {edges} = organizationTemplates! - const filteredEdges = useFilteredItems(searchQuery, edges, getValue) - useActiveTopTemplate(edges, activeTemplateId, teamId, true, 'retrospective') - - if (edges.length === 0) { - if (tier === 'starter') { - const goToBilling = () => { - SendClientSideEvent(atmosphere, 'Upgrade CTA Clicked', { - upgradeCTALocation: 'orgTemplate', - meetingType: 'retrospective' - }) - history.push(`/me/organizations/${orgId}`) - } - return ( - - Upgrade - to create custom templates for your organization - - ) - } - return {'No other teams in your organization are sharing a template.'} - } - if (filteredEdges.length === 0) { - return ( - {`No template names in your organization match your search query "${searchQuery}"`} - ) - } - return ( - - {filteredEdges.map(({node: template}) => { - return ( - - ) - })} - - ) -} - -export default ReflectTemplateListOrg diff --git a/packages/client/modules/meeting/components/ReflectTemplateListOrgRoot.tsx b/packages/client/modules/meeting/components/ReflectTemplateListOrgRoot.tsx deleted file mode 100644 index e68e54885e3..00000000000 --- a/packages/client/modules/meeting/components/ReflectTemplateListOrgRoot.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import React, {Suspense} from 'react' -import useQueryLoaderNow from '../../../hooks/useQueryLoaderNow' -import reflectTemplateListOrgQuery, { - ReflectTemplateListOrgQuery -} from '../../../__generated__/ReflectTemplateListOrgQuery.graphql' -import MockTemplateList from './MockTemplateList' -import ReflectTemplateListOrg from './ReflectTemplateListOrg' - -interface Props { - teamId: string -} - -const ReflectTemplateListOrgRoot = (props: Props) => { - const {teamId} = props - const queryRef = useQueryLoaderNow(reflectTemplateListOrgQuery, { - teamId - }) - return ( - }> - {queryRef && } - - ) -} - -export default ReflectTemplateListOrgRoot diff --git a/packages/client/modules/meeting/components/ReflectTemplateListPublic.tsx b/packages/client/modules/meeting/components/ReflectTemplateListPublic.tsx deleted file mode 100644 index 3073437edca..00000000000 --- a/packages/client/modules/meeting/components/ReflectTemplateListPublic.tsx +++ /dev/null @@ -1,104 +0,0 @@ -import styled from '@emotion/styled' -import graphql from 'babel-plugin-relay/macro' -import React from 'react' -import {PreloadedQuery, usePreloadedQuery} from 'react-relay' -import useFilteredItems from '~/hooks/useFilteredItems' -import {PALETTE} from '~/styles/paletteV3' -import useActiveTopTemplate from '../../../hooks/useActiveTopTemplate' -import {ReflectTemplateListPublicQuery} from '../../../__generated__/ReflectTemplateListPublicQuery.graphql' -import ReflectTemplateItem from './ReflectTemplateItem' - -const TemplateList = styled('ul')({ - listStyle: 'none', - paddingLeft: 0, - marginTop: 0 -}) - -const Message = styled('div')({ - border: `1px dashed ${PALETTE.SLATE_400}`, - borderRadius: 4, - color: PALETTE.SLATE_600, - fontSize: 14, - fontStyle: 'italic', - lineHeight: '20px', - margin: 'auto 32px', - padding: '8px 16px' -}) - -interface Props { - queryRef: PreloadedQuery -} - -const getValue = (item: {node: {id: string; name: string}}) => { - return item.node.name.toLowerCase() -} - -const query = graphql` - query ReflectTemplateListPublicQuery($teamId: ID!) { - viewer { - id - team(teamId: $teamId) { - id - tier - meetingSettings(meetingType: retrospective) { - ... on RetrospectiveMeetingSettings { - templateSearchQuery - publicTemplates(first: 100) - @connection(key: "ReflectTemplateListPublic_publicTemplates") { - edges { - node { - ...ReflectTemplateItem_template - id - name - createdAt - category - } - } - } - activeTemplate { - id - } - } - } - } - } - } -` - -const ReflectTemplateListPublic = (props: Props) => { - const {queryRef} = props - const data = usePreloadedQuery(query, queryRef) - const {viewer} = data - const team = viewer.team! - const {id: teamId, meetingSettings, tier} = team - const {templateSearchQuery, publicTemplates, activeTemplate} = meetingSettings - const searchQuery = templateSearchQuery ?? '' - const activeTemplateId = activeTemplate?.id ?? '-tmp' - const {edges} = publicTemplates! - const filteredEdges = useFilteredItems(searchQuery, edges, getValue).filter( - ({node}) => !['premortem', 'postmortem'].includes(node.category) - ) - useActiveTopTemplate(edges, activeTemplateId, teamId, true, 'retrospective') - if (filteredEdges.length === 0) { - return {`No public templates match your search query "${searchQuery}"`} - } - return ( - - {filteredEdges.map(({node: template}) => { - return ( - - ) - })} - - ) -} - -export default ReflectTemplateListPublic diff --git a/packages/client/modules/meeting/components/ReflectTemplateListPublicRoot.tsx b/packages/client/modules/meeting/components/ReflectTemplateListPublicRoot.tsx deleted file mode 100644 index 639ce903046..00000000000 --- a/packages/client/modules/meeting/components/ReflectTemplateListPublicRoot.tsx +++ /dev/null @@ -1,28 +0,0 @@ -import React, {Suspense} from 'react' -import useQueryLoaderNow from '../../../hooks/useQueryLoaderNow' -import reflectTemplateListPublicQuery, { - ReflectTemplateListPublicQuery -} from '../../../__generated__/ReflectTemplateListPublicQuery.graphql' -import MockTemplateList from './MockTemplateList' -import ReflectTemplateListPublic from './ReflectTemplateListPublic' - -interface Props { - teamId: string -} - -const ReflectTemplateListPublicRoot = (props: Props) => { - const {teamId} = props - const queryRef = useQueryLoaderNow( - reflectTemplateListPublicQuery, - { - teamId - } - ) - return ( - }> - {queryRef && } - - ) -} - -export default ReflectTemplateListPublicRoot diff --git a/packages/client/modules/meeting/components/ReflectTemplateListTeam.tsx b/packages/client/modules/meeting/components/ReflectTemplateListTeam.tsx deleted file mode 100644 index b0474685df6..00000000000 --- a/packages/client/modules/meeting/components/ReflectTemplateListTeam.tsx +++ /dev/null @@ -1,137 +0,0 @@ -import styled from '@emotion/styled' -import graphql from 'babel-plugin-relay/macro' -import React from 'react' -import {useFragment} from 'react-relay' -import {useHistory} from 'react-router' -import useFilteredItems from '~/hooks/useFilteredItems' -import useActiveTopTemplate from '../../../hooks/useActiveTopTemplate' -import useAtmosphere from '../../../hooks/useAtmosphere' -import SendClientSideEvent from '../../../utils/SendClientSideEvent' -import {PALETTE} from '../../../styles/paletteV3' -import { - ReflectTemplateListTeam_teamTemplates$key, - ReflectTemplateListTeam_teamTemplates$data -} from '../../../__generated__/ReflectTemplateListTeam_teamTemplates.graphql' -import {ReflectTemplateListTeam_team$key} from '../../../__generated__/ReflectTemplateListTeam_team.graphql' -import ReflectTemplateItem from './ReflectTemplateItem' - -const TemplateList = styled('ul')({ - listStyle: 'none', - paddingLeft: 0, - marginTop: 0 -}) - -const Message = styled('div')({ - border: `1px dashed ${PALETTE.SLATE_400}`, - borderRadius: 4, - color: PALETTE.SLATE_600, - fontSize: 14, - fontStyle: 'italic', - lineHeight: '20px', - margin: 'auto 32px', - padding: '8px 16px' -}) - -const StyledLink = styled('span')({ - color: PALETTE.SKY_500, - cursor: 'pointer', - outline: 0, - ':hover, :focus, :active': { - color: PALETTE.SKY_600 - } -}) - -interface Props { - isActive: boolean - activeTemplateId: string - showPublicTemplates: () => void - teamTemplatesRef: ReflectTemplateListTeam_teamTemplates$key - teamRef: ReflectTemplateListTeam_team$key - templateSearchQuery: string -} - -const getValue = (item: ReflectTemplateListTeam_teamTemplates$data[0]) => { - return item.name.toLowerCase() -} - -const ReflectTemplateListTeam = (props: Props) => { - const { - isActive, - activeTemplateId, - showPublicTemplates, - templateSearchQuery, - teamTemplatesRef, - teamRef - } = props - const teamTemplates = useFragment( - graphql` - fragment ReflectTemplateListTeam_teamTemplates on ReflectTemplate @relay(plural: true) { - id - name - ...ReflectTemplateItem_template - } - `, - teamTemplatesRef - ) - const team = useFragment( - graphql` - fragment ReflectTemplateListTeam_team on Team { - id - orgId - tier - } - `, - teamRef - ) - const history = useHistory() - const atmosphere = useAtmosphere() - const {orgId, tier, id: teamId} = team - const searchQuery = templateSearchQuery ?? '' - const edges = teamTemplates.map((t) => ({node: {id: t.id}})) as readonly {node: {id: string}}[] - useActiveTopTemplate(edges, activeTemplateId, teamId, isActive, 'retrospective') - const filteredTemplates = useFilteredItems(searchQuery, teamTemplates, getValue) - if (teamTemplates.length === 0) { - if (tier === 'starter') { - const goToBilling = () => { - SendClientSideEvent(atmosphere, 'Upgrade CTA Clicked', { - upgradeCTALocation: 'teamTemplate', - meetingType: 'retrospective' - }) - history.push(`/me/organizations/${orgId}`) - } - return ( - - Upgrade - to create custom templates for your team - - ) - } - return ( - - Your custom templates will show up here. Get started with a - Public Template - - ) - } - if (filteredTemplates.length === 0) { - return {`No team templates match your search query "${searchQuery}"`} - } - return ( - - {teamTemplates.map((template) => { - return ( - - ) - })} - - ) -} - -export default ReflectTemplateListTeam diff --git a/packages/client/modules/meeting/components/ReflectTemplateModal.tsx b/packages/client/modules/meeting/components/ReflectTemplateModal.tsx deleted file mode 100644 index e226a4191db..00000000000 --- a/packages/client/modules/meeting/components/ReflectTemplateModal.tsx +++ /dev/null @@ -1,102 +0,0 @@ -import styled from '@emotion/styled' -import graphql from 'babel-plugin-relay/macro' -import React, {useEffect, useState} from 'react' -import {useFragment} from 'react-relay' -import DialogContainer from '../../../components/DialogContainer' -import useAtmosphere from '../../../hooks/useAtmosphere' -import getTemplateList from '../../../utils/getTemplateList' -import {setActiveTemplate} from '../../../utils/relay/setActiveTemplate' -import {ReflectTemplateModal_retroMeetingSettings$key} from '../../../__generated__/ReflectTemplateModal_retroMeetingSettings.graphql' -import CustomTemplateUpgradeMsg from './CustomTemplateUpgradeMsg' -import ReflectTemplateDetails from './ReflectTemplateDetails' -import ReflectTemplateList from './ReflectTemplateList' - -interface Props { - closePortal: () => void - retroMeetingSettingsRef: ReflectTemplateModal_retroMeetingSettings$key -} - -const StyledDialogContainer = styled(DialogContainer)({ - flexDirection: 'row', - width: 880, - maxHeight: 520, - minHeight: 520 -}) - -const SCOPES = ['TEAM', 'ORGANIZATION', 'PUBLIC'] - -const ReflectTemplateModal = (props: Props) => { - const {closePortal, retroMeetingSettingsRef} = props - const retroMeetingSettings = useFragment( - graphql` - fragment ReflectTemplateModal_retroMeetingSettings on RetrospectiveMeetingSettings { - ...ReflectTemplateList_settings - ...ReflectTemplateDetails_settings - meetingType - team { - id - orgId - } - selectedTemplate { - id - ...getTemplateList_template - } - activeTemplate { - id - } - } - `, - retroMeetingSettingsRef - ) - const {selectedTemplate, team, activeTemplate, meetingType} = retroMeetingSettings - const {id: teamId, orgId} = team - const lowestScope = getTemplateList(teamId, orgId, selectedTemplate) - const listIdx = SCOPES.indexOf(lowestScope) - const [activeIdx, setActiveIdx] = useState(listIdx) - const [showUpgradeDetails, setShowUpgradeDetails] = useState(false) - const gotoTeamTemplates = () => { - setActiveIdx(0) - } - const gotoPublicTemplates = () => { - setActiveIdx(2) - } - - const atmosphere = useAtmosphere() - useEffect(() => { - setActiveTemplate(atmosphere, teamId, selectedTemplate.id, 'retrospective') - }, []) - - const displayUpgradeDetails = () => { - setShowUpgradeDetails(true) - } - - const hideUpgradeDetails = () => { - setShowUpgradeDetails(false) - } - - useEffect(() => { - if (showUpgradeDetails) hideUpgradeDetails() - }, [activeTemplate]) - - return ( - - - {showUpgradeDetails ? ( - - ) : ( - - )} - - ) -} -export default ReflectTemplateModal diff --git a/packages/client/modules/meeting/components/ReflectTemplateSearchBar.tsx b/packages/client/modules/meeting/components/ReflectTemplateSearchBar.tsx deleted file mode 100644 index d0d78ed14c7..00000000000 --- a/packages/client/modules/meeting/components/ReflectTemplateSearchBar.tsx +++ /dev/null @@ -1,139 +0,0 @@ -import styled from '@emotion/styled' -import {Close, Search as SearchIcon} from '@mui/icons-material' -import graphql from 'babel-plugin-relay/macro' -import React, {ChangeEvent, useRef} from 'react' -import {commitLocalUpdate, useFragment} from 'react-relay' -import {SharingScopeEnum} from '~/__generated__/ReflectTemplateItem_template.graphql' -import {ReflectTemplateSearchBar_settings$key} from '~/__generated__/ReflectTemplateSearchBar_settings.graphql' -import Atmosphere from '../../../Atmosphere' -import MenuItemComponentAvatar from '../../../components/MenuItemComponentAvatar' -import MenuItemLabel from '../../../components/MenuItemLabel' -import useAtmosphere from '../../../hooks/useAtmosphere' -import {PALETTE} from '../../../styles/paletteV3' - -const SearchBarWrapper = styled('div')({ - padding: '16px 16px 0 16px' -}) - -const Search = styled(MenuItemLabel)({ - alignItems: 'center', - border: `1px solid ${PALETTE.SLATE_400}`, - borderRadius: '40px', - display: 'flex', - height: 40, - overflow: 'visible', - paddingLeft: 20, - position: 'relative', - width: '100%' -}) - -const StyledMenuItemIcon = styled(MenuItemComponentAvatar)({ - position: 'absolute', - left: 10, - top: 8 -}) - -const StyledSearchIcon = styled(SearchIcon)({ - color: PALETTE.SLATE_600 -}) - -const ClearSearchIcon = styled(Close)<{isEmpty: boolean}>(({isEmpty}) => ({ - color: PALETTE.SLATE_500, - cursor: 'pointer', - margin: 8, - display: isEmpty ? 'none' : 'flex' -})) - -const InputWrapper = styled('div')({ - alignItems: 'center', - display: 'flex', - flex: 1, - paddingLeft: 8 -}) - -const SearchInput = styled('input')({ - appearance: 'none', - border: 'none', - color: PALETTE.SLATE_700, - fontSize: 16, - margin: 0, - padding: 12, - height: 40, - outline: 0, - backgroundColor: 'transparent', - width: '100%' -}) - -const setTemplateSearch = (atmosphere: Atmosphere, settingsId: string, value: string) => { - commitLocalUpdate(atmosphere, (store) => { - const settings = store.get(settingsId) - if (!settings) return - const normalizedSearch = value.toLowerCase() - settings.setValue(normalizedSearch, 'templateSearchQuery') - }) -} - -interface Props { - templateType: SharingScopeEnum - clearSearch: () => void - settingsRef: ReflectTemplateSearchBar_settings$key -} - -const ReflectTemplateSearchBar = (props: Props) => { - const {templateType, clearSearch, settingsRef} = props - const atmosphere = useAtmosphere() - const settings = useFragment( - graphql` - fragment ReflectTemplateSearchBar_settings on RetrospectiveMeetingSettings { - id - templateSearchQuery - } - `, - settingsRef - ) - const {id: settingsId, templateSearchQuery} = settings - const normalizedTempType = templateType === 'ORGANIZATION' ? 'org' : templateType?.toLowerCase() - - const onChange = (e: ChangeEvent) => { - setTemplateSearch(atmosphere, settingsId, e.currentTarget.value) - } - - const inputRef = useRef(null) - const onKeyDown = (e: React.KeyboardEvent) => { - if (e.key === 'Escape' && inputRef.current) { - e.stopPropagation() - e.preventDefault() - inputRef.current.blur() - } - } - - const handleClear = () => { - inputRef.current?.focus() - clearSearch() - } - - return ( - - - - - - - - - - - - ) -} - -export default ReflectTemplateSearchBar diff --git a/packages/client/modules/meeting/components/RetroTemplatePicker.tsx b/packages/client/modules/meeting/components/RetroTemplatePicker.tsx deleted file mode 100644 index e115658b103..00000000000 --- a/packages/client/modules/meeting/components/RetroTemplatePicker.tsx +++ /dev/null @@ -1,71 +0,0 @@ -import graphql from 'babel-plugin-relay/macro' -import React from 'react' -import {useFragment} from 'react-relay' -import NewMeetingDropdown from '../../../components/NewMeetingDropdown' -import useAtmosphere from '../../../hooks/useAtmosphere' -import useModal from '../../../hooks/useModal' -import SendClientSideEvent from '../../../utils/SendClientSideEvent' -import lazyPreload from '../../../utils/lazyPreload' -import {RetroTemplatePicker_settings$key} from '../../../__generated__/RetroTemplatePicker_settings.graphql' - -interface Props { - settingsRef: RetroTemplatePicker_settings$key -} - -const ReflectTemplateModal = lazyPreload( - () => - import( - /* webpackChunkName: 'ReflectTemplateModal' */ - './ReflectTemplateModal' - ) -) - -const RetroTemplatePicker = (props: Props) => { - const {settingsRef} = props - const settings = useFragment( - graphql` - fragment RetroTemplatePicker_settings on RetrospectiveMeetingSettings { - ...ReflectTemplateModal_retroMeetingSettings - selectedTemplate { - id - name - scope - ...ReflectTemplateDetailsTemplate - } - } - `, - settingsRef - ) - - const {selectedTemplate} = settings - const {name: templateName, scope} = selectedTemplate - const {togglePortal, modalPortal, closePortal} = useModal({ - id: 'templateModal' - }) - const atmosphere = useAtmosphere() - - const handleClick = () => { - togglePortal() - SendClientSideEvent(atmosphere, 'Opened Template Picker', { - meetingType: 'retrospective', - scope - }) - } - - return ( - <> - - {modalPortal( - - )} - - ) -} - -export default RetroTemplatePicker diff --git a/packages/client/mutations/RemovePokerTemplateMutation.ts b/packages/client/mutations/RemovePokerTemplateMutation.ts index f6b47ee9dba..44f3bfdeda5 100644 --- a/packages/client/mutations/RemovePokerTemplateMutation.ts +++ b/packages/client/mutations/RemovePokerTemplateMutation.ts @@ -32,12 +32,9 @@ export const removePokerTemplateTeamUpdater: SharedUpdater< RemovePokerTemplateMutation_team$data > = (payload, {store}) => { const templateId = payload.getLinkedRecord('pokerTemplate').getValue('id') - const teamId = payload.getLinkedRecord('pokerTemplate').getValue('teamId') - handleRemovePokerTemplate(templateId, teamId, store) + handleRemovePokerTemplate(templateId, store) } -type PokerTemplate = NonNullable - const RemovePokerTemplateMutation: StandardMutation = ( atmosphere, variables, @@ -55,9 +52,7 @@ const RemovePokerTemplateMutation: StandardMutation { const {templateId} = variables - const template = store.get(templateId)! - const teamId = template.getValue('teamId') - handleRemovePokerTemplate(templateId, teamId, store) + handleRemovePokerTemplate(templateId, store) } }) } diff --git a/packages/client/mutations/UpdatePokerTemplateScopeMutation.ts b/packages/client/mutations/UpdatePokerTemplateScopeMutation.ts index bedbcb69f5e..ae85b5f3b67 100644 --- a/packages/client/mutations/UpdatePokerTemplateScopeMutation.ts +++ b/packages/client/mutations/UpdatePokerTemplateScopeMutation.ts @@ -8,13 +8,11 @@ import getCachedRecord from '../utils/relay/getCachedRecord' import getNodeById from '../utils/relay/getNodeById' import {insertEdgeAfter} from '../utils/relay/insertEdge' import safeRemoveNodeFromArray from '../utils/relay/safeRemoveNodeFromArray' -import safeRemoveNodeFromConn from '../utils/relay/safeRemoveNodeFromConn' import {UpdatePokerTemplateScopeMutation as TUpdateTemplateScopeMutation} from '../__generated__/UpdatePokerTemplateScopeMutation.graphql' import { SharingScopeEnum, UpdatePokerTemplateScopeMutation_organization$data } from '../__generated__/UpdatePokerTemplateScopeMutation_organization.graphql' -import getPokerTemplateOrgConn from './connections/getPokerTemplateOrgConn' graphql` fragment UpdatePokerTemplateScopeMutation_organization on UpdateTemplateScopeSuccess { @@ -55,9 +53,6 @@ const removeTemplateFromCurrentScope = ( ) => { if (scopeList === 'TEAM') { safeRemoveNodeFromArray(templateId, meetingSettings, 'teamTemplates') - } else if (scopeList === 'ORGANIZATION') { - const orgTemplatesConn = getPokerTemplateOrgConn(meetingSettings) - safeRemoveNodeFromConn(templateId, orgTemplatesConn) } // not possible for the public list to get mutated because this is an org subscription } @@ -78,14 +73,10 @@ export const putTemplateInConnection = ( const addTemplateToScope = ( template: RecordProxy, scope: SharingScopeEnum, - meetingSettings: RecordProxy, - store: RecordSourceSelectorProxy + meetingSettings: RecordProxy ) => { if (scope === 'TEAM') { addNodeToArray(template, meetingSettings, 'teamTemplates') - } else if (scope === 'ORGANIZATION') { - const orgTemplatesConn = getPokerTemplateOrgConn(meetingSettings) - putTemplateInConnection(template, orgTemplatesConn, store) } } @@ -117,13 +108,13 @@ const handleUpdateTemplateScope = ( if (scopeList === 'TEAM') { if (clonedTemplate) { removeTemplateFromCurrentScope(templateId, scopeList, meetingSettings) - addTemplateToScope(nextTemplate, scopeList, meetingSettings, store) + addTemplateToScope(nextTemplate, scopeList, meetingSettings) } } else if (scopeList === 'ORGANIZATION') { if (isDecreasing) { removeTemplateFromCurrentScope(templateId, scopeList, meetingSettings) } else { - addTemplateToScope(nextTemplate, scopeList, meetingSettings, store) + addTemplateToScope(nextTemplate, scopeList, meetingSettings) } } }) diff --git a/packages/client/mutations/connections/getPokerTemplateOrgConn.ts b/packages/client/mutations/connections/getPokerTemplateOrgConn.ts deleted file mode 100644 index b9737b45d76..00000000000 --- a/packages/client/mutations/connections/getPokerTemplateOrgConn.ts +++ /dev/null @@ -1,13 +0,0 @@ -import {ConnectionHandler, ReadOnlyRecordProxy} from 'relay-runtime' - -const getPokerTemplateOrgConn = (pokerSettings: ReadOnlyRecordProxy | null | undefined) => { - if (pokerSettings) { - return ConnectionHandler.getConnection( - pokerSettings, - 'PokerTemplateListOrg_organizationTemplates' - ) - } - return null -} - -export default getPokerTemplateOrgConn diff --git a/packages/client/mutations/connections/getPokerTemplatePublicConn.ts b/packages/client/mutations/connections/getPokerTemplatePublicConn.ts deleted file mode 100644 index 1dd09e2f14e..00000000000 --- a/packages/client/mutations/connections/getPokerTemplatePublicConn.ts +++ /dev/null @@ -1,10 +0,0 @@ -import {ConnectionHandler, ReadOnlyRecordProxy} from 'relay-runtime' - -const getPokerTemplatePublicConn = (pokerSettings: ReadOnlyRecordProxy | null | undefined) => { - if (pokerSettings) { - return ConnectionHandler.getConnection(pokerSettings, 'PokerTemplateListPublic_publicTemplates') - } - return null -} - -export default getPokerTemplatePublicConn diff --git a/packages/client/mutations/handlers/handleRemovePokerTemplate.ts b/packages/client/mutations/handlers/handleRemovePokerTemplate.ts index d35ba7bd540..2036fcb94fa 100644 --- a/packages/client/mutations/handlers/handleRemovePokerTemplate.ts +++ b/packages/client/mutations/handlers/handleRemovePokerTemplate.ts @@ -1,26 +1,8 @@ import {ConnectionHandler, RecordSourceSelectorProxy} from 'relay-runtime' -import {PokerTemplateList_settings$data} from '~/__generated__/PokerTemplateList_settings.graphql' -import safeRemoveNodeFromArray from '../../utils/relay/safeRemoveNodeFromArray' import safeRemoveNodeFromConn from '../../utils/relay/safeRemoveNodeFromConn' -import getPokerTemplateOrgConn from '../connections/getPokerTemplateOrgConn' -import getPokerTemplatePublicConn from '../connections/getPokerTemplatePublicConn' import pluralizeHandler from './pluralizeHandler' -const handleRemovePokerTemplate = ( - templateId: string, - teamId: string, - store: RecordSourceSelectorProxy -) => { - const team = store.get(teamId)! - const settings = team.getLinkedRecord('meetingSettings', { - meetingType: 'poker' - }) - safeRemoveNodeFromArray(templateId, settings, 'teamTemplates') - const orgConn = getPokerTemplateOrgConn(settings) - const publicConn = getPokerTemplatePublicConn(settings) - safeRemoveNodeFromConn(templateId, orgConn) - safeRemoveNodeFromConn(templateId, publicConn) - +const handleRemovePokerTemplate = (templateId: string, store: RecordSourceSelectorProxy) => { const viewer = store.getRoot().getLinkedRecord('viewer') const allAvailableConn = viewer && ConnectionHandler.getConnection(viewer, 'ActivityLibrary_availableTemplates') From abaa30b878f96e33f2ba6d9cb074017c5f617d4f Mon Sep 17 00:00:00 2001 From: Georg Bremer Date: Thu, 11 Apr 2024 13:21:06 +0200 Subject: [PATCH 2/3] Remove some more components --- .../ActivityDetails/ActivityDetails.tsx | 2 - .../components/PokerTemplateDetails.tsx | 174 ------------------ .../meeting/components/PokerTemplateItem.tsx | 109 ----------- .../meeting/components/SelectTemplate.tsx | 115 ------------ .../mutations/AddPokerTemplateMutation.ts | 1 - .../mutations/AddReflectTemplateMutation.ts | 1 - .../UpdatePokerTemplateScopeMutation.ts | 2 - .../UpdateReflectTemplateScopeMutation.ts | 2 - .../handleMovePokerTemplateDimension.ts | 4 +- 9 files changed, 2 insertions(+), 408 deletions(-) delete mode 100644 packages/client/modules/meeting/components/PokerTemplateDetails.tsx delete mode 100644 packages/client/modules/meeting/components/PokerTemplateItem.tsx delete mode 100644 packages/client/modules/meeting/components/SelectTemplate.tsx diff --git a/packages/client/components/ActivityLibrary/ActivityDetails/ActivityDetails.tsx b/packages/client/components/ActivityLibrary/ActivityDetails/ActivityDetails.tsx index 7f1706645c2..01469ecb886 100644 --- a/packages/client/components/ActivityLibrary/ActivityDetails/ActivityDetails.tsx +++ b/packages/client/components/ActivityLibrary/ActivityDetails/ActivityDetails.tsx @@ -29,8 +29,6 @@ graphql` ...TemplateDetails_activity ...ActivityDetailsBadges_template ...ActivityDetailsSidebar_template - ...ReflectTemplateDetailsTemplate @relay(mask: false) - ...PokerTemplateDetailsTemplate @relay(mask: false) ...useTemplateDescription_template } ` diff --git a/packages/client/modules/meeting/components/PokerTemplateDetails.tsx b/packages/client/modules/meeting/components/PokerTemplateDetails.tsx deleted file mode 100644 index c42794d1508..00000000000 --- a/packages/client/modules/meeting/components/PokerTemplateDetails.tsx +++ /dev/null @@ -1,174 +0,0 @@ -import styled from '@emotion/styled' -import graphql from 'babel-plugin-relay/macro' -import React from 'react' -import {useFragment} from 'react-relay' -import useAtmosphere from '../../../hooks/useAtmosphere' -import useMutationProps from '../../../hooks/useMutationProps' -import AddPokerTemplateMutation from '../../../mutations/AddPokerTemplateMutation' -import {PALETTE} from '../../../styles/paletteV3' -import getTemplateList from '../../../utils/getTemplateList' -import useTemplateDescription from '../../../utils/useTemplateDescription' -import {PokerTemplateDetails_settings$key} from '../../../__generated__/PokerTemplateDetails_settings.graphql' -import AddPokerTemplateDimension from './AddPokerTemplateDimension' -import CloneTemplate from './CloneTemplate' -import EditableTemplateName from './EditableTemplateName' -import RemoveTemplate from './RemoveTemplate' -import SelectTemplate from './SelectTemplate' -import TemplateDimensionList from './TemplateDimensionList' -import TemplateSharing from './TemplateSharing' - -const TemplateHeader = styled('div')({ - display: 'flex', - flexDirection: 'column', - margin: '16px 0', - paddingLeft: 56, - paddingRight: 16, - width: '100%', - flexShrink: 0 -}) - -const DimensionEditor = styled('div')({ - alignItems: 'flex-start', - background: '#fff', - borderRadius: 8, - display: 'flex', - flexDirection: 'column', - overflow: 'hidden', - maxWidth: 520, - width: '100%' -}) - -const TemplateImg = styled('img')({ - margin: '0 auto', - maxWidth: 360, - maxHeight: 200, - padding: '16px 0 0', - width: '100%', - objectFit: 'contain' -}) - -const Description = styled('div')({ - color: PALETTE.SLATE_700, - fontSize: 14, - lineHeight: '20px' -}) - -const FirstLine = styled('div')({ - alignItems: 'center', - display: 'flex' -}) - -const Scrollable = styled('div')<{isActiveTemplate: boolean}>(({isActiveTemplate}) => ({ - display: 'flex', - flexDirection: 'column', - overflow: 'auto', - paddingBottom: isActiveTemplate ? undefined : 56, - width: '100%' -})) - -interface Props { - gotoTeamTemplates: () => void - gotoPublicTemplates: () => void - closePortal: () => void - settings: PokerTemplateDetails_settings$key -} - -const PokerTemplateDetails = (props: Props) => { - const {gotoTeamTemplates, gotoPublicTemplates, closePortal, settings: settingsRef} = props - const settings = useFragment( - graphql` - fragment PokerTemplateDetails_settings on PokerMeetingSettings { - activeTemplate { - illustrationUrl - ...PokerTemplateDetailsTemplate @relay(mask: false) - ...SelectTemplate_template - } - selectedTemplate { - illustrationUrl - ...PokerTemplateDetailsTemplate @relay(mask: false) - ...SelectTemplate_template - } - teamTemplates { - ...RemoveTemplate_teamTemplates - } - team { - id - orgId - tier - } - } - `, - settingsRef - ) - const {teamTemplates, team} = settings - const activeTemplate = settings.activeTemplate ?? settings.selectedTemplate - const {id: templateId, name: templateName, dimensions, illustrationUrl} = activeTemplate - const {id: teamId, orgId, tier} = team - const lowestScope = getTemplateList(teamId, orgId, activeTemplate) - const isOwner = activeTemplate.teamId === teamId - const description = useTemplateDescription(lowestScope, activeTemplate, tier) - const atmosphere = useAtmosphere() - const {onError, onCompleted, submitting, submitMutation} = useMutationProps() - const onClone = () => { - if (submitting) return - submitMutation() - AddPokerTemplateMutation( - atmosphere, - {parentTemplateId: templateId, teamId}, - {onError, onCompleted} - ) - gotoTeamTemplates() - } - const isActiveTemplate = activeTemplate.id === settings.selectedTemplate.id - const showClone = !isOwner && tier !== 'starter' - return ( - - - - - - - {isOwner && ( - - )} - {showClone && } - - {description} - - - {isOwner && } - - - {!isActiveTemplate && ( - - )} - - ) -} - -graphql` - fragment PokerTemplateDetailsTemplate on PokerTemplate { - ...TemplateSharing_template - ...getTemplateList_template - ...useTemplateDescription_template - id - name - dimensions { - ...TemplateDimensionList_dimensions - ...AddPokerTemplateDimension_dimensions - } - teamId - } -` -export default PokerTemplateDetails diff --git a/packages/client/modules/meeting/components/PokerTemplateItem.tsx b/packages/client/modules/meeting/components/PokerTemplateItem.tsx deleted file mode 100644 index 14a2c32323b..00000000000 --- a/packages/client/modules/meeting/components/PokerTemplateItem.tsx +++ /dev/null @@ -1,109 +0,0 @@ -import styled from '@emotion/styled' -import graphql from 'babel-plugin-relay/macro' -import React, {useEffect, useRef} from 'react' -import {commitLocalUpdate, useFragment} from 'react-relay' -import useAtmosphere from '../../../hooks/useAtmosphere' -import useScrollIntoView from '../../../hooks/useScrollIntoVIew' -import SendClientSideEvent from '../../../utils/SendClientSideEvent' -import {DECELERATE} from '../../../styles/animation' -import textOverflow from '../../../styles/helpers/textOverflow' -import {PALETTE} from '../../../styles/paletteV3' -import useTemplateDescription from '../../../utils/useTemplateDescription' -import {setActiveTemplate} from '../../../utils/relay/setActiveTemplate' -import {PokerTemplateItem_template$key} from '../../../__generated__/PokerTemplateItem_template.graphql' - -const TemplateItem = styled('li')<{isActive: boolean}>(({isActive}) => ({ - backgroundColor: isActive ? PALETTE.SLATE_200 : undefined, - cursor: 'pointer', - display: 'flex', - fontSize: 14, - justifyContent: 'space-between', - lineHeight: '22px', - paddingTop: 12, - paddingBottom: 12, - paddingLeft: 16, - transition: `background-color 300ms ${DECELERATE}`, - userSelect: 'none', - width: '100%' -})) - -const TemplateItemDetails = styled('div')({ - display: 'flex', - flexDirection: 'column', - width: '100%' -}) - -const TemplateTitle = styled('div')({ - ...textOverflow, - color: PALETTE.SLATE_700, - fontSize: 16, - fontWeight: 600, - lineHeight: '24px' -}) - -const TemplateDescription = styled('div')({ - ...textOverflow, - color: PALETTE.SLATE_600, - fontSize: 12, - lineHeight: '16px' -}) - -const TemplateItemAction = styled('div')({}) - -interface Props { - isActive: boolean - teamId: string - templateRef: PokerTemplateItem_template$key - lowestScope: 'TEAM' | 'ORGANIZATION' | 'PUBLIC' -} - -const PokerTemplateItem = (props: Props) => { - const {lowestScope, isActive, teamId, templateRef} = props - const template = useFragment( - graphql` - fragment PokerTemplateItem_template on PokerTemplate { - #get the details here so we can show them in the details view - ...PokerTemplateDetailsTemplate - ...useTemplateDescription_template - id - name - lastUsedAt - scope - isFree - } - `, - templateRef - ) - const {id: templateId, name: templateName, scope, isFree} = template - const description = useTemplateDescription(lowestScope, template) - const atmosphere = useAtmosphere() - const ref = useRef(null) - useScrollIntoView(ref, isActive) - const selectTemplate = () => { - if (isActive) return - setActiveTemplate(atmosphere, teamId, templateId, 'poker') - commitLocalUpdate(atmosphere, (store) => { - store.get(teamId)?.setValue(null, 'editingScaleId') - }) - } - useEffect(() => { - if (!isActive) return - SendClientSideEvent(atmosphere, 'Viewed Template', { - meetingType: 'poker', - scope, - templateName, - isFree - }) - }, [isActive]) - return ( - - - {templateName} - {description} - - - - ) -} - -export default PokerTemplateItem diff --git a/packages/client/modules/meeting/components/SelectTemplate.tsx b/packages/client/modules/meeting/components/SelectTemplate.tsx deleted file mode 100644 index d101abe3304..00000000000 --- a/packages/client/modules/meeting/components/SelectTemplate.tsx +++ /dev/null @@ -1,115 +0,0 @@ -import {keyframes} from '@emotion/core' -import styled from '@emotion/styled' -import {Check} from '@mui/icons-material' -import graphql from 'babel-plugin-relay/macro' -import React from 'react' -import {useFragment} from 'react-relay' -import {useHistory} from 'react-router' -import FloatingActionButton from '../../../components/FloatingActionButton' -import StyledError from '../../../components/StyledError' -import useAtmosphere from '../../../hooks/useAtmosphere' -import useMutationProps from '../../../hooks/useMutationProps' -import SelectTemplateMutation from '../../../mutations/SelectTemplateMutation' -import SendClientSideEvent from '../../../utils/SendClientSideEvent' -import {BezierCurve} from '../../../types/constEnums' -import {TierEnum} from '../../../__generated__/ReflectTemplateListPublicQuery.graphql' -import {SelectTemplate_template$key} from '../../../__generated__/SelectTemplate_template.graphql' - -const fadein = keyframes` -0% { opacity: 0; } -100% { opacity: 1; } -` - -const ButtonBlock = styled('div')({ - animation: `${fadein} 200ms ${BezierCurve.DECELERATE}`, - alignItems: 'flex-end', - display: 'flex', - flexDirection: 'column', - justifyContent: 'flex-end', - pointerEvents: 'none', - position: 'absolute', - right: 16, - bottom: 16, - width: '100%', - zIndex: 1 -}) - -const Button = styled(FloatingActionButton)({ - border: 0, - fontSize: 16, - padding: '8px 20px', - pointerEvents: 'all' -}) - -const UpgradeButton = styled(Button)({ - padding: '10px 24px' -}) - -const StyledIcon = styled(Check)({ - marginRight: 4 -}) - -interface Props { - closePortal: () => void - template: SelectTemplate_template$key - teamId: string - tier?: TierEnum - noTemplateLimit?: boolean - orgId?: string -} - -const SelectTemplate = (props: Props) => { - const {template: templateRef, closePortal, teamId, tier, noTemplateLimit, orgId} = props - const template = useFragment( - graphql` - fragment SelectTemplate_template on MeetingTemplate { - id - teamId - scope - isFree - type - } - `, - templateRef - ) - const {id: templateId, isFree, type, scope} = template - const atmosphere = useAtmosphere() - const history = useHistory() - const {submitting, error, onCompleted, onError} = useMutationProps() - const selectTemplate = () => { - SelectTemplateMutation( - atmosphere, - {selectedTemplateId: templateId, teamId}, - {onCompleted, onError} - ) - closePortal() - } - const goToBilling = () => { - SendClientSideEvent(atmosphere, 'Upgrade CTA Clicked', { - upgradeCTALocation: 'publicTemplate', - meetingType: type - }) - history.push(`/me/organizations/${orgId}`) - } - const showUpgradeCTA = !isFree && tier === 'starter' && scope === 'PUBLIC' && !noTemplateLimit - if (showUpgradeCTA) { - return ( - - - {'Upgrade Now'} - - - ) - } - return ( - - {error && {error.message}} - - - ) -} - -export default SelectTemplate diff --git a/packages/client/mutations/AddPokerTemplateMutation.ts b/packages/client/mutations/AddPokerTemplateMutation.ts index 7de55a43760..170c6c297c1 100644 --- a/packages/client/mutations/AddPokerTemplateMutation.ts +++ b/packages/client/mutations/AddPokerTemplateMutation.ts @@ -15,7 +15,6 @@ graphql` } pokerTemplate { ...TemplateSharing_template - ...PokerTemplateDetailsTemplate ...ActivityDetails_template id teamId diff --git a/packages/client/mutations/AddReflectTemplateMutation.ts b/packages/client/mutations/AddReflectTemplateMutation.ts index 0b74c28760a..dc1fc0eb0a0 100644 --- a/packages/client/mutations/AddReflectTemplateMutation.ts +++ b/packages/client/mutations/AddReflectTemplateMutation.ts @@ -14,7 +14,6 @@ graphql` } reflectTemplate { ...TemplateSharing_template - ...ReflectTemplateDetailsTemplate ...ActivityDetails_template id teamId diff --git a/packages/client/mutations/UpdatePokerTemplateScopeMutation.ts b/packages/client/mutations/UpdatePokerTemplateScopeMutation.ts index ae85b5f3b67..7eb68b44312 100644 --- a/packages/client/mutations/UpdatePokerTemplateScopeMutation.ts +++ b/packages/client/mutations/UpdatePokerTemplateScopeMutation.ts @@ -19,7 +19,6 @@ graphql` template { # these fragments are needed for listening org members ...TemplateSharing_template - ...PokerTemplateDetailsTemplate id orgId scope @@ -27,7 +26,6 @@ graphql` } clonedTemplate { ...TemplateSharing_template - ...PokerTemplateDetailsTemplate orgId } } diff --git a/packages/client/mutations/UpdateReflectTemplateScopeMutation.ts b/packages/client/mutations/UpdateReflectTemplateScopeMutation.ts index 815a8dea119..677ef02327b 100644 --- a/packages/client/mutations/UpdateReflectTemplateScopeMutation.ts +++ b/packages/client/mutations/UpdateReflectTemplateScopeMutation.ts @@ -21,7 +21,6 @@ graphql` template { # these fragments are needed for listening org members ...TemplateSharing_template - ...ReflectTemplateDetailsTemplate id orgId scope @@ -29,7 +28,6 @@ graphql` } clonedTemplate { ...TemplateSharing_template - ...ReflectTemplateDetailsTemplate orgId } } diff --git a/packages/client/mutations/handlers/handleMovePokerTemplateDimension.ts b/packages/client/mutations/handlers/handleMovePokerTemplateDimension.ts index 540c012f9c8..6cc0d13df0f 100644 --- a/packages/client/mutations/handlers/handleMovePokerTemplateDimension.ts +++ b/packages/client/mutations/handlers/handleMovePokerTemplateDimension.ts @@ -1,8 +1,8 @@ import {RecordSourceProxy} from 'relay-runtime' -import {PokerTemplateDetailsTemplate$data} from '~/__generated__/PokerTemplateDetailsTemplate.graphql' +import {TemplateDetails_activity$data} from '~/__generated__/TemplateDetails_activity.graphql' const handleMovePokerTemplateDimension = (store: RecordSourceProxy, templateId: string) => { - const template = store.get(templateId) + const template = store.get(templateId) if (!template) return const dimensions = template.getLinkedRecords('dimensions') if (!Array.isArray(dimensions)) return From 521638b2cd5f6a81c26fe16a2c0ea4aa214c0b90 Mon Sep 17 00:00:00 2001 From: Georg Bremer Date: Mon, 15 Apr 2024 15:21:55 +0200 Subject: [PATCH 3/3] Prettier --- .prettierrc | 3 +- packages/client/components/ActionMeeting.tsx | 2 +- .../components/ActionMeetingAgendaItems.tsx | 2 +- .../components/ActionMeetingFirstCall.tsx | 2 +- .../components/ActionMeetingLastCall.tsx | 2 +- .../components/ActionMeetingSidebar.tsx | 8 ++-- .../components/ActionMeetingUpdates.tsx | 2 +- .../components/ActionMeetingUpdatesPrompt.tsx | 2 +- .../ActionSidebarAgendaItemsSection.tsx | 2 +- .../ActionSidebarPhaseListItemChildren.tsx | 2 +- .../components/ActivityLibrary/AISearch.tsx | 2 +- .../ActivityDetails/ActivityDetails.tsx | 6 +-- .../ActivityDetailsCategoryBadge.tsx | 4 +- .../components/DetailsBadge.tsx | 2 +- .../components/IntegrationsTip.tsx | 6 +-- .../ActivityDetailsSidebar.tsx | 36 +++++++-------- .../ActivityLibrary/ActivityGrid.tsx | 4 +- .../ActivityLibrary/ActivityLibrary.tsx | 12 ++--- .../ActivityLibraryCardDescription.tsx | 6 +-- .../ActivityLibrary/ActivityLibraryRoutes.tsx | 6 +-- .../ActivityLibrary/CreateActivityCard.tsx | 8 ++-- .../CreateNewActivity/CreateNewActivity.tsx | 32 +++++++------- .../ActivityLibrary/ScheduleMeetingButton.tsx | 12 ++--- .../components/ActivityLibrary/SearchBar.tsx | 2 +- .../ActivityLibrary/TeamPickerModal.tsx | 2 +- packages/client/components/AddTeamDialog.tsx | 32 +++++++------- .../client/components/AddTeamDialogRoot.tsx | 6 +-- .../components/AddTeamMemberAvatarButton.tsx | 2 +- .../client/components/AddToAzureMenuItem.tsx | 2 +- .../client/components/AddToGitLabMenuItem.tsx | 2 +- .../AdhocTeamMultiSelect.tsx | 6 +-- packages/client/components/AnalyticsPage.tsx | 4 +- .../client/components/ArchiveTaskRoot.tsx | 2 +- .../client/components/ArchiveTaskUserRoot.tsx | 2 +- packages/client/components/AvatarList.tsx | 2 +- packages/client/components/AvatarListUser.tsx | 2 +- .../AzureDevOpsFieldDimensionDropdown.tsx | 2 +- .../components/AzureDevOpsFieldMenu.tsx | 2 +- .../AzureDevOpsScopingSearchBar.tsx | 2 +- .../AzureDevOpsScopingSearchFilterMenu.tsx | 2 +- .../AzureDevOpsScopingSearchInput.tsx | 2 +- .../AzureDevOpsScopingSearchResultsRoot.tsx | 2 +- .../components/BillingLeaderActionMenu.tsx | 4 +- .../client/components/BillingLeaderMenu.tsx | 2 +- .../components/BottomControlBarReady.tsx | 6 +-- .../components/BottomControlBarTips.tsx | 4 +- .../client/components/BottomNavIconLabel.tsx | 2 +- packages/client/components/Checkbox.tsx | 2 +- .../DashFilterToggle/DashFilterToggle.tsx | 2 +- .../components/DashNavList/DashNavList.tsx | 6 +-- packages/client/components/DashTopBar.tsx | 2 +- packages/client/components/Dashboard.tsx | 8 ++-- .../components/Dashboard/DashSidebar.tsx | 2 +- .../Dashboard/MobileDashSidebar.tsx | 2 +- .../DashboardAvatars/DashboardAvatar.tsx | 2 +- .../DashboardAvatars/DashboardAvatars.tsx | 8 ++-- .../DashboardAvatars/TeamMemberAvatarMenu.tsx | 2 +- packages/client/components/DashboardRoot.tsx | 2 +- .../client/components/DeckActivityAvatars.tsx | 2 +- .../client/components/DeleteTeamDialog.tsx | 14 +++--- .../client/components/DemoMeetingCard.tsx | 2 +- .../client/components/DemoMeetingRoot.tsx | 2 +- .../components/DiscussPhaseReflectionGrid.tsx | 2 +- .../client/components/DiscussionMentioned.tsx | 4 +- .../client/components/DiscussionThread.tsx | 4 +- .../components/DiscussionThreadInput.tsx | 4 +- .../components/DiscussionThreadList.tsx | 4 +- ...scussionThreadListEmptyTranscriptState.tsx | 2 +- .../components/DiscussionThreadRoot.tsx | 2 +- .../client/components/DropdownToggleV2.tsx | 2 +- packages/client/components/DueDatePicker.tsx | 2 +- packages/client/components/DueDateToggle.tsx | 2 +- .../client/components/EditableOrgName.tsx | 2 +- .../EditingStatus/EditingStatus.tsx | 2 +- .../client/components/EditorInputWrapper.tsx | 2 +- .../client/components/EmailNotifications.tsx | 2 +- .../components/EstimateDimensionColumn.tsx | 4 +- .../client/components/EstimatePhaseArea.tsx | 2 +- .../EstimatePhaseDiscussionDrawer.tsx | 2 +- .../EventTypeFilterMenuItemLabel.tsx | 8 ++-- .../client/components/FacilitatorMenu.tsx | 2 +- .../GitHubFieldDimensionDropdown.tsx | 2 +- .../client/components/GitHubFieldMenu.tsx | 2 +- .../components/GitHubRepoSearchFilterMenu.tsx | 6 +-- .../components/GitHubScopingSearchBar.tsx | 2 +- .../GitHubScopingSearchFilterMenu.tsx | 2 +- .../GitHubScopingSearchFilterMenuRoot.tsx | 4 +- .../GitHubScopingSearchFilterToggle.tsx | 2 +- .../GitHubScopingSearchHistoryToggle.tsx | 2 +- .../components/GitHubScopingSearchResults.tsx | 8 ++-- .../GitHubScopingSearchResultsRoot.tsx | 2 +- .../GitHubScopingSelectAllIssues.tsx | 2 +- .../GitLabFieldDimensionDropdown.tsx | 2 +- .../client/components/GitLabFieldMenu.tsx | 2 +- .../GitLabScopingSearchFilterMenu.tsx | 4 +- .../GitLabScopingSearchFilterMenuRoot.tsx | 4 +- .../GitLabScopingSearchFilterToggle.tsx | 2 +- .../components/GitLabScopingSearchResults.tsx | 6 +-- .../GitLabScopingSearchResultsRoot.tsx | 2 +- .../GitLabScopingSelectAllIssues.tsx | 2 +- .../components/GoogleMeetProviderLogo.tsx | 2 +- packages/client/components/GroupingKanban.tsx | 4 +- .../components/GroupingKanbanColumn.tsx | 6 +-- packages/client/components/IconLabel.tsx | 2 +- packages/client/components/Insights.tsx | 2 +- packages/client/components/InsightsCharts.tsx | 12 ++--- .../client/components/InsightsDomainNudge.tsx | 4 +- .../client/components/InsightsDomainPanel.tsx | 2 +- packages/client/components/InsightsRoot.tsx | 2 +- .../components/InvitationLinkDialog.tsx | 2 +- .../components/InvitationLinkErrorExpired.tsx | 2 +- .../components/InviteTeamMemberAvatar.tsx | 2 +- .../components/JiraFieldDimensionDropdown.tsx | 2 +- packages/client/components/JiraFieldMenu.tsx | 4 +- .../JiraScopingSearchCurrentFilters.tsx | 2 +- .../JiraScopingSearchFilterMenuRoot.tsx | 2 +- .../JiraScopingSearchFilterToggle.tsx | 2 +- .../components/JiraScopingSearchResults.tsx | 6 +-- .../JiraScopingSearchResultsRoot.tsx | 2 +- .../components/JiraScopingSelectAllIssues.tsx | 2 +- .../JiraServerFieldDimensionDropdown.tsx | 2 +- .../client/components/JiraServerFieldMenu.tsx | 2 +- .../JiraServerScopingSearchFilterMenuRoot.tsx | 2 +- .../JiraServerScopingSearchFilterToggle.tsx | 2 +- .../JiraServerScopingSearchResults.tsx | 6 +-- .../JiraServerScopingSearchResultsRoot.tsx | 2 +- .../components/KudosReceivedNotification.tsx | 6 +-- .../components/LimitExceededWarning.tsx | 2 +- .../components/MassInvitationTokenLink.tsx | 4 +- .../MassInvitationTokenLinkRoot.tsx | 2 +- packages/client/components/MeetingCard.tsx | 6 +-- .../components/MeetingCardOptionsMenu.tsx | 4 +- .../components/MeetingCardOptionsMenuRoot.tsx | 4 +- .../client/components/MeetingControlBar.tsx | 4 +- .../MeetingHelp/TeamHealthHelpMenu.tsx | 4 +- .../components/MeetingLockedOverlay.tsx | 2 +- packages/client/components/MeetingOptions.tsx | 8 ++-- packages/client/components/MeetingRoot.tsx | 4 +- .../client/components/MeetingSelector.tsx | 4 +- .../client/components/MeetingSeriesRoot.tsx | 4 +- .../MeetingSidebarTeamMemberStageItems.tsx | 2 +- .../components/MeetingStageTimeLimitEnd.tsx | 2 +- packages/client/components/MeetingTopBar.tsx | 2 +- packages/client/components/MeetingsDash.tsx | 4 +- .../client/components/MeetingsDashEmpty.tsx | 2 +- .../client/components/MeetingsDashHeader.tsx | 8 ++-- packages/client/components/Mentioned.tsx | 10 ++--- .../components/MicrosoftOAuthButtonBlock.tsx | 6 +-- .../components/MyDashboardTasksAndHeader.tsx | 2 +- .../components/MyDashboardTasksRoot.tsx | 6 +-- .../client/components/MyDashboardTimeline.tsx | 4 +- .../components/MyDashboardTimelineRoot.tsx | 6 +-- .../client/components/NewAzureIssueInput.tsx | 4 +- .../client/components/NewGitHubIssueInput.tsx | 6 +-- .../client/components/NewGitLabIssueInput.tsx | 4 +- .../client/components/NewJiraIssueInput.tsx | 4 +- .../client/components/NewMeetingActions.tsx | 2 +- .../NewMeetingActionsCurrentMeetings.tsx | 2 +- .../client/components/NewMeetingCheckIn.tsx | 2 +- .../NewMeetingSettingsToggleTeamHealth.tsx | 4 +- .../NewMeetingSettingsToggleTranscription.tsx | 2 +- ...NewMeetingSettingsUpgradeForTeamHealth.tsx | 8 ++-- .../client/components/NewMeetingSidebar.tsx | 2 +- .../NewMeetingSidebarPhaseListItem.tsx | 2 +- .../NewMeetingSidebarUpgradeBlock.tsx | 2 +- .../components/NewMeetingTeamPicker.tsx | 8 ++-- .../NewMeetingTeamPickerAvatars.tsx | 2 +- .../client/components/NewTeamOrgDropdown.tsx | 2 +- .../components/NotificationDropdown.tsx | 10 ++--- .../client/components/NotificationPicker.tsx | 2 +- .../client/components/NotificationRow.tsx | 2 +- .../components/NotificationTemplate.tsx | 2 +- .../components/NullableTask/NullableTask.tsx | 2 +- .../client/components/OrgAdminActionMenu.tsx | 6 +-- .../PalettePicker/PalettePicker.tsx | 2 +- .../ParabolScopingSearchFilterMenu.tsx | 2 +- .../ParabolScopingSearchResultItem.tsx | 2 +- .../ParabolScopingSearchResults.tsx | 4 +- .../ParabolScopingSearchResultsRoot.tsx | 4 +- .../ParabolScopingSelectAllTasks.tsx | 2 +- .../client/components/PasswordResetLink.tsx | 2 +- .../client/components/PaymentRejected.tsx | 2 +- .../PinnedSnackbarNotifications.tsx | 6 +-- packages/client/components/PokerCard.tsx | 2 +- packages/client/components/PokerCardDeck.tsx | 2 +- .../PokerDimensionFinalScorePicker.tsx | 2 +- .../components/PokerDimensionValueControl.tsx | 2 +- .../client/components/PokerDiscussVoting.tsx | 10 ++--- .../PokerEstimateHeaderCardParabol.tsx | 2 +- .../client/components/PokerEstimatePhase.tsx | 2 +- .../client/components/PokerMeetingSidebar.tsx | 2 +- .../PokerSidebarEstimateSection.tsx | 2 +- .../PokerSidebarPhaseListItemChildren.tsx | 2 +- packages/client/components/PokerVotingRow.tsx | 4 +- .../components/Poll/EditablePollOption.tsx | 2 +- .../components/Poll/EditablePollTitle.tsx | 2 +- packages/client/components/Poll/Poll.tsx | 2 +- packages/client/components/PrivateRoutes.tsx | 2 +- .../components/PromoteToBillingLeader.tsx | 2 +- .../PromptToJoinOrgNotification.tsx | 6 +-- .../Recurrence/EndRecurringMeetingModal.tsx | 6 +-- .../Recurrence/RecurrenceSettings.tsx | 2 +- .../UpdateRecurrenceSettingsModal.tsx | 4 +- .../components/ReflectionCard/ColorBadge.tsx | 4 +- .../ReflectionCard/ReactjiCount.tsx | 4 +- .../ReflectionCard/ReactjiSection.tsx | 2 +- .../ReflectionCard/ReflectionCard.tsx | 6 +-- .../components/ReflectionEditorWrapper.tsx | 4 +- .../DraggableReflectionCard.tsx | 2 +- .../ReflectionGroup/ReflectionGroup.tsx | 4 +- .../ReflectionGroupTitleEditor.tsx | 4 +- .../ReflectionGroup/RemoteReflection.tsx | 10 ++--- .../useSpotlightReflectionGroup.ts | 2 +- .../components/ReflectionGroupHeader.tsx | 4 +- .../components/ReflectionGroupVoting.tsx | 4 +- .../RequestToJoinOrgNotification.tsx | 4 +- .../client/components/ResponseMentioned.tsx | 6 +-- .../client/components/ResponseReplied.tsx | 4 +- .../client/components/RetroDiscussPhase.tsx | 8 ++-- .../RetroDiscussionThreadHeader.tsx | 12 ++--- packages/client/components/RetroDrawer.tsx | 6 +-- .../components/RetroDrawerTemplateCard.tsx | 14 +++--- .../client/components/RetroGroupPhase.tsx | 22 +++++----- .../client/components/RetroMeetingSidebar.tsx | 4 +- .../RetroReflectPhase/PhaseItemColumn.tsx | 2 +- .../RetroReflectPhase/PhaseItemEditor.tsx | 10 ++--- .../RetroReflectPhase/ReflectionStack.tsx | 2 +- .../RetroReflectPhase/RetroReflectPhase.tsx | 4 +- .../components/RetroSidebarDiscussSection.tsx | 8 ++-- .../RetroSidebarPhaseListItemChildren.tsx | 2 +- .../client/components/RetroVoteMetaHeader.tsx | 2 +- .../ReviewRequestToJoinOrgModal.tsx | 12 ++--- .../components/ReviewRequestToJoinOrgRoot.tsx | 6 +-- packages/client/components/ScheduleDialog.tsx | 44 +++++++++---------- packages/client/components/ScopePhase.tsx | 2 +- packages/client/components/ScopePhaseArea.tsx | 4 +- .../ScopePhaseAreaAddAzureDevOps.tsx | 2 +- .../components/ScopePhaseAreaAddGitHub.tsx | 2 +- .../components/ScopePhaseAreaAddGitLab.tsx | 2 +- .../components/ScopePhaseAreaAddJira.tsx | 6 +-- .../ScopePhaseAreaAddJiraServer.tsx | 2 +- .../components/ScopePhaseAreaGitHub.tsx | 2 +- .../client/components/ScopingSearchInput.tsx | 4 +- .../components/ScopingSearchResultItem.tsx | 2 +- .../components/SelectMeetingDropdown.tsx | 2 +- .../components/SelectMeetingDropdownItem.tsx | 2 +- .../components/SelectSharingScopeDropdown.tsx | 2 +- .../client/components/ShareTopicModal.tsx | 28 ++++++------ packages/client/components/ShareTopicRoot.tsx | 4 +- .../components/ShareTopicRouterRoot.tsx | 6 +-- packages/client/components/SpotlightModal.tsx | 2 +- .../client/components/SpotlightResults.tsx | 2 +- .../client/components/SpotlightSearchBar.tsx | 2 +- .../components/SpotlightSourceGroup.tsx | 2 +- .../client/components/StageTimerControl.tsx | 2 +- .../client/components/StageTimerDisplay.tsx | 2 +- .../client/components/StageTimerModal.tsx | 4 +- .../components/StageTimerModalEditTimeEnd.tsx | 4 +- .../StageTimerModalEditTimeLimit.tsx | 2 +- .../components/StageTimerModalEndTime.tsx | 4 +- .../StageTimerModalEndTimeSlackToggle.tsx | 4 +- .../components/StageTimerModalTimeLimit.tsx | 2 +- .../components/StandardHub/StandardHub.tsx | 2 +- .../client/components/StandardHubUserMenu.tsx | 2 +- .../SubmittedForgotPasswordPage.tsx | 2 +- .../components/SuggestMentionableUsers.tsx | 2 +- .../SuggestMentionableUsersRoot.tsx | 4 +- .../SuggestedActionCreateNewTeam.tsx | 2 +- .../SuggestedActionInviteYourTeam.tsx | 2 +- .../SuggestedActionTryActionMeeting.tsx | 2 +- .../SuggestedActionTryRetroMeeting.tsx | 2 +- .../components/SuggestedActionTryTheDemo.tsx | 2 +- packages/client/components/Tag/TierTag.tsx | 2 +- .../components/TaskColumns/TaskColumns.tsx | 8 ++-- .../components/TaskEditor/CommentEditor.tsx | 2 +- .../components/TaskEditor/TaskEditor.tsx | 2 +- .../components/TaskEditor/useSuggestions.tsx | 2 +- .../components/TaskFooterIntegrateMenu.tsx | 12 ++--- .../TaskFooterIntegrateMenuList.tsx | 4 +- .../TaskFooterIntegrateMenuRoot.tsx | 8 ++-- .../TaskFooterIntegrateMenuSignup.tsx | 2 +- .../client/components/TaskIntegrationLink.tsx | 2 +- .../components/TaskIntegrationMenuItem.tsx | 2 +- packages/client/components/TaskInvolves.tsx | 2 +- packages/client/components/TaskWatermark.tsx | 2 +- .../components/TeamDashTeamMemberMenu.tsx | 2 +- packages/client/components/TeamFilterMenu.tsx | 8 ++-- packages/client/components/TeamHealth.tsx | 18 ++++---- .../client/components/TeamHealthVotingRow.tsx | 4 +- .../components/TeamInvitationDialog.tsx | 2 +- .../components/TeamInvitationEmailSignin.tsx | 4 +- .../TeamInvitationErrorAccepted.tsx | 2 +- .../components/TeamInvitationErrorExpired.tsx | 2 +- .../TeamInvitationGoogleCreateAccount.tsx | 4 +- .../components/TeamInvitationGoogleSignin.tsx | 2 +- .../components/TeamInvitationNotification.tsx | 2 +- .../client/components/TeamInvitationRoot.tsx | 2 +- .../TeamPrompt/TeamPromptDiscussionDrawer.tsx | 4 +- .../TeamPrompt/TeamPromptDrawer.tsx | 8 ++-- .../TeamPrompt/TeamPromptEditablePrompt.tsx | 2 +- .../TeamPrompt/TeamPromptOptions.tsx | 2 +- .../TeamPrompt/TeamPromptOptionsMenu.tsx | 6 +-- .../TeamPromptRepliesAvatarList.tsx | 2 +- .../TeamPrompt/TeamPromptResponseCard.tsx | 16 +++---- .../TeamPrompt/TeamPromptResponseEmojis.tsx | 2 +- .../TeamPrompt/TeamPromptTopBar.tsx | 12 ++--- .../TeamPrompt/TeamPromptWorkDrawer.tsx | 18 ++++---- .../TeamPrompt/WorkDrawer/GCalEventCard.tsx | 16 +++---- .../WorkDrawer/GCalIntegrationPanel.tsx | 8 ++-- .../WorkDrawer/GCalIntegrationResults.tsx | 8 ++-- .../WorkDrawer/GCalIntegrationResultsRoot.tsx | 6 +-- .../WorkDrawer/GitHubIntegrationPanel.tsx | 10 ++--- .../WorkDrawer/GitHubIntegrationResults.tsx | 8 ++-- .../GitHubIntegrationResultsRoot.tsx | 4 +- .../WorkDrawer/GitHubObjectCard.tsx | 22 +++++----- .../WorkDrawer/GitHubRepoFilterBar.tsx | 13 +++--- .../WorkDrawer/JiraIntegrationPanel.tsx | 6 +-- .../WorkDrawer/JiraIntegrationResults.tsx | 8 ++-- .../WorkDrawer/JiraIntegrationResultsRoot.tsx | 4 +- .../TeamPrompt/WorkDrawer/JiraObjectCard.tsx | 14 +++--- .../WorkDrawer/ParabolTasksPanel.tsx | 14 +++--- .../WorkDrawer/ParabolTasksResults.tsx | 8 ++-- .../WorkDrawer/ParabolTasksResultsRoot.tsx | 6 +-- .../client/components/TeamPromptMeeting.tsx | 2 +- .../TeamsLimitExceededNotification.tsx | 4 +- .../TeamsLimitReminderNotification.tsx | 4 +- .../client/components/ThreadedCommentBase.tsx | 8 ++-- .../components/ThreadedCommentFooter.tsx | 2 +- .../components/ThreadedCommentHeader.tsx | 8 ++-- .../client/components/ThreadedItemReply.tsx | 6 +-- .../client/components/ThreadedPollBase.tsx | 2 +- .../client/components/ThreadedTaskBase.tsx | 4 +- packages/client/components/TimelineEvent.tsx | 2 +- .../client/components/TimelineEventCard.tsx | 2 +- .../TimelineEventCompletedActionMeeting.tsx | 4 +- .../TimelineEventCompletedRetroMeeting.tsx | 4 +- .../components/TimelineEventJoinedParabol.tsx | 2 +- .../components/TimelineEventPokerComplete.tsx | 6 +-- .../components/TimelineEventTeamCreated.tsx | 2 +- .../TimelineEventTeamPromptComplete.tsx | 4 +- .../components/TimelineEventTypeIcon.tsx | 2 +- .../components/TimelineEventTypeMenu.tsx | 4 +- .../client/components/TimelineFeedList.tsx | 2 +- packages/client/components/TimelineHeader.tsx | 12 ++--- .../components/TimelineHistoryLockedCard.tsx | 4 +- .../components/TimelinePriorityTasks.tsx | 2 +- .../client/components/TimelineRightDrawer.tsx | 2 +- .../components/TimelineSuggestedAction.tsx | 2 +- packages/client/components/TopBarAvatar.tsx | 2 +- .../client/components/TopBarNotifications.tsx | 2 +- packages/client/components/TopBarSearch.tsx | 4 +- .../client/components/UserAvatarInput.tsx | 2 +- .../components/UserDashTeamMemberMenu.tsx | 6 +-- .../client/components/ViewerNotOnTeam.tsx | 2 +- .../client/components/ViewerNotOnTeamRoot.tsx | 6 +-- .../client/components/VoteSettingsMenu.tsx | 2 +- .../promptResponse/PromptResponseEditor.tsx | 2 +- .../client/components/useSetTaskEstimate.ts | 8 ++-- packages/client/containers/Signout/signout.ts | 2 +- .../containers/TaskCard/DraggableTask.tsx | 2 +- .../hooks/useAnimatedSpotlightSource.ts | 2 +- packages/client/hooks/useClientSideTrack.ts | 2 +- .../hooks/useDraggableReflectionCard.tsx | 4 +- packages/client/hooks/useEndMeetingHotkey.ts | 2 +- packages/client/hooks/useGotoStageId.ts | 2 +- packages/client/hooks/useInitialSafeRoute.ts | 2 +- packages/client/hooks/useIsIntegrated.ts | 2 +- packages/client/hooks/useMeeting.ts | 2 +- .../client/hooks/useNewFeatureSnackbar.ts | 2 +- packages/client/hooks/useQueryLoaderNow.tsx | 4 +- .../client/hooks/useSnacksForNewMeetings.ts | 2 +- .../hooks/useSpotlightSimulatedDrag.tsx | 4 +- packages/client/hooks/useSubColumns.ts | 2 +- .../modules/demo/ClientGraphQLServer.ts | 12 ++--- .../modules/demo/DemoGenericMeetingStage.ts | 2 +- .../modules/demo/handleCompletedDemoStage.ts | 2 +- packages/client/modules/demo/initBotScript.ts | 2 +- packages/client/modules/demo/initDB.ts | 2 +- .../EmailNotificationPicker.tsx | 2 +- .../EmailNotifications/EmailTaskInvolves.tsx | 2 +- .../components/NotificationSummaryEmail.tsx | 2 +- .../components/SummaryEmail/ExportToCSV.tsx | 2 +- .../EmailReflectionCard.tsx | 2 +- .../MeetingSummaryEmail/EmailTaskCard.tsx | 4 +- .../MeetingSummaryEmail/ExportAllTasks.tsx | 22 +++++----- .../ExportAllTasksMenu.tsx | 8 ++-- .../ExportAllTasksMenuRoot.tsx | 8 ++-- .../MeetingMemberTaskSummaryList.tsx | 2 +- .../MeetingMembersWithoutTasks.tsx | 6 +-- .../MeetingSummaryEmail/QuickStats.tsx | 2 +- .../MeetingSummaryEmail/RetroTopic.tsx | 4 +- .../MeetingSummaryEmail/RetroTopics.tsx | 2 +- .../MeetingSummaryEmail/ShareTopic.tsx | 6 +-- .../SummaryAvatarHeader.tsx | 2 +- .../MeetingSummaryEmail/SummaryHeader.tsx | 2 +- .../SummaryPokerStories.tsx | 2 +- .../MeetingSummaryEmail/SummarySheet.tsx | 22 +++++----- .../TaskSummarySection.tsx | 2 +- .../MeetingSummaryEmail/TeamHealthSummary.tsx | 4 +- .../WholeMeetingSummaryResult.tsx | 4 +- .../MeetingSummaryEmail/makePokerStats.ts | 2 +- .../makeTeamPromptStats.ts | 2 +- .../invoice/components/Invoice/Invoice.tsx | 2 +- .../InvoiceLineItemDetails.tsx | 4 +- .../invoice/containers/InvoiceRoot.tsx | 2 +- ...ActionMeetingUpdatesPromptTeamHelpText.tsx | 2 +- .../components/AddPokerTemplateDimension.tsx | 2 +- .../meeting/components/AddTemplatePrompt.tsx | 2 +- .../components/CustomTemplateUpgradeMsg.tsx | 4 +- .../components/EditableTemplateDimension.tsx | 2 +- .../components/EditableTemplatePrompt.tsx | 2 +- .../EditableTemplatePromptColor.tsx | 4 +- .../components/EditableTemplateScaleName.tsx | 2 +- .../EditableTemplateScaleValueColor.tsx | 2 +- .../EditableTemplateScaleValueLabel.tsx | 6 +-- .../MeetingAvatarGroup/NewMeetingAvatar.tsx | 2 +- .../NewMeetingAvatarGroup.tsx | 2 +- .../NewCheckInQuestion.tsx | 16 +++---- .../NewMeetingCheckInPrompt.tsx | 2 +- .../components/NewMeetingCheckInGreeting.tsx | 4 +- .../NewTemplateScaleValueLabelInput.tsx | 10 ++--- .../components/PokerTemplateScaleDetails.tsx | 4 +- .../components/PokerTemplateScalePicker.tsx | 2 +- .../meeting/components/RemoveTemplate.tsx | 2 +- .../meeting/components/ScaleActions.tsx | 2 +- .../components/ScaleDropdownMenuItem.tsx | 4 +- .../components/ScaleValuePalettePicker.tsx | 2 +- .../components/SelectScaleDropdown.tsx | 2 +- .../components/TemplateDimensionItem.tsx | 4 +- .../components/TemplateDimensionList.tsx | 2 +- .../meeting/components/TemplatePromptItem.tsx | 4 +- .../meeting/components/TemplatePromptList.tsx | 2 +- .../components/TemplateScaleValueItem.tsx | 4 +- .../meeting/components/TemplateSharing.tsx | 2 +- packages/client/modules/newTeam/NewTeam.tsx | 2 +- .../components/NewTeamForm/NewTeamForm.tsx | 4 +- .../containers/NewTeamForm/NewTeamRoot.tsx | 2 +- .../components/OutcomeCard/OutcomeCard.tsx | 6 +-- .../TaskFooterTeamAssigneeMenu.tsx | 6 +-- .../TaskFooterUserAssigneeMenu.tsx | 8 ++-- .../OutcomeCardFooter/TaskFooter.tsx | 2 +- .../TaskFooterTagMenuToggle.tsx | 2 +- .../TaskFooterTeamAssignee.tsx | 2 +- .../TaskFooterUserAssignee.tsx | 2 +- .../TaskFooterTagMenu.tsx | 2 +- .../TaskFooterTagMenuStatusItem.tsx | 2 +- .../TaskFooterUserAssigneeMenuRoot.tsx | 8 ++-- .../OutcomeCard/OutcomeCardContainer.tsx | 4 +- .../summary/components/NewMeetingSummary.tsx | 4 +- .../components/NewMeetingSummaryRoot.tsx | 6 +-- .../team/components/NewTeamOrgPicker.tsx | 2 +- .../components/AgendaInput/AgendaInput.tsx | 2 +- .../components/AgendaItem/AgendaItem.tsx | 6 +-- .../AgendaListAndInput/AgendaListAndInput.tsx | 6 +-- .../ArchiveTeam/ArchiveOrganizationForm.tsx | 2 +- .../ArchiveTeam/ArchiveTeamForm.tsx | 2 +- .../EditTeamName/EditableTeamName.tsx | 2 +- .../LeaveTeamModal/LeaveTeamModal.tsx | 2 +- .../PromoteTeamMemberModal.tsx | 2 +- .../components/ProviderList/ProviderList.tsx | 6 +-- .../ProviderRow/AtlassianProviderRow.tsx | 2 +- .../ProviderRow/AzureDevOpsProviderRow.tsx | 2 +- .../ProviderRow/GcalProviderRow.tsx | 12 ++--- .../ProviderRow/GitHubProviderRow.tsx | 2 +- .../ProviderRow/GitLabProviderRow.tsx | 2 +- .../ProviderRow/JiraServerProviderRow.tsx | 2 +- .../components/ProviderRow/MSTeamsPanel.tsx | 4 +- .../ProviderRow/MattermostPanel.tsx | 4 +- .../ProviderRow/SlackChannelPicker.tsx | 2 +- .../ProviderRow/SlackNotificationList.tsx | 8 ++-- .../ProviderRow/SlackNotificationRow.tsx | 8 ++-- .../ProviderRow/SlackProviderRow.tsx | 2 +- .../RemoveTeamMemberModal.tsx | 2 +- .../TaskColumn/ArchiveAllDoneTasksModal.tsx | 6 +-- .../components/TaskColumn/TaskColumn.tsx | 6 +-- .../TaskColumn/TaskColumnAddTask.tsx | 2 +- .../teamDashboard/components/Team/Team.tsx | 2 +- .../components/TeamArchive/TeamArchive.tsx | 8 ++-- .../TeamDashActivityTab.tsx | 4 +- .../TeamDashHeader/TeamDashHeader.tsx | 2 +- .../TeamDashInsights/TeamDashInsights.tsx | 2 +- .../TeamDashInsights/TeamInsightsCard.tsx | 11 +++-- .../TopRetroTemplatesCard.tsx | 2 +- .../components/TeamDashMain/TeamDashMain.tsx | 8 ++-- .../components/TeamDashMain/TeamDrawer.tsx | 2 +- .../components/TeamDashMainRoot.tsx | 8 ++-- .../TeamDashTasksTab/TeamDashTasksTab.tsx | 8 ++-- .../teamDashboard/components/TeamRoot.tsx | 4 +- .../components/TeamSettings/TeamSettings.tsx | 2 +- .../components/TeamSettingsRoot.tsx | 6 +-- .../UnpaidTeamModal/UnpaidTeamModal.tsx | 6 +-- .../containers/Team/TeamContainer.tsx | 2 +- .../TeamColumns/TeamColumnsContainer.tsx | 2 +- .../TeamIntegrationsRoot.tsx | 2 +- .../TeamTasksHeaderContainer.tsx | 2 +- .../UnpaidTeamModal/UnpaidTeamModalRoot.tsx | 4 +- .../CreditCardModal/CreditCardForm.tsx | 2 +- .../components/GcalModal/DateTimePickers.tsx | 8 ++-- .../components/GcalModal/GcalModal.tsx | 28 ++++++------ .../components/GcalModal/GcalSettings.tsx | 10 ++--- .../GcalModal/VideoConferencing.tsx | 12 ++--- .../GcalModal/VideoConferencingMenu.tsx | 6 +-- .../OrgAuthentication/OrgAuthentication.tsx | 4 +- .../components/OrgBilling/BillingForm.tsx | 22 +++++----- .../components/OrgBilling/BillingLeader.tsx | 24 +++++----- .../components/OrgBilling/BillingLeaders.tsx | 16 +++---- .../components/OrgBilling/DowngradeModal.tsx | 21 +++++---- .../OrgBilling/NewBillingLeaderInput.tsx | 4 +- .../OrgBilling/NewBillingLeaderMenu.tsx | 16 +++---- .../OrgBilling/OrgBillingDangerZone.tsx | 2 +- .../OrgBilling/OrgBillingInvoices.tsx | 2 +- .../components/OrgBilling/OrgDetails.tsx | 10 ++--- .../components/OrgBilling/OrgPlan.tsx | 14 +++--- .../components/OrgBilling/OrgPlanDrawer.tsx | 16 +++---- .../OrgBilling/OrgPlanDrawerContent.tsx | 4 +- .../components/OrgBilling/OrgPlans.tsx | 20 ++++----- .../OrgBilling/OrgPlansAndBilling.tsx | 14 +++--- .../OrgBilling/OrgPlansAndBillingHeading.tsx | 2 +- .../OrgBilling/OrgPlansAndBillingRoot.tsx | 2 +- .../components/OrgBilling/OrgStats.tsx | 2 +- .../components/OrgBilling/Organization.tsx | 4 +- .../components/OrgBilling/PaymentDetails.tsx | 10 ++--- .../components/OrgBilling/UpdatePayment.tsx | 10 ++--- .../OrgTeamMembers/OrgTeamMemberMenu.tsx | 8 ++-- .../OrgTeamMembers/OrgTeamMembers.tsx | 16 +++---- .../OrgTeamMembers/OrgTeamMembersMenu.tsx | 2 +- .../OrgTeamMembers/OrgTeamMembersRoot.tsx | 2 +- .../OrgTeamMembers/OrgTeamMembersRow.tsx | 14 +++--- .../components/OrgTeams/OrgTeams.tsx | 4 +- .../components/OrgTeams/OrgTeamsRow.tsx | 8 ++-- .../components/OrgUserRow/OrgMemberRow.tsx | 18 ++++---- .../components/Organization/OrgNav.tsx | 2 +- .../Organizations/Organizations.tsx | 2 +- .../userDashboard/components/UserProfile.tsx | 2 +- .../components/UserProfileRoot.tsx | 2 +- .../UserSettingsForm/UserSettingsForm.tsx | 2 +- .../UserTasksHeader/UserTasksHeader.tsx | 10 ++--- .../containers/OrgBilling/OrgBillingRoot.tsx | 2 +- .../Organization/OrganizationRoot.tsx | 4 +- .../Organizations/OrganizationsRoot.tsx | 6 +-- .../UserColumns/UserColumnsContainer.tsx | 2 +- .../mutations/AcceptTeamInvitationMutation.ts | 6 +-- .../client/mutations/AddAgendaItemMutation.ts | 4 +- .../mutations/AddAtlassianAuthMutation.ts | 2 +- .../client/mutations/AddCommentMutation.ts | 4 +- .../client/mutations/AddGitHubAuthMutation.ts | 2 +- .../AddIntegrationProviderMutation.ts | 2 +- packages/client/mutations/AddOrgMutation.ts | 6 +-- .../AddPokerTemplateDimensionMutation.ts | 4 +- .../mutations/AddPokerTemplateMutation.ts | 4 +- .../AddPokerTemplateScaleMutation.ts | 4 +- .../AddPokerTemplateScaleValueMutation.ts | 2 +- .../AddReactjiToReactableMutation.ts | 2 +- .../mutations/AddReflectTemplateMutation.ts | 4 +- .../AddReflectTemplatePromptMutation.ts | 4 +- .../client/mutations/AddSlackAuthMutation.ts | 2 +- .../AddTeamMemberIntegrationAuthMutation.ts | 2 +- packages/client/mutations/AddTeamMutation.ts | 6 +-- .../mutations/AddTranscriptionBotMutation.ts | 2 +- .../mutations/ArchiveOrganizationMutation.ts | 4 +- .../client/mutations/ArchiveTeamMutation.ts | 6 +-- .../mutations/ArchiveTimelineEventMutation.ts | 4 +- .../client/mutations/AutogroupMutation.ts | 2 +- .../mutations/BatchArchiveTasksMutation.ts | 6 +-- .../mutations/ChangeTaskTeamMutation.ts | 2 +- .../mutations/CreateImposterTokenMutation.ts | 2 +- .../mutations/CreateMassInvitationMutation.ts | 2 +- .../CreateOAuth1AuthorizeUrlMutation.ts | 2 +- .../client/mutations/CreatePollMutation.ts | 2 +- .../mutations/CreateReflectionMutation.ts | 4 +- .../CreateStripeSubscriptionMutation.ts | 2 +- .../CreateTaskIntegrationMutation.ts | 4 +- .../client/mutations/CreateTaskMutation.ts | 6 +-- .../client/mutations/DeleteCommentMutation.ts | 4 +- .../client/mutations/DeleteUserMutation.ts | 2 +- .../mutations/DenyPushInvitationMutation.ts | 2 +- .../mutations/DismissNewFeatureMutation.ts | 2 +- .../DismissSuggestedActionMutation.ts | 2 +- .../mutations/DowngradeToStarterMutation.ts | 2 +- .../mutations/DragDiscussionTopicMutation.ts | 2 +- .../mutations/DragEstimatingTaskMutation.ts | 2 +- .../mutations/EditCommentingMutation.ts | 2 +- .../mutations/EditReflectionMutation.ts | 2 +- packages/client/mutations/EditTaskMutation.ts | 4 +- .../mutations/EmailPasswordResetMutation.ts | 2 +- .../client/mutations/EndCheckInMutation.ts | 4 +- .../mutations/EndRetrospectiveMutation.ts | 4 +- .../mutations/EndSprintPokerMutation.ts | 4 +- .../client/mutations/EndTeamPromptMutation.ts | 4 +- .../mutations/FlagReadyToAdvanceMutation.ts | 2 +- .../GetTemplateSuggestionMutation.ts | 2 +- .../mutations/InvalidateSessionsMutation.ts | 2 +- .../client/mutations/InviteToTeamMutation.ts | 4 +- .../client/mutations/JoinMeetingMutation.ts | 2 +- .../mutations/LoginWithGoogleMutation.ts | 2 +- .../mutations/LoginWithMicrosoftMutation.ts | 2 +- .../mutations/LoginWithPasswordMutation.ts | 2 +- .../MovePokerTemplateDimensionMutation.ts | 2 +- .../MovePokerTemplateScaleValueMutation.ts | 2 +- .../MoveReflectTemplatePromptMutation.ts | 2 +- .../mutations/NavigateMeetingMutation.ts | 2 +- .../mutations/OldUpdateCreditCardMutation.ts | 2 +- .../mutations/OldUpgradeToTeamTierMutation.ts | 2 +- packages/client/mutations/PayLaterMutation.ts | 2 +- .../PersistGitHubSearchQueryMutation.ts | 2 +- .../PersistJiraSearchQueryMutation.ts | 2 +- .../PersistJiraServerSearchQueryMutation.ts | 2 +- .../PokerAnnounceDeckHoverMutation.ts | 4 +- .../mutations/PokerResetDimensionMutation.ts | 2 +- .../PromoteNewMeetingFacilitatorMutation.ts | 2 +- .../mutations/PromoteToTeamLeadMutation.ts | 2 +- .../mutations/PushInvitationMutation.ts | 2 +- ...TemplatePromptUpdateDescriptionMutation.ts | 2 +- ...tTemplatePromptUpdateGroupColorMutation.ts | 2 +- .../mutations/RemoveAgendaItemMutation.ts | 2 +- .../mutations/RemoveAtlassianAuthMutation.ts | 2 +- .../mutations/RemoveGitHubAuthMutation.ts | 2 +- .../RemoveIntegrationProviderMutation.ts | 2 +- .../RemoveJiraServerSearchQueryMutation.ts | 2 +- .../client/mutations/RemoveOrgUserMutation.ts | 8 ++-- .../RemovePokerTemplateDimensionMutation.ts | 2 +- .../mutations/RemovePokerTemplateMutation.ts | 2 +- .../RemovePokerTemplateScaleMutation.ts | 2 +- .../RemovePokerTemplateScaleValueMutation.ts | 2 +- .../RemoveReflectTemplateMutation.ts | 2 +- .../RemoveReflectTemplatePromptMutation.ts | 2 +- .../mutations/RemoveReflectionMutation.ts | 2 +- .../mutations/RemoveSlackAuthMutation.ts | 2 +- ...RemoveTeamMemberIntegrationAuthMutation.ts | 2 +- .../mutations/RemoveTeamMemberMutation.ts | 8 ++-- .../client/mutations/RenameMeetingMutation.ts | 2 +- .../mutations/RequestToJoinDomainMutation.ts | 2 +- .../client/mutations/ResetPasswordMutation.ts | 2 +- .../ResetReflectionGroupsMutation.ts | 2 +- .../ResetRetroMeetingToGroupStageMutation.ts | 2 +- .../RevealTeamHealthVotesMutation.ts | 2 +- .../mutations/SelectTemplateMutation.ts | 2 +- .../SetDefaultSlackChannelMutation.ts | 2 +- .../mutations/SetMeetingSettingsMutation.ts | 2 +- .../mutations/SetOrgUserRoleMutation.ts | 4 +- .../client/mutations/SetPhaseFocusMutation.ts | 2 +- .../mutations/SetPokerSpectateMutation.ts | 2 +- .../mutations/SetSlackNotificationMutation.ts | 2 +- .../client/mutations/SetStageTimerMutation.ts | 2 +- .../mutations/SetTaskEstimateMutation.ts | 2 +- .../mutations/SetTaskHighlightMutation.ts | 2 +- .../mutations/SetTeamHealthVoteMutation.ts | 2 +- .../mutations/SignUpWithPasswordMutation.ts | 2 +- .../client/mutations/StartCheckInMutation.ts | 2 +- .../StartDraggingReflectionMutation.ts | 2 +- .../mutations/StartSprintPokerMutation.ts | 2 +- .../mutations/StartTeamPromptMutation.ts | 2 +- .../mutations/ToggleSummaryEmailMutation.ts | 2 +- .../mutations/ToggleTeamDrawerMutation.ts | 2 +- .../mutations/UpdateAgendaItemMutation.ts | 2 +- .../mutations/UpdateAutoJoinMutation.ts | 2 +- ...UpdateAzureDevOpsDimensionFieldMutation.ts | 6 +-- .../mutations/UpdateCommentContentMutation.ts | 2 +- .../mutations/UpdateCreditCardMutation.ts | 2 +- .../mutations/UpdateFeatureFlagMutation.ts | 2 +- .../UpdateGitHubDimensionFieldMutation.ts | 4 +- .../UpdateGitLabDimensionFieldMutation.ts | 4 +- .../UpdateIntegrationProviderMutation.ts | 2 +- .../UpdateJiraDimensionFieldMutation.ts | 6 +-- .../UpdateJiraServerDimensionFieldMutation.ts | 2 +- .../mutations/UpdateMeetingPromptMutation.ts | 2 +- .../UpdateMeetingTemplateMutation.ts | 2 +- .../UpdateNewCheckInQuestionMutation.ts | 2 +- .../client/mutations/UpdateOrgMutation.ts | 2 +- .../mutations/UpdatePokerScopeMutation.ts | 4 +- ...datePokerTemplateDimensionScaleMutation.ts | 2 +- .../UpdatePokerTemplateScaleValueMutation.ts | 2 +- .../UpdatePokerTemplateScopeMutation.ts | 10 ++--- .../UpdateRecurrenceSettingsMutation.ts | 2 +- .../UpdateReflectTemplateScopeMutation.ts | 10 ++--- .../UpdateReflectionContentMutation.ts | 2 +- .../UpdateReflectionGroupTitleMutation.ts | 2 +- .../mutations/UpdateRetroMaxVotesMutation.ts | 2 +- .../mutations/UpdateTaskDueDateMutation.ts | 2 +- .../client/mutations/UpdateTaskMutation.ts | 4 +- .../mutations/UpdateTeamNameMutation.ts | 2 +- .../UpdateTemplateCategoryMutation.ts | 2 +- .../mutations/UpdateUserProfileMutation.ts | 2 +- .../mutations/UploadOrgImageMutation.ts | 2 +- .../mutations/UploadUserImageMutation.ts | 2 +- .../UpsertTeamPromptResponseMutation.ts | 4 +- .../client/mutations/VerifyEmailMutation.ts | 2 +- .../mutations/VoteForPokerStoryMutation.ts | 2 +- .../VoteForReflectionGroupMutation.ts | 2 +- .../handlers/handleAuthenticationRedirect.ts | 2 +- .../handlers/handleAzureCreateIssue.ts | 2 +- .../handlers/handleGitHubCreateIssue.ts | 2 +- .../handlers/handleGitLabCreateIssue.ts | 2 +- .../mutations/handlers/handleRemoveTasks.ts | 2 +- .../toasts/mapDiscussionMentionedToToast.ts | 6 +-- .../toasts/mapKudosReceivedToToast.ts | 4 +- .../mutations/toasts/mapMentionedToToast.ts | 2 +- .../toasts/mapPromptToJoinOrgToToast.ts | 4 +- .../toasts/mapRequestToJoinOrgToToast.ts | 4 +- .../toasts/mapResponseMentionedToToast.ts | 4 +- .../toasts/mapResponseRepliedToToast.ts | 2 +- .../toasts/mapTeamsLimitExceededToToast.ts | 4 +- .../toasts/mapTeamsLimitReminderToToast.ts | 4 +- .../mutations/toasts/popInvolvementToast.ts | 2 +- .../mutations/toasts/popNotificationToast.ts | 12 ++--- .../toasts/updateNotificationToast.ts | 2 +- .../useAcceptRequestToJoinDomainMutation.ts | 2 +- .../client/mutations/useShareTopicMutation.ts | 2 +- .../subscriptions/MeetingSubscription.ts | 8 ++-- .../subscriptions/OrganizationSubscription.ts | 10 ++--- .../client/subscriptions/TeamSubscription.ts | 6 +-- .../ui/AlertDialog/AlertDialogAction.tsx | 2 +- .../ui/AlertDialog/AlertDialogCancel.tsx | 2 +- .../ui/AlertDialog/AlertDialogDescription.tsx | 2 +- .../ui/AlertDialog/AlertDialogFooter.tsx | 2 +- .../ui/AlertDialog/AlertDialogHeader.tsx | 2 +- .../ui/AlertDialog/AlertDialogOverlay.tsx | 2 +- .../ui/AlertDialog/AlertDialogTitle.tsx | 2 +- packages/client/ui/Avatar/Avatar.tsx | 2 +- packages/client/ui/Avatar/AvatarFallback.tsx | 2 +- packages/client/ui/Avatar/AvatarImage.tsx | 2 +- packages/client/ui/Button/Button.tsx | 2 +- packages/client/ui/Chip/Chip.tsx | 2 +- packages/client/ui/Dialog/Dialog.tsx | 2 +- packages/client/ui/Dialog/DialogClose.tsx | 2 +- packages/client/ui/Dialog/DialogContent.tsx | 4 +- .../client/ui/Dialog/DialogDescription.tsx | 2 +- packages/client/ui/Dialog/DialogOverlay.tsx | 2 +- packages/client/ui/Dialog/DialogTitle.tsx | 2 +- packages/client/ui/Select/SelectContent.tsx | 2 +- packages/client/ui/Select/SelectItem.tsx | 4 +- packages/client/ui/Select/SelectTrigger.tsx | 4 +- packages/client/utils/GcalClientManager.ts | 2 +- packages/client/utils/SendClientSideEvent.ts | 2 +- packages/client/utils/date/relativeDate.ts | 2 +- .../client/utils/getTeamHealthVoteColor.ts | 2 +- .../client/utils/handleSuccessfulLogin.ts | 4 +- .../client/utils/relay/setActiveTemplate.ts | 2 +- .../client/utils/useTemplateDescription.ts | 2 +- 739 files changed, 1535 insertions(+), 1537 deletions(-) diff --git a/.prettierrc b/.prettierrc index 0422e517d93..da740c62717 100644 --- a/.prettierrc +++ b/.prettierrc @@ -13,5 +13,6 @@ "singleQuote": false } } - ] + ], + "plugins": ["prettier-plugin-organize-imports", "prettier-plugin-tailwindcss"] } diff --git a/packages/client/components/ActionMeeting.tsx b/packages/client/components/ActionMeeting.tsx index 35452b1556c..9ec5ad872ca 100644 --- a/packages/client/components/ActionMeeting.tsx +++ b/packages/client/components/ActionMeeting.tsx @@ -2,10 +2,10 @@ import graphql from 'babel-plugin-relay/macro' import React, {ReactElement, Suspense, useEffect} from 'react' import {useFragment} from 'react-relay' import {ActionMeeting_meeting$key} from '~/__generated__/ActionMeeting_meeting.graphql' +import {NewMeetingPhaseTypeEnum} from '../__generated__/ActionMeeting_meeting.graphql' import useMeeting from '../hooks/useMeeting' import NewMeetingAvatarGroup from '../modules/meeting/components/MeetingAvatarGroup/NewMeetingAvatarGroup' import lazyPreload, {LazyExoticPreload} from '../utils/lazyPreload' -import {NewMeetingPhaseTypeEnum} from '../__generated__/ActionMeeting_meeting.graphql' import ActionMeetingSidebar from './ActionMeetingSidebar' import MeetingArea from './MeetingArea' import MeetingControlBar from './MeetingControlBar' diff --git a/packages/client/components/ActionMeetingAgendaItems.tsx b/packages/client/components/ActionMeetingAgendaItems.tsx index 54476d115a7..4516b03b091 100644 --- a/packages/client/components/ActionMeetingAgendaItems.tsx +++ b/packages/client/components/ActionMeetingAgendaItems.tsx @@ -2,8 +2,8 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React, {useRef} from 'react' import {useFragment} from 'react-relay' -import useBreakpoint from '~/hooks/useBreakpoint' import {ActionMeetingAgendaItems_meeting$key} from '~/__generated__/ActionMeetingAgendaItems_meeting.graphql' +import useBreakpoint from '~/hooks/useBreakpoint' import EditorHelpModalContainer from '../containers/EditorHelpModalContainer/EditorHelpModalContainer' import MeetingCopy from '../modules/meeting/components/MeetingCopy/MeetingCopy' import MeetingPhaseHeading from '../modules/meeting/components/MeetingPhaseHeading/MeetingPhaseHeading' diff --git a/packages/client/components/ActionMeetingFirstCall.tsx b/packages/client/components/ActionMeetingFirstCall.tsx index e13f6310b52..0b52fd29098 100644 --- a/packages/client/components/ActionMeetingFirstCall.tsx +++ b/packages/client/components/ActionMeetingFirstCall.tsx @@ -2,6 +2,7 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {ActionMeetingFirstCall_meeting$key} from '../__generated__/ActionMeetingFirstCall_meeting.graphql' import useAtmosphere from '../hooks/useAtmosphere' import AgendaShortcutHint from '../modules/meeting/components/AgendaShortcutHint/AgendaShortcutHint' import MeetingCopy from '../modules/meeting/components/MeetingCopy/MeetingCopy' @@ -9,7 +10,6 @@ import MeetingFacilitationHint from '../modules/meeting/components/MeetingFacili import MeetingPhaseHeading from '../modules/meeting/components/MeetingPhaseHeading/MeetingPhaseHeading' import {AGENDA_ITEMS, AGENDA_ITEM_LABEL} from '../utils/constants' import {phaseLabelLookup} from '../utils/meetings/lookups' -import {ActionMeetingFirstCall_meeting$key} from '../__generated__/ActionMeetingFirstCall_meeting.graphql' import {ActionMeetingPhaseProps} from './ActionMeeting' import MeetingContent from './MeetingContent' import MeetingHeaderAndPhase from './MeetingHeaderAndPhase' diff --git a/packages/client/components/ActionMeetingLastCall.tsx b/packages/client/components/ActionMeetingLastCall.tsx index 34526fe2a6f..787adec1056 100644 --- a/packages/client/components/ActionMeetingLastCall.tsx +++ b/packages/client/components/ActionMeetingLastCall.tsx @@ -3,6 +3,7 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import EndCheckInMutation from '~/mutations/EndCheckInMutation' +import {ActionMeetingLastCall_meeting$key} from '../__generated__/ActionMeetingLastCall_meeting.graphql' import useAtmosphere from '../hooks/useAtmosphere' import useMutationProps from '../hooks/useMutationProps' import useRouter from '../hooks/useRouter' @@ -13,7 +14,6 @@ import MeetingPhaseHeading from '../modules/meeting/components/MeetingPhaseHeadi import {AGENDA_ITEM_LABEL} from '../utils/constants' import {phaseLabelLookup} from '../utils/meetings/lookups' import plural from '../utils/plural' -import {ActionMeetingLastCall_meeting$key} from '../__generated__/ActionMeetingLastCall_meeting.graphql' import {ActionMeetingPhaseProps} from './ActionMeeting' import ErrorBoundary from './ErrorBoundary' import MeetingContent from './MeetingContent' diff --git a/packages/client/components/ActionMeetingSidebar.tsx b/packages/client/components/ActionMeetingSidebar.tsx index a2f5328e77e..c91e69301c0 100644 --- a/packages/client/components/ActionMeetingSidebar.tsx +++ b/packages/client/components/ActionMeetingSidebar.tsx @@ -1,14 +1,14 @@ import graphql from 'babel-plugin-relay/macro' import React, {Fragment} from 'react' import {useFragment} from 'react-relay' -import useAtmosphere from '../hooks/useAtmosphere' -import useGotoStageId from '../hooks/useGotoStageId' -import getSidebarItemStage from '../utils/getSidebarItemStage' -import findStageById from '../utils/meetings/findStageById' import { ActionMeetingSidebar_meeting$key, NewMeetingPhaseTypeEnum } from '../__generated__/ActionMeetingSidebar_meeting.graphql' +import useAtmosphere from '../hooks/useAtmosphere' +import useGotoStageId from '../hooks/useGotoStageId' +import getSidebarItemStage from '../utils/getSidebarItemStage' +import findStageById from '../utils/meetings/findStageById' import ActionSidebarPhaseListItemChildren from './ActionSidebarPhaseListItemChildren' import MeetingNavList from './MeetingNavList' import NewMeetingSidebar from './NewMeetingSidebar' diff --git a/packages/client/components/ActionMeetingUpdates.tsx b/packages/client/components/ActionMeetingUpdates.tsx index 40270c6e178..1e980031ff2 100644 --- a/packages/client/components/ActionMeetingUpdates.tsx +++ b/packages/client/components/ActionMeetingUpdates.tsx @@ -2,10 +2,10 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React, {useMemo} from 'react' import {useFragment} from 'react-relay' +import {ActionMeetingUpdates_meeting$key} from '../__generated__/ActionMeetingUpdates_meeting.graphql' import useAtmosphere from '../hooks/useAtmosphere' import isTaskPrivate from '../utils/isTaskPrivate' import toTeamMemberId from '../utils/relay/toTeamMemberId' -import {ActionMeetingUpdates_meeting$key} from '../__generated__/ActionMeetingUpdates_meeting.graphql' import {ActionMeetingPhaseProps} from './ActionMeeting' import ActionMeetingUpdatesPrompt from './ActionMeetingUpdatesPrompt' import MeetingContent from './MeetingContent' diff --git a/packages/client/components/ActionMeetingUpdatesPrompt.tsx b/packages/client/components/ActionMeetingUpdatesPrompt.tsx index 0c5545a898a..1c3aa3b804b 100644 --- a/packages/client/components/ActionMeetingUpdatesPrompt.tsx +++ b/packages/client/components/ActionMeetingUpdatesPrompt.tsx @@ -2,9 +2,9 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {ActionMeetingUpdatesPrompt_meeting$key} from '../__generated__/ActionMeetingUpdatesPrompt_meeting.graphql' import ActionMeetingUpdatesPromptTeamHelpText from '../modules/meeting/components/ActionMeetingUpdatesPromptTeamHelpText' import defaultUserAvatar from '../styles/theme/images/avatar-user.svg' -import {ActionMeetingUpdatesPrompt_meeting$key} from '../__generated__/ActionMeetingUpdatesPrompt_meeting.graphql' import Avatar from './Avatar/Avatar' import PhaseHeaderDescription from './PhaseHeaderDescription' import PhaseHeaderTitle from './PhaseHeaderTitle' diff --git a/packages/client/components/ActionSidebarAgendaItemsSection.tsx b/packages/client/components/ActionSidebarAgendaItemsSection.tsx index 1115b32f8cb..b8507dc7eab 100644 --- a/packages/client/components/ActionSidebarAgendaItemsSection.tsx +++ b/packages/client/components/ActionSidebarAgendaItemsSection.tsx @@ -2,9 +2,9 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {ActionSidebarAgendaItemsSection_meeting$key} from '../__generated__/ActionSidebarAgendaItemsSection_meeting.graphql' import useGotoStageId from '../hooks/useGotoStageId' import AgendaListAndInput from '../modules/teamDashboard/components/AgendaListAndInput/AgendaListAndInput' -import {ActionSidebarAgendaItemsSection_meeting$key} from '../__generated__/ActionSidebarAgendaItemsSection_meeting.graphql' import MeetingSidebarPhaseItemChild from './MeetingSidebarPhaseItemChild' const StyledRoot = styled(MeetingSidebarPhaseItemChild)({ diff --git a/packages/client/components/ActionSidebarPhaseListItemChildren.tsx b/packages/client/components/ActionSidebarPhaseListItemChildren.tsx index f43e9afff43..5e516423f30 100644 --- a/packages/client/components/ActionSidebarPhaseListItemChildren.tsx +++ b/packages/client/components/ActionSidebarPhaseListItemChildren.tsx @@ -2,8 +2,8 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import {ActionSidebarPhaseListItemChildren_meeting$key} from '~/__generated__/ActionSidebarPhaseListItemChildren_meeting.graphql' -import useGotoStageId from '../hooks/useGotoStageId' import {NewMeetingPhaseTypeEnum} from '../__generated__/ActionSidebarAgendaItemsSection_meeting.graphql' +import useGotoStageId from '../hooks/useGotoStageId' import ActionSidebarAgendaItemsSection from './ActionSidebarAgendaItemsSection' import MeetingSidebarTeamMemberStageItems from './MeetingSidebarTeamMemberStageItems' diff --git a/packages/client/components/ActivityLibrary/AISearch.tsx b/packages/client/components/ActivityLibrary/AISearch.tsx index 34584ce67cc..46dd650ede4 100644 --- a/packages/client/components/ActivityLibrary/AISearch.tsx +++ b/packages/client/components/ActivityLibrary/AISearch.tsx @@ -1,8 +1,8 @@ import React, {useState} from 'react' +import {GetTemplateSuggestionMutation$data} from '../../__generated__/GetTemplateSuggestionMutation.graphql' import useAtmosphere from '../../hooks/useAtmosphere' import useMutationProps from '../../hooks/useMutationProps' import GetTemplateSuggestionMutation from '../../mutations/GetTemplateSuggestionMutation' -import {GetTemplateSuggestionMutation$data} from '../../__generated__/GetTemplateSuggestionMutation.graphql' import LoadingComponent from '../LoadingComponent/LoadingComponent' import StyledError from '../StyledError' import ActivityGrid from './ActivityGrid' diff --git a/packages/client/components/ActivityLibrary/ActivityDetails/ActivityDetails.tsx b/packages/client/components/ActivityLibrary/ActivityDetails/ActivityDetails.tsx index 01469ecb886..dcafb56236f 100644 --- a/packages/client/components/ActivityLibrary/ActivityDetails/ActivityDetails.tsx +++ b/packages/client/components/ActivityLibrary/ActivityDetails/ActivityDetails.tsx @@ -5,14 +5,14 @@ import {PreloadedQuery, usePreloadedQuery} from 'react-relay' import {Redirect, useHistory} from 'react-router' import {Link} from 'react-router-dom' import {ActivityDetailsQuery} from '~/__generated__/ActivityDetailsQuery.graphql' +import useAtmosphere from '../../../hooks/useAtmosphere' import EditableTemplateName from '../../../modules/meeting/components/EditableTemplateName' +import SendClientSideEvent from '../../../utils/SendClientSideEvent' import IconLabel from '../../IconLabel' import {ActivityCard, ActivityCardImage} from '../ActivityCard' import ActivityDetailsSidebar from '../ActivityDetailsSidebar' -import {CategoryID, CATEGORY_THEMES, QUICK_START_CATEGORY_ID} from '../Categories' +import {CATEGORY_THEMES, CategoryID, QUICK_START_CATEGORY_ID} from '../Categories' import {TemplateDetails} from './TemplateDetails' -import SendClientSideEvent from '../../../utils/SendClientSideEvent' -import useAtmosphere from '../../../hooks/useAtmosphere' graphql` fragment ActivityDetails_template on MeetingTemplate { diff --git a/packages/client/components/ActivityLibrary/ActivityDetails/ActivityDetailsCategoryBadge.tsx b/packages/client/components/ActivityLibrary/ActivityDetails/ActivityDetailsCategoryBadge.tsx index 21edb932c09..f864a07f673 100644 --- a/packages/client/components/ActivityLibrary/ActivityDetails/ActivityDetailsCategoryBadge.tsx +++ b/packages/client/components/ActivityLibrary/ActivityDetails/ActivityDetailsCategoryBadge.tsx @@ -5,10 +5,10 @@ import clsx from 'clsx' import React from 'react' import {useFragment} from 'react-relay' import {ActivityDetailsCategoryBadge_template$key} from '~/__generated__/ActivityDetailsCategoryBadge_template.graphql' +import useTemplateCategoryMutation from '../../../mutations/UpdateTemplateCategoryMutation' import PlainButton from '../../PlainButton/PlainButton' -import ActivityDetailsBadge from './ActivityDetailsBadge' import {CATEGORY_ID_TO_NAME, CATEGORY_THEMES, CategoryID} from '../Categories' -import useTemplateCategoryMutation from '../../../mutations/UpdateTemplateCategoryMutation' +import ActivityDetailsBadge from './ActivityDetailsBadge' interface Props { isEditing: boolean diff --git a/packages/client/components/ActivityLibrary/ActivityDetails/components/DetailsBadge.tsx b/packages/client/components/ActivityLibrary/ActivityDetails/components/DetailsBadge.tsx index 140cbf0ccbf..48509a1bb24 100644 --- a/packages/client/components/ActivityLibrary/ActivityDetails/components/DetailsBadge.tsx +++ b/packages/client/components/ActivityLibrary/ActivityDetails/components/DetailsBadge.tsx @@ -1,5 +1,5 @@ -import React from 'react' import clsx from 'clsx' +import React from 'react' interface DetailsBadgeProps { className?: string diff --git a/packages/client/components/ActivityLibrary/ActivityDetails/components/IntegrationsTip.tsx b/packages/client/components/ActivityLibrary/ActivityDetails/components/IntegrationsTip.tsx index 8846fa39b19..e0cec9c4116 100644 --- a/packages/client/components/ActivityLibrary/ActivityDetails/components/IntegrationsTip.tsx +++ b/packages/client/components/ActivityLibrary/ActivityDetails/components/IntegrationsTip.tsx @@ -1,10 +1,10 @@ +import clsx from 'clsx' import React from 'react' +import AzureDevOpsSVG from '../../../AzureDevOpsSVG' import GitHubSVG from '../../../GitHubSVG' -import JiraSVG from '../../../JiraSVG' import GitLabSVG from '../../../GitLabSVG' -import AzureDevOpsSVG from '../../../AzureDevOpsSVG' +import JiraSVG from '../../../JiraSVG' import JiraServerSVG from '../../../JiraServerSVG' -import clsx from 'clsx' interface Props { className?: string diff --git a/packages/client/components/ActivityLibrary/ActivityDetailsSidebar.tsx b/packages/client/components/ActivityLibrary/ActivityDetailsSidebar.tsx index 1d335f21a90..edac46bf793 100644 --- a/packages/client/components/ActivityLibrary/ActivityDetailsSidebar.tsx +++ b/packages/client/components/ActivityLibrary/ActivityDetailsSidebar.tsx @@ -1,40 +1,40 @@ import {LockOpen} from '@mui/icons-material' +import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown' +import KeyboardArrowUpIcon from '@mui/icons-material/KeyboardArrowUp' import graphql from 'babel-plugin-relay/macro' import clsx from 'clsx' -import KeyboardArrowUpIcon from '@mui/icons-material/KeyboardArrowUp' -import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown' -import React, {useState, useEffect, useRef} from 'react' +import React, {useEffect, useRef, useState} from 'react' import {useFragment} from 'react-relay' -import StartSprintPokerMutation from '~/mutations/StartSprintPokerMutation' import {useHistory} from 'react-router' -import StartRetrospectiveMutation from '~/mutations/StartRetrospectiveMutation' -import UpdateReflectTemplateScopeMutation from '~/mutations/UpdateReflectTemplateScopeMutation' +import {ActivityDetailsSidebar_teams$key} from '~/__generated__/ActivityDetailsSidebar_teams.graphql' import {ActivityDetailsSidebar_template$key} from '~/__generated__/ActivityDetailsSidebar_template.graphql' import {ActivityDetailsSidebar_viewer$key} from '~/__generated__/ActivityDetailsSidebar_viewer.graphql' -import {ActivityDetailsSidebar_teams$key} from '~/__generated__/ActivityDetailsSidebar_teams.graphql' +import StartRetrospectiveMutation from '~/mutations/StartRetrospectiveMutation' +import StartSprintPokerMutation from '~/mutations/StartSprintPokerMutation' +import UpdateReflectTemplateScopeMutation from '~/mutations/UpdateReflectTemplateScopeMutation' +import {MeetingTypeEnum} from '../../__generated__/ActivityDetailsQuery.graphql' +import { + CreateGcalEventInput, + RecurrenceSettingsInput +} from '../../__generated__/StartRetrospectiveMutation.graphql' import useAtmosphere from '../../hooks/useAtmosphere' +import useBreakpoint from '../../hooks/useBreakpoint' import {MenuPosition} from '../../hooks/useCoords' import useMutationProps from '../../hooks/useMutationProps' import SelectTemplateMutation from '../../mutations/SelectTemplateMutation' import StartCheckInMutation from '../../mutations/StartCheckInMutation' import StartTeamPromptMutation from '../../mutations/StartTeamPromptMutation' import {PALETTE} from '../../styles/paletteV3' -import { - CreateGcalEventInput, - RecurrenceSettingsInput -} from '../../__generated__/StartRetrospectiveMutation.graphql' +import {Breakpoint} from '../../types/constEnums' import sortByTier from '../../utils/sortByTier' -import {MeetingTypeEnum} from '../../__generated__/ActivityDetailsQuery.graphql' -import NewMeetingSettingsToggleAnonymity from '../NewMeetingSettingsToggleAnonymity' -import NewMeetingSettingsToggleTeamHealth from '../NewMeetingSettingsToggleTeamHealth' -import NewMeetingSettingsToggleCheckIn from '../NewMeetingSettingsToggleCheckIn' -import StyledError from '../StyledError' import FlatPrimaryButton from '../FlatPrimaryButton' import NewMeetingActionsCurrentMeetings from '../NewMeetingActionsCurrentMeetings' +import NewMeetingSettingsToggleAnonymity from '../NewMeetingSettingsToggleAnonymity' +import NewMeetingSettingsToggleCheckIn from '../NewMeetingSettingsToggleCheckIn' +import NewMeetingSettingsToggleTeamHealth from '../NewMeetingSettingsToggleTeamHealth' import NewMeetingTeamPicker from '../NewMeetingTeamPicker' +import StyledError from '../StyledError' import ScheduleMeetingButton from './ScheduleMeetingButton' -import useBreakpoint from '../../hooks/useBreakpoint' -import {Breakpoint} from '../../types/constEnums' interface Props { selectedTemplateRef: ActivityDetailsSidebar_template$key diff --git a/packages/client/components/ActivityLibrary/ActivityGrid.tsx b/packages/client/components/ActivityLibrary/ActivityGrid.tsx index fca5f6c3524..f9db6c34480 100644 --- a/packages/client/components/ActivityLibrary/ActivityGrid.tsx +++ b/packages/client/components/ActivityLibrary/ActivityGrid.tsx @@ -1,11 +1,11 @@ import React from 'react' +import {Link} from 'react-router-dom' import {ActivityBadge} from './ActivityBadge' import {ActivityCardImage} from './ActivityCard' import {Template} from './ActivityLibrary' import {ActivityLibraryCard} from './ActivityLibraryCard' -import {Link} from 'react-router-dom' -import {CategoryID, CATEGORY_THEMES} from './Categories' import {ActivityLibraryCardDescription} from './ActivityLibraryCardDescription' +import {CATEGORY_THEMES, CategoryID} from './Categories' interface ActivityGridProps { templates: Template[] diff --git a/packages/client/components/ActivityLibrary/ActivityLibrary.tsx b/packages/client/components/ActivityLibrary/ActivityLibrary.tsx index 7cac76e9adc..5ee39ff1bd7 100644 --- a/packages/client/components/ActivityLibrary/ActivityLibrary.tsx +++ b/packages/client/components/ActivityLibrary/ActivityLibrary.tsx @@ -5,28 +5,28 @@ import React, {Fragment, useEffect, useMemo} from 'react' import {PreloadedQuery, commitLocalUpdate, usePreloadedQuery} from 'react-relay' import {Redirect} from 'react-router' import {Link} from 'react-router-dom' +import {useDebounce} from 'use-debounce' import {ActivityLibraryQuery} from '~/__generated__/ActivityLibraryQuery.graphql' import {ActivityLibrary_template$data} from '~/__generated__/ActivityLibrary_template.graphql' import {ActivityLibrary_templateSearchDocument$data} from '~/__generated__/ActivityLibrary_templateSearchDocument.graphql' import halloweenRetrospectiveTemplate from '../../../../static/images/illustrations/halloweenRetrospectiveTemplate.png' +import useAtmosphere from '../../hooks/useAtmosphere' import useRouter from '../../hooks/useRouter' import useSearchFilter from '../../hooks/useSearchFilter' import logoMarkPurple from '../../styles/theme/images/brand/mark-color.svg' +import SendClientSideEvent from '../../utils/SendClientSideEvent' import IconLabel from '../IconLabel' +import AISearch from './AISearch' +import ActivityGrid from './ActivityGrid' import { - CategoryID, CATEGORY_ID_TO_NAME, CATEGORY_THEMES, CUSTOM_CATEGORY_ID, + CategoryID, QUICK_START_CATEGORY_ID } from './Categories' import CreateActivityCard from './CreateActivityCard' import SearchBar from './SearchBar' -import useAtmosphere from '../../hooks/useAtmosphere' -import AISearch from './AISearch' -import SendClientSideEvent from '../../utils/SendClientSideEvent' -import {useDebounce} from 'use-debounce' -import ActivityGrid from './ActivityGrid' graphql` fragment ActivityLibrary_templateSearchDocument on MeetingTemplate { diff --git a/packages/client/components/ActivityLibrary/ActivityLibraryCardDescription.tsx b/packages/client/components/ActivityLibrary/ActivityLibraryCardDescription.tsx index e9927587efe..412d8543c1b 100644 --- a/packages/client/components/ActivityLibrary/ActivityLibraryCardDescription.tsx +++ b/packages/client/components/ActivityLibrary/ActivityLibraryCardDescription.tsx @@ -1,10 +1,10 @@ +import * as ScrollArea from '@radix-ui/react-scroll-area' import graphql from 'babel-plugin-relay/macro' import clsx from 'clsx' -import * as ScrollArea from '@radix-ui/react-scroll-area' import React from 'react' import { - ActivityLibraryCardDescription_template$key, - ActivityLibraryCardDescription_template$data + ActivityLibraryCardDescription_template$data, + ActivityLibraryCardDescription_template$key } from '~/__generated__/ActivityLibraryCardDescription_template.graphql' import {Comment, LinearScale, Update} from '@mui/icons-material' diff --git a/packages/client/components/ActivityLibrary/ActivityLibraryRoutes.tsx b/packages/client/components/ActivityLibrary/ActivityLibraryRoutes.tsx index 41b2cb290e5..e191e20929d 100644 --- a/packages/client/components/ActivityLibrary/ActivityLibraryRoutes.tsx +++ b/packages/client/components/ActivityLibrary/ActivityLibraryRoutes.tsx @@ -1,10 +1,10 @@ import React, {lazy} from 'react' -import TeamSubscription from '../../subscriptions/TeamSubscription' +import {Route, Switch, useRouteMatch} from 'react-router' import useSubscription from '../../hooks/useSubscription' -import TaskSubscription from '../../subscriptions/TaskSubscription' import NotificationSubscription from '../../subscriptions/NotificationSubscription' import OrganizationSubscription from '../../subscriptions/OrganizationSubscription' -import {Route, Switch, useRouteMatch} from 'react-router' +import TaskSubscription from '../../subscriptions/TaskSubscription' +import TeamSubscription from '../../subscriptions/TeamSubscription' const ActivityDetailsRoute = lazy( () => import(/* webpackChunkName: 'ActivityDetails' */ './ActivityDetails/ActivityDetailsRoute') diff --git a/packages/client/components/ActivityLibrary/CreateActivityCard.tsx b/packages/client/components/ActivityLibrary/CreateActivityCard.tsx index ea574d4cf1c..38a2b7b9744 100644 --- a/packages/client/components/ActivityLibrary/CreateActivityCard.tsx +++ b/packages/client/components/ActivityLibrary/CreateActivityCard.tsx @@ -1,10 +1,10 @@ -import React from 'react' -import {ActivityLibraryCard} from './ActivityLibraryCard' -import {ActivityBadge} from './ActivityBadge' import {Add as AddIcon} from '@mui/icons-material' import clsx from 'clsx' +import React from 'react' import {Link} from 'react-router-dom' -import {CATEGORY_THEMES, CATEGORY_ID_TO_NAME, AllCategoryID} from './Categories' +import {ActivityBadge} from './ActivityBadge' +import {ActivityLibraryCard} from './ActivityLibraryCard' +import {AllCategoryID, CATEGORY_ID_TO_NAME, CATEGORY_THEMES} from './Categories' interface Props { className?: string diff --git a/packages/client/components/ActivityLibrary/CreateNewActivity/CreateNewActivity.tsx b/packages/client/components/ActivityLibrary/CreateNewActivity/CreateNewActivity.tsx index f105e0e1aab..2207adf83b2 100644 --- a/packages/client/components/ActivityLibrary/CreateNewActivity/CreateNewActivity.tsx +++ b/packages/client/components/ActivityLibrary/CreateNewActivity/CreateNewActivity.tsx @@ -1,29 +1,29 @@ -import React, {ComponentPropsWithoutRef, useState} from 'react' -import {PreloadedQuery, usePreloadedQuery} from 'react-relay' -import graphql from 'babel-plugin-relay/macro' import * as RadioGroup from '@radix-ui/react-radio-group' +import graphql from 'babel-plugin-relay/macro' import clsx from 'clsx' +import React, {ComponentPropsWithoutRef, useState} from 'react' +import {PreloadedQuery, usePreloadedQuery} from 'react-relay' +import {useHistory} from 'react-router' import {Link} from 'react-router-dom' -import newTemplate from '../../../../../static/images/illustrations/newTemplate.png' -import estimatedEffortTemplate from '../../../../../static/images/illustrations/estimatedEffortTemplate.png' import {CreateNewActivityQuery} from '~/__generated__/CreateNewActivityQuery.graphql' -import {ActivityCard, ActivityCardImage} from '../ActivityCard' -import {ActivityBadge} from '../ActivityBadge' -import IconLabel from '../../IconLabel' -import NewMeetingTeamPicker from '../../NewMeetingTeamPicker' -import sortByTier from '../../../utils/sortByTier' -import {useHistory} from 'react-router' +import estimatedEffortTemplate from '../../../../../static/images/illustrations/estimatedEffortTemplate.png' +import newTemplate from '../../../../../static/images/illustrations/newTemplate.png' +import {AddPokerTemplateMutation$data} from '../../../__generated__/AddPokerTemplateMutation.graphql' import {AddReflectTemplateMutation$data} from '../../../__generated__/AddReflectTemplateMutation.graphql' import useAtmosphere from '../../../hooks/useAtmosphere' import useMutationProps from '../../../hooks/useMutationProps' -import AddReflectTemplateMutation from '../../../mutations/AddReflectTemplateMutation' import useRouter from '../../../hooks/useRouter' -import {CATEGORY_ID_TO_NAME, CATEGORY_THEMES, CategoryID, DEFAULT_CARD_THEME} from '../Categories' -import BaseButton from '../../BaseButton' import AddPokerTemplateMutation from '../../../mutations/AddPokerTemplateMutation' -import {AddPokerTemplateMutation$data} from '../../../__generated__/AddPokerTemplateMutation.graphql' -import RaisedButton from '../../RaisedButton' +import AddReflectTemplateMutation from '../../../mutations/AddReflectTemplateMutation' import SendClientSideEvent from '../../../utils/SendClientSideEvent' +import sortByTier from '../../../utils/sortByTier' +import BaseButton from '../../BaseButton' +import IconLabel from '../../IconLabel' +import NewMeetingTeamPicker from '../../NewMeetingTeamPicker' +import RaisedButton from '../../RaisedButton' +import {ActivityBadge} from '../ActivityBadge' +import {ActivityCard, ActivityCardImage} from '../ActivityCard' +import {CATEGORY_ID_TO_NAME, CATEGORY_THEMES, CategoryID, DEFAULT_CARD_THEME} from '../Categories' const Bold = (props: ComponentPropsWithoutRef<'span'>) => { const {children, className, ...rest} = props diff --git a/packages/client/components/ActivityLibrary/ScheduleMeetingButton.tsx b/packages/client/components/ActivityLibrary/ScheduleMeetingButton.tsx index 319187dd742..8f2017c7d27 100644 --- a/packages/client/components/ActivityLibrary/ScheduleMeetingButton.tsx +++ b/packages/client/components/ActivityLibrary/ScheduleMeetingButton.tsx @@ -1,16 +1,16 @@ -import React from 'react' import graphql from 'babel-plugin-relay/macro' -import SecondaryButton from '../SecondaryButton' +import React from 'react' +import {useFragment} from 'react-relay' +import {ScheduleMeetingButton_team$key} from '~/__generated__/ScheduleMeetingButton_team.graphql' import { CreateGcalEventInput, RecurrenceSettingsInput } from '../../__generated__/StartRetrospectiveMutation.graphql' -import {useFragment} from 'react-relay' -import {ScheduleMeetingButton_team$key} from '~/__generated__/ScheduleMeetingButton_team.graphql' -import {MenuMutationProps} from '../../hooks/useMutationProps' import useModal from '../../hooks/useModal' -import {ScheduleDialog} from '../ScheduleDialog' +import {MenuMutationProps} from '../../hooks/useMutationProps' import DialogContainer from '../DialogContainer' +import {ScheduleDialog} from '../ScheduleDialog' +import SecondaryButton from '../SecondaryButton' type Props = { mutationProps: MenuMutationProps diff --git a/packages/client/components/ActivityLibrary/SearchBar.tsx b/packages/client/components/ActivityLibrary/SearchBar.tsx index eed043eb5bf..1af0307f978 100644 --- a/packages/client/components/ActivityLibrary/SearchBar.tsx +++ b/packages/client/components/ActivityLibrary/SearchBar.tsx @@ -1,5 +1,5 @@ -import React, {ChangeEvent} from 'react' import {Search as SearchIcon} from '@mui/icons-material' +import React, {ChangeEvent} from 'react' interface Props { searchQuery: string diff --git a/packages/client/components/ActivityLibrary/TeamPickerModal.tsx b/packages/client/components/ActivityLibrary/TeamPickerModal.tsx index 0da704b6df2..07ab1ba8d2c 100644 --- a/packages/client/components/ActivityLibrary/TeamPickerModal.tsx +++ b/packages/client/components/ActivityLibrary/TeamPickerModal.tsx @@ -7,6 +7,7 @@ import {useHistory} from 'react-router' import {AddReflectTemplateMutation$data} from '~/__generated__/AddReflectTemplateMutation.graphql' import {TeamPickerModal_teams$key} from '~/__generated__/TeamPickerModal_teams.graphql' import {MeetingTypeEnum} from '~/__generated__/TemplateDetails_activity.graphql' +import {AddPokerTemplateMutation$data} from '../../__generated__/AddPokerTemplateMutation.graphql' import useAtmosphere from '../../hooks/useAtmosphere' import {MenuPosition} from '../../hooks/useCoords' import useMutationProps from '../../hooks/useMutationProps' @@ -14,7 +15,6 @@ import AddPokerTemplateMutation from '../../mutations/AddPokerTemplateMutation' import AddReflectTemplateMutation from '../../mutations/AddReflectTemplateMutation' import SendClientSideEvent from '../../utils/SendClientSideEvent' import sortByTier from '../../utils/sortByTier' -import {AddPokerTemplateMutation$data} from '../../__generated__/AddPokerTemplateMutation.graphql' import NewMeetingTeamPicker from '../NewMeetingTeamPicker' const ACTION_BUTTON_CLASSES = diff --git a/packages/client/components/AddTeamDialog.tsx b/packages/client/components/AddTeamDialog.tsx index 18de4e59bbf..0ce695761fe 100644 --- a/packages/client/components/AddTeamDialog.tsx +++ b/packages/client/components/AddTeamDialog.tsx @@ -1,27 +1,27 @@ +import graphql from 'babel-plugin-relay/macro' import React, {useState} from 'react' -import {PreloadedQuery, usePreloadedQuery, useFragment} from 'react-relay' -import FlatPrimaryButton from './FlatPrimaryButton' +import {PreloadedQuery, useFragment, usePreloadedQuery} from 'react-relay' +import useRouter from '~/hooks/useRouter' +import AddTeamMutation from '~/mutations/AddTeamMutation' +import SendClientSideEvent from '~/utils/SendClientSideEvent' +import getGraphQLError from '~/utils/relay/getGraphQLError' +import {AddTeamDialogQuery} from '../__generated__/AddTeamDialogQuery.graphql' +import {AddTeamDialog_viewer$key} from '../__generated__/AddTeamDialog_viewer.graphql' +import {AdhocTeamMultiSelect, Option} from '../components/AdhocTeamMultiSelect/AdhocTeamMultiSelect' +import useAtmosphere from '../hooks/useAtmosphere' +import useMutationProps from '../hooks/useMutationProps' import {Dialog} from '../ui/Dialog/Dialog' +import {DialogActions} from '../ui/Dialog/DialogActions' import {DialogContent} from '../ui/Dialog/DialogContent' import {DialogTitle} from '../ui/Dialog/DialogTitle' -import {DialogActions} from '../ui/Dialog/DialogActions' +import {Input} from '../ui/Input/Input' import {Select} from '../ui/Select/Select' +import {SelectContent} from '../ui/Select/SelectContent' +import {SelectGroup} from '../ui/Select/SelectGroup' import {SelectItem} from '../ui/Select/SelectItem' import {SelectTrigger} from '../ui/Select/SelectTrigger' -import {SelectGroup} from '../ui/Select/SelectGroup' import {SelectValue} from '../ui/Select/SelectValue' -import {SelectContent} from '../ui/Select/SelectContent' -import graphql from 'babel-plugin-relay/macro' -import {AddTeamDialogQuery} from '../__generated__/AddTeamDialogQuery.graphql' -import {AddTeamDialog_viewer$key} from '../__generated__/AddTeamDialog_viewer.graphql' -import useMutationProps from '../hooks/useMutationProps' -import useAtmosphere from '../hooks/useAtmosphere' -import {AdhocTeamMultiSelect, Option} from '../components/AdhocTeamMultiSelect/AdhocTeamMultiSelect' -import {Input} from '../ui/Input/Input' -import AddTeamMutation from '~/mutations/AddTeamMutation' -import useRouter from '~/hooks/useRouter' -import getGraphQLError from '~/utils/relay/getGraphQLError' -import SendClientSideEvent from '~/utils/SendClientSideEvent' +import FlatPrimaryButton from './FlatPrimaryButton' interface Props { isOpen: boolean diff --git a/packages/client/components/AddTeamDialogRoot.tsx b/packages/client/components/AddTeamDialogRoot.tsx index a314e933876..cd5be060bef 100644 --- a/packages/client/components/AddTeamDialogRoot.tsx +++ b/packages/client/components/AddTeamDialogRoot.tsx @@ -1,8 +1,8 @@ import React, {Suspense} from 'react' -import AddTeamDialog from './AddTeamDialog' -import {Loader} from '../utils/relay/renderLoader' -import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import addTeamDialogQuery, {AddTeamDialogQuery} from '../__generated__/AddTeamDialogQuery.graphql' +import useQueryLoaderNow from '../hooks/useQueryLoaderNow' +import {Loader} from '../utils/relay/renderLoader' +import AddTeamDialog from './AddTeamDialog' interface Props { onClose: () => void diff --git a/packages/client/components/AddTeamMemberAvatarButton.tsx b/packages/client/components/AddTeamMemberAvatarButton.tsx index 2f3a95a24cf..8aeacbd0fa4 100644 --- a/packages/client/components/AddTeamMemberAvatarButton.tsx +++ b/packages/client/components/AddTeamMemberAvatarButton.tsx @@ -4,13 +4,13 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import {PALETTE} from '~/styles/paletteV3' +import {AddTeamMemberAvatarButton_teamMembers$key} from '../__generated__/AddTeamMemberAvatarButton_teamMembers.graphql' import {MenuPosition} from '../hooks/useCoords' import useModal from '../hooks/useModal' import useTooltip from '../hooks/useTooltip' import {meetingAvatarMediaQueries} from '../styles/meeting' import isDemoRoute from '../utils/isDemoRoute' import lazyPreload from '../utils/lazyPreload' -import {AddTeamMemberAvatarButton_teamMembers$key} from '../__generated__/AddTeamMemberAvatarButton_teamMembers.graphql' import OutlinedButton from './OutlinedButton' interface Props { diff --git a/packages/client/components/AddToAzureMenuItem.tsx b/packages/client/components/AddToAzureMenuItem.tsx index 1bffc1f650c..76fe597cac9 100644 --- a/packages/client/components/AddToAzureMenuItem.tsx +++ b/packages/client/components/AddToAzureMenuItem.tsx @@ -2,11 +2,11 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React, {forwardRef} from 'react' import {useFragment} from 'react-relay' +import {AddToAzureMenuItem_AzureIntegration$key} from '../__generated__/AddToAzureMenuItem_AzureIntegration.graphql' import useAtmosphere from '../hooks/useAtmosphere' import {MenuMutationProps} from '../hooks/useMutationProps' import {ICON_SIZE} from '../styles/typographyV2' import AzureDevOpsClientManager from '../utils/AzureDevOpsClientManager' -import {AddToAzureMenuItem_AzureIntegration$key} from '../__generated__/AddToAzureMenuItem_AzureIntegration.graphql' import AzureDevOpsSVG from './AzureDevOpsSVG' import MenuItem from './MenuItem' import MenuItemComponentAvatar from './MenuItemComponentAvatar' diff --git a/packages/client/components/AddToGitLabMenuItem.tsx b/packages/client/components/AddToGitLabMenuItem.tsx index 7b06b07addb..2cc793f704a 100644 --- a/packages/client/components/AddToGitLabMenuItem.tsx +++ b/packages/client/components/AddToGitLabMenuItem.tsx @@ -3,10 +3,10 @@ import graphql from 'babel-plugin-relay/macro' import React, {forwardRef} from 'react' import {useFragment} from 'react-relay' import GitLabClientManager from '~/utils/GitLabClientManager' +import {AddToGitLabMenuItem_GitLabIntegration$key} from '../__generated__/AddToGitLabMenuItem_GitLabIntegration.graphql' import useAtmosphere from '../hooks/useAtmosphere' import useMutationProps, {MenuMutationProps} from '../hooks/useMutationProps' import {ICON_SIZE} from '../styles/typographyV2' -import {AddToGitLabMenuItem_GitLabIntegration$key} from '../__generated__/AddToGitLabMenuItem_GitLabIntegration.graphql' import GitLabSVG from './GitLabSVG' import MenuItem from './MenuItem' import MenuItemComponentAvatar from './MenuItemComponentAvatar' diff --git a/packages/client/components/AdhocTeamMultiSelect/AdhocTeamMultiSelect.tsx b/packages/client/components/AdhocTeamMultiSelect/AdhocTeamMultiSelect.tsx index 2f1a92fb107..ffb6e8585cd 100644 --- a/packages/client/components/AdhocTeamMultiSelect/AdhocTeamMultiSelect.tsx +++ b/packages/client/components/AdhocTeamMultiSelect/AdhocTeamMultiSelect.tsx @@ -1,11 +1,11 @@ +import {useAutocomplete} from '@mui/base/AutocompleteUnstyled' +import CheckIcon from '@mui/icons-material/Check' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' -import {useAutocomplete} from '@mui/base/AutocompleteUnstyled' -import CheckIcon from '@mui/icons-material/Check' -import {AdhocTeamMultiSelect_viewer$key} from '../../__generated__/AdhocTeamMultiSelect_viewer.graphql' import {Send as SendIcon} from '@mui/icons-material' +import {AdhocTeamMultiSelect_viewer$key} from '../../__generated__/AdhocTeamMultiSelect_viewer.graphql' import {Chip} from '../../ui/Chip/Chip' import {emailRegex} from '../../validation/regex' diff --git a/packages/client/components/AnalyticsPage.tsx b/packages/client/components/AnalyticsPage.tsx index dee92c85291..9a6478fed22 100644 --- a/packages/client/components/AnalyticsPage.tsx +++ b/packages/client/components/AnalyticsPage.tsx @@ -1,14 +1,14 @@ +import * as amplitude from '@amplitude/analytics-browser' import {datadogRum} from '@datadog/browser-rum' import * as Sentry from '@sentry/browser' import graphql from 'babel-plugin-relay/macro' import {useEffect} from 'react' import ReactGA from 'react-ga4' +import {AnalyticsPageQuery} from '~/__generated__/AnalyticsPageQuery.graphql' import useAtmosphere from '~/hooks/useAtmosphere' import {LocalStorageKey} from '~/types/constEnums' import safeIdentify from '~/utils/safeIdentify' -import {AnalyticsPageQuery} from '~/__generated__/AnalyticsPageQuery.graphql' import getContentGroup from '../utils/getContentGroup' -import * as amplitude from '@amplitude/analytics-browser' const query = graphql` query AnalyticsPageQuery { diff --git a/packages/client/components/ArchiveTaskRoot.tsx b/packages/client/components/ArchiveTaskRoot.tsx index c52b373461f..6a2fcd6ef5a 100644 --- a/packages/client/components/ArchiveTaskRoot.tsx +++ b/packages/client/components/ArchiveTaskRoot.tsx @@ -1,8 +1,8 @@ import React, {Suspense} from 'react' import useDocumentTitle from '~/hooks/useDocumentTitle' import TeamArchive from '~/modules/teamDashboard/components/TeamArchive/TeamArchive' -import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import teamArchiveQuery, {TeamArchiveQuery} from '../__generated__/TeamArchiveQuery.graphql' +import useQueryLoaderNow from '../hooks/useQueryLoaderNow' interface Props { teamIds?: string[] | null diff --git a/packages/client/components/ArchiveTaskUserRoot.tsx b/packages/client/components/ArchiveTaskUserRoot.tsx index ed64cf7bdd0..9707ac9f96e 100644 --- a/packages/client/components/ArchiveTaskUserRoot.tsx +++ b/packages/client/components/ArchiveTaskUserRoot.tsx @@ -1,8 +1,8 @@ import React, {Suspense} from 'react' import TeamArchive from '~/modules/teamDashboard/components/TeamArchive/TeamArchive' import UserTasksHeader from '~/modules/userDashboard/components/UserTasksHeader/UserTasksHeader' -import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import teamArchiveQuery, {TeamArchiveQuery} from '../__generated__/TeamArchiveQuery.graphql' +import useQueryLoaderNow from '../hooks/useQueryLoaderNow' interface Props { teamIds?: string[] | null diff --git a/packages/client/components/AvatarList.tsx b/packages/client/components/AvatarList.tsx index ddb51583f51..749445510d9 100644 --- a/packages/client/components/AvatarList.tsx +++ b/packages/client/components/AvatarList.tsx @@ -3,10 +3,10 @@ import graphql from 'babel-plugin-relay/macro' import React, {ReactElement, useLayoutEffect, useRef, useState} from 'react' import {useFragment} from 'react-relay' import useResizeObserver from '~/hooks/useResizeObserver' +import {AvatarList_users$key} from '../__generated__/AvatarList_users.graphql' import useOverflowAvatars from '../hooks/useOverflowAvatars' import {TransitionStatus} from '../hooks/useTransition' import {BezierCurve} from '../types/constEnums' -import {AvatarList_users$key} from '../__generated__/AvatarList_users.graphql' import AvatarListUser from './AvatarListUser' import OverflowAvatar from './OverflowAvatar' diff --git a/packages/client/components/AvatarListUser.tsx b/packages/client/components/AvatarListUser.tsx index e3f6a7d14a3..5b03e3bd127 100644 --- a/packages/client/components/AvatarListUser.tsx +++ b/packages/client/components/AvatarListUser.tsx @@ -3,10 +3,10 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import {TransitionStatus} from '~/hooks/useTransition' +import {AvatarListUser_user$key} from '../__generated__/AvatarListUser_user.graphql' import {MenuPosition} from '../hooks/useCoords' import useTooltip from '../hooks/useTooltip' import {BezierCurve} from '../types/constEnums' -import {AvatarListUser_user$key} from '../__generated__/AvatarListUser_user.graphql' import Avatar from './Avatar/Avatar' const Wrapper = styled('div')<{offset: number; isColumn?: boolean}>(({offset, isColumn}) => ({ diff --git a/packages/client/components/AzureDevOpsFieldDimensionDropdown.tsx b/packages/client/components/AzureDevOpsFieldDimensionDropdown.tsx index f9e44bc9d8a..2ffa721ed59 100644 --- a/packages/client/components/AzureDevOpsFieldDimensionDropdown.tsx +++ b/packages/client/components/AzureDevOpsFieldDimensionDropdown.tsx @@ -4,6 +4,7 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import {PALETTE} from '~/styles/paletteV3' +import {AzureDevOpsFieldDimensionDropdown_stage$key} from '../__generated__/AzureDevOpsFieldDimensionDropdown_stage.graphql' import {MenuPosition} from '../hooks/useCoords' import useMenu from '../hooks/useMenu' import {SprintPokerDefaults} from '../types/constEnums' @@ -13,7 +14,6 @@ import { azureDevOpsRemainingWorkWorkItems, azureDevOpsStoryPointWorkItems } from '../utils/AzureDevOpsWorkItemFields' -import {AzureDevOpsFieldDimensionDropdown_stage$key} from '../__generated__/AzureDevOpsFieldDimensionDropdown_stage.graphql' import AzureDevOpsFieldMenu from './AzureDevOpsFieldMenu' import PlainButton from './PlainButton/PlainButton' diff --git a/packages/client/components/AzureDevOpsFieldMenu.tsx b/packages/client/components/AzureDevOpsFieldMenu.tsx index 9b1bd6689bf..dd399c6eb8f 100644 --- a/packages/client/components/AzureDevOpsFieldMenu.tsx +++ b/packages/client/components/AzureDevOpsFieldMenu.tsx @@ -2,6 +2,7 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import useAtmosphere from '~/hooks/useAtmosphere' +import {AzureDevOpsFieldMenu_stage$key} from '../__generated__/AzureDevOpsFieldMenu_stage.graphql' import {MenuProps} from '../hooks/useMenu' import UpdateAzureDevOpsDimensionFieldMutation from '../mutations/UpdateAzureDevOpsDimensionFieldMutation' import {SprintPokerDefaults} from '../types/constEnums' @@ -12,7 +13,6 @@ import { azureDevOpsRemainingWorkWorkItems, azureDevOpsStoryPointWorkItems } from '../utils/AzureDevOpsWorkItemFields' -import {AzureDevOpsFieldMenu_stage$key} from '../__generated__/AzureDevOpsFieldMenu_stage.graphql' import Menu from './Menu' import MenuItem from './MenuItem' import MenuItemHR from './MenuItemHR' diff --git a/packages/client/components/AzureDevOpsScopingSearchBar.tsx b/packages/client/components/AzureDevOpsScopingSearchBar.tsx index 4d8a7b79659..57ae76f6966 100644 --- a/packages/client/components/AzureDevOpsScopingSearchBar.tsx +++ b/packages/client/components/AzureDevOpsScopingSearchBar.tsx @@ -3,8 +3,8 @@ import {Search} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' -import {PALETTE} from '../styles/paletteV3' import {AzureDevOpsScopingSearchBar_meeting$key} from '../__generated__/AzureDevOpsScopingSearchBar_meeting.graphql' +import {PALETTE} from '../styles/paletteV3' import AzureDevOpsScopingSearchFilterToggle from './AzureDevOpsScopingSearchFilterToggle' import AzureDevOpsScopingSearchInput from './AzureDevOpsScopingSearchInput' diff --git a/packages/client/components/AzureDevOpsScopingSearchFilterMenu.tsx b/packages/client/components/AzureDevOpsScopingSearchFilterMenu.tsx index e15d1080661..395c4f67930 100644 --- a/packages/client/components/AzureDevOpsScopingSearchFilterMenu.tsx +++ b/packages/client/components/AzureDevOpsScopingSearchFilterMenu.tsx @@ -3,11 +3,11 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {commitLocalUpdate, useFragment} from 'react-relay' import useAtmosphere from '~/hooks/useAtmosphere' -import {MenuProps} from '../hooks/useMenu' import { AzureDevOpsScopingSearchFilterMenu_meeting$data, AzureDevOpsScopingSearchFilterMenu_meeting$key } from '../__generated__/AzureDevOpsScopingSearchFilterMenu_meeting.graphql' +import {MenuProps} from '../hooks/useMenu' import Checkbox from './Checkbox' import DropdownMenuLabel from './DropdownMenuLabel' import Menu from './Menu' diff --git a/packages/client/components/AzureDevOpsScopingSearchInput.tsx b/packages/client/components/AzureDevOpsScopingSearchInput.tsx index e5aa030bc2f..d2e6864b596 100644 --- a/packages/client/components/AzureDevOpsScopingSearchInput.tsx +++ b/packages/client/components/AzureDevOpsScopingSearchInput.tsx @@ -5,8 +5,8 @@ import React from 'react' import {commitLocalUpdate, useFragment} from 'react-relay' import {PALETTE} from '~/styles/paletteV3' import Atmosphere from '../Atmosphere' -import useAtmosphere from '../hooks/useAtmosphere' import {AzureDevOpsScopingSearchInput_meeting$key} from '../__generated__/AzureDevOpsScopingSearchInput_meeting.graphql' +import useAtmosphere from '../hooks/useAtmosphere' const Wrapper = styled('div')({ alignItems: 'center', diff --git a/packages/client/components/AzureDevOpsScopingSearchResultsRoot.tsx b/packages/client/components/AzureDevOpsScopingSearchResultsRoot.tsx index 259cf7f0faf..52637c5e284 100644 --- a/packages/client/components/AzureDevOpsScopingSearchResultsRoot.tsx +++ b/packages/client/components/AzureDevOpsScopingSearchResultsRoot.tsx @@ -2,11 +2,11 @@ import graphql from 'babel-plugin-relay/macro' import React, {Suspense} from 'react' import {useFragment} from 'react-relay' import MockScopingList from '~/modules/meeting/components/MockScopingList' -import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import azureDevOpsScopingSearchResultsQuery, { AzureDevOpsScopingSearchResultsQuery } from '../__generated__/AzureDevOpsScopingSearchResultsQuery.graphql' import {AzureDevOpsScopingSearchResultsRoot_meeting$key} from '../__generated__/AzureDevOpsScopingSearchResultsRoot_meeting.graphql' +import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import AzureDevOpsScopingSearchResults from './AzureDevOpsScopingSearchResults' interface Props { diff --git a/packages/client/components/BillingLeaderActionMenu.tsx b/packages/client/components/BillingLeaderActionMenu.tsx index d8ee60cf36a..9f6e1e7604c 100644 --- a/packages/client/components/BillingLeaderActionMenu.tsx +++ b/packages/client/components/BillingLeaderActionMenu.tsx @@ -2,11 +2,11 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import useAtmosphere from '~/hooks/useAtmosphere' +import {BillingLeaderActionMenu_organization$key} from '../__generated__/BillingLeaderActionMenu_organization.graphql' +import {BillingLeaderActionMenu_organizationUser$key} from '../__generated__/BillingLeaderActionMenu_organizationUser.graphql' import {MenuProps} from '../hooks/useMenu' import SetOrgUserRoleMutation from '../mutations/SetOrgUserRoleMutation' import withMutationProps, {WithMutationProps} from '../utils/relay/withMutationProps' -import {BillingLeaderActionMenu_organization$key} from '../__generated__/BillingLeaderActionMenu_organization.graphql' -import {BillingLeaderActionMenu_organizationUser$key} from '../__generated__/BillingLeaderActionMenu_organizationUser.graphql' import Menu from './Menu' import MenuItem from './MenuItem' diff --git a/packages/client/components/BillingLeaderMenu.tsx b/packages/client/components/BillingLeaderMenu.tsx index 033cdeb64db..3082a87b4d1 100644 --- a/packages/client/components/BillingLeaderMenu.tsx +++ b/packages/client/components/BillingLeaderMenu.tsx @@ -1,10 +1,10 @@ import React from 'react' import useAtmosphere from '~/hooks/useAtmosphere' import {MenuProps} from '../hooks/useMenu' +import useMutationProps from '../hooks/useMutationProps' import SetOrgUserRoleMutation from '../mutations/SetOrgUserRoleMutation' import Menu from './Menu' import MenuItem from './MenuItem' -import useMutationProps from '../hooks/useMutationProps' type Props = { menuProps: MenuProps diff --git a/packages/client/components/BottomControlBarReady.tsx b/packages/client/components/BottomControlBarReady.tsx index b212c7cbb5d..a1291de032e 100644 --- a/packages/client/components/BottomControlBarReady.tsx +++ b/packages/client/components/BottomControlBarReady.tsx @@ -1,8 +1,9 @@ import styled from '@emotion/styled' -import {ArrowForward, CheckCircleOutline, CheckCircle} from '@mui/icons-material' +import {ArrowForward, CheckCircle, CheckCircleOutline} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React, {useMemo} from 'react' import {useFragment} from 'react-relay' +import {BottomControlBarReady_meeting$key} from '~/__generated__/BottomControlBarReady_meeting.graphql' import useAtmosphere from '~/hooks/useAtmosphere' import useGotoNext from '~/hooks/useGotoNext' import {TransitionStatus} from '~/hooks/useTransition' @@ -10,10 +11,9 @@ import FlagReadyToAdvanceMutation from '~/mutations/FlagReadyToAdvanceMutation' import {PALETTE} from '~/styles/paletteV3' import {BezierCurve, Times} from '~/types/constEnums' import handleRightArrow from '~/utils/handleRightArrow' -import {BottomControlBarReady_meeting$key} from '~/__generated__/BottomControlBarReady_meeting.graphql' +import {NewMeetingPhaseTypeEnum} from '../__generated__/BottomControlBarReady_meeting.graphql' import {MenuPosition} from '../hooks/useCoords' import useTooltip from '../hooks/useTooltip' -import {NewMeetingPhaseTypeEnum} from '../__generated__/BottomControlBarReady_meeting.graphql' import BottomControlBarProgress from './BottomControlBarProgress' import BottomNavControl from './BottomNavControl' import BottomNavIconLabel from './BottomNavIconLabel' diff --git a/packages/client/components/BottomControlBarTips.tsx b/packages/client/components/BottomControlBarTips.tsx index 6aa0b6086af..fa8873ae2ae 100644 --- a/packages/client/components/BottomControlBarTips.tsx +++ b/packages/client/components/BottomControlBarTips.tsx @@ -2,16 +2,16 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React, {useEffect} from 'react' import {useFragment} from 'react-relay' +import {BottomControlBarTips_meeting$key} from '~/__generated__/BottomControlBarTips_meeting.graphql' import {MenuPosition} from '~/hooks/useCoords' import useMenu from '~/hooks/useMenu' import useTimeout from '~/hooks/useTimeout' import {TransitionStatus} from '~/hooks/useTransition' import LocalAtmosphere from '~/modules/demo/LocalAtmosphere' import lazyPreload, {LazyExoticPreload} from '~/utils/lazyPreload' -import {BottomControlBarTips_meeting$key} from '~/__generated__/BottomControlBarTips_meeting.graphql' +import {NewMeetingPhaseTypeEnum} from '../__generated__/BottomControlBarTips_meeting.graphql' import useAtmosphere from '../hooks/useAtmosphere' import isDemoRoute from '../utils/isDemoRoute' -import {NewMeetingPhaseTypeEnum} from '../__generated__/BottomControlBarTips_meeting.graphql' import BottomNavControl from './BottomNavControl' import BottomNavIconLabel from './BottomNavIconLabel' import Menu from './Menu' diff --git a/packages/client/components/BottomNavIconLabel.tsx b/packages/client/components/BottomNavIconLabel.tsx index e24975b915a..97d0d5498f4 100644 --- a/packages/client/components/BottomNavIconLabel.tsx +++ b/packages/client/components/BottomNavIconLabel.tsx @@ -1,6 +1,6 @@ import styled from '@emotion/styled' import {Event, HelpOutline, PersonPinCircleOutlined, TimerOutlined} from '@mui/icons-material' -import React, {forwardRef, ReactNode, Ref} from 'react' +import React, {ReactNode, Ref, forwardRef} from 'react' import {PALETTE} from '../styles/paletteV3' const paletteColors = { diff --git a/packages/client/components/Checkbox.tsx b/packages/client/components/Checkbox.tsx index 9915fd83b2d..a319fa4a5b2 100644 --- a/packages/client/components/Checkbox.tsx +++ b/packages/client/components/Checkbox.tsx @@ -1,6 +1,6 @@ import {CheckBox, CheckBoxOutlineBlank, IndeterminateCheckBox} from '@mui/icons-material' -import React from 'react' import clsx from 'clsx' +import React from 'react' interface Props { active: boolean | null diff --git a/packages/client/components/DashFilterToggle/DashFilterToggle.tsx b/packages/client/components/DashFilterToggle/DashFilterToggle.tsx index ccb11d7e89c..155621b2ebc 100644 --- a/packages/client/components/DashFilterToggle/DashFilterToggle.tsx +++ b/packages/client/components/DashFilterToggle/DashFilterToggle.tsx @@ -1,6 +1,6 @@ import styled from '@emotion/styled' import {FilterList, Group, Person} from '@mui/icons-material' -import React, {forwardRef, Ref} from 'react' +import React, {Ref, forwardRef} from 'react' import {PALETTE} from '~/styles/paletteV3' import LinkButton from '../LinkButton' diff --git a/packages/client/components/DashNavList/DashNavList.tsx b/packages/client/components/DashNavList/DashNavList.tsx index 137497d813b..2c5890bc643 100644 --- a/packages/client/components/DashNavList/DashNavList.tsx +++ b/packages/client/components/DashNavList/DashNavList.tsx @@ -5,11 +5,11 @@ import {useFragment} from 'react-relay' import {PALETTE} from '~/styles/paletteV3' import {Breakpoint} from '~/types/constEnums' import makeMinWidthMediaQuery from '~/utils/makeMinWidthMediaQuery' -import LeftDashNavItem from '../Dashboard/LeftDashNavItem' import { - DashNavList_organization$key, - DashNavList_organization$data + DashNavList_organization$data, + DashNavList_organization$key } from '../../__generated__/DashNavList_organization.graphql' +import LeftDashNavItem from '../Dashboard/LeftDashNavItem' const DashNavListStyles = styled('div')({ paddingRight: 8, diff --git a/packages/client/components/DashTopBar.tsx b/packages/client/components/DashTopBar.tsx index 2b9c9ead0a3..691afb835db 100644 --- a/packages/client/components/DashTopBar.tsx +++ b/packages/client/components/DashTopBar.tsx @@ -3,12 +3,12 @@ import {Menu} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {DashTopBar_query$key} from '~/__generated__/DashTopBar_query.graphql' import useRouter from '~/hooks/useRouter' import {PALETTE} from '~/styles/paletteV3' import {ICON_SIZE} from '~/styles/typographyV2' import {AppBar, Breakpoint, Layout, NavSidebar} from '~/types/constEnums' import makeMinWidthMediaQuery from '~/utils/makeMinWidthMediaQuery' -import {DashTopBar_query$key} from '~/__generated__/DashTopBar_query.graphql' import parabolLogo from '../styles/theme/images/brand/lockup_color_mark_white_type.svg' import PinnedSnackbarNotifications from './PinnedSnackbarNotifications' import PlainButton from './PlainButton/PlainButton' diff --git a/packages/client/components/Dashboard.tsx b/packages/client/components/Dashboard.tsx index 6dbc7c535e2..e636a27285f 100644 --- a/packages/client/components/Dashboard.tsx +++ b/packages/client/components/Dashboard.tsx @@ -4,20 +4,20 @@ import React, {lazy, useRef} from 'react' import {PreloadedQuery, usePreloadedQuery} from 'react-relay' import {Route, Switch} from 'react-router' import useBreakpoint from '~/hooks/useBreakpoint' +import useNewFeatureSnackbar from '~/hooks/useNewFeatureSnackbar' import useSnackNag from '~/hooks/useSnackNag' import useSnacksForNewMeetings from '~/hooks/useSnacksForNewMeetings' -import useNewFeatureSnackbar from '~/hooks/useNewFeatureSnackbar' 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 {DashboardQuery} from '../__generated__/DashboardQuery.graphql' +import DashTopBar from './DashTopBar' import DashSidebar from './Dashboard/DashSidebar' import MobileDashSidebar from './Dashboard/MobileDashSidebar' -import DashTopBar from './DashTopBar' import MobileDashTopBar from './MobileDashTopBar' -import SwipeableDashSidebar from './SwipeableDashSidebar' import RequestToJoinComponent from './RequestToJoin' +import SwipeableDashSidebar from './SwipeableDashSidebar' const InsightsRoot = lazy( () => import(/* webpackChunkName: 'Insights' */ '../components/InsightsRoot') diff --git a/packages/client/components/Dashboard/DashSidebar.tsx b/packages/client/components/Dashboard/DashSidebar.tsx index 2f5c78f0cdb..f95a6d38675 100644 --- a/packages/client/components/Dashboard/DashSidebar.tsx +++ b/packages/client/components/Dashboard/DashSidebar.tsx @@ -3,6 +3,7 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import {useRouteMatch} from 'react-router' +import {DashSidebar_viewer$key} from '../../__generated__/DashSidebar_viewer.graphql' import {PALETTE} from '../../styles/paletteV3' import {NavSidebar} from '../../types/constEnums' import { @@ -12,7 +13,6 @@ import { ORG_SETTINGS_PAGE, TEAMS_PAGE } from '../../utils/constants' -import {DashSidebar_viewer$key} from '../../__generated__/DashSidebar_viewer.graphql' import DashNavList from '../DashNavList/DashNavList' import SideBarStartMeetingButton from '../SideBarStartMeetingButton' import LeftDashNavItem from './LeftDashNavItem' diff --git a/packages/client/components/Dashboard/MobileDashSidebar.tsx b/packages/client/components/Dashboard/MobileDashSidebar.tsx index 03666b91642..033556c85bc 100644 --- a/packages/client/components/Dashboard/MobileDashSidebar.tsx +++ b/packages/client/components/Dashboard/MobileDashSidebar.tsx @@ -3,6 +3,7 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import {useRouteMatch} from 'react-router' +import {DashSidebar_viewer$key} from '../../__generated__/DashSidebar_viewer.graphql' import {PALETTE} from '../../styles/paletteV3' import {NavSidebar} from '../../types/constEnums' import { @@ -12,7 +13,6 @@ import { ORG_SETTINGS_PAGE, TEAMS_PAGE } from '../../utils/constants' -import {DashSidebar_viewer$key} from '../../__generated__/DashSidebar_viewer.graphql' import DashNavList from '../DashNavList/DashNavList' import StandardHub from '../StandardHub/StandardHub' import LeftDashNavItem from './LeftDashNavItem' diff --git a/packages/client/components/DashboardAvatars/DashboardAvatar.tsx b/packages/client/components/DashboardAvatars/DashboardAvatar.tsx index b23e528c5e2..0480585d3b4 100644 --- a/packages/client/components/DashboardAvatars/DashboardAvatar.tsx +++ b/packages/client/components/DashboardAvatars/DashboardAvatar.tsx @@ -2,6 +2,7 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {commitLocalUpdate, useFragment} from 'react-relay' +import {DashboardAvatar_teamMember$key} from '../../__generated__/DashboardAvatar_teamMember.graphql' import useAtmosphere from '../../hooks/useAtmosphere' import {MenuPosition} from '../../hooks/useCoords' import useMutationProps from '../../hooks/useMutationProps' @@ -10,7 +11,6 @@ import ToggleTeamDrawerMutation from '../../mutations/ToggleTeamDrawerMutation' import {PALETTE} from '../../styles/paletteV3' import defaultUserAvatar from '../../styles/theme/images/avatar-user.svg' import {ElementWidth} from '../../types/constEnums' -import {DashboardAvatar_teamMember$key} from '../../__generated__/DashboardAvatar_teamMember.graphql' import Avatar from '../Avatar/Avatar' interface Props { diff --git a/packages/client/components/DashboardAvatars/DashboardAvatars.tsx b/packages/client/components/DashboardAvatars/DashboardAvatars.tsx index 5827f1edb8c..acfe2337256 100644 --- a/packages/client/components/DashboardAvatars/DashboardAvatars.tsx +++ b/packages/client/components/DashboardAvatars/DashboardAvatars.tsx @@ -4,15 +4,15 @@ import React, {useMemo} from 'react' import {commitLocalUpdate, useFragment} from 'react-relay' import {Breakpoint, ElementHeight, ElementWidth} from '~/types/constEnums' import fromTeamMemberId from '~/utils/relay/fromTeamMemberId' +import { + DashboardAvatars_team$data, + DashboardAvatars_team$key +} from '../../__generated__/DashboardAvatars_team.graphql' import useAtmosphere from '../../hooks/useAtmosphere' import useBreakpoint from '../../hooks/useBreakpoint' import useMutationProps from '../../hooks/useMutationProps' import ToggleTeamDrawerMutation from '../../mutations/ToggleTeamDrawerMutation' import {PALETTE} from '../../styles/paletteV3' -import { - DashboardAvatars_team$key, - DashboardAvatars_team$data -} from '../../__generated__/DashboardAvatars_team.graphql' import ErrorBoundary from '../ErrorBoundary' import PlainButton from '../PlainButton/PlainButton' import DashboardAvatar from './DashboardAvatar' diff --git a/packages/client/components/DashboardAvatars/TeamMemberAvatarMenu.tsx b/packages/client/components/DashboardAvatars/TeamMemberAvatarMenu.tsx index 9bf47a5b7b8..5433494085e 100644 --- a/packages/client/components/DashboardAvatars/TeamMemberAvatarMenu.tsx +++ b/packages/client/components/DashboardAvatars/TeamMemberAvatarMenu.tsx @@ -3,8 +3,8 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import useAtmosphere from '~/hooks/useAtmosphere' -import {MenuProps} from '../../hooks/useMenu' import {TeamMemberAvatarMenu_teamMember$key} from '../../__generated__/TeamMemberAvatarMenu_teamMember.graphql' +import {MenuProps} from '../../hooks/useMenu' import Menu from '../Menu' import MenuItem from '../MenuItem' import MenuItemLabel from '../MenuItemLabel' diff --git a/packages/client/components/DashboardRoot.tsx b/packages/client/components/DashboardRoot.tsx index f97e879fce5..e2366c7d517 100644 --- a/packages/client/components/DashboardRoot.tsx +++ b/packages/client/components/DashboardRoot.tsx @@ -1,12 +1,12 @@ import React, {Suspense} from 'react' import {withRouter} from 'react-router-dom' +import dashboardQuery, {DashboardQuery} from '../__generated__/DashboardQuery.graphql' import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import useSubscription from '../hooks/useSubscription' import NotificationSubscription from '../subscriptions/NotificationSubscription' import OrganizationSubscription from '../subscriptions/OrganizationSubscription' import TaskSubscription from '../subscriptions/TaskSubscription' import TeamSubscription from '../subscriptions/TeamSubscription' -import dashboardQuery, {DashboardQuery} from '../__generated__/DashboardQuery.graphql' import Dashboard from './Dashboard' const DashboardRoot = () => { diff --git a/packages/client/components/DeckActivityAvatars.tsx b/packages/client/components/DeckActivityAvatars.tsx index dbe21bd9462..a2939ab450c 100644 --- a/packages/client/components/DeckActivityAvatars.tsx +++ b/packages/client/components/DeckActivityAvatars.tsx @@ -2,10 +2,10 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React, {useMemo} from 'react' import {useFragment} from 'react-relay' +import {DeckActivityAvatars_stage$key} from '../__generated__/DeckActivityAvatars_stage.graphql' import useAtmosphere from '../hooks/useAtmosphere' import useTransition, {TransitionStatus} from '../hooks/useTransition' import {PokerCards} from '../types/constEnums' -import {DeckActivityAvatars_stage$key} from '../__generated__/DeckActivityAvatars_stage.graphql' import AvatarListUser from './AvatarListUser' const DeckActivityPanel = styled('div')({ diff --git a/packages/client/components/DeleteTeamDialog.tsx b/packages/client/components/DeleteTeamDialog.tsx index d6bb993bbde..d940674c070 100644 --- a/packages/client/components/DeleteTeamDialog.tsx +++ b/packages/client/components/DeleteTeamDialog.tsx @@ -1,15 +1,15 @@ import React, {useState} from 'react' -import FlatPrimaryButton from './FlatPrimaryButton' -import {Input} from '../ui/Input/Input' +import useAtmosphere from '../hooks/useAtmosphere' +import useMutationProps from '../hooks/useMutationProps' +import useRouter from '../hooks/useRouter' +import ArchiveTeamMutation from '../mutations/ArchiveTeamMutation' import {Dialog} from '../ui/Dialog/Dialog' +import {DialogActions} from '../ui/Dialog/DialogActions' import {DialogContent} from '../ui/Dialog/DialogContent' import {DialogTitle} from '../ui/Dialog/DialogTitle' -import {DialogActions} from '../ui/Dialog/DialogActions' -import useMutationProps from '../hooks/useMutationProps' +import {Input} from '../ui/Input/Input' +import FlatPrimaryButton from './FlatPrimaryButton' import SecondaryButton from './SecondaryButton' -import ArchiveTeamMutation from '../mutations/ArchiveTeamMutation' -import useAtmosphere from '../hooks/useAtmosphere' -import useRouter from '../hooks/useRouter' interface Props { isOpen: boolean diff --git a/packages/client/components/DemoMeetingCard.tsx b/packages/client/components/DemoMeetingCard.tsx index 1409d57911d..36892c5c372 100644 --- a/packages/client/components/DemoMeetingCard.tsx +++ b/packages/client/components/DemoMeetingCard.tsx @@ -4,10 +4,10 @@ import {Link} from 'react-router-dom' import retrospective from '../../../static/images/illustrations/retrospective.png' import useAtmosphere from '../hooks/useAtmosphere' import useBreakpoint from '../hooks/useBreakpoint' -import SendClientSideEvent from '../utils/SendClientSideEvent' import {Elevation} from '../styles/elevation' import {PALETTE} from '../styles/paletteV3' import {BezierCurve, Breakpoint, Card, ElementWidth} from '../types/constEnums' +import SendClientSideEvent from '../utils/SendClientSideEvent' const CardWrapper = styled('div')<{ maybeTabletPlus: boolean diff --git a/packages/client/components/DemoMeetingRoot.tsx b/packages/client/components/DemoMeetingRoot.tsx index 53e3f595b73..932301106e5 100644 --- a/packages/client/components/DemoMeetingRoot.tsx +++ b/packages/client/components/DemoMeetingRoot.tsx @@ -2,13 +2,13 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useLazyLoadQuery} from 'react-relay' import MeetingSubscription from '~/subscriptions/MeetingSubscription' +import {DemoMeetingRootQuery} from '../__generated__/DemoMeetingRootQuery.graphql' import useSubscription from '../hooks/useSubscription' import NotificationSubscription from '../subscriptions/NotificationSubscription' import OrganizationSubscription from '../subscriptions/OrganizationSubscription' import TaskSubscription from '../subscriptions/TaskSubscription' import TeamSubscription from '../subscriptions/TeamSubscription' import {RetroDemo} from '../types/constEnums' -import {DemoMeetingRootQuery} from '../__generated__/DemoMeetingRootQuery.graphql' import RetroMeeting from './RetroMeeting' const query = graphql` diff --git a/packages/client/components/DiscussPhaseReflectionGrid.tsx b/packages/client/components/DiscussPhaseReflectionGrid.tsx index 514cc27fc68..0189bc882ee 100644 --- a/packages/client/components/DiscussPhaseReflectionGrid.tsx +++ b/packages/client/components/DiscussPhaseReflectionGrid.tsx @@ -2,9 +2,9 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React, {useRef} from 'react' import {useFragment} from 'react-relay' +import {DiscussPhaseReflectionGrid_meeting$key} from '~/__generated__/DiscussPhaseReflectionGrid_meeting.graphql' import {useCoverable} from '~/hooks/useControlBarCovers' import {MeetingControlBarEnum} from '~/types/constEnums' -import {DiscussPhaseReflectionGrid_meeting$key} from '~/__generated__/DiscussPhaseReflectionGrid_meeting.graphql' import {meetingGridMinWidth} from '../styles/meeting' import MasonryCSSGrid from './MasonryCSSGrid' import ReflectionCard from './ReflectionCard/ReflectionCard' diff --git a/packages/client/components/DiscussionMentioned.tsx b/packages/client/components/DiscussionMentioned.tsx index 25b494e3b91..1fd1cab6386 100644 --- a/packages/client/components/DiscussionMentioned.tsx +++ b/packages/client/components/DiscussionMentioned.tsx @@ -4,13 +4,13 @@ import {Editor} from 'draft-js' import React from 'react' import {useFragment} from 'react-relay' import NotificationAction from '~/components/NotificationAction' +import {DiscussionMentioned_notification$key} from '../__generated__/DiscussionMentioned_notification.graphql' import useEditorState from '../hooks/useEditorState' import useRouter from '../hooks/useRouter' import {cardShadow} from '../styles/elevation' +import anonymousAvatar from '../styles/theme/images/anonymous-avatar.svg' import fromStageIdToUrl from '../utils/meetings/fromStageIdToUrl' -import {DiscussionMentioned_notification$key} from '../__generated__/DiscussionMentioned_notification.graphql' import NotificationTemplate from './NotificationTemplate' -import anonymousAvatar from '../styles/theme/images/anonymous-avatar.svg' const EditorWrapper = styled('div')({ backgroundColor: '#fff', diff --git a/packages/client/components/DiscussionThread.tsx b/packages/client/components/DiscussionThread.tsx index 40a7c534904..35b400a19e5 100644 --- a/packages/client/components/DiscussionThread.tsx +++ b/packages/client/components/DiscussionThread.tsx @@ -5,10 +5,10 @@ import {PreloadedQuery, usePreloadedQuery} from 'react-relay' import useAtmosphere from '~/hooks/useAtmosphere' import {useCoverable} from '~/hooks/useControlBarCovers' import {Breakpoint, DiscussionThreadEnum, MeetingControlBarEnum} from '~/types/constEnums' -import {Elevation} from '../styles/elevation' -import makeMinWidthMediaQuery from '../utils/makeMinWidthMediaQuery' import {DiscussionThreadQuery} from '../__generated__/DiscussionThreadQuery.graphql' import {RetroDiscussPhase_meeting$data} from '../__generated__/RetroDiscussPhase_meeting.graphql' +import {Elevation} from '../styles/elevation' +import makeMinWidthMediaQuery from '../utils/makeMinWidthMediaQuery' import DiscussionThreadInput from './DiscussionThreadInput' import DiscussionThreadList, {DiscussionThreadables} from './DiscussionThreadList' import {isLocalPoll} from './Poll/local/newPoll' diff --git a/packages/client/components/DiscussionThreadInput.tsx b/packages/client/components/DiscussionThreadInput.tsx index ba7cd2f3778..24a5cd862c3 100644 --- a/packages/client/components/DiscussionThreadInput.tsx +++ b/packages/client/components/DiscussionThreadInput.tsx @@ -3,6 +3,8 @@ import graphql from 'babel-plugin-relay/macro' import {ContentState, convertToRaw, EditorState} from 'draft-js' import React, {forwardRef, RefObject, useEffect, useState} from 'react' import {commitLocalUpdate, useFragment} from 'react-relay' +import {DiscussionThreadInput_discussion$key} from '~/__generated__/DiscussionThreadInput_discussion.graphql' +import {DiscussionThreadInput_viewer$key} from '~/__generated__/DiscussionThreadInput_viewer.graphql' import useAtmosphere from '~/hooks/useAtmosphere' import useMutationProps from '~/hooks/useMutationProps' import useReplyEditorState from '~/hooks/useReplyEditorState' @@ -13,8 +15,6 @@ import {SORT_STEP} from '~/utils/constants' import dndNoise from '~/utils/dndNoise' import {convertStateToRaw} from '~/utils/draftjs/convertToTaskContent' import isAndroid from '~/utils/draftjs/isAndroid' -import {DiscussionThreadInput_discussion$key} from '~/__generated__/DiscussionThreadInput_discussion.graphql' -import {DiscussionThreadInput_viewer$key} from '~/__generated__/DiscussionThreadInput_viewer.graphql' import {useBeforeUnload} from '../hooks/useBeforeUnload' import useInitialLocalState from '../hooks/useInitialLocalState' import CreateTaskMutation from '../mutations/CreateTaskMutation' diff --git a/packages/client/components/DiscussionThreadList.tsx b/packages/client/components/DiscussionThreadList.tsx index 76c11100693..e13fa04e9df 100644 --- a/packages/client/components/DiscussionThreadList.tsx +++ b/packages/client/components/DiscussionThreadList.tsx @@ -2,12 +2,12 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React, {forwardRef, ReactNode, RefObject} from 'react' import {useFragment} from 'react-relay' -import useScrollThreadList from '~/hooks/useScrollThreadList' import {DiscussionThreadList_discussion$key} from '~/__generated__/DiscussionThreadList_discussion.graphql' import {DiscussionThreadList_threadables$key} from '~/__generated__/DiscussionThreadList_threadables.graphql' import {DiscussionThreadList_viewer$key} from '~/__generated__/DiscussionThreadList_viewer.graphql' -import {PALETTE} from '../styles/paletteV3' +import useScrollThreadList from '~/hooks/useScrollThreadList' import {RetroDiscussPhase_meeting$data} from '../__generated__/RetroDiscussPhase_meeting.graphql' +import {PALETTE} from '../styles/paletteV3' import CommentingStatusText from './CommentingStatusText' import LabelHeading from './LabelHeading/LabelHeading' import ThreadedItem from './ThreadedItem' diff --git a/packages/client/components/DiscussionThreadListEmptyTranscriptState.tsx b/packages/client/components/DiscussionThreadListEmptyTranscriptState.tsx index 0ab2cd51288..c9b7a53a874 100644 --- a/packages/client/components/DiscussionThreadListEmptyTranscriptState.tsx +++ b/packages/client/components/DiscussionThreadListEmptyTranscriptState.tsx @@ -2,6 +2,7 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {DiscussionThreadListEmptyTranscriptState_meeting$key} from '~/__generated__/DiscussionThreadListEmptyTranscriptState_meeting.graphql' import {PALETTE} from '~/styles/paletteV3' import makeMinWidthMediaQuery from '~/utils/makeMinWidthMediaQuery' import useAtmosphere from '../hooks/useAtmosphere' @@ -12,7 +13,6 @@ import linkify from '../utils/linkify' import Legitity from '../validation/Legitity' import FlatButton from './FlatButton' import StyledError from './StyledError' -import {DiscussionThreadListEmptyTranscriptState_meeting$key} from '~/__generated__/DiscussionThreadListEmptyTranscriptState_meeting.graphql' import {ZoomSVG} from './ZoomSVG' const mobileBreakpoint = makeMinWidthMediaQuery(380) diff --git a/packages/client/components/DiscussionThreadRoot.tsx b/packages/client/components/DiscussionThreadRoot.tsx index c6a590f0703..d7d7d0d011d 100644 --- a/packages/client/components/DiscussionThreadRoot.tsx +++ b/packages/client/components/DiscussionThreadRoot.tsx @@ -1,9 +1,9 @@ import React, {ReactNode, RefObject, Suspense} from 'react' -import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import discussionThreadQuery, { DiscussionThreadQuery } from '../__generated__/DiscussionThreadQuery.graphql' import {RetroDiscussPhase_meeting$data} from '../__generated__/RetroDiscussPhase_meeting.graphql' +import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import DiscussionThread from './DiscussionThread' import {DiscussionThreadables} from './DiscussionThreadList' diff --git a/packages/client/components/DropdownToggleV2.tsx b/packages/client/components/DropdownToggleV2.tsx index f5fd1c31f9c..b7111cd7384 100644 --- a/packages/client/components/DropdownToggleV2.tsx +++ b/packages/client/components/DropdownToggleV2.tsx @@ -1,6 +1,6 @@ import styled from '@emotion/styled' import {ExpandMore as ExpandMoreIcon, KeyboardArrowRight} from '@mui/icons-material' -import React, {forwardRef, ReactNode, Ref} from 'react' +import React, {ReactNode, Ref, forwardRef} from 'react' import useMenu from '../hooks/useMenu' import {PALETTE} from '../styles/paletteV3' diff --git a/packages/client/components/DueDatePicker.tsx b/packages/client/components/DueDatePicker.tsx index 459be442401..62544916bbe 100644 --- a/packages/client/components/DueDatePicker.tsx +++ b/packages/client/components/DueDatePicker.tsx @@ -3,13 +3,13 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {DayModifiers, DayPicker} from 'react-day-picker' import {useFragment} from 'react-relay' +import {DueDatePicker_task$key} from '../__generated__/DueDatePicker_task.graphql' import useAtmosphere from '../hooks/useAtmosphere' import {MenuProps} from '../hooks/useMenu' import useMutationProps from '../hooks/useMutationProps' import {UseTaskChild} from '../hooks/useTaskChildFocus' import UpdateTaskDueDateMutation from '../mutations/UpdateTaskDueDateMutation' import {PALETTE} from '../styles/paletteV3' -import {DueDatePicker_task$key} from '../__generated__/DueDatePicker_task.graphql' import Menu from './Menu' interface Props { diff --git a/packages/client/components/DueDateToggle.tsx b/packages/client/components/DueDateToggle.tsx index f8c11acb133..3feb5e60c3b 100644 --- a/packages/client/components/DueDateToggle.tsx +++ b/packages/client/components/DueDateToggle.tsx @@ -5,13 +5,13 @@ import ms from 'ms' import React from 'react' import {useFragment} from 'react-relay' import useTooltip from '~/hooks/useTooltip' +import {DueDateToggle_task$key} from '../__generated__/DueDateToggle_task.graphql' import {MenuPosition} from '../hooks/useCoords' import useMenu from '../hooks/useMenu' import {UseTaskChild} from '../hooks/useTaskChildFocus' import {PALETTE} from '../styles/paletteV3' import lazyPreload from '../utils/lazyPreload' import {shortMonths} from '../utils/makeDateString' -import {DueDateToggle_task$key} from '../__generated__/DueDateToggle_task.graphql' import CardButton from './CardButton' interface StyleProps { diff --git a/packages/client/components/EditableOrgName.tsx b/packages/client/components/EditableOrgName.tsx index ec119c837b8..2bcde367f44 100644 --- a/packages/client/components/EditableOrgName.tsx +++ b/packages/client/components/EditableOrgName.tsx @@ -3,10 +3,10 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import useAtmosphere from '~/hooks/useAtmosphere' +import {EditableOrgName_organization$key} from '../__generated__/EditableOrgName_organization.graphql' import UpdateOrgMutation from '../mutations/UpdateOrgMutation' import withMutationProps, {WithMutationProps} from '../utils/relay/withMutationProps' import Legitity from '../validation/Legitity' -import {EditableOrgName_organization$key} from '../__generated__/EditableOrgName_organization.graphql' import EditableText from './EditableText' interface Props extends WithMutationProps { diff --git a/packages/client/components/EditingStatus/EditingStatus.tsx b/packages/client/components/EditingStatus/EditingStatus.tsx index d1d989d22f2..34b89a41a0d 100644 --- a/packages/client/components/EditingStatus/EditingStatus.tsx +++ b/packages/client/components/EditingStatus/EditingStatus.tsx @@ -2,9 +2,9 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React, {ReactNode, useState} from 'react' import {useFragment} from 'react-relay' +import {EditingStatus_task$key} from '~/__generated__/EditingStatus_task.graphql' import {MenuPosition} from '~/hooks/useCoords' import useTooltip from '~/hooks/useTooltip' -import {EditingStatus_task$key} from '~/__generated__/EditingStatus_task.graphql' import useAtmosphere from '../../hooks/useAtmosphere' import {UseTaskChild} from '../../hooks/useTaskChildFocus' import {PALETTE} from '../../styles/paletteV3' diff --git a/packages/client/components/EditorInputWrapper.tsx b/packages/client/components/EditorInputWrapper.tsx index f567636c02b..f1ac2701673 100644 --- a/packages/client/components/EditorInputWrapper.tsx +++ b/packages/client/components/EditorInputWrapper.tsx @@ -16,8 +16,8 @@ import entitizeText from '../utils/draftjs/entitizeText' import isAndroid from '../utils/draftjs/isAndroid' import isRichDraft from '../utils/draftjs/isRichDraft' import lazyPreload from '../utils/lazyPreload' -import blockStyleFn from './TaskEditor/blockStyleFn' import './TaskEditor/Draft.css' +import blockStyleFn from './TaskEditor/blockStyleFn' type Handlers = Pick< EditorProps, diff --git a/packages/client/components/EmailNotifications.tsx b/packages/client/components/EmailNotifications.tsx index bda786ac1f0..077bd47ea45 100644 --- a/packages/client/components/EmailNotifications.tsx +++ b/packages/client/components/EmailNotifications.tsx @@ -2,11 +2,11 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {EmailNotifications_viewer$key} from '../__generated__/EmailNotifications_viewer.graphql' import useAtmosphere from '../hooks/useAtmosphere' import useMutationProps from '../hooks/useMutationProps' import ToggleSummaryEmailMutation from '../mutations/ToggleSummaryEmailMutation' import {PALETTE} from '../styles/paletteV3' -import {EmailNotifications_viewer$key} from '../__generated__/EmailNotifications_viewer.graphql' import Checkbox from './Checkbox' import StyledError from './StyledError' diff --git a/packages/client/components/EstimateDimensionColumn.tsx b/packages/client/components/EstimateDimensionColumn.tsx index da3c6360ca8..2bd2ae39fa1 100644 --- a/packages/client/components/EstimateDimensionColumn.tsx +++ b/packages/client/components/EstimateDimensionColumn.tsx @@ -3,14 +3,14 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import useMutationProps from '~/hooks/useMutationProps' +import {EstimateDimensionColumn_meeting$key} from '../__generated__/EstimateDimensionColumn_meeting.graphql' +import {EstimateDimensionColumn_stage$key} from '../__generated__/EstimateDimensionColumn_stage.graphql' import useAtmosphere from '../hooks/useAtmosphere' import useIsInitializing from '../hooks/useIsInitializing' import useIsPokerVotingClosing from '../hooks/useIsPokerVotingClosing' import PokerResetDimensionMutation from '../mutations/PokerResetDimensionMutation' import SetPokerSpectateMutation from '../mutations/SetPokerSpectateMutation' import {PALETTE} from '../styles/paletteV3' -import {EstimateDimensionColumn_meeting$key} from '../__generated__/EstimateDimensionColumn_meeting.graphql' -import {EstimateDimensionColumn_stage$key} from '../__generated__/EstimateDimensionColumn_stage.graphql' import DeckActivityAvatars from './DeckActivityAvatars' import LinkButton from './LinkButton' import PokerActiveVoting from './PokerActiveVoting' diff --git a/packages/client/components/EstimatePhaseArea.tsx b/packages/client/components/EstimatePhaseArea.tsx index ca0e6a12d0d..2af1cfdf9ca 100644 --- a/packages/client/components/EstimatePhaseArea.tsx +++ b/packages/client/components/EstimatePhaseArea.tsx @@ -3,11 +3,11 @@ import graphql from 'babel-plugin-relay/macro' import React, {useRef} from 'react' import {useFragment} from 'react-relay' import SwipeableViews from 'react-swipeable-views' +import {EstimatePhaseArea_meeting$key} from '~/__generated__/EstimatePhaseArea_meeting.graphql' import useBreakpoint from '~/hooks/useBreakpoint' import useGotoStageId from '~/hooks/useGotoStageId' import {PALETTE} from '~/styles/paletteV3' import {Breakpoint} from '~/types/constEnums' -import {EstimatePhaseArea_meeting$key} from '~/__generated__/EstimatePhaseArea_meeting.graphql' import EstimateDimensionColumn from './EstimateDimensionColumn' import PokerCardDeck from './PokerCardDeck' diff --git a/packages/client/components/EstimatePhaseDiscussionDrawer.tsx b/packages/client/components/EstimatePhaseDiscussionDrawer.tsx index ab4aaf7d0a4..49d9b65a1b1 100644 --- a/packages/client/components/EstimatePhaseDiscussionDrawer.tsx +++ b/packages/client/components/EstimatePhaseDiscussionDrawer.tsx @@ -3,9 +3,9 @@ import {Close} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {EstimatePhaseDiscussionDrawer_meeting$key} from '~/__generated__/EstimatePhaseDiscussionDrawer_meeting.graphql' import {desktopSidebarShadow} from '~/styles/elevation' import {PALETTE} from '~/styles/paletteV3' -import {EstimatePhaseDiscussionDrawer_meeting$key} from '~/__generated__/EstimatePhaseDiscussionDrawer_meeting.graphql' import {BezierCurve, Breakpoint, DiscussionThreadEnum, ZIndex} from '../types/constEnums' import {DiscussionThreadables} from './DiscussionThreadList' import DiscussionThreadListEmptyState from './DiscussionThreadListEmptyState' diff --git a/packages/client/components/EventTypeFilterMenuItemLabel.tsx b/packages/client/components/EventTypeFilterMenuItemLabel.tsx index ed1e4ba0702..6455726166d 100644 --- a/packages/client/components/EventTypeFilterMenuItemLabel.tsx +++ b/packages/client/components/EventTypeFilterMenuItemLabel.tsx @@ -1,14 +1,14 @@ import React from 'react' +import {TimelineEventEnum} from '../__generated__/MyDashboardTimelineQuery.graphql' +import {FilterLabels} from '../types/constEnums' import { CUSTOMIZED_SVG, timelineEventTypeMenuIcons, timelineEventTypeMenuLabels } from '../utils/constants' -import TimelineEventTypeIcon from './TimelineEventTypeIcon' -import MenuItemLabel from './MenuItemLabel' -import {FilterLabels} from '../types/constEnums' -import {TimelineEventEnum} from '../__generated__/MyDashboardTimelineQuery.graphql' import CardsSVG from './CardsSVG' +import MenuItemLabel from './MenuItemLabel' +import TimelineEventTypeIcon from './TimelineEventTypeIcon' interface Props { eventType?: TimelineEventEnum diff --git a/packages/client/components/FacilitatorMenu.tsx b/packages/client/components/FacilitatorMenu.tsx index d712e2338d9..4a6322d4d26 100644 --- a/packages/client/components/FacilitatorMenu.tsx +++ b/packages/client/components/FacilitatorMenu.tsx @@ -1,13 +1,13 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {FacilitatorMenu_meeting$key} from '../__generated__/FacilitatorMenu_meeting.graphql' import Menu from '../components/Menu' import MenuItem from '../components/MenuItem' import MenuItemLabel from '../components/MenuItemLabel' import useAtmosphere from '../hooks/useAtmosphere' import {MenuProps} from '../hooks/useMenu' import PromoteNewMeetingFacilitatorMutation from '../mutations/PromoteNewMeetingFacilitatorMutation' -import {FacilitatorMenu_meeting$key} from '../__generated__/FacilitatorMenu_meeting.graphql' interface Props { menuProps: MenuProps diff --git a/packages/client/components/GitHubFieldDimensionDropdown.tsx b/packages/client/components/GitHubFieldDimensionDropdown.tsx index 80b40d2ffdd..ddeae024e74 100644 --- a/packages/client/components/GitHubFieldDimensionDropdown.tsx +++ b/packages/client/components/GitHubFieldDimensionDropdown.tsx @@ -4,11 +4,11 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import {PALETTE} from '~/styles/paletteV3' +import {GitHubFieldDimensionDropdown_stage$key} from '../__generated__/GitHubFieldDimensionDropdown_stage.graphql' import {MenuPosition} from '../hooks/useCoords' import useMenu from '../hooks/useMenu' import interpolateGitHubLabelTemplate from '../shared/interpolateGitHubLabelTemplate' import {SprintPokerDefaults} from '../types/constEnums' -import {GitHubFieldDimensionDropdown_stage$key} from '../__generated__/GitHubFieldDimensionDropdown_stage.graphql' import GitHubFieldMenu from './GitHubFieldMenu' import PlainButton from './PlainButton/PlainButton' diff --git a/packages/client/components/GitHubFieldMenu.tsx b/packages/client/components/GitHubFieldMenu.tsx index a642ce69956..2d984a45bf8 100644 --- a/packages/client/components/GitHubFieldMenu.tsx +++ b/packages/client/components/GitHubFieldMenu.tsx @@ -3,6 +3,7 @@ import {Edit} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {GitHubFieldMenu_stage$key} from '../__generated__/GitHubFieldMenu_stage.graphql' import useAtmosphere from '../hooks/useAtmosphere' import {MenuProps} from '../hooks/useMenu' import useModal from '../hooks/useModal' @@ -11,7 +12,6 @@ import textOverflow from '../styles/helpers/textOverflow' import {PALETTE} from '../styles/paletteV3' import {FONT_FAMILY} from '../styles/typographyV2' import {SprintPokerDefaults} from '../types/constEnums' -import {GitHubFieldMenu_stage$key} from '../__generated__/GitHubFieldMenu_stage.graphql' import EditGitHubLabelTemplateModal from './EditGitHubLabelTemplateModal' import FlatButton from './FlatButton' import Menu from './Menu' diff --git a/packages/client/components/GitHubRepoSearchFilterMenu.tsx b/packages/client/components/GitHubRepoSearchFilterMenu.tsx index b90b0412987..4ca35ff2cb5 100644 --- a/packages/client/components/GitHubRepoSearchFilterMenu.tsx +++ b/packages/client/components/GitHubRepoSearchFilterMenu.tsx @@ -1,16 +1,16 @@ -import React, {useMemo} from 'react' +import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' +import React, {useMemo} from 'react' import {useFragment} from 'react-relay' -import {MenuProps} from '../hooks/useMenu' import {GitHubRepoSearchFilterMenu_teamMember$key} from '../__generated__/GitHubRepoSearchFilterMenu_teamMember.graphql' import useGetRepoContributions from '../hooks/useGetRepoContributions' +import {MenuProps} from '../hooks/useMenu' import useSearchFilter from '../hooks/useSearchFilter' import Checkbox from './Checkbox' import {EmptyDropdownMenuItemLabel} from './EmptyDropdownMenuItemLabel' import Menu from './Menu' import MenuItem from './MenuItem' import MenuItemLabel from './MenuItemLabel' -import styled from '@emotion/styled' import {SearchMenuItem} from './SearchMenuItem' import TypeAheadLabel from './TypeAheadLabel' diff --git a/packages/client/components/GitHubScopingSearchBar.tsx b/packages/client/components/GitHubScopingSearchBar.tsx index 0aabdc3a9d0..422aaabbb41 100644 --- a/packages/client/components/GitHubScopingSearchBar.tsx +++ b/packages/client/components/GitHubScopingSearchBar.tsx @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' -import {SprintPokerDefaults} from '../types/constEnums' import {GitHubScopingSearchBar_meeting$key} from '../__generated__/GitHubScopingSearchBar_meeting.graphql' +import {SprintPokerDefaults} from '../types/constEnums' import GitHubScopingSearchFilterToggle from './GitHubScopingSearchFilterToggle' import GitHubScopingSearchHistoryToggle from './GitHubScopingSearchHistoryToggle' import ScopingSearchBar from './ScopingSearchBar' diff --git a/packages/client/components/GitHubScopingSearchFilterMenu.tsx b/packages/client/components/GitHubScopingSearchFilterMenu.tsx index 122b4dff0e0..ae97624b714 100644 --- a/packages/client/components/GitHubScopingSearchFilterMenu.tsx +++ b/packages/client/components/GitHubScopingSearchFilterMenu.tsx @@ -1,11 +1,11 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {commitLocalUpdate, PreloadedQuery, usePreloadedQuery} from 'react-relay' +import {GitHubScopingSearchFilterMenuQuery} from '../__generated__/GitHubScopingSearchFilterMenuQuery.graphql' import useAtmosphere from '../hooks/useAtmosphere' import {MenuProps} from '../hooks/useMenu' import SearchQueryId from '../shared/gqlIds/SearchQueryId' import getReposFromQueryStr from '../utils/getReposFromQueryStr' -import {GitHubScopingSearchFilterMenuQuery} from '../__generated__/GitHubScopingSearchFilterMenuQuery.graphql' import GitHubRepoSearchFilterMenu from './GitHubRepoSearchFilterMenu' interface Props { diff --git a/packages/client/components/GitHubScopingSearchFilterMenuRoot.tsx b/packages/client/components/GitHubScopingSearchFilterMenuRoot.tsx index b8282b75508..c2fbf9b72eb 100644 --- a/packages/client/components/GitHubScopingSearchFilterMenuRoot.tsx +++ b/packages/client/components/GitHubScopingSearchFilterMenuRoot.tsx @@ -1,12 +1,12 @@ import graphql from 'babel-plugin-relay/macro' import React, {Suspense} from 'react' import {useFragment} from 'react-relay' -import {MenuProps} from '../hooks/useMenu' -import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import githubScopingSearchFilterMenuQuery, { GitHubScopingSearchFilterMenuQuery } from '../__generated__/GitHubScopingSearchFilterMenuQuery.graphql' import {GitHubScopingSearchFilterMenuRoot_meeting$key} from '../__generated__/GitHubScopingSearchFilterMenuRoot_meeting.graphql' +import {MenuProps} from '../hooks/useMenu' +import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import GitHubScopingSearchFilterMenu from './GitHubScopingSearchFilterMenu' import MockFieldList from './MockFieldList' diff --git a/packages/client/components/GitHubScopingSearchFilterToggle.tsx b/packages/client/components/GitHubScopingSearchFilterToggle.tsx index b3512c66576..628522a6882 100644 --- a/packages/client/components/GitHubScopingSearchFilterToggle.tsx +++ b/packages/client/components/GitHubScopingSearchFilterToggle.tsx @@ -1,10 +1,10 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {GitHubScopingSearchFilterToggle_meeting$key} from '../__generated__/GitHubScopingSearchFilterToggle_meeting.graphql' import {MenuPosition} from '../hooks/useCoords' import useMenu from '../hooks/useMenu' import lazyPreload from '../utils/lazyPreload' -import {GitHubScopingSearchFilterToggle_meeting$key} from '../__generated__/GitHubScopingSearchFilterToggle_meeting.graphql' import FilterButton from './FilterButton' const GitHubScopingSearchFilterMenuRoot = lazyPreload( diff --git a/packages/client/components/GitHubScopingSearchHistoryToggle.tsx b/packages/client/components/GitHubScopingSearchHistoryToggle.tsx index 32f010496c1..a88e6f124cb 100644 --- a/packages/client/components/GitHubScopingSearchHistoryToggle.tsx +++ b/packages/client/components/GitHubScopingSearchHistoryToggle.tsx @@ -1,10 +1,10 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {commitLocalUpdate, useFragment} from 'react-relay' +import {GitHubScopingSearchHistoryToggle_meeting$key} from '../__generated__/GitHubScopingSearchHistoryToggle_meeting.graphql' import useAtmosphere from '../hooks/useAtmosphere' import PersistGitHubSearchQueryMutation from '../mutations/PersistGitHubSearchQueryMutation' import SearchQueryId from '../shared/gqlIds/SearchQueryId' -import {GitHubScopingSearchHistoryToggle_meeting$key} from '../__generated__/GitHubScopingSearchHistoryToggle_meeting.graphql' import ScopingSearchHistoryToggle from './ScopingSearchHistoryToggle' interface Props { diff --git a/packages/client/components/GitHubScopingSearchResults.tsx b/packages/client/components/GitHubScopingSearchResults.tsx index 27b11d2ea0f..fa1535989f3 100644 --- a/packages/client/components/GitHubScopingSearchResults.tsx +++ b/packages/client/components/GitHubScopingSearchResults.tsx @@ -3,6 +3,10 @@ import graphql from 'babel-plugin-relay/macro' import React, {useState} from 'react' import {PreloadedQuery, useFragment, usePaginationFragment, usePreloadedQuery} from 'react-relay' import MockScopingList from '~/modules/meeting/components/MockScopingList' +import {GitHubScopingSearchResultsPaginationQuery} from '../__generated__/GitHubScopingSearchResultsPaginationQuery.graphql' +import {GitHubScopingSearchResultsQuery} from '../__generated__/GitHubScopingSearchResultsQuery.graphql' +import {GitHubScopingSearchResults_meeting$key} from '../__generated__/GitHubScopingSearchResults_meeting.graphql' +import {GitHubScopingSearchResults_query$key} from '../__generated__/GitHubScopingSearchResults_query.graphql' import useAtmosphere from '../hooks/useAtmosphere' import useGetUsedServiceTaskIds from '../hooks/useGetUsedServiceTaskIds' import useLoadNextOnScrollBottom from '../hooks/useLoadNextOnScrollBottom' @@ -12,10 +16,6 @@ import {SprintPokerDefaults} from '../types/constEnums' import {GQLType} from '../types/generics' import getNonNullEdges from '../utils/getNonNullEdges' import {gitHubQueryValidation} from '../validation/gitHubQueryValidation' -import {GitHubScopingSearchResultsPaginationQuery} from '../__generated__/GitHubScopingSearchResultsPaginationQuery.graphql' -import {GitHubScopingSearchResultsQuery} from '../__generated__/GitHubScopingSearchResultsQuery.graphql' -import {GitHubScopingSearchResults_meeting$key} from '../__generated__/GitHubScopingSearchResults_meeting.graphql' -import {GitHubScopingSearchResults_query$key} from '../__generated__/GitHubScopingSearchResults_query.graphql' import Ellipsis from './Ellipsis/Ellipsis' import GitHubScopingSelectAllIssues from './GitHubScopingSelectAllIssues' import IntegrationScopingNoResults from './IntegrationScopingNoResults' diff --git a/packages/client/components/GitHubScopingSearchResultsRoot.tsx b/packages/client/components/GitHubScopingSearchResultsRoot.tsx index ee82dd8c69f..633cc125899 100644 --- a/packages/client/components/GitHubScopingSearchResultsRoot.tsx +++ b/packages/client/components/GitHubScopingSearchResultsRoot.tsx @@ -2,11 +2,11 @@ import graphql from 'babel-plugin-relay/macro' import React, {Suspense} from 'react' import {useFragment} from 'react-relay' import MockScopingList from '~/modules/meeting/components/MockScopingList' -import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import githubScopingSearchResultsQuery, { GitHubScopingSearchResultsQuery } from '../__generated__/GitHubScopingSearchResultsQuery.graphql' import {GitHubScopingSearchResultsRoot_meeting$key} from '../__generated__/GitHubScopingSearchResultsRoot_meeting.graphql' +import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import GitHubScopingSearchResults from './GitHubScopingSearchResults' interface Props { meetingRef: GitHubScopingSearchResultsRoot_meeting$key diff --git a/packages/client/components/GitHubScopingSelectAllIssues.tsx b/packages/client/components/GitHubScopingSelectAllIssues.tsx index 2c9599eab2c..a7dd4f84321 100644 --- a/packages/client/components/GitHubScopingSelectAllIssues.tsx +++ b/packages/client/components/GitHubScopingSelectAllIssues.tsx @@ -3,6 +3,7 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import useUnusedRecords from '~/hooks/useUnusedRecords' +import {GitHubScopingSelectAllIssues_issues$key} from '../__generated__/GitHubScopingSelectAllIssues_issues.graphql' import useAtmosphere from '../hooks/useAtmosphere' import useMutationProps from '../hooks/useMutationProps' import UpdatePokerScopeMutation from '../mutations/UpdatePokerScopeMutation' @@ -10,7 +11,6 @@ import GitHubIssueId from '../shared/gqlIds/GitHubIssueId' import {PALETTE} from '../styles/paletteV3' import {Threshold} from '../types/constEnums' import getSelectAllTitle from '../utils/getSelectAllTitle' -import {GitHubScopingSelectAllIssues_issues$key} from '../__generated__/GitHubScopingSelectAllIssues_issues.graphql' import Checkbox from './Checkbox' const Item = styled('div')({ display: 'flex', diff --git a/packages/client/components/GitLabFieldDimensionDropdown.tsx b/packages/client/components/GitLabFieldDimensionDropdown.tsx index 5d094055128..23d874bfb39 100644 --- a/packages/client/components/GitLabFieldDimensionDropdown.tsx +++ b/packages/client/components/GitLabFieldDimensionDropdown.tsx @@ -4,10 +4,10 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import {PALETTE} from '~/styles/paletteV3' +import {GitLabFieldDimensionDropdown_stage$key} from '../__generated__/GitLabFieldDimensionDropdown_stage.graphql' import {MenuPosition} from '../hooks/useCoords' import useMenu from '../hooks/useMenu' import {SprintPokerDefaults} from '../types/constEnums' -import {GitLabFieldDimensionDropdown_stage$key} from '../__generated__/GitLabFieldDimensionDropdown_stage.graphql' import GitLabFieldMenu from './GitLabFieldMenu' import PlainButton from './PlainButton/PlainButton' diff --git a/packages/client/components/GitLabFieldMenu.tsx b/packages/client/components/GitLabFieldMenu.tsx index f8de17601ad..0fbdbc20a93 100644 --- a/packages/client/components/GitLabFieldMenu.tsx +++ b/packages/client/components/GitLabFieldMenu.tsx @@ -1,11 +1,11 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {GitLabFieldMenu_stage$key} from '../__generated__/GitLabFieldMenu_stage.graphql' import useAtmosphere from '../hooks/useAtmosphere' import {MenuProps} from '../hooks/useMenu' import UpdateGitLabDimensionFieldMutation from '../mutations/UpdateGitLabDimensionFieldMutation' import {SprintPokerDefaults} from '../types/constEnums' -import {GitLabFieldMenu_stage$key} from '../__generated__/GitLabFieldMenu_stage.graphql' import Menu from './Menu' import MenuItem from './MenuItem' diff --git a/packages/client/components/GitLabScopingSearchFilterMenu.tsx b/packages/client/components/GitLabScopingSearchFilterMenu.tsx index b77a1360a4f..ce418c7370d 100644 --- a/packages/client/components/GitLabScopingSearchFilterMenu.tsx +++ b/packages/client/components/GitLabScopingSearchFilterMenu.tsx @@ -3,12 +3,12 @@ import graphql from 'babel-plugin-relay/macro' import React, {useMemo} from 'react' import {commitLocalUpdate, PreloadedQuery, usePreloadedQuery} from 'react-relay' import useSearchFilter from '~/hooks/useSearchFilter' -import SendClientSideEvent from '~/utils/SendClientSideEvent' import getNonNullEdges from '~/utils/getNonNullEdges' +import SendClientSideEvent from '~/utils/SendClientSideEvent' +import {GitLabScopingSearchFilterMenuQuery} from '../__generated__/GitLabScopingSearchFilterMenuQuery.graphql' import useAtmosphere from '../hooks/useAtmosphere' import {MenuProps} from '../hooks/useMenu' import SearchQueryId from '../shared/gqlIds/SearchQueryId' -import {GitLabScopingSearchFilterMenuQuery} from '../__generated__/GitLabScopingSearchFilterMenuQuery.graphql' import Checkbox from './Checkbox' import {EmptyDropdownMenuItemLabel} from './EmptyDropdownMenuItemLabel' import Menu from './Menu' diff --git a/packages/client/components/GitLabScopingSearchFilterMenuRoot.tsx b/packages/client/components/GitLabScopingSearchFilterMenuRoot.tsx index 17cfa84668b..3206a7635fe 100644 --- a/packages/client/components/GitLabScopingSearchFilterMenuRoot.tsx +++ b/packages/client/components/GitLabScopingSearchFilterMenuRoot.tsx @@ -1,12 +1,12 @@ import graphql from 'babel-plugin-relay/macro' import React, {Suspense} from 'react' import {useFragment} from 'react-relay' -import {MenuProps} from '../hooks/useMenu' -import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import gitlabScopingSearchFilterMenuQuery, { GitLabScopingSearchFilterMenuQuery } from '../__generated__/GitLabScopingSearchFilterMenuQuery.graphql' import {GitLabScopingSearchFilterMenuRoot_meeting$key} from '../__generated__/GitLabScopingSearchFilterMenuRoot_meeting.graphql' +import {MenuProps} from '../hooks/useMenu' +import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import GitLabScopingSearchFilterMenu from './GitLabScopingSearchFilterMenu' import MockFieldList from './MockFieldList' diff --git a/packages/client/components/GitLabScopingSearchFilterToggle.tsx b/packages/client/components/GitLabScopingSearchFilterToggle.tsx index 645a483ce58..edc62152e21 100644 --- a/packages/client/components/GitLabScopingSearchFilterToggle.tsx +++ b/packages/client/components/GitLabScopingSearchFilterToggle.tsx @@ -1,10 +1,10 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {GitLabScopingSearchFilterToggle_meeting$key} from '../__generated__/GitLabScopingSearchFilterToggle_meeting.graphql' import {MenuPosition} from '../hooks/useCoords' import useMenu from '../hooks/useMenu' import lazyPreload from '../utils/lazyPreload' -import {GitLabScopingSearchFilterToggle_meeting$key} from '../__generated__/GitLabScopingSearchFilterToggle_meeting.graphql' import FilterButton from './FilterButton' const GitLabScopingSearchFilterMenuRoot = lazyPreload( diff --git a/packages/client/components/GitLabScopingSearchResults.tsx b/packages/client/components/GitLabScopingSearchResults.tsx index 2aeb35f7a57..814509d5ce5 100644 --- a/packages/client/components/GitLabScopingSearchResults.tsx +++ b/packages/client/components/GitLabScopingSearchResults.tsx @@ -5,13 +5,13 @@ import {PreloadedQuery, useFragment, usePaginationFragment, usePreloadedQuery} f import useGetUsedServiceTaskIds from '~/hooks/useGetUsedServiceTaskIds' import useLoadNextOnScrollBottom from '~/hooks/useLoadNextOnScrollBottom' import MockScopingList from '~/modules/meeting/components/MockScopingList' -import GitLabIssueId from '../shared/gqlIds/GitLabIssueId' -import getNonNullEdges from '../utils/getNonNullEdges' -import {parseWebPath} from '../utils/parseWebPath' import {GitLabScopingSearchResultsPaginationQuery} from '../__generated__/GitLabScopingSearchResultsPaginationQuery.graphql' import {GitLabScopingSearchResultsQuery} from '../__generated__/GitLabScopingSearchResultsQuery.graphql' import {GitLabScopingSearchResults_meeting$key} from '../__generated__/GitLabScopingSearchResults_meeting.graphql' import {GitLabScopingSearchResults_query$key} from '../__generated__/GitLabScopingSearchResults_query.graphql' +import GitLabIssueId from '../shared/gqlIds/GitLabIssueId' +import getNonNullEdges from '../utils/getNonNullEdges' +import {parseWebPath} from '../utils/parseWebPath' import Ellipsis from './Ellipsis/Ellipsis' import GitLabScopingSelectAllIssues from './GitLabScopingSelectAllIssues' import IntegrationScopingNoResults from './IntegrationScopingNoResults' diff --git a/packages/client/components/GitLabScopingSearchResultsRoot.tsx b/packages/client/components/GitLabScopingSearchResultsRoot.tsx index 4fe626203db..b7fbf59efed 100644 --- a/packages/client/components/GitLabScopingSearchResultsRoot.tsx +++ b/packages/client/components/GitLabScopingSearchResultsRoot.tsx @@ -2,11 +2,11 @@ import graphql from 'babel-plugin-relay/macro' import React, {Suspense} from 'react' import {useFragment} from 'react-relay' import MockScopingList from '~/modules/meeting/components/MockScopingList' -import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import gitlabScopingSearchResultsQuery, { GitLabScopingSearchResultsQuery } from '../__generated__/GitLabScopingSearchResultsQuery.graphql' import {GitLabScopingSearchResultsRoot_meeting$key} from '../__generated__/GitLabScopingSearchResultsRoot_meeting.graphql' +import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import GitLabScopingSearchResults from './GitLabScopingSearchResults' interface Props { diff --git a/packages/client/components/GitLabScopingSelectAllIssues.tsx b/packages/client/components/GitLabScopingSelectAllIssues.tsx index 1ad0082e02a..adb175f28a1 100644 --- a/packages/client/components/GitLabScopingSelectAllIssues.tsx +++ b/packages/client/components/GitLabScopingSelectAllIssues.tsx @@ -3,6 +3,7 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import useUnusedRecords from '~/hooks/useUnusedRecords' +import {GitLabScopingSelectAllIssues_issues$key} from '../__generated__/GitLabScopingSelectAllIssues_issues.graphql' import useAtmosphere from '../hooks/useAtmosphere' import useMutationProps from '../hooks/useMutationProps' import UpdatePokerScopeMutation from '../mutations/UpdatePokerScopeMutation' @@ -10,7 +11,6 @@ import GitLabIssueId from '../shared/gqlIds/GitLabIssueId' import {PALETTE} from '../styles/paletteV3' import {Threshold} from '../types/constEnums' import getSelectAllTitle from '../utils/getSelectAllTitle' -import {GitLabScopingSelectAllIssues_issues$key} from '../__generated__/GitLabScopingSelectAllIssues_issues.graphql' import Checkbox from './Checkbox' const Item = styled('div')({ diff --git a/packages/client/components/GoogleMeetProviderLogo.tsx b/packages/client/components/GoogleMeetProviderLogo.tsx index 42d6bc7ec2d..f2bd53e8516 100644 --- a/packages/client/components/GoogleMeetProviderLogo.tsx +++ b/packages/client/components/GoogleMeetProviderLogo.tsx @@ -1,5 +1,5 @@ -import logo from '../styles/theme/images/graphics/google-meet-icon.svg' import React from 'react' +import logo from '../styles/theme/images/graphics/google-meet-icon.svg' const GoogleMeetProviderLogo = () => { return ( diff --git a/packages/client/components/GroupingKanban.tsx b/packages/client/components/GroupingKanban.tsx index 92bb79644cd..e827bfe45b0 100644 --- a/packages/client/components/GroupingKanban.tsx +++ b/packages/client/components/GroupingKanban.tsx @@ -3,8 +3,8 @@ import {captureException} from '@sentry/minimal' import graphql from 'babel-plugin-relay/macro' import React, {RefObject, useEffect, useMemo, useRef, useState} from 'react' import {useFragment} from 'react-relay' -import useCallbackRef from '~/hooks/useCallbackRef' import {GroupingKanban_meeting$key} from '~/__generated__/GroupingKanban_meeting.graphql' +import useCallbackRef from '~/hooks/useCallbackRef' import useAnimatedSpotlightSource from '../hooks/useAnimatedSpotlightSource' import useBreakpoint from '../hooks/useBreakpoint' import useHideBodyScroll from '../hooks/useHideBodyScroll' @@ -14,8 +14,8 @@ import useThrottledEvent from '../hooks/useThrottledEvent' import {Breakpoint, Times} from '../types/constEnums' import PortalProvider from './AtmosphereProvider/PortalProvider' import GroupingKanbanColumn from './GroupingKanbanColumn' -import ReflectWrapperMobile from './RetroReflectPhase/ReflectionWrapperMobile' import ReflectWrapperDesktop from './RetroReflectPhase/ReflectWrapperDesktop' +import ReflectWrapperMobile from './RetroReflectPhase/ReflectionWrapperMobile' import SpotlightModal from './SpotlightModal' interface Props { diff --git a/packages/client/components/GroupingKanbanColumn.tsx b/packages/client/components/GroupingKanbanColumn.tsx index 025e3bc5d0f..575496872bd 100644 --- a/packages/client/components/GroupingKanbanColumn.tsx +++ b/packages/client/components/GroupingKanbanColumn.tsx @@ -2,13 +2,13 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React, {RefObject, useMemo, useRef} from 'react' import {useFragment} from 'react-relay' +import {GroupingKanbanColumn_meeting$key} from '~/__generated__/GroupingKanbanColumn_meeting.graphql' +import {GroupingKanbanColumn_prompt$key} from '~/__generated__/GroupingKanbanColumn_prompt.graphql' +import {GroupingKanbanColumn_reflectionGroups$key} from '~/__generated__/GroupingKanbanColumn_reflectionGroups.graphql' import {useCoverable} from '~/hooks/useControlBarCovers' import useDeepEqual from '~/hooks/useDeepEqual' import useSubColumns from '~/hooks/useSubColumns' import makeMinWidthMediaQuery from '~/utils/makeMinWidthMediaQuery' -import {GroupingKanbanColumn_meeting$key} from '~/__generated__/GroupingKanbanColumn_meeting.graphql' -import {GroupingKanbanColumn_prompt$key} from '~/__generated__/GroupingKanbanColumn_prompt.graphql' -import {GroupingKanbanColumn_reflectionGroups$key} from '~/__generated__/GroupingKanbanColumn_reflectionGroups.graphql' import useAtmosphere from '../hooks/useAtmosphere' import useMutationProps from '../hooks/useMutationProps' import CreateReflectionMutation from '../mutations/CreateReflectionMutation' diff --git a/packages/client/components/IconLabel.tsx b/packages/client/components/IconLabel.tsx index f1b9fe2ba5e..86025cb37c5 100644 --- a/packages/client/components/IconLabel.tsx +++ b/packages/client/components/IconLabel.tsx @@ -27,7 +27,7 @@ import { WebAsset, Widgets } from '@mui/icons-material' -import React, {forwardRef, ReactNode} from 'react' +import React, {ReactNode, forwardRef} from 'react' const LabelBlock = styled('div')({ alignItems: 'center', diff --git a/packages/client/components/Insights.tsx b/packages/client/components/Insights.tsx index fd2eb806331..b316c6d8995 100644 --- a/packages/client/components/Insights.tsx +++ b/packages/client/components/Insights.tsx @@ -4,8 +4,8 @@ import React from 'react' import {PreloadedQuery, usePreloadedQuery} from 'react-relay' import useAtmosphere from '~/hooks/useAtmosphere' import SendClientSideEvent from '~/utils/SendClientSideEvent' -import {Elevation} from '../styles/elevation' import {InsightsQuery} from '../__generated__/InsightsQuery.graphql' +import {Elevation} from '../styles/elevation' import InsightsCharts from './InsightsCharts' import InsightsDomainPanel from './InsightsDomainPanel' import Panel from './Panel/Panel' diff --git a/packages/client/components/InsightsCharts.tsx b/packages/client/components/InsightsCharts.tsx index 1427e8ab5f3..9f3344de22b 100644 --- a/packages/client/components/InsightsCharts.tsx +++ b/packages/client/components/InsightsCharts.tsx @@ -3,14 +3,14 @@ import graphql from 'babel-plugin-relay/macro' import { BarElement, CategoryScale, - Chart as ChartJS, ChartData, ChartDataset, + Chart as ChartJS, ChartOptions, Filler, Legend, - LinearScale, LineElement, + LinearScale, PointElement, SubTitle, TimeScale, @@ -23,14 +23,14 @@ import 'chartjs-adapter-dayjs-3' import React, {useMemo} from 'react' import {Bar, Line} from 'react-chartjs-2' import {useFragment} from 'react-relay' -import {Elevation} from '../styles/elevation' -import {PALETTE} from '../styles/paletteV3' -import {FONT_FAMILY} from '../styles/typographyV2' -import {ElementWidth} from '../types/constEnums' import { InsightsCharts_domain$key, MeetingTypeEnum } from '../__generated__/InsightsCharts_domain.graphql' +import {Elevation} from '../styles/elevation' +import {PALETTE} from '../styles/paletteV3' +import {FONT_FAMILY} from '../styles/typographyV2' +import {ElementWidth} from '../types/constEnums' ChartJS.register( BarElement, diff --git a/packages/client/components/InsightsDomainNudge.tsx b/packages/client/components/InsightsDomainNudge.tsx index 6e8c33a69c4..8256f31f4f2 100644 --- a/packages/client/components/InsightsDomainNudge.tsx +++ b/packages/client/components/InsightsDomainNudge.tsx @@ -5,12 +5,12 @@ import {useFragment} from 'react-relay' import {useHistory} from 'react-router' import useAtmosphere from '~/hooks/useAtmosphere' import SendClientSideEvent from '~/utils/SendClientSideEvent' +import {InsightsDomainNudge_domain$key} from '../__generated__/InsightsDomainNudge_domain.graphql' import useModal from '../hooks/useModal' import CreditCardModal from '../modules/userDashboard/components/CreditCardModal/CreditCardModal' import {PALETTE} from '../styles/paletteV3' -import {InsightsDomainNudge_domain$key} from '../__generated__/InsightsDomainNudge_domain.graphql' -import PrimaryButton from './PrimaryButton' import LimitExceededWarning from './LimitExceededWarning' +import PrimaryButton from './PrimaryButton' const NudgeBlock = styled('div')({ display: 'flex', diff --git a/packages/client/components/InsightsDomainPanel.tsx b/packages/client/components/InsightsDomainPanel.tsx index 0a4aa68b309..b612cc56a46 100644 --- a/packages/client/components/InsightsDomainPanel.tsx +++ b/packages/client/components/InsightsDomainPanel.tsx @@ -3,6 +3,7 @@ import {Info} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {InsightsDomainPanel_domain$key} from '../__generated__/InsightsDomainPanel_domain.graphql' import useBreakpoint from '../hooks/useBreakpoint' import {MenuPosition} from '../hooks/useCoords' import useTooltip from '../hooks/useTooltip' @@ -10,7 +11,6 @@ import {Elevation} from '../styles/elevation' import {PALETTE} from '../styles/paletteV3' import {Breakpoint} from '../types/constEnums' import plural from '../utils/plural' -import {InsightsDomainPanel_domain$key} from '../__generated__/InsightsDomainPanel_domain.graphql' import InsightsDomainNudge from './InsightsDomainNudge' import Panel from './Panel/Panel' diff --git a/packages/client/components/InsightsRoot.tsx b/packages/client/components/InsightsRoot.tsx index 9fcf5b3f9cf..70a1e4f7d2f 100644 --- a/packages/client/components/InsightsRoot.tsx +++ b/packages/client/components/InsightsRoot.tsx @@ -1,6 +1,6 @@ import React, {Suspense} from 'react' -import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import insightsQuery, {InsightsQuery} from '../__generated__/InsightsQuery.graphql' +import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import Insights from './Insights' const InsightsRoot = () => { diff --git a/packages/client/components/InvitationLinkDialog.tsx b/packages/client/components/InvitationLinkDialog.tsx index 98059adbc17..55755069b6d 100644 --- a/packages/client/components/InvitationLinkDialog.tsx +++ b/packages/client/components/InvitationLinkDialog.tsx @@ -2,10 +2,10 @@ import graphql from 'babel-plugin-relay/macro' import React, {useEffect} from 'react' import {useFragment} from 'react-relay' import {RouteComponentProps, withRouter} from 'react-router' +import {InvitationLinkDialog_massInvitation$key} from '../__generated__/InvitationLinkDialog_massInvitation.graphql' import useAtmosphere from '../hooks/useAtmosphere' import useRouter from '../hooks/useRouter' import {LocalStorageKey} from '../types/constEnums' -import {InvitationLinkDialog_massInvitation$key} from '../__generated__/InvitationLinkDialog_massInvitation.graphql' import InvitationLinkAuthentication from './InvitationLinkAuthentication' import InvitationLinkErrorExpired from './InvitationLinkErrorExpired' import TeamInvitationAccept from './TeamInvitationAccept' diff --git a/packages/client/components/InvitationLinkErrorExpired.tsx b/packages/client/components/InvitationLinkErrorExpired.tsx index 95dee14f41c..b0dc095cc1e 100644 --- a/packages/client/components/InvitationLinkErrorExpired.tsx +++ b/packages/client/components/InvitationLinkErrorExpired.tsx @@ -2,10 +2,10 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {InvitationLinkErrorExpired_massInvitation$key} from '../__generated__/InvitationLinkErrorExpired_massInvitation.graphql' import useDocumentTitle from '../hooks/useDocumentTitle' import useRouter from '../hooks/useRouter' import hasToken from '../utils/hasToken' -import {InvitationLinkErrorExpired_massInvitation$key} from '../__generated__/InvitationLinkErrorExpired_massInvitation.graphql' import DialogContent from './DialogContent' import DialogTitle from './DialogTitle' import FlatPrimaryButton from './FlatPrimaryButton' diff --git a/packages/client/components/InviteTeamMemberAvatar.tsx b/packages/client/components/InviteTeamMemberAvatar.tsx index 210a9df7e77..028f6303716 100644 --- a/packages/client/components/InviteTeamMemberAvatar.tsx +++ b/packages/client/components/InviteTeamMemberAvatar.tsx @@ -4,8 +4,8 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import {PALETTE} from '~/styles/paletteV3' -import useModal from '../hooks/useModal' import {InviteTeamMemberAvatar_teamMembers$key} from '../__generated__/InviteTeamMemberAvatar_teamMembers.graphql' +import useModal from '../hooks/useModal' import AddTeamMemberModal from './AddTeamMemberModal' const Label = styled('div')({ diff --git a/packages/client/components/JiraFieldDimensionDropdown.tsx b/packages/client/components/JiraFieldDimensionDropdown.tsx index bebcc387482..d1e464823ad 100644 --- a/packages/client/components/JiraFieldDimensionDropdown.tsx +++ b/packages/client/components/JiraFieldDimensionDropdown.tsx @@ -4,10 +4,10 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import {PALETTE} from '~/styles/paletteV3' +import {JiraFieldDimensionDropdown_stage$key} from '../__generated__/JiraFieldDimensionDropdown_stage.graphql' import {MenuPosition} from '../hooks/useCoords' import useMenu from '../hooks/useMenu' import {SprintPokerDefaults} from '../types/constEnums' -import {JiraFieldDimensionDropdown_stage$key} from '../__generated__/JiraFieldDimensionDropdown_stage.graphql' import JiraFieldMenu from './JiraFieldMenu' import PlainButton from './PlainButton/PlainButton' diff --git a/packages/client/components/JiraFieldMenu.tsx b/packages/client/components/JiraFieldMenu.tsx index 7c1cd5b86a9..b2b6c3fef32 100644 --- a/packages/client/components/JiraFieldMenu.tsx +++ b/packages/client/components/JiraFieldMenu.tsx @@ -3,13 +3,13 @@ import {OpenInNew} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React, {useMemo} from 'react' import {useFragment} from 'react-relay' +import {JiraFieldMenu_stage$key} from '../__generated__/JiraFieldMenu_stage.graphql' import useAtmosphere from '../hooks/useAtmosphere' import {MenuProps} from '../hooks/useMenu' -import SendClientSideEvent from '../utils/SendClientSideEvent' import UpdateJiraDimensionFieldMutation from '../mutations/UpdateJiraDimensionFieldMutation' import {PALETTE} from '../styles/paletteV3' import {ExternalLinks, SprintPokerDefaults} from '../types/constEnums' -import {JiraFieldMenu_stage$key} from '../__generated__/JiraFieldMenu_stage.graphql' +import SendClientSideEvent from '../utils/SendClientSideEvent' import Menu from './Menu' import MenuItem from './MenuItem' import MenuItemHR from './MenuItemHR' diff --git a/packages/client/components/JiraScopingSearchCurrentFilters.tsx b/packages/client/components/JiraScopingSearchCurrentFilters.tsx index bf0aac0f84a..d04ecfe050b 100644 --- a/packages/client/components/JiraScopingSearchCurrentFilters.tsx +++ b/packages/client/components/JiraScopingSearchCurrentFilters.tsx @@ -2,8 +2,8 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' -import {PALETTE} from '../styles/paletteV3' import {JiraScopingSearchCurrentFilters_meeting$key} from '../__generated__/JiraScopingSearchCurrentFilters_meeting.graphql' +import {PALETTE} from '../styles/paletteV3' const Wrapper = styled('div')({ width: '100%', diff --git a/packages/client/components/JiraScopingSearchFilterMenuRoot.tsx b/packages/client/components/JiraScopingSearchFilterMenuRoot.tsx index a37f7260d55..f6a5bceb690 100644 --- a/packages/client/components/JiraScopingSearchFilterMenuRoot.tsx +++ b/packages/client/components/JiraScopingSearchFilterMenuRoot.tsx @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useLazyLoadQuery} from 'react-relay' -import {MenuProps} from '../hooks/useMenu' import {JiraScopingSearchFilterMenuRootQuery} from '../__generated__/JiraScopingSearchFilterMenuRootQuery.graphql' +import {MenuProps} from '../hooks/useMenu' import JiraScopingSearchFilterMenu from './JiraScopingSearchFilterMenu' const query = graphql` diff --git a/packages/client/components/JiraScopingSearchFilterToggle.tsx b/packages/client/components/JiraScopingSearchFilterToggle.tsx index 31b331b548a..35c2ee567db 100644 --- a/packages/client/components/JiraScopingSearchFilterToggle.tsx +++ b/packages/client/components/JiraScopingSearchFilterToggle.tsx @@ -1,10 +1,10 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {JiraScopingSearchFilterToggle_meeting$key} from '../__generated__/JiraScopingSearchFilterToggle_meeting.graphql' import {MenuPosition} from '../hooks/useCoords' import useMenu from '../hooks/useMenu' import lazyPreload from '../utils/lazyPreload' -import {JiraScopingSearchFilterToggle_meeting$key} from '../__generated__/JiraScopingSearchFilterToggle_meeting.graphql' import FilterButton from './FilterButton' const JiraScopingSearchFilterMenuRoot = lazyPreload( diff --git a/packages/client/components/JiraScopingSearchResults.tsx b/packages/client/components/JiraScopingSearchResults.tsx index d0ebffff5ac..23aa7e914d9 100644 --- a/packages/client/components/JiraScopingSearchResults.tsx +++ b/packages/client/components/JiraScopingSearchResults.tsx @@ -1,12 +1,12 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React, {useState} from 'react' -import {useFragment, PreloadedQuery, usePreloadedQuery} from 'react-relay' +import {PreloadedQuery, useFragment, usePreloadedQuery} from 'react-relay' import useGetUsedServiceTaskIds from '~/hooks/useGetUsedServiceTaskIds' -import useAtmosphere from '../hooks/useAtmosphere' -import PersistJiraSearchQueryMutation from '../mutations/PersistJiraSearchQueryMutation' import {JiraScopingSearchResultsQuery} from '../__generated__/JiraScopingSearchResultsQuery.graphql' import {JiraScopingSearchResults_meeting$key} from '../__generated__/JiraScopingSearchResults_meeting.graphql' +import useAtmosphere from '../hooks/useAtmosphere' +import PersistJiraSearchQueryMutation from '../mutations/PersistJiraSearchQueryMutation' import IntegrationScopingNoResults from './IntegrationScopingNoResults' import JiraScopingSelectAllIssues from './JiraScopingSelectAllIssues' import NewIntegrationRecordButton from './NewIntegrationRecordButton' diff --git a/packages/client/components/JiraScopingSearchResultsRoot.tsx b/packages/client/components/JiraScopingSearchResultsRoot.tsx index 52e7a4a86d8..640d792ed18 100644 --- a/packages/client/components/JiraScopingSearchResultsRoot.tsx +++ b/packages/client/components/JiraScopingSearchResultsRoot.tsx @@ -2,11 +2,11 @@ import graphql from 'babel-plugin-relay/macro' import React, {Suspense} from 'react' import {useFragment} from 'react-relay' import MockScopingList from '~/modules/meeting/components/MockScopingList' -import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import jiraScopingSearchResultsQuery, { JiraScopingSearchResultsQuery } from '../__generated__/JiraScopingSearchResultsQuery.graphql' import {JiraScopingSearchResultsRoot_meeting$key} from '../__generated__/JiraScopingSearchResultsRoot_meeting.graphql' +import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import ErrorBoundary from './ErrorBoundary' import JiraScopingSearchResults from './JiraScopingSearchResults' diff --git a/packages/client/components/JiraScopingSelectAllIssues.tsx b/packages/client/components/JiraScopingSelectAllIssues.tsx index bbba141580e..ade3b46aa16 100644 --- a/packages/client/components/JiraScopingSelectAllIssues.tsx +++ b/packages/client/components/JiraScopingSelectAllIssues.tsx @@ -3,13 +3,13 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import useUnusedRecords from '~/hooks/useUnusedRecords' +import {JiraScopingSelectAllIssues_issues$key} from '../__generated__/JiraScopingSelectAllIssues_issues.graphql' import useAtmosphere from '../hooks/useAtmosphere' import useMutationProps from '../hooks/useMutationProps' import UpdatePokerScopeMutation from '../mutations/UpdatePokerScopeMutation' import {PALETTE} from '../styles/paletteV3' import {Threshold} from '../types/constEnums' import getSelectAllTitle from '../utils/getSelectAllTitle' -import {JiraScopingSelectAllIssues_issues$key} from '../__generated__/JiraScopingSelectAllIssues_issues.graphql' import Checkbox from './Checkbox' const Item = styled('div')({ diff --git a/packages/client/components/JiraServerFieldDimensionDropdown.tsx b/packages/client/components/JiraServerFieldDimensionDropdown.tsx index abeb881c8bf..1c2315517d1 100644 --- a/packages/client/components/JiraServerFieldDimensionDropdown.tsx +++ b/packages/client/components/JiraServerFieldDimensionDropdown.tsx @@ -3,11 +3,11 @@ import {ExpandMore} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {JiraServerFieldDimensionDropdown_stage$key} from '../__generated__/JiraServerFieldDimensionDropdown_stage.graphql' import {MenuPosition} from '../hooks/useCoords' import useMenu from '../hooks/useMenu' import {PALETTE} from '../styles/paletteV3' import {SprintPokerDefaults} from '../types/constEnums' -import {JiraServerFieldDimensionDropdown_stage$key} from '../__generated__/JiraServerFieldDimensionDropdown_stage.graphql' import JiraServerFieldMenu from './JiraServerFieldMenu' import PlainButton from './PlainButton/PlainButton' diff --git a/packages/client/components/JiraServerFieldMenu.tsx b/packages/client/components/JiraServerFieldMenu.tsx index 890a42da3cc..ec14af8f755 100644 --- a/packages/client/components/JiraServerFieldMenu.tsx +++ b/packages/client/components/JiraServerFieldMenu.tsx @@ -3,11 +3,11 @@ import graphql from 'babel-plugin-relay/macro' import React, {useMemo} from 'react' import {useFragment} from 'react-relay' import {PALETTE} from '~/styles/paletteV3' +import {JiraServerFieldMenu_stage$key} from '../__generated__/JiraServerFieldMenu_stage.graphql' import useAtmosphere from '../hooks/useAtmosphere' import {MenuProps} from '../hooks/useMenu' import UpdateJiraServerDimensionFieldMutation from '../mutations/UpdateJiraServerDimensionFieldMutation' import {SprintPokerDefaults} from '../types/constEnums' -import {JiraServerFieldMenu_stage$key} from '../__generated__/JiraServerFieldMenu_stage.graphql' import Menu from './Menu' import MenuItem from './MenuItem' import MenuItemHR from './MenuItemHR' diff --git a/packages/client/components/JiraServerScopingSearchFilterMenuRoot.tsx b/packages/client/components/JiraServerScopingSearchFilterMenuRoot.tsx index ece8b0fc04b..05937171331 100644 --- a/packages/client/components/JiraServerScopingSearchFilterMenuRoot.tsx +++ b/packages/client/components/JiraServerScopingSearchFilterMenuRoot.tsx @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useLazyLoadQuery} from 'react-relay' -import {MenuProps} from '../hooks/useMenu' import {JiraServerScopingSearchFilterMenuRootQuery} from '../__generated__/JiraServerScopingSearchFilterMenuRootQuery.graphql' +import {MenuProps} from '../hooks/useMenu' import JiraScopingSearchFilterMenu from './JiraScopingSearchFilterMenu' const query = graphql` diff --git a/packages/client/components/JiraServerScopingSearchFilterToggle.tsx b/packages/client/components/JiraServerScopingSearchFilterToggle.tsx index 434ec2a7534..35f85ef0944 100644 --- a/packages/client/components/JiraServerScopingSearchFilterToggle.tsx +++ b/packages/client/components/JiraServerScopingSearchFilterToggle.tsx @@ -1,10 +1,10 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {JiraServerScopingSearchFilterToggle_meeting$key} from '../__generated__/JiraServerScopingSearchFilterToggle_meeting.graphql' import {MenuPosition} from '../hooks/useCoords' import useMenu from '../hooks/useMenu' import lazyPreload from '../utils/lazyPreload' -import {JiraServerScopingSearchFilterToggle_meeting$key} from '../__generated__/JiraServerScopingSearchFilterToggle_meeting.graphql' import FilterButton from './FilterButton' const JiraServerScopingSearchFilterMenuRoot = lazyPreload( diff --git a/packages/client/components/JiraServerScopingSearchResults.tsx b/packages/client/components/JiraServerScopingSearchResults.tsx index a324a9cf1ab..cbb680f5ca3 100644 --- a/packages/client/components/JiraServerScopingSearchResults.tsx +++ b/packages/client/components/JiraServerScopingSearchResults.tsx @@ -4,13 +4,13 @@ import React, {useState} from 'react' import {PreloadedQuery, useFragment, usePaginationFragment, usePreloadedQuery} from 'react-relay' import useGetUsedServiceTaskIds from '~/hooks/useGetUsedServiceTaskIds' import MockScopingList from '~/modules/meeting/components/MockScopingList' -import useAtmosphere from '../hooks/useAtmosphere' -import useLoadNextOnScrollBottom from '../hooks/useLoadNextOnScrollBottom' -import PersistJiraServerSearchQueryMutation from '../mutations/PersistJiraServerSearchQueryMutation' import {JiraServerScopingSearchResultsPaginationQuery} from '../__generated__/JiraServerScopingSearchResultsPaginationQuery.graphql' import {JiraServerScopingSearchResultsQuery} from '../__generated__/JiraServerScopingSearchResultsQuery.graphql' import {JiraServerScopingSearchResults_meeting$key} from '../__generated__/JiraServerScopingSearchResults_meeting.graphql' import {JiraServerScopingSearchResults_query$key} from '../__generated__/JiraServerScopingSearchResults_query.graphql' +import useAtmosphere from '../hooks/useAtmosphere' +import useLoadNextOnScrollBottom from '../hooks/useLoadNextOnScrollBottom' +import PersistJiraServerSearchQueryMutation from '../mutations/PersistJiraServerSearchQueryMutation' import Ellipsis from './Ellipsis/Ellipsis' import IntegrationScopingNoResults from './IntegrationScopingNoResults' import NewIntegrationRecordButton from './NewIntegrationRecordButton' diff --git a/packages/client/components/JiraServerScopingSearchResultsRoot.tsx b/packages/client/components/JiraServerScopingSearchResultsRoot.tsx index 847e501c55f..5c0bfe0cc8d 100644 --- a/packages/client/components/JiraServerScopingSearchResultsRoot.tsx +++ b/packages/client/components/JiraServerScopingSearchResultsRoot.tsx @@ -2,11 +2,11 @@ import graphql from 'babel-plugin-relay/macro' import React, {Suspense} from 'react' import {useFragment} from 'react-relay' import MockScopingList from '~/modules/meeting/components/MockScopingList' -import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import jiraServerScopingSearchResultsQuery, { JiraServerScopingSearchResultsQuery } from '../__generated__/JiraServerScopingSearchResultsQuery.graphql' import {JiraServerScopingSearchResultsRoot_meeting$key} from '../__generated__/JiraServerScopingSearchResultsRoot_meeting.graphql' +import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import JiraServerScopingSearchResults from './JiraServerScopingSearchResults' interface Props { diff --git a/packages/client/components/KudosReceivedNotification.tsx b/packages/client/components/KudosReceivedNotification.tsx index a9cc11ba396..8215f304e6b 100644 --- a/packages/client/components/KudosReceivedNotification.tsx +++ b/packages/client/components/KudosReceivedNotification.tsx @@ -1,12 +1,12 @@ import graphql from 'babel-plugin-relay/macro' -import {Link} from 'react-router-dom' import React, {useEffect} from 'react' import {useFragment} from 'react-relay' +import {Link} from 'react-router-dom' import {KudosReceivedNotification_notification$key} from '~/__generated__/KudosReceivedNotification_notification.graphql' -import NotificationTemplate from './NotificationTemplate' import useAtmosphere from '../hooks/useAtmosphere' -import SendClientSideEvent from '../utils/SendClientSideEvent' import anonymousAvatar from '../styles/theme/images/anonymous-avatar.svg' +import SendClientSideEvent from '../utils/SendClientSideEvent' +import NotificationTemplate from './NotificationTemplate' interface Props { notification: KudosReceivedNotification_notification$key diff --git a/packages/client/components/LimitExceededWarning.tsx b/packages/client/components/LimitExceededWarning.tsx index 4dfa1285be4..e52bc3b6d8a 100644 --- a/packages/client/components/LimitExceededWarning.tsx +++ b/packages/client/components/LimitExceededWarning.tsx @@ -2,10 +2,10 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {LimitExceededWarning_organization$key} from '../__generated__/LimitExceededWarning_organization.graphql' import {PALETTE} from '../styles/paletteV3' import {Threshold} from '../types/constEnums' import relativeDate from '../utils/date/relativeDate' -import {LimitExceededWarning_organization$key} from '../__generated__/LimitExceededWarning_organization.graphql' const WarningMsg = styled('div')({ background: PALETTE.GOLD_100, diff --git a/packages/client/components/MassInvitationTokenLink.tsx b/packages/client/components/MassInvitationTokenLink.tsx index 92c3ff1f04a..235f8aca58a 100644 --- a/packages/client/components/MassInvitationTokenLink.tsx +++ b/packages/client/components/MassInvitationTokenLink.tsx @@ -5,13 +5,13 @@ import React, {useEffect} from 'react' import {PreloadedQuery, usePreloadedQuery} from 'react-relay' import useMutationProps from '~/hooks/useMutationProps' import CreateMassInvitationMutation from '~/mutations/CreateMassInvitationMutation' +import {MassInvitationTokenLinkQuery} from '../__generated__/MassInvitationTokenLinkQuery.graphql' import useAtmosphere from '../hooks/useAtmosphere' import CopyShortLink from '../modules/meeting/components/CopyShortLink/CopyShortLink' -import SendClientSideEvent from '../utils/SendClientSideEvent' import {PALETTE} from '../styles/paletteV3' import {Threshold} from '../types/constEnums' +import SendClientSideEvent from '../utils/SendClientSideEvent' import getMassInvitationUrl from '../utils/getMassInvitationUrl' -import {MassInvitationTokenLinkQuery} from '../__generated__/MassInvitationTokenLinkQuery.graphql' const StyledCopyShortLink = styled(CopyShortLink)({ borderRadius: 4, diff --git a/packages/client/components/MassInvitationTokenLinkRoot.tsx b/packages/client/components/MassInvitationTokenLinkRoot.tsx index a41250451fc..9d82a7160f3 100644 --- a/packages/client/components/MassInvitationTokenLinkRoot.tsx +++ b/packages/client/components/MassInvitationTokenLinkRoot.tsx @@ -1,8 +1,8 @@ import React, {Suspense} from 'react' -import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import massInvitationTokenLinkQuery, { MassInvitationTokenLinkQuery } from '../__generated__/MassInvitationTokenLinkQuery.graphql' +import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import MassInvitationTokenLink from './MassInvitationTokenLink' interface Props { diff --git a/packages/client/components/MeetingCard.tsx b/packages/client/components/MeetingCard.tsx index e68a61dfc90..52cbfc61416 100644 --- a/packages/client/components/MeetingCard.tsx +++ b/packages/client/components/MeetingCard.tsx @@ -1,6 +1,7 @@ import styled from '@emotion/styled' import * as Sentry from '@sentry/browser' import graphql from 'babel-plugin-relay/macro' +import clsx from 'clsx' import React from 'react' import {useFragment} from 'react-relay' import {Link} from 'react-router-dom' @@ -8,11 +9,13 @@ import action from '../../../static/images/illustrations/action.png' import retrospective from '../../../static/images/illustrations/retrospective.png' import poker from '../../../static/images/illustrations/sprintPoker.png' import teamPrompt from '../../../static/images/illustrations/teamPrompt.png' +import {MeetingCard_meeting$key} from '../__generated__/MeetingCard_meeting.graphql' import useAnimatedCard from '../hooks/useAnimatedCard' import useBreakpoint from '../hooks/useBreakpoint' import {MenuPosition} from '../hooks/useCoords' import useMeetingMemberAvatars from '../hooks/useMeetingMemberAvatars' import useMenu from '../hooks/useMenu' +import useModal from '../hooks/useModal' import useTooltip from '../hooks/useTooltip' import {TransitionStatus} from '../hooks/useTransition' import {Elevation} from '../styles/elevation' @@ -20,15 +23,12 @@ import {PALETTE} from '../styles/paletteV3' import {BezierCurve, Breakpoint, Card, ElementWidth} from '../types/constEnums' import getMeetingPhase from '../utils/getMeetingPhase' import {phaseLabelLookup} from '../utils/meetings/lookups' -import {MeetingCard_meeting$key} from '../__generated__/MeetingCard_meeting.graphql' import AvatarList from './AvatarList' import CardButton from './CardButton' import IconLabel from './IconLabel' import MeetingCardOptionsMenuRoot from './MeetingCardOptionsMenuRoot' -import useModal from '../hooks/useModal' import {EndRecurringMeetingModal} from './Recurrence/EndRecurringMeetingModal' import {UpdateRecurrenceSettingsModal} from './Recurrence/UpdateRecurrenceSettingsModal' -import clsx from 'clsx' const CardWrapper = styled('div')<{ maybeTabletPlus: boolean diff --git a/packages/client/components/MeetingCardOptionsMenu.tsx b/packages/client/components/MeetingCardOptionsMenu.tsx index a8e64c969f4..1937602413f 100644 --- a/packages/client/components/MeetingCardOptionsMenu.tsx +++ b/packages/client/components/MeetingCardOptionsMenu.tsx @@ -11,12 +11,12 @@ import {PreloadedQuery, usePreloadedQuery} from 'react-relay' import useAtmosphere from '~/hooks/useAtmosphere' import useMutationProps from '~/hooks/useMutationProps' import useRouter from '~/hooks/useRouter' +import {MeetingCardOptionsMenuQuery} from '../__generated__/MeetingCardOptionsMenuQuery.graphql' import {MenuProps} from '../hooks/useMenu' -import SendClientSideEvent from '../utils/SendClientSideEvent' import {PALETTE} from '../styles/paletteV3' +import SendClientSideEvent from '../utils/SendClientSideEvent' import getMassInvitationUrl from '../utils/getMassInvitationUrl' import makeAppURL from '../utils/makeAppURL' -import {MeetingCardOptionsMenuQuery} from '../__generated__/MeetingCardOptionsMenuQuery.graphql' import Menu from './Menu' import MenuItem from './MenuItem' import {MenuItemLabelStyle} from './MenuItemLabel' diff --git a/packages/client/components/MeetingCardOptionsMenuRoot.tsx b/packages/client/components/MeetingCardOptionsMenuRoot.tsx index e38c53b8163..379734f6603 100644 --- a/packages/client/components/MeetingCardOptionsMenuRoot.tsx +++ b/packages/client/components/MeetingCardOptionsMenuRoot.tsx @@ -1,9 +1,9 @@ import React, {Suspense} from 'react' -import {MenuProps} from '../hooks/useMenu' -import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import meetingCardOptionsMenuQuery, { MeetingCardOptionsMenuQuery } from '../__generated__/MeetingCardOptionsMenuQuery.graphql' +import {MenuProps} from '../hooks/useMenu' +import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import MeetingCardOptionsMenu from './MeetingCardOptionsMenu' interface Props { diff --git a/packages/client/components/MeetingControlBar.tsx b/packages/client/components/MeetingControlBar.tsx index 9453836abb7..59f4d98bffa 100644 --- a/packages/client/components/MeetingControlBar.tsx +++ b/packages/client/components/MeetingControlBar.tsx @@ -2,6 +2,7 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React, {useRef} from 'react' import {useFragment} from 'react-relay' +import {MeetingControlBar_meeting$key} from '~/__generated__/MeetingControlBar_meeting.graphql' import useAtmosphere from '~/hooks/useAtmosphere' import useBreakpoint from '~/hooks/useBreakpoint' import {useCovering} from '~/hooks/useControlBarCovers' @@ -15,10 +16,9 @@ import {PALETTE} from '~/styles/paletteV3' import {BezierCurve, Breakpoint, ElementWidth, ZIndex} from '~/types/constEnums' import makeMinWidthMediaQuery from '~/utils/makeMinWidthMediaQuery' import findStageAfterId from '~/utils/meetings/findStageAfterId' -import {MeetingControlBar_meeting$key} from '~/__generated__/MeetingControlBar_meeting.graphql' +import {NewMeetingPhaseTypeEnum} from '../__generated__/MeetingControlBar_meeting.graphql' import useClickConfirmation from '../hooks/useClickConfirmation' import {bottomBarShadow, desktopBarShadow} from '../styles/elevation' -import {NewMeetingPhaseTypeEnum} from '../__generated__/MeetingControlBar_meeting.graphql' import BottomControlBarReady from './BottomControlBarReady' import BottomControlBarRejoin from './BottomControlBarRejoin' import BottomControlBarTips from './BottomControlBarTips' diff --git a/packages/client/components/MeetingHelp/TeamHealthHelpMenu.tsx b/packages/client/components/MeetingHelp/TeamHealthHelpMenu.tsx index af76ab6ba2a..09127c5d22d 100644 --- a/packages/client/components/MeetingHelp/TeamHealthHelpMenu.tsx +++ b/packages/client/components/MeetingHelp/TeamHealthHelpMenu.tsx @@ -1,12 +1,12 @@ -import React, {forwardRef} from 'react' import graphql from 'babel-plugin-relay/macro' +import React, {forwardRef} from 'react' import {useFragment} from 'react-relay' +import {TeamHealthHelpMenu_stage$key} from '~/__generated__/TeamHealthHelpMenu_stage.graphql' import useClientSideTrack from '../../hooks/useClientSideTrack' import {phaseLabelLookup} from '../../utils/meetings/lookups' import HelpMenuContent from './HelpMenuContent' import HelpMenuCopy from './HelpMenuCopy' import HelpMenuHeader from './HelpMenuHeader' -import {TeamHealthHelpMenu_stage$key} from '~/__generated__/TeamHealthHelpMenu_stage.graphql' interface Props { stageRef: TeamHealthHelpMenu_stage$key diff --git a/packages/client/components/MeetingLockedOverlay.tsx b/packages/client/components/MeetingLockedOverlay.tsx index 362423a6fb2..cf35d279cea 100644 --- a/packages/client/components/MeetingLockedOverlay.tsx +++ b/packages/client/components/MeetingLockedOverlay.tsx @@ -6,10 +6,10 @@ import {useFragment} from 'react-relay' import {MeetingLockedOverlay_meeting$key} from '~/__generated__/MeetingLockedOverlay_meeting.graphql' import useAtmosphere from '../hooks/useAtmosphere' import useRouter from '../hooks/useRouter' -import SendClientSideEvent from '../utils/SendClientSideEvent' import {modalShadow} from '../styles/elevation' import {PALETTE} from '../styles/paletteV3' import {Radius} from '../types/constEnums' +import SendClientSideEvent from '../utils/SendClientSideEvent' import PrimaryButton from './PrimaryButton' interface Props { diff --git a/packages/client/components/MeetingOptions.tsx b/packages/client/components/MeetingOptions.tsx index 0c39571d8d7..17fef02c6c3 100644 --- a/packages/client/components/MeetingOptions.tsx +++ b/packages/client/components/MeetingOptions.tsx @@ -1,12 +1,12 @@ +import SwapHorizIcon from '@mui/icons-material/SwapHoriz' import React, {useState} from 'react' -import IconLabel from './IconLabel' import {Menu} from '../ui/Menu/Menu' import {MenuItem} from '../ui/Menu/MenuItem' -import SwapHorizIcon from '@mui/icons-material/SwapHoriz' -import {OptionsButton} from './TeamPrompt/TeamPromptOptions' import {Tooltip} from '../ui/Tooltip/Tooltip' -import {TooltipTrigger} from '../ui/Tooltip/TooltipTrigger' import {TooltipContent} from '../ui/Tooltip/TooltipContent' +import {TooltipTrigger} from '../ui/Tooltip/TooltipTrigger' +import IconLabel from './IconLabel' +import {OptionsButton} from './TeamPrompt/TeamPromptOptions' type Props = { setShowDrawer: (showDrawer: boolean) => void diff --git a/packages/client/components/MeetingRoot.tsx b/packages/client/components/MeetingRoot.tsx index 5e3db73d2c4..a545a877fff 100644 --- a/packages/client/components/MeetingRoot.tsx +++ b/packages/client/components/MeetingRoot.tsx @@ -1,9 +1,9 @@ import React, {Suspense, useEffect} from 'react' -import useQueryLoaderNow from '../hooks/useQueryLoaderNow' -import useRouter from '../hooks/useRouter' import meetingSelectorQuery, { MeetingSelectorQuery } from '../__generated__/MeetingSelectorQuery.graphql' +import useQueryLoaderNow from '../hooks/useQueryLoaderNow' +import useRouter from '../hooks/useRouter' import MeetingSelector from './MeetingSelector' const MeetingRoot = () => { diff --git a/packages/client/components/MeetingSelector.tsx b/packages/client/components/MeetingSelector.tsx index b313a081927..f7913daba10 100644 --- a/packages/client/components/MeetingSelector.tsx +++ b/packages/client/components/MeetingSelector.tsx @@ -1,16 +1,16 @@ import graphql from 'babel-plugin-relay/macro' import React, {useEffect} from 'react' -import {Redirect} from 'react-router' import {PreloadedQuery, usePreloadedQuery} from 'react-relay' +import {Redirect} from 'react-router' import useAtmosphere from '~/hooks/useAtmosphere' import SetAppLocationMutation from '~/mutations/SetAppLocationMutation' +import {MeetingSelectorQuery} from '../__generated__/MeetingSelectorQuery.graphql' import useSubscription from '../hooks/useSubscription' import NotificationSubscription from '../subscriptions/NotificationSubscription' import OrganizationSubscription from '../subscriptions/OrganizationSubscription' import TaskSubscription from '../subscriptions/TaskSubscription' import TeamSubscription from '../subscriptions/TeamSubscription' import lazyPreload from '../utils/lazyPreload' -import {MeetingSelectorQuery} from '../__generated__/MeetingSelectorQuery.graphql' interface Props { meetingId: string diff --git a/packages/client/components/MeetingSeriesRoot.tsx b/packages/client/components/MeetingSeriesRoot.tsx index 7c2c1b0c8f6..00a8c5b3fce 100644 --- a/packages/client/components/MeetingSeriesRoot.tsx +++ b/packages/client/components/MeetingSeriesRoot.tsx @@ -1,10 +1,10 @@ import React, {Suspense} from 'react' import {Redirect} from 'react-router' -import useQueryLoaderNow from '../hooks/useQueryLoaderNow' -import useRouter from '../hooks/useRouter' import meetingSeriesRedirectorQuery, { MeetingSeriesRedirectorQuery } from '../__generated__/MeetingSeriesRedirectorQuery.graphql' +import useQueryLoaderNow from '../hooks/useQueryLoaderNow' +import useRouter from '../hooks/useRouter' import MeetingSeriesRedirector from './MeetingSeriesRedirector' const MeetingRoot = () => { diff --git a/packages/client/components/MeetingSidebarTeamMemberStageItems.tsx b/packages/client/components/MeetingSidebarTeamMemberStageItems.tsx index c594f2b16cd..bf66a9f3fed 100644 --- a/packages/client/components/MeetingSidebarTeamMemberStageItems.tsx +++ b/packages/client/components/MeetingSidebarTeamMemberStageItems.tsx @@ -3,12 +3,12 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import {MeetingSidebarTeamMemberStageItems_meeting$key} from '~/__generated__/MeetingSidebarTeamMemberStageItems_meeting.graphql' +import {NewMeetingPhaseTypeEnum} from '../__generated__/ActionMeeting_meeting.graphql' import Avatar from '../components/Avatar/Avatar' import MeetingSubnavItem from '../components/MeetingSubnavItem' import useAnimatedPhaseListChildren from '../hooks/useAnimatedPhaseListChildren' import useAtmosphere from '../hooks/useAtmosphere' import useGotoStageId from '../hooks/useGotoStageId' -import {NewMeetingPhaseTypeEnum} from '../__generated__/ActionMeeting_meeting.graphql' import MeetingSidebarPhaseItemChild from './MeetingSidebarPhaseItemChild' const AvatarBlock = styled('div')({ diff --git a/packages/client/components/MeetingStageTimeLimitEnd.tsx b/packages/client/components/MeetingStageTimeLimitEnd.tsx index 16757c6580a..e4a431fcab9 100644 --- a/packages/client/components/MeetingStageTimeLimitEnd.tsx +++ b/packages/client/components/MeetingStageTimeLimitEnd.tsx @@ -2,8 +2,8 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import NotificationAction from '~/components/NotificationAction' -import useRouter from '../hooks/useRouter' import {MeetingStageTimeLimitEnd_notification$key} from '../__generated__/MeetingStageTimeLimitEnd_notification.graphql' +import useRouter from '../hooks/useRouter' import NotificationTemplate from './NotificationTemplate' interface Props { diff --git a/packages/client/components/MeetingTopBar.tsx b/packages/client/components/MeetingTopBar.tsx index 287a53012b4..f8768749365 100644 --- a/packages/client/components/MeetingTopBar.tsx +++ b/packages/client/components/MeetingTopBar.tsx @@ -8,8 +8,8 @@ import isDemoRoute from '../utils/isDemoRoute' import makeMinWidthMediaQuery from '../utils/makeMinWidthMediaQuery' import DemoCreateAccountButton from './DemoCreateAccountButton' import PlainButton from './PlainButton/PlainButton' -import SidebarToggle from './SidebarToggle' import RetroDrawerRoot from './RetroDrawerRoot' +import SidebarToggle from './SidebarToggle' const localHeaderBreakpoint = makeMinWidthMediaQuery(600) diff --git a/packages/client/components/MeetingsDash.tsx b/packages/client/components/MeetingsDash.tsx index e92e3c5db81..7faf932e1b6 100644 --- a/packages/client/components/MeetingsDash.tsx +++ b/packages/client/components/MeetingsDash.tsx @@ -3,20 +3,20 @@ import graphql from 'babel-plugin-relay/macro' import React, {RefObject, useMemo} from 'react' import {useFragment} from 'react-relay' import {MeetingsDash_viewer$key} from '~/__generated__/MeetingsDash_viewer.graphql' +import useAtmosphere from '../hooks/useAtmosphere' import useBreakpoint from '../hooks/useBreakpoint' import useCardsPerRow from '../hooks/useCardsPerRow' import useDocumentTitle from '../hooks/useDocumentTitle' import useTransition from '../hooks/useTransition' import {Breakpoint, EmptyMeetingViewMessage, Layout} from '../types/constEnums' import getSafeRegex from '../utils/getSafeRegex' +import {useQueryParameterParser} from '../utils/useQueryParameterParser' import DemoMeetingCard from './DemoMeetingCard' import MeetingCard from './MeetingCard' import MeetingsDashEmpty from './MeetingsDashEmpty' import MeetingsDashHeader from './MeetingsDashHeader' import StartMeetingFAB from './StartMeetingFAB' import TutorialMeetingCard from './TutorialMeetingCard' -import {useQueryParameterParser} from '../utils/useQueryParameterParser' -import useAtmosphere from '../hooks/useAtmosphere' interface Props { meetingsDashRef: RefObject diff --git a/packages/client/components/MeetingsDashEmpty.tsx b/packages/client/components/MeetingsDashEmpty.tsx index 6fcb45cf877..617e9588b3b 100644 --- a/packages/client/components/MeetingsDashEmpty.tsx +++ b/packages/client/components/MeetingsDashEmpty.tsx @@ -1,10 +1,10 @@ import styled from '@emotion/styled' import React from 'react' import {Link} from 'react-router-dom' +import {commitLocalUpdate} from 'relay-runtime' import {Breakpoint} from '~/types/constEnums' import makeMinWidthMediaQuery from '~/utils/makeMinWidthMediaQuery' import Atmosphere from '../Atmosphere' -import {commitLocalUpdate} from 'relay-runtime' import useAtmosphere from '../hooks/useAtmosphere' const maybeTabletPlusMediaQuery = makeMinWidthMediaQuery(Breakpoint.FUZZY_TABLET) diff --git a/packages/client/components/MeetingsDashHeader.tsx b/packages/client/components/MeetingsDashHeader.tsx index 20c98397fcb..df2ee10887e 100644 --- a/packages/client/components/MeetingsDashHeader.tsx +++ b/packages/client/components/MeetingsDashHeader.tsx @@ -1,16 +1,16 @@ import graphql from 'babel-plugin-relay/macro' import React, {useMemo} from 'react' import {useFragment} from 'react-relay' +import {MeetingsDashHeader_viewer$key} from '../__generated__/MeetingsDashHeader_viewer.graphql' +import useAtmosphere from '../hooks/useAtmosphere' import {MenuPosition} from '../hooks/useCoords' import useMenu from '../hooks/useMenu' import {FilterLabels} from '../types/constEnums' import lazyPreload from '../utils/lazyPreload' -import {MeetingsDashHeader_viewer$key} from '../__generated__/MeetingsDashHeader_viewer.graphql' +import {useQueryParameterParser} from '../utils/useQueryParameterParser' +import DashFilterToggle from './DashFilterToggle/DashFilterToggle' import DashSectionControls from './Dashboard/DashSectionControls' import DashSectionHeader from './Dashboard/DashSectionHeader' -import DashFilterToggle from './DashFilterToggle/DashFilterToggle' -import {useQueryParameterParser} from '../utils/useQueryParameterParser' -import useAtmosphere from '../hooks/useAtmosphere' const TeamFilterMenu = lazyPreload( () => diff --git a/packages/client/components/Mentioned.tsx b/packages/client/components/Mentioned.tsx index f298f3f3056..e22a97c40ba 100644 --- a/packages/client/components/Mentioned.tsx +++ b/packages/client/components/Mentioned.tsx @@ -1,15 +1,15 @@ import graphql from 'babel-plugin-relay/macro' +import {Editor} from 'draft-js' import React, {useEffect} from 'react' import {useFragment} from 'react-relay' import NotificationAction from '~/components/NotificationAction' -import useRouter from '../hooks/useRouter' -import {Mentioned_notification$key} from '../__generated__/Mentioned_notification.graphql' -import NotificationTemplate from './NotificationTemplate' -import SendClientSideEvent from '../utils/SendClientSideEvent' import useAtmosphere from '~/hooks/useAtmosphere' import anonymousAvatar from '~/styles/theme/images/anonymous-avatar.svg' +import {Mentioned_notification$key} from '../__generated__/Mentioned_notification.graphql' import useEditorState from '../hooks/useEditorState' -import {Editor} from 'draft-js' +import useRouter from '../hooks/useRouter' +import SendClientSideEvent from '../utils/SendClientSideEvent' +import NotificationTemplate from './NotificationTemplate' interface Props { notification: Mentioned_notification$key diff --git a/packages/client/components/MicrosoftOAuthButtonBlock.tsx b/packages/client/components/MicrosoftOAuthButtonBlock.tsx index 160c074955b..ec75bfb7532 100644 --- a/packages/client/components/MicrosoftOAuthButtonBlock.tsx +++ b/packages/client/components/MicrosoftOAuthButtonBlock.tsx @@ -1,14 +1,14 @@ import styled from '@emotion/styled' +import clsx from 'clsx' import React from 'react' import useAtmosphere from '../hooks/useAtmosphere' import useMutationProps from '../hooks/useMutationProps' import useRouter from '../hooks/useRouter' +import logo from '../styles/theme/images/graphics/microsoft.svg' import MicrosoftClientManager from '../utils/MicrosoftClientManager' +import RaisedButton from './RaisedButton' import StyledError from './StyledError' import StyledTip from './StyledTip' -import logo from '../styles/theme/images/graphics/microsoft.svg' -import RaisedButton from './RaisedButton' -import clsx from 'clsx' interface Props { invitationToken?: string diff --git a/packages/client/components/MyDashboardTasksAndHeader.tsx b/packages/client/components/MyDashboardTasksAndHeader.tsx index 7cbcbfeef36..8ea14d366bd 100644 --- a/packages/client/components/MyDashboardTasksAndHeader.tsx +++ b/packages/client/components/MyDashboardTasksAndHeader.tsx @@ -1,9 +1,9 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {PreloadedQuery, usePreloadedQuery} from 'react-relay' +import {MyDashboardTasksAndHeaderQuery} from '../__generated__/MyDashboardTasksAndHeaderQuery.graphql' import UserTasksHeader from '../modules/userDashboard/components/UserTasksHeader/UserTasksHeader' import UserColumnsContainer from '../modules/userDashboard/containers/UserColumns/UserColumnsContainer' -import {MyDashboardTasksAndHeaderQuery} from '../__generated__/MyDashboardTasksAndHeaderQuery.graphql' interface Props { queryRef: PreloadedQuery diff --git a/packages/client/components/MyDashboardTasksRoot.tsx b/packages/client/components/MyDashboardTasksRoot.tsx index a5804a1d267..2477a161c90 100644 --- a/packages/client/components/MyDashboardTasksRoot.tsx +++ b/packages/client/components/MyDashboardTasksRoot.tsx @@ -1,11 +1,11 @@ import React, {Suspense} from 'react' import {useQueryParameterParser} from '~/utils/useQueryParameterParser' -import useAtmosphere from '../hooks/useAtmosphere' -import useQueryLoaderNow from '../hooks/useQueryLoaderNow' -import UserTasksHeader from '../modules/userDashboard/components/UserTasksHeader/UserTasksHeader' import myDashboardTasksAndHeaderQuery, { MyDashboardTasksAndHeaderQuery } from '../__generated__/MyDashboardTasksAndHeaderQuery.graphql' +import useAtmosphere from '../hooks/useAtmosphere' +import useQueryLoaderNow from '../hooks/useQueryLoaderNow' +import UserTasksHeader from '../modules/userDashboard/components/UserTasksHeader/UserTasksHeader' import ErrorBoundary from './ErrorBoundary' import MyDashboardTasksAndHeader from './MyDashboardTasksAndHeader' diff --git a/packages/client/components/MyDashboardTimeline.tsx b/packages/client/components/MyDashboardTimeline.tsx index 6b3240cf5d0..ad676f9c819 100644 --- a/packages/client/components/MyDashboardTimeline.tsx +++ b/packages/client/components/MyDashboardTimeline.tsx @@ -3,14 +3,14 @@ import graphql from 'babel-plugin-relay/macro' import React, {Suspense} from 'react' import {PreloadedQuery, usePreloadedQuery} from 'react-relay' import useDocumentTitle from '~/hooks/useDocumentTitle' -import {DashTimeline} from '../types/constEnums' import {MyDashboardTimelineQuery} from '../__generated__/MyDashboardTimelineQuery.graphql' +import {DashTimeline} from '../types/constEnums' import ErrorBoundary from './ErrorBoundary' import TimelineFeedList from './TimelineFeedList' +import TimelineHeader from './TimelineHeader' import TimelineLoadingEvents from './TimelineLoadingEvents' import TimelineRightDrawer from './TimelineRightDrawer' import TimelineSuggestedAction from './TimelineSuggestedAction' -import TimelineHeader from './TimelineHeader' interface Props { queryRef: PreloadedQuery diff --git a/packages/client/components/MyDashboardTimelineRoot.tsx b/packages/client/components/MyDashboardTimelineRoot.tsx index 382a6b20703..22e519e36a8 100644 --- a/packages/client/components/MyDashboardTimelineRoot.tsx +++ b/packages/client/components/MyDashboardTimelineRoot.tsx @@ -1,11 +1,11 @@ import React, {Suspense} from 'react' -import useAtmosphere from '../hooks/useAtmosphere' -import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import myDashboardTimelineQuery, { MyDashboardTimelineQuery } from '../__generated__/MyDashboardTimelineQuery.graphql' -import MyDashboardTimeline from './MyDashboardTimeline' +import useAtmosphere from '../hooks/useAtmosphere' +import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import {useQueryParameterParser} from '../utils/useQueryParameterParser' +import MyDashboardTimeline from './MyDashboardTimeline' const MyDashboardTimelineRoot = () => { const atmosphere = useAtmosphere() diff --git a/packages/client/components/NewAzureIssueInput.tsx b/packages/client/components/NewAzureIssueInput.tsx index 85fbe4e350f..323f93e026a 100644 --- a/packages/client/components/NewAzureIssueInput.tsx +++ b/packages/client/components/NewAzureIssueInput.tsx @@ -3,6 +3,7 @@ import {ExpandMore} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React, {FormEvent, useEffect, useRef, useState} from 'react' import {useFragment} from 'react-relay' +import {NewAzureIssueInput_viewer$key} from '~/__generated__/NewAzureIssueInput_viewer.graphql' import useAtmosphere from '~/hooks/useAtmosphere' import {MenuPosition} from '~/hooks/useCoords' import useMenu from '~/hooks/useMenu' @@ -10,7 +11,7 @@ import useMutationProps from '~/hooks/useMutationProps' import CreateTaskMutation from '~/mutations/CreateTaskMutation' import AzureDevOpsProjectId from '~/shared/gqlIds/AzureDevOpsProjectId' import {PALETTE} from '~/styles/paletteV3' -import {NewAzureIssueInput_viewer$key} from '~/__generated__/NewAzureIssueInput_viewer.graphql' +import {CreateTaskMutation as TCreateTaskMutation} from '../__generated__/CreateTaskMutation.graphql' import useForm from '../hooks/useForm' import {PortalStatus} from '../hooks/usePortal' import useTimedState from '../hooks/useTimedState' @@ -18,7 +19,6 @@ import UpdatePokerScopeMutation from '../mutations/UpdatePokerScopeMutation' import {CompletedHandler} from '../types/relayMutations' import convertToTaskContent from '../utils/draftjs/convertToTaskContent' import Legitity from '../validation/Legitity' -import {CreateTaskMutation as TCreateTaskMutation} from '../__generated__/CreateTaskMutation.graphql' import Checkbox from './Checkbox' import NewAzureIssueMenu from './NewAzureIssueMenu' import PlainButton from './PlainButton/PlainButton' diff --git a/packages/client/components/NewGitHubIssueInput.tsx b/packages/client/components/NewGitHubIssueInput.tsx index 53d649aa027..a9be74bcf2f 100644 --- a/packages/client/components/NewGitHubIssueInput.tsx +++ b/packages/client/components/NewGitHubIssueInput.tsx @@ -3,14 +3,15 @@ import {ExpandMore} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React, {FormEvent, useEffect, useRef, useState} from 'react' import {useFragment} from 'react-relay' +import {NewGitHubIssueInput_meeting$key} from '~/__generated__/NewGitHubIssueInput_meeting.graphql' +import {NewGitHubIssueInput_viewer$key} from '~/__generated__/NewGitHubIssueInput_viewer.graphql' import useAtmosphere from '~/hooks/useAtmosphere' import {MenuPosition} from '~/hooks/useCoords' import useGetRepoContributions from '~/hooks/useGetRepoContributions' import useMenu from '~/hooks/useMenu' import useMutationProps from '~/hooks/useMutationProps' import {PALETTE} from '~/styles/paletteV3' -import {NewGitHubIssueInput_meeting$key} from '~/__generated__/NewGitHubIssueInput_meeting.graphql' -import {NewGitHubIssueInput_viewer$key} from '~/__generated__/NewGitHubIssueInput_viewer.graphql' +import {CreateTaskMutation as TCreateTaskMutation} from '../__generated__/CreateTaskMutation.graphql' import useForm from '../hooks/useForm' import {PortalStatus} from '../hooks/usePortal' import useTimedState from '../hooks/useTimedState' @@ -20,7 +21,6 @@ import GitHubIssueId from '../shared/gqlIds/GitHubIssueId' import {CompletedHandler} from '../types/relayMutations' import convertToTaskContent from '../utils/draftjs/convertToTaskContent' import Legitity from '../validation/Legitity' -import {CreateTaskMutation as TCreateTaskMutation} from '../__generated__/CreateTaskMutation.graphql' import Checkbox from './Checkbox' import NewGitHubIssueMenu from './NewGitHubIssueMenu' import PlainButton from './PlainButton/PlainButton' diff --git a/packages/client/components/NewGitLabIssueInput.tsx b/packages/client/components/NewGitLabIssueInput.tsx index 0169acdeca5..140c5f314dc 100644 --- a/packages/client/components/NewGitLabIssueInput.tsx +++ b/packages/client/components/NewGitLabIssueInput.tsx @@ -3,13 +3,14 @@ import {ExpandMore} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React, {FormEvent, useEffect, useRef, useState} from 'react' import {useFragment} from 'react-relay' +import {NewGitLabIssueInput_viewer$key} from '~/__generated__/NewGitLabIssueInput_viewer.graphql' import useAtmosphere from '~/hooks/useAtmosphere' import {MenuPosition} from '~/hooks/useCoords' import useMenu from '~/hooks/useMenu' import useMutationProps from '~/hooks/useMutationProps' import {PALETTE} from '~/styles/paletteV3' import getNonNullEdges from '~/utils/getNonNullEdges' -import {NewGitLabIssueInput_viewer$key} from '~/__generated__/NewGitLabIssueInput_viewer.graphql' +import {CreateTaskMutation as TCreateTaskMutation} from '../__generated__/CreateTaskMutation.graphql' import useForm from '../hooks/useForm' import {PortalStatus} from '../hooks/usePortal' import useTimedState from '../hooks/useTimedState' @@ -18,7 +19,6 @@ import UpdatePokerScopeMutation from '../mutations/UpdatePokerScopeMutation' import {CompletedHandler} from '../types/relayMutations' import convertToTaskContent from '../utils/draftjs/convertToTaskContent' import Legitity from '../validation/Legitity' -import {CreateTaskMutation as TCreateTaskMutation} from '../__generated__/CreateTaskMutation.graphql' import Checkbox from './Checkbox' import NewGitLabIssueMenu from './NewGitLabIssueMenu' import PlainButton from './PlainButton/PlainButton' diff --git a/packages/client/components/NewJiraIssueInput.tsx b/packages/client/components/NewJiraIssueInput.tsx index 4f9ad22c1aa..d904a5cc2d9 100644 --- a/packages/client/components/NewJiraIssueInput.tsx +++ b/packages/client/components/NewJiraIssueInput.tsx @@ -8,6 +8,8 @@ import {MenuPosition} from '~/hooks/useCoords' import useMenu from '~/hooks/useMenu' import useMutationProps from '~/hooks/useMutationProps' import {PALETTE} from '~/styles/paletteV3' +import {NewJiraIssueInput_meeting$key} from '../__generated__/NewJiraIssueInput_meeting.graphql' +import {NewJiraIssueInput_viewer$key} from '../__generated__/NewJiraIssueInput_viewer.graphql' import useForm from '../hooks/useForm' import {PortalStatus} from '../hooks/usePortal' import useTimedState from '../hooks/useTimedState' @@ -18,8 +20,6 @@ import JiraProjectId from '../shared/gqlIds/JiraProjectId' import {CompletedHandler} from '../types/relayMutations' import convertToTaskContent from '../utils/draftjs/convertToTaskContent' import Legitity from '../validation/Legitity' -import {NewJiraIssueInput_meeting$key} from '../__generated__/NewJiraIssueInput_meeting.graphql' -import {NewJiraIssueInput_viewer$key} from '../__generated__/NewJiraIssueInput_viewer.graphql' import Checkbox from './Checkbox' import NewJiraIssueMenu from './NewJiraIssueMenu' import PlainButton from './PlainButton/PlainButton' diff --git a/packages/client/components/NewMeetingActions.tsx b/packages/client/components/NewMeetingActions.tsx index 9b557d1e5a2..9ee965291a5 100644 --- a/packages/client/components/NewMeetingActions.tsx +++ b/packages/client/components/NewMeetingActions.tsx @@ -4,8 +4,8 @@ import React, {useEffect} from 'react' import {useFragment} from 'react-relay' import {NewMeetingActions_team$key} from '~/__generated__/NewMeetingActions_team.graphql' import useAtmosphere from '../hooks/useAtmosphere' -import SendClientSideEvent from '../utils/SendClientSideEvent' import {Breakpoint, Threshold} from '../types/constEnums' +import SendClientSideEvent from '../utils/SendClientSideEvent' import FlatPrimaryButton from './FlatPrimaryButton' import NewMeetingActionsCurrentMeetings from './NewMeetingActionsCurrentMeetings' import StyledError from './StyledError' diff --git a/packages/client/components/NewMeetingActionsCurrentMeetings.tsx b/packages/client/components/NewMeetingActionsCurrentMeetings.tsx index af6f2fb4840..59708912872 100644 --- a/packages/client/components/NewMeetingActionsCurrentMeetings.tsx +++ b/packages/client/components/NewMeetingActionsCurrentMeetings.tsx @@ -3,12 +3,12 @@ import {Forum} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {NewMeetingActionsCurrentMeetings_team$key} from '~/__generated__/NewMeetingActionsCurrentMeetings_team.graphql' import {MenuPosition} from '~/hooks/useCoords' import useMenu from '~/hooks/useMenu' import useSnacksForNewMeetings from '~/hooks/useSnacksForNewMeetings' import {PALETTE} from '~/styles/paletteV3' import plural from '~/utils/plural' -import {NewMeetingActionsCurrentMeetings_team$key} from '~/__generated__/NewMeetingActionsCurrentMeetings_team.graphql' import FlatButton from './FlatButton' import SelectMeetingDropdown from './SelectMeetingDropdown' diff --git a/packages/client/components/NewMeetingCheckIn.tsx b/packages/client/components/NewMeetingCheckIn.tsx index c90652753c6..9ca9869724a 100644 --- a/packages/client/components/NewMeetingCheckIn.tsx +++ b/packages/client/components/NewMeetingCheckIn.tsx @@ -3,8 +3,8 @@ import {RecordVoiceOver} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React, {ReactElement} from 'react' import {useFragment} from 'react-relay' -import useGotoStageId from '~/hooks/useGotoStageId' import {NewMeetingCheckIn_meeting$key} from '~/__generated__/NewMeetingCheckIn_meeting.graphql' +import useGotoStageId from '~/hooks/useGotoStageId' import useAtmosphere from '../hooks/useAtmosphere' import NewMeetingCheckInPrompt from '../modules/meeting/components/MeetingCheckInPrompt/NewMeetingCheckInPrompt' import MeetingFacilitationHint from '../modules/meeting/components/MeetingFacilitationHint/MeetingFacilitationHint' diff --git a/packages/client/components/NewMeetingSettingsToggleTeamHealth.tsx b/packages/client/components/NewMeetingSettingsToggleTeamHealth.tsx index 94c295c9fa6..542938fd461 100644 --- a/packages/client/components/NewMeetingSettingsToggleTeamHealth.tsx +++ b/packages/client/components/NewMeetingSettingsToggleTeamHealth.tsx @@ -4,14 +4,14 @@ import React from 'react' import {useFragment} from 'react-relay' import {NewMeetingSettingsToggleTeamHealth_settings$key} from '~/__generated__/NewMeetingSettingsToggleTeamHealth_settings.graphql' import {NewMeetingSettingsToggleTeamHealth_team$key} from '~/__generated__/NewMeetingSettingsToggleTeamHealth_team.graphql' -import isTeamHealthAvailable from '../utils/features/isTeamHealthAvailable' import useAtmosphere from '../hooks/useAtmosphere' import useMutationProps from '../hooks/useMutationProps' import SetMeetingSettingsMutation from '../mutations/SetMeetingSettingsMutation' import {PALETTE} from '../styles/paletteV3' +import isTeamHealthAvailable from '../utils/features/isTeamHealthAvailable' import Checkbox from './Checkbox' -import PlainButton from './PlainButton/PlainButton' import NewMeetingSettingsUpgradeForTeamHealth from './NewMeetingSettingsUpgradeForTeamHealth' +import PlainButton from './PlainButton/PlainButton' const ButtonRow = styled(PlainButton)({ background: PALETTE.SLATE_200, diff --git a/packages/client/components/NewMeetingSettingsToggleTranscription.tsx b/packages/client/components/NewMeetingSettingsToggleTranscription.tsx index 4f3c9a48f36..92ed4edba81 100644 --- a/packages/client/components/NewMeetingSettingsToggleTranscription.tsx +++ b/packages/client/components/NewMeetingSettingsToggleTranscription.tsx @@ -1,5 +1,4 @@ import styled from '@emotion/styled' -import StyledError from './StyledError' import DeleteIcon from '@mui/icons-material/Delete' import graphql from 'babel-plugin-relay/macro' import React, {useState} from 'react' @@ -15,6 +14,7 @@ import Legitity from '../validation/Legitity' import Checkbox from './Checkbox' import FlatButton from './FlatButton' import PlainButton from './PlainButton/PlainButton' +import StyledError from './StyledError' const ButtonRow = styled(PlainButton)({ background: PALETTE.SLATE_200, diff --git a/packages/client/components/NewMeetingSettingsUpgradeForTeamHealth.tsx b/packages/client/components/NewMeetingSettingsUpgradeForTeamHealth.tsx index c354a0ed63f..2149ebf098e 100644 --- a/packages/client/components/NewMeetingSettingsUpgradeForTeamHealth.tsx +++ b/packages/client/components/NewMeetingSettingsUpgradeForTeamHealth.tsx @@ -1,13 +1,13 @@ +import styled from '@emotion/styled' +import {Lock} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import {NewMeetingSettingsUpgradeForTeamHealth_team$key} from '~/__generated__/NewMeetingSettingsUpgradeForTeamHealth_team.graphql' -import PlainButton from './PlainButton/PlainButton' -import {Lock} from '@mui/icons-material' -import SendClientSideEvent from '../utils/SendClientSideEvent' import useAtmosphere from '../hooks/useAtmosphere' -import styled from '@emotion/styled' import {PALETTE} from '../styles/paletteV3' +import SendClientSideEvent from '../utils/SendClientSideEvent' +import PlainButton from './PlainButton/PlainButton' const ButtonRow = styled(PlainButton)({ background: PALETTE.SLATE_200, diff --git a/packages/client/components/NewMeetingSidebar.tsx b/packages/client/components/NewMeetingSidebar.tsx index 58f62f932e8..22b76fa85f9 100644 --- a/packages/client/components/NewMeetingSidebar.tsx +++ b/packages/client/components/NewMeetingSidebar.tsx @@ -3,9 +3,9 @@ import graphql from 'babel-plugin-relay/macro' import React, {ReactNode} from 'react' import {useFragment} from 'react-relay' import {Link} from 'react-router-dom' +import {NewMeetingSidebar_meeting$key} from '~/__generated__/NewMeetingSidebar_meeting.graphql' import useAtmosphere from '~/hooks/useAtmosphere' import {useRenameMeeting} from '~/hooks/useRenameMeeting' -import {NewMeetingSidebar_meeting$key} from '~/__generated__/NewMeetingSidebar_meeting.graphql' import {PALETTE} from '../styles/paletteV3' import {NavSidebar} from '../types/constEnums' import isDemoRoute from '../utils/isDemoRoute' diff --git a/packages/client/components/NewMeetingSidebarPhaseListItem.tsx b/packages/client/components/NewMeetingSidebarPhaseListItem.tsx index ae1264faf81..31b929e1cf3 100644 --- a/packages/client/components/NewMeetingSidebarPhaseListItem.tsx +++ b/packages/client/components/NewMeetingSidebarPhaseListItem.tsx @@ -4,10 +4,10 @@ import { Edit, Group, GroupWork, + MonitorHeart, PlaylistAdd, Receipt, ThumbsUpDown, - MonitorHeart, Update } from '@mui/icons-material' import React from 'react' diff --git a/packages/client/components/NewMeetingSidebarUpgradeBlock.tsx b/packages/client/components/NewMeetingSidebarUpgradeBlock.tsx index 34b39cfc4dc..a87cad5ac2d 100644 --- a/packages/client/components/NewMeetingSidebarUpgradeBlock.tsx +++ b/packages/client/components/NewMeetingSidebarUpgradeBlock.tsx @@ -2,8 +2,8 @@ import styled from '@emotion/styled' import React, {useEffect} from 'react' import {useHistory} from 'react-router' import useAtmosphere from '../hooks/useAtmosphere' -import SendClientSideEvent from '../utils/SendClientSideEvent' import {PALETTE} from '../styles/paletteV3' +import SendClientSideEvent from '../utils/SendClientSideEvent' import FlatPrimaryButton from './FlatPrimaryButton' import IconButton from './IconButton' diff --git a/packages/client/components/NewMeetingTeamPicker.tsx b/packages/client/components/NewMeetingTeamPicker.tsx index 15bb5e35671..2443f8067c9 100644 --- a/packages/client/components/NewMeetingTeamPicker.tsx +++ b/packages/client/components/NewMeetingTeamPicker.tsx @@ -3,16 +3,16 @@ import React from 'react' import {useFragment} from 'react-relay' import {NewMeetingTeamPicker_selectedTeam$key} from '~/__generated__/NewMeetingTeamPicker_selectedTeam.graphql' import {NewMeetingTeamPicker_teams$key} from '~/__generated__/NewMeetingTeamPicker_teams.graphql' +import AddTeamDialogRoot from '~/components/AddTeamDialogRoot' +import SendClientSideEvent from '~/utils/SendClientSideEvent' +import useAtmosphere from '../hooks/useAtmosphere' import {MenuPosition} from '../hooks/useCoords' import useMenu from '../hooks/useMenu' import {PortalStatus} from '../hooks/usePortal' import lazyPreload from '../utils/lazyPreload' +import setPreferredTeamId from '../utils/relay/setPreferredTeamId' import NewMeetingDropdown from './NewMeetingDropdown' import NewMeetingTeamPickerAvatars from './NewMeetingTeamPickerAvatars' -import useAtmosphere from '../hooks/useAtmosphere' -import setPreferredTeamId from '../utils/relay/setPreferredTeamId' -import AddTeamDialogRoot from '~/components/AddTeamDialogRoot' -import SendClientSideEvent from '~/utils/SendClientSideEvent' const SelectTeamDropdown = lazyPreload( () => diff --git a/packages/client/components/NewMeetingTeamPickerAvatars.tsx b/packages/client/components/NewMeetingTeamPickerAvatars.tsx index 954f0539a8a..f26ca066fd8 100644 --- a/packages/client/components/NewMeetingTeamPickerAvatars.tsx +++ b/packages/client/components/NewMeetingTeamPickerAvatars.tsx @@ -2,10 +2,10 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React, {useMemo} from 'react' import {useFragment} from 'react-relay' +import {NewMeetingTeamPickerAvatars_team$key} from '../__generated__/NewMeetingTeamPickerAvatars_team.graphql' import {PALETTE} from '../styles/paletteV3' import defaultUserAvatar from '../styles/theme/images/avatar-user.svg' import getShuffledArr from '../utils/getShuffledArr' -import {NewMeetingTeamPickerAvatars_team$key} from '../__generated__/NewMeetingTeamPickerAvatars_team.graphql' import Avatar from './Avatar/Avatar' import ErrorBoundary from './ErrorBoundary' diff --git a/packages/client/components/NewTeamOrgDropdown.tsx b/packages/client/components/NewTeamOrgDropdown.tsx index 9f5fb0935d9..3778804e48a 100644 --- a/packages/client/components/NewTeamOrgDropdown.tsx +++ b/packages/client/components/NewTeamOrgDropdown.tsx @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' -import {MenuProps} from '../hooks/useMenu' import {NewTeamOrgDropdown_organizations$key} from '../__generated__/NewTeamOrgDropdown_organizations.graphql' +import {MenuProps} from '../hooks/useMenu' import DropdownMenuItemLabel from './DropdownMenuItemLabel' import DropdownMenuLabel from './DropdownMenuLabel' import Menu from './Menu' diff --git a/packages/client/components/NotificationDropdown.tsx b/packages/client/components/NotificationDropdown.tsx index 0e923e81a99..3afb59a34a1 100644 --- a/packages/client/components/NotificationDropdown.tsx +++ b/packages/client/components/NotificationDropdown.tsx @@ -2,18 +2,18 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React, {RefObject} from 'react' import {usePaginationFragment} from 'react-relay' -import useAtmosphere from '~/hooks/useAtmosphere' -import useTimeout from '~/hooks/useTimeout' -import SetNotificationStatusMutation from '~/mutations/SetNotificationStatusMutation' import { NotificationDropdown_query$data, NotificationDropdown_query$key } from '~/__generated__/NotificationDropdown_query.graphql' +import useAtmosphere from '~/hooks/useAtmosphere' +import useTimeout from '~/hooks/useTimeout' +import SetNotificationStatusMutation from '~/mutations/SetNotificationStatusMutation' +import {NotificationDropdownPaginationQuery} from '../__generated__/NotificationDropdownPaginationQuery.graphql' +import useClientSideTrack from '../hooks/useClientSideTrack' import useLoadNextOnScrollBottom from '../hooks/useLoadNextOnScrollBottom' import {MenuProps} from '../hooks/useMenu' -import useClientSideTrack from '../hooks/useClientSideTrack' import SendClientSideEvent from '../utils/SendClientSideEvent' -import {NotificationDropdownPaginationQuery} from '../__generated__/NotificationDropdownPaginationQuery.graphql' import Menu from './Menu' import MenuItem from './MenuItem' import NotificationPicker from './NotificationPicker' diff --git a/packages/client/components/NotificationPicker.tsx b/packages/client/components/NotificationPicker.tsx index d119db0dc74..1d562f24283 100644 --- a/packages/client/components/NotificationPicker.tsx +++ b/packages/client/components/NotificationPicker.tsx @@ -1,11 +1,11 @@ import graphql from 'babel-plugin-relay/macro' import React, {Suspense} from 'react' import {useFragment} from 'react-relay' -import lazyPreload, {LazyExoticPreload} from '~/utils/lazyPreload' import { NotificationEnum, NotificationPicker_notification$key } from '~/__generated__/NotificationPicker_notification.graphql' +import lazyPreload, {LazyExoticPreload} from '~/utils/lazyPreload' const typePicker: Record> = { DISCUSSION_MENTIONED: lazyPreload( diff --git a/packages/client/components/NotificationRow.tsx b/packages/client/components/NotificationRow.tsx index 78d54cc32b9..eda7ebea52f 100644 --- a/packages/client/components/NotificationRow.tsx +++ b/packages/client/components/NotificationRow.tsx @@ -1,7 +1,7 @@ import styled from '@emotion/styled' import React, {ReactNode, useState} from 'react' -import {PALETTE} from '../styles/paletteV3' import {NotificationStatusEnum} from '../__generated__/NotificationDropdown_query.graphql' +import {PALETTE} from '../styles/paletteV3' const Row = styled('div')<{isNew: boolean}>(({isNew}) => ({ background: isNew ? PALETTE.SLATE_300 : '#fff', diff --git a/packages/client/components/NotificationTemplate.tsx b/packages/client/components/NotificationTemplate.tsx index 78503bc33be..279ac41f640 100644 --- a/packages/client/components/NotificationTemplate.tsx +++ b/packages/client/components/NotificationTemplate.tsx @@ -3,9 +3,9 @@ import ms from 'ms' import React, {ReactNode} from 'react' import {useFragment} from 'react-relay' import parabolLogo from 'static/images/brand/mark-color.svg' +import {NotificationTemplate_notification$key} from '~/__generated__/NotificationTemplate_notification.graphql' import NotificationSubtitle from '~/components/NotificationSubtitle' import useRefreshInterval from '~/hooks/useRefreshInterval' -import {NotificationTemplate_notification$key} from '~/__generated__/NotificationTemplate_notification.graphql' import NotificationBody from './NotificationBody' import NotificationMessage from './NotificationMessage' import NotificationRow from './NotificationRow' diff --git a/packages/client/components/NullableTask/NullableTask.tsx b/packages/client/components/NullableTask/NullableTask.tsx index 0057af98e49..bcca9e0e861 100644 --- a/packages/client/components/NullableTask/NullableTask.tsx +++ b/packages/client/components/NullableTask/NullableTask.tsx @@ -3,10 +3,10 @@ import {convertFromRaw} from 'draft-js' import React, {useMemo} from 'react' import {useFragment} from 'react-relay' import {AreaEnum, TaskStatusEnum} from '~/__generated__/UpdateTaskMutation.graphql' +import {NullableTask_task$key} from '../../__generated__/NullableTask_task.graphql' import useAtmosphere from '../../hooks/useAtmosphere' import OutcomeCardContainer from '../../modules/outcomeCard/containers/OutcomeCard/OutcomeCardContainer' import makeEmptyStr from '../../utils/draftjs/makeEmptyStr' -import {NullableTask_task$key} from '../../__generated__/NullableTask_task.graphql' import NullCard from '../NullCard/NullCard' interface Props { diff --git a/packages/client/components/OrgAdminActionMenu.tsx b/packages/client/components/OrgAdminActionMenu.tsx index 19799e08abb..adb94de0977 100644 --- a/packages/client/components/OrgAdminActionMenu.tsx +++ b/packages/client/components/OrgAdminActionMenu.tsx @@ -2,11 +2,11 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import useAtmosphere from '~/hooks/useAtmosphere' -import {MenuProps} from '../hooks/useMenu' -import SetOrgUserRoleMutation from '../mutations/SetOrgUserRoleMutation' -import useMutationProps from '../hooks/useMutationProps' import {OrgAdminActionMenu_organization$key} from '../__generated__/OrgAdminActionMenu_organization.graphql' import {OrgAdminActionMenu_organizationUser$key} from '../__generated__/OrgAdminActionMenu_organizationUser.graphql' +import {MenuProps} from '../hooks/useMenu' +import useMutationProps from '../hooks/useMutationProps' +import SetOrgUserRoleMutation from '../mutations/SetOrgUserRoleMutation' import Menu from './Menu' import MenuItem from './MenuItem' diff --git a/packages/client/components/PalettePicker/PalettePicker.tsx b/packages/client/components/PalettePicker/PalettePicker.tsx index e2e841112b0..41cefa48c8d 100644 --- a/packages/client/components/PalettePicker/PalettePicker.tsx +++ b/packages/client/components/PalettePicker/PalettePicker.tsx @@ -2,9 +2,9 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' -import ReflectTemplatePromptUpdateGroupColorMutation from '~/mutations/ReflectTemplatePromptUpdateGroupColorMutation' import {PalettePicker_prompt$key} from '~/__generated__/PalettePicker_prompt.graphql' import {PalettePicker_prompts$key} from '~/__generated__/PalettePicker_prompts.graphql' +import ReflectTemplatePromptUpdateGroupColorMutation from '~/mutations/ReflectTemplatePromptUpdateGroupColorMutation' import useAtmosphere from '../../hooks/useAtmosphere' import {MenuProps} from '../../hooks/useMenu' import palettePickerOptions from '../../styles/palettePickerOptions' diff --git a/packages/client/components/ParabolScopingSearchFilterMenu.tsx b/packages/client/components/ParabolScopingSearchFilterMenu.tsx index 4750326f46e..1a69f762037 100644 --- a/packages/client/components/ParabolScopingSearchFilterMenu.tsx +++ b/packages/client/components/ParabolScopingSearchFilterMenu.tsx @@ -5,8 +5,8 @@ import {commitLocalUpdate, useFragment} from 'react-relay' import useAtmosphere from '~/hooks/useAtmosphere' import {ParabolSearchQuery} from '~/types/clientSchema' import {taskScopingStatusFilters} from '~/utils/constants' -import {MenuProps} from '../hooks/useMenu' import {ParabolScopingSearchFilterMenu_meeting$key} from '../__generated__/ParabolScopingSearchFilterMenu_meeting.graphql' +import {MenuProps} from '../hooks/useMenu' import Checkbox from './Checkbox' import DropdownMenuLabel from './DropdownMenuLabel' import Menu from './Menu' diff --git a/packages/client/components/ParabolScopingSearchResultItem.tsx b/packages/client/components/ParabolScopingSearchResultItem.tsx index f84e0f58b67..c5e2f5b6858 100644 --- a/packages/client/components/ParabolScopingSearchResultItem.tsx +++ b/packages/client/components/ParabolScopingSearchResultItem.tsx @@ -14,10 +14,10 @@ import UpdateTaskMutation from '~/mutations/UpdateTaskMutation' import {PALETTE} from '~/styles/paletteV3' import convertToTaskContent from '~/utils/draftjs/convertToTaskContent' import isAndroid from '~/utils/draftjs/isAndroid' -import {Threshold} from '../types/constEnums' import {ParabolScopingSearchResultItem_task$key} from '../__generated__/ParabolScopingSearchResultItem_task.graphql' import {UpdatePokerScopeMutation as TUpdatePokerScopeMutation} from '../__generated__/UpdatePokerScopeMutation.graphql' import {AreaEnum} from '../__generated__/UpdateTaskMutation.graphql' +import {Threshold} from '../types/constEnums' import Checkbox from './Checkbox' import TaskEditor from './TaskEditor/TaskEditor' diff --git a/packages/client/components/ParabolScopingSearchResults.tsx b/packages/client/components/ParabolScopingSearchResults.tsx index a767c7b286f..5726c7fa882 100644 --- a/packages/client/components/ParabolScopingSearchResults.tsx +++ b/packages/client/components/ParabolScopingSearchResults.tsx @@ -6,12 +6,12 @@ import useGetUsedServiceTaskIds from '~/hooks/useGetUsedServiceTaskIds' import useMutationProps from '~/hooks/useMutationProps' import CreateTaskMutation from '~/mutations/CreateTaskMutation' import dndNoise from '~/utils/dndNoise' -import useAtmosphere from '../hooks/useAtmosphere' -import useLoadNextOnScrollBottom from '../hooks/useLoadNextOnScrollBottom' import {ParabolScopingSearchResultsPaginationQuery} from '../__generated__/ParabolScopingSearchResultsPaginationQuery.graphql' import {ParabolScopingSearchResultsQuery} from '../__generated__/ParabolScopingSearchResultsQuery.graphql' import {ParabolScopingSearchResults_meeting$key} from '../__generated__/ParabolScopingSearchResults_meeting.graphql' import {ParabolScopingSearchResults_query$key} from '../__generated__/ParabolScopingSearchResults_query.graphql' +import useAtmosphere from '../hooks/useAtmosphere' +import useLoadNextOnScrollBottom from '../hooks/useLoadNextOnScrollBottom' import IntegrationScopingNoResults from './IntegrationScopingNoResults' import NewIntegrationRecordButton from './NewIntegrationRecordButton' import ParabolScopingSearchResultItem from './ParabolScopingSearchResultItem' diff --git a/packages/client/components/ParabolScopingSearchResultsRoot.tsx b/packages/client/components/ParabolScopingSearchResultsRoot.tsx index 56f29ae411d..9f69f579116 100644 --- a/packages/client/components/ParabolScopingSearchResultsRoot.tsx +++ b/packages/client/components/ParabolScopingSearchResultsRoot.tsx @@ -3,12 +3,12 @@ import React, {Suspense} from 'react' import {useFragment} from 'react-relay' import {ParabolSearchQuery} from '~/types/clientSchema' import {taskScopingStatusFilters} from '~/utils/constants' -import useQueryLoaderNow from '../hooks/useQueryLoaderNow' -import MockScopingList from '../modules/meeting/components/MockScopingList' import parabolScopingSearchResultsQuery, { ParabolScopingSearchResultsQuery } from '../__generated__/ParabolScopingSearchResultsQuery.graphql' import {ParabolScopingSearchResultsRoot_meeting$key} from '../__generated__/ParabolScopingSearchResultsRoot_meeting.graphql' +import useQueryLoaderNow from '../hooks/useQueryLoaderNow' +import MockScopingList from '../modules/meeting/components/MockScopingList' import ErrorBoundary from './ErrorBoundary' import ParabolScopingSearchResults from './ParabolScopingSearchResults' diff --git a/packages/client/components/ParabolScopingSelectAllTasks.tsx b/packages/client/components/ParabolScopingSelectAllTasks.tsx index 23406f7e8db..e0b019610af 100644 --- a/packages/client/components/ParabolScopingSelectAllTasks.tsx +++ b/packages/client/components/ParabolScopingSelectAllTasks.tsx @@ -6,9 +6,9 @@ import {useFragment} from 'react-relay' import useMutationProps from '~/hooks/useMutationProps' import useUnusedRecords from '~/hooks/useUnusedRecords' import UpdatePokerScopeMutation from '~/mutations/UpdatePokerScopeMutation' +import {ParabolScopingSelectAllTasks_tasks$key} from '../__generated__/ParabolScopingSelectAllTasks_tasks.graphql' import useAtmosphere from '../hooks/useAtmosphere' import getSelectAllTitle from '../utils/getSelectAllTitle' -import {ParabolScopingSelectAllTasks_tasks$key} from '../__generated__/ParabolScopingSelectAllTasks_tasks.graphql' import Checkbox from './Checkbox' const Item = styled('div')({ diff --git a/packages/client/components/PasswordResetLink.tsx b/packages/client/components/PasswordResetLink.tsx index 09040734765..59a59eb6f9b 100644 --- a/packages/client/components/PasswordResetLink.tsx +++ b/packages/client/components/PasswordResetLink.tsx @@ -3,11 +3,11 @@ import graphql from 'babel-plugin-relay/macro' import React, {useState} from 'react' import {useFragment} from 'react-relay' import passwordIcon from '../../../static/images/icons/password_black_24dp.svg' +import {PasswordResetLink_viewer$key} from '../__generated__/PasswordResetLink_viewer.graphql' import useAtmosphere from '../hooks/useAtmosphere' import useMutationProps from '../hooks/useMutationProps' import EmailPasswordResetMutation from '../mutations/EmailPasswordResetMutation' import {PALETTE} from '../styles/paletteV3' -import {PasswordResetLink_viewer$key} from '../__generated__/PasswordResetLink_viewer.graphql' import StyledError from './StyledError' const Wrapper = styled('div')({ diff --git a/packages/client/components/PaymentRejected.tsx b/packages/client/components/PaymentRejected.tsx index 8c4990c8c5e..f4fc172a364 100644 --- a/packages/client/components/PaymentRejected.tsx +++ b/packages/client/components/PaymentRejected.tsx @@ -2,8 +2,8 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import NotificationAction from '~/components/NotificationAction' -import useRouter from '../hooks/useRouter' import {PaymentRejected_notification$key} from '../__generated__/PaymentRejected_notification.graphql' +import useRouter from '../hooks/useRouter' import NotificationTemplate from './NotificationTemplate' interface Props { diff --git a/packages/client/components/PinnedSnackbarNotifications.tsx b/packages/client/components/PinnedSnackbarNotifications.tsx index 9dbba6bf927..1baeb1ce5ab 100644 --- a/packages/client/components/PinnedSnackbarNotifications.tsx +++ b/packages/client/components/PinnedSnackbarNotifications.tsx @@ -2,15 +2,15 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import {PinnedSnackbarNotifications_query$key} from '~/__generated__/PinnedSnackbarNotifications_query.graphql' +import {NotificationEnum} from '../__generated__/popNotificationToast_notification.graphql' import useAtmosphere from '../hooks/useAtmosphere' import useRouter from '../hooks/useRouter' import SetNotificationStatusMutation from '../mutations/SetNotificationStatusMutation' -import mapTeamsLimitExceededToToast from '../mutations/toasts/mapTeamsLimitExceededToToast' -import mapTeamsLimitReminderToToast from '../mutations/toasts/mapTeamsLimitReminderToToast' import mapPromptToJoinOrgToToast from '../mutations/toasts/mapPromptToJoinOrgToToast' import mapRequestToJoinOrgToToast from '../mutations/toasts/mapRequestToJoinOrgToToast' +import mapTeamsLimitExceededToToast from '../mutations/toasts/mapTeamsLimitExceededToToast' +import mapTeamsLimitReminderToToast from '../mutations/toasts/mapTeamsLimitReminderToToast' import {OnNextHistoryContext} from '../types/relayMutations' -import {NotificationEnum} from '../__generated__/popNotificationToast_notification.graphql' import {Snack} from './Snackbar' interface Props { diff --git a/packages/client/components/PokerCard.tsx b/packages/client/components/PokerCard.tsx index 418eecd46c9..10d1be85bb5 100644 --- a/packages/client/components/PokerCard.tsx +++ b/packages/client/components/PokerCard.tsx @@ -4,11 +4,11 @@ import React, {RefObject, useEffect, useRef} from 'react' import {useFragment} from 'react-relay' import useBreakpoint from '~/hooks/useBreakpoint' import PassSVG from '../../../static/images/icons/no_entry.svg' +import {PokerCard_scaleValue$key} from '../__generated__/PokerCard_scaleValue.graphql' import usePokerZIndexOverride from '../hooks/usePokerZIndexOverride' import logoMarkWhite from '../styles/theme/images/brand/mark-white.svg' import {BezierCurve, Breakpoint, PokerCards} from '../types/constEnums' import getPokerCardBackground from '../utils/getPokerCardBackground' -import {PokerCard_scaleValue$key} from '../__generated__/PokerCard_scaleValue.graphql' const COLLAPSE_DUR = 700 const EXPAND_DUR = 300 diff --git a/packages/client/components/PokerCardDeck.tsx b/packages/client/components/PokerCardDeck.tsx index 3339b284231..41932cae97e 100644 --- a/packages/client/components/PokerCardDeck.tsx +++ b/packages/client/components/PokerCardDeck.tsx @@ -4,6 +4,7 @@ import React, {KeyboardEvent, RefObject, useEffect, useMemo, useRef, useState} f import {useFragment} from 'react-relay' import useMutationProps from '~/hooks/useMutationProps' import usePokerDeckLeftEdge from '~/hooks/usePokerDeckLeftEdge' +import {PokerCardDeck_meeting$key} from '../__generated__/PokerCardDeck_meeting.graphql' import useAtmosphere from '../hooks/useAtmosphere' import useEventCallback from '../hooks/useEventCallback' import useHotkey from '../hooks/useHotkey' @@ -13,7 +14,6 @@ import usePokerCardLocation from '../hooks/usePokerCardLocation' import PokerAnnounceDeckHoverMutation from '../mutations/PokerAnnounceDeckHoverMutation' import VoteForPokerStoryMutation from '../mutations/VoteForPokerStoryMutation' import {BezierCurve, PokerCards} from '../types/constEnums' -import {PokerCardDeck_meeting$key} from '../__generated__/PokerCardDeck_meeting.graphql' import PokerCard from './PokerCard' const Deck = styled('div')<{left: number; isSpectating: boolean}>(({left, isSpectating}) => ({ diff --git a/packages/client/components/PokerDimensionFinalScorePicker.tsx b/packages/client/components/PokerDimensionFinalScorePicker.tsx index 5c52f75995b..ad6e992b948 100644 --- a/packages/client/components/PokerDimensionFinalScorePicker.tsx +++ b/packages/client/components/PokerDimensionFinalScorePicker.tsx @@ -4,8 +4,8 @@ import React, {RefObject} from 'react' import {useFragment} from 'react-relay' import useBreakpoint from '~/hooks/useBreakpoint' import {Breakpoint} from '~/types/constEnums' -import {PALETTE} from '../styles/paletteV3' import {PokerDimensionFinalScorePicker_stage$key} from '../__generated__/PokerDimensionFinalScorePicker_stage.graphql' +import {PALETTE} from '../styles/paletteV3' import AzureDevOpsFieldDimensionDropdown from './AzureDevOpsFieldDimensionDropdown' import GitHubFieldDimensionDropdown from './GitHubFieldDimensionDropdown' import GitLabFieldDimensionDropdown from './GitLabFieldDimensionDropdown' diff --git a/packages/client/components/PokerDimensionValueControl.tsx b/packages/client/components/PokerDimensionValueControl.tsx index 9650c143950..1f62fe52492 100644 --- a/packages/client/components/PokerDimensionValueControl.tsx +++ b/packages/client/components/PokerDimensionValueControl.tsx @@ -5,8 +5,8 @@ import {useFragment} from 'react-relay' import useBreakpoint from '~/hooks/useBreakpoint' import {PALETTE} from '~/styles/paletteV3' import {Breakpoint} from '~/types/constEnums' -import useResizeFontForElement from '../hooks/useResizeFontForElement' import {PokerDimensionValueControl_stage$key} from '../__generated__/PokerDimensionValueControl_stage.graphql' +import useResizeFontForElement from '../hooks/useResizeFontForElement' import LinkButton from './LinkButton' import MiniPokerCard from './MiniPokerCard' import PokerDimensionFinalScorePicker from './PokerDimensionFinalScorePicker' diff --git a/packages/client/components/PokerDiscussVoting.tsx b/packages/client/components/PokerDiscussVoting.tsx index 06f5a86bd4d..148189efbcb 100644 --- a/packages/client/components/PokerDiscussVoting.tsx +++ b/packages/client/components/PokerDiscussVoting.tsx @@ -3,14 +3,14 @@ import graphql from 'babel-plugin-relay/macro' import React, {useEffect, useMemo, useRef, useState} from 'react' import {useFragment} from 'react-relay' import useAtmosphere from '~/hooks/useAtmosphere' -import useForceUpdate from '../hooks/useForceUpdate' -import {PokerCards} from '../types/constEnums' -import isSpecialPokerLabel from '../utils/isSpecialPokerLabel' import {PokerDiscussVoting_meeting$key} from '../__generated__/PokerDiscussVoting_meeting.graphql' import { - PokerDiscussVoting_stage$key, - PokerDiscussVoting_stage$data + PokerDiscussVoting_stage$data, + PokerDiscussVoting_stage$key } from '../__generated__/PokerDiscussVoting_stage.graphql' +import useForceUpdate from '../hooks/useForceUpdate' +import {PokerCards} from '../types/constEnums' +import isSpecialPokerLabel from '../utils/isSpecialPokerLabel' import PokerDimensionValueControl from './PokerDimensionValueControl' import PokerVotingRow from './PokerVotingRow' import useSetTaskEstimate from './useSetTaskEstimate' diff --git a/packages/client/components/PokerEstimateHeaderCardParabol.tsx b/packages/client/components/PokerEstimateHeaderCardParabol.tsx index cc55ca2abff..e0b54b7d65d 100644 --- a/packages/client/components/PokerEstimateHeaderCardParabol.tsx +++ b/packages/client/components/PokerEstimateHeaderCardParabol.tsx @@ -10,10 +10,10 @@ import {Elevation} from '~/styles/elevation' import {PALETTE} from '~/styles/paletteV3' import {Breakpoint} from '~/types/constEnums' import isAndroid from '~/utils/draftjs/isAndroid' +import {PokerEstimateHeaderCardParabol_task$key} from '../__generated__/PokerEstimateHeaderCardParabol_task.graphql' import useAtmosphere from '../hooks/useAtmosphere' import UpdateTaskMutation from '../mutations/UpdateTaskMutation' import convertToTaskContent from '../utils/draftjs/convertToTaskContent' -import {PokerEstimateHeaderCardParabol_task$key} from '../__generated__/PokerEstimateHeaderCardParabol_task.graphql' import CardButton from './CardButton' import IconLabel from './IconLabel' import TaskEditor from './TaskEditor/TaskEditor' diff --git a/packages/client/components/PokerEstimatePhase.tsx b/packages/client/components/PokerEstimatePhase.tsx index 8622217b040..a4008ca422c 100644 --- a/packages/client/components/PokerEstimatePhase.tsx +++ b/packages/client/components/PokerEstimatePhase.tsx @@ -6,8 +6,8 @@ import useBreakpoint from '~/hooks/useBreakpoint' import useGotoStageId from '~/hooks/useGotoStageId' import useRightDrawer from '~/hooks/useRightDrawer' import {Breakpoint, DiscussionThreadEnum} from '~/types/constEnums' -import {phaseLabelLookup} from '../utils/meetings/lookups' import {PokerEstimatePhase_meeting$key} from '../__generated__/PokerEstimatePhase_meeting.graphql' +import {phaseLabelLookup} from '../utils/meetings/lookups' import ErrorBoundary from './ErrorBoundary' import EstimatePhaseArea from './EstimatePhaseArea' import EstimatePhaseDiscussionDrawer from './EstimatePhaseDiscussionDrawer' diff --git a/packages/client/components/PokerMeetingSidebar.tsx b/packages/client/components/PokerMeetingSidebar.tsx index 59fc535522b..53e9cb6cfd7 100644 --- a/packages/client/components/PokerMeetingSidebar.tsx +++ b/packages/client/components/PokerMeetingSidebar.tsx @@ -1,11 +1,11 @@ import graphql from 'babel-plugin-relay/macro' import React, {Fragment} from 'react' import {useFragment} from 'react-relay' -import useRouter from '~/hooks/useRouter' import { NewMeetingPhaseTypeEnum, PokerMeetingSidebar_meeting$key } from '~/__generated__/PokerMeetingSidebar_meeting.graphql' +import useRouter from '~/hooks/useRouter' import useAtmosphere from '../hooks/useAtmosphere' import useGotoStageId from '../hooks/useGotoStageId' import getSidebarItemStage from '../utils/getSidebarItemStage' diff --git a/packages/client/components/PokerSidebarEstimateSection.tsx b/packages/client/components/PokerSidebarEstimateSection.tsx index 4bfd8080409..235267fa14c 100644 --- a/packages/client/components/PokerSidebarEstimateSection.tsx +++ b/packages/client/components/PokerSidebarEstimateSection.tsx @@ -3,8 +3,8 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {DragDropContext, Draggable, Droppable, DropResult} from 'react-beautiful-dnd' import {useFragment} from 'react-relay' -import useGotoStageId from '~/hooks/useGotoStageId' import {PokerSidebarEstimateSection_meeting$key} from '~/__generated__/PokerSidebarEstimateSection_meeting.graphql' +import useGotoStageId from '~/hooks/useGotoStageId' import useAtmosphere from '../hooks/useAtmosphere' import useMakeStageSummaries from '../hooks/useMakeStageSummaries' import DragEstimatingTaskMutation from '../mutations/DragEstimatingTaskMutation' diff --git a/packages/client/components/PokerSidebarPhaseListItemChildren.tsx b/packages/client/components/PokerSidebarPhaseListItemChildren.tsx index ba8da6bdef1..d40750e3f5e 100644 --- a/packages/client/components/PokerSidebarPhaseListItemChildren.tsx +++ b/packages/client/components/PokerSidebarPhaseListItemChildren.tsx @@ -1,11 +1,11 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' -import useGotoStageId from '~/hooks/useGotoStageId' import { NewMeetingPhaseTypeEnum, PokerSidebarPhaseListItemChildren_meeting$key } from '~/__generated__/PokerSidebarPhaseListItemChildren_meeting.graphql' +import useGotoStageId from '~/hooks/useGotoStageId' import MeetingSidebarTeamMemberStageItems from './MeetingSidebarTeamMemberStageItems' import PokerSidebarEstimateSection from './PokerSidebarEstimateSection' diff --git a/packages/client/components/PokerVotingRow.tsx b/packages/client/components/PokerVotingRow.tsx index 3e5f8690fd3..0256935ca6e 100644 --- a/packages/client/components/PokerVotingRow.tsx +++ b/packages/client/components/PokerVotingRow.tsx @@ -2,10 +2,10 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' -import {PALETTE} from '../styles/paletteV3' -import {PokerCards} from '../types/constEnums' import {PokerVotingRow_scaleValue$key} from '../__generated__/PokerVotingRow_scaleValue.graphql' import {PokerVotingRow_scores$key} from '../__generated__/PokerVotingRow_scores.graphql' +import {PALETTE} from '../styles/paletteV3' +import {PokerCards} from '../types/constEnums' import AvatarList from './AvatarList' import MiniPokerCard from './MiniPokerCard' import PokerVotingNoVotes from './PokerVotingNoVotes' diff --git a/packages/client/components/Poll/EditablePollOption.tsx b/packages/client/components/Poll/EditablePollOption.tsx index 4aa7bda76d6..d5cbb5df84e 100644 --- a/packages/client/components/Poll/EditablePollOption.tsx +++ b/packages/client/components/Poll/EditablePollOption.tsx @@ -2,10 +2,10 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {EditablePollOption_option$key} from '../../__generated__/EditablePollOption_option.graphql' import useAtmosphere from '../../hooks/useAtmosphere' import {PALETTE} from '../../styles/paletteV3' import {Polls, PollsAriaLabels} from '../../types/constEnums' -import {EditablePollOption_option$key} from '../../__generated__/EditablePollOption_option.graphql' import {updateLocalPollOption} from './local/newPoll' const PollOptionInputRoot = styled('div')({ diff --git a/packages/client/components/Poll/EditablePollTitle.tsx b/packages/client/components/Poll/EditablePollTitle.tsx index 2c7754c10ff..9516e4c3256 100644 --- a/packages/client/components/Poll/EditablePollTitle.tsx +++ b/packages/client/components/Poll/EditablePollTitle.tsx @@ -4,8 +4,8 @@ import React from 'react' import {useFragment} from 'react-relay' import {PALETTE} from '~/styles/paletteV3' import {Polls, PollsAriaLabels} from '~/types/constEnums' -import useAtmosphere from '../../hooks/useAtmosphere' import {EditablePollTitle_poll$key} from '../../__generated__/EditablePollTitle_poll.graphql' +import useAtmosphere from '../../hooks/useAtmosphere' import {updateLocalPoll} from './local/newPoll' const PollTitleInput = styled('input')({ diff --git a/packages/client/components/Poll/Poll.tsx b/packages/client/components/Poll/Poll.tsx index 8a10e86279a..a012fc0f765 100644 --- a/packages/client/components/Poll/Poll.tsx +++ b/packages/client/components/Poll/Poll.tsx @@ -2,10 +2,10 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {Poll_poll$key} from '~/__generated__/Poll_poll.graphql' import {cardShadow, Elevation} from '~/styles/elevation' import cardRootStyles from '~/styles/helpers/cardRootStyles' import {PALETTE} from '~/styles/paletteV3' -import {Poll_poll$key} from '~/__generated__/Poll_poll.graphql' import ThreadedAvatarColumn from '../ThreadedAvatarColumn' import ThreadedItemHeaderDescription from '../ThreadedItemHeaderDescription' import ThreadedItemWrapper from '../ThreadedItemWrapper' diff --git a/packages/client/components/PrivateRoutes.tsx b/packages/client/components/PrivateRoutes.tsx index 5c5e81a8a97..178742810e2 100644 --- a/packages/client/components/PrivateRoutes.tsx +++ b/packages/client/components/PrivateRoutes.tsx @@ -1,5 +1,5 @@ -import React, {lazy} from 'react' import {Location} from 'history' +import React, {lazy} from 'react' import {Redirect, Route, Switch, useLocation} from 'react-router' import useAuthRoute from '../hooks/useAuthRoute' import useNoIndex from '../hooks/useNoIndex' diff --git a/packages/client/components/PromoteToBillingLeader.tsx b/packages/client/components/PromoteToBillingLeader.tsx index f01871395ac..76844479944 100644 --- a/packages/client/components/PromoteToBillingLeader.tsx +++ b/packages/client/components/PromoteToBillingLeader.tsx @@ -1,9 +1,9 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {PromoteToBillingLeader_notification$key} from '~/__generated__/PromoteToBillingLeader_notification.graphql' import useRouter from '~/hooks/useRouter' import defaultOrgAvatar from '~/styles/theme/images/avatar-organization.svg' -import {PromoteToBillingLeader_notification$key} from '~/__generated__/PromoteToBillingLeader_notification.graphql' import NotificationAction from './NotificationAction' import NotificationTemplate from './NotificationTemplate' interface Props { diff --git a/packages/client/components/PromptToJoinOrgNotification.tsx b/packages/client/components/PromptToJoinOrgNotification.tsx index bb10eec1650..71e989f0980 100644 --- a/packages/client/components/PromptToJoinOrgNotification.tsx +++ b/packages/client/components/PromptToJoinOrgNotification.tsx @@ -2,11 +2,11 @@ import graphql from 'babel-plugin-relay/macro' import React, {useEffect} from 'react' import {useFragment} from 'react-relay' import {PromptToJoinOrgNotification_notification$key} from '~/__generated__/PromptToJoinOrgNotification_notification.graphql' -import NotificationAction from './NotificationAction' -import NotificationTemplate from './NotificationTemplate' import useAtmosphere from '../hooks/useAtmosphere' -import SendClientSideEvent from '../utils/SendClientSideEvent' import RequestToJoinDomainMutation from '../mutations/RequestToJoinDomainMutation' +import SendClientSideEvent from '../utils/SendClientSideEvent' +import NotificationAction from './NotificationAction' +import NotificationTemplate from './NotificationTemplate' interface Props { notification: PromptToJoinOrgNotification_notification$key diff --git a/packages/client/components/Recurrence/EndRecurringMeetingModal.tsx b/packages/client/components/Recurrence/EndRecurringMeetingModal.tsx index 161709a6de8..49c409083d9 100644 --- a/packages/client/components/Recurrence/EndRecurringMeetingModal.tsx +++ b/packages/client/components/Recurrence/EndRecurringMeetingModal.tsx @@ -1,8 +1,10 @@ +import graphql from 'babel-plugin-relay/macro' import clsx from 'clsx' import React, {useMemo, useState} from 'react' import {useFragment} from 'react-relay' -import graphql from 'babel-plugin-relay/macro' import {RRule} from 'rrule' +import {EndRecurringMeetingModal_meeting$key} from '../../__generated__/EndRecurringMeetingModal_meeting.graphql' +import {MeetingTypeEnum} from '../../__generated__/MeetingSelectorQuery.graphql' import useAtmosphere from '../../hooks/useAtmosphere' import useMutationProps from '../../hooks/useMutationProps' import useRouter from '../../hooks/useRouter' @@ -11,14 +13,12 @@ import EndRetrospectiveMutation from '../../mutations/EndRetrospectiveMutation' import EndSprintPokerMutation from '../../mutations/EndSprintPokerMutation' import EndTeamPromptMutation from '../../mutations/EndTeamPromptMutation' import UpdateRecurrenceSettingsMutation from '../../mutations/UpdateRecurrenceSettingsMutation' -import {EndRecurringMeetingModal_meeting$key} from '../../__generated__/EndRecurringMeetingModal_meeting.graphql' import { CompletedHandler, HistoryMaybeLocalHandler, StandardMutation } from '../../types/relayMutations' import {humanReadableCountdown} from '../../utils/date/relativeDate' -import {MeetingTypeEnum} from '../../__generated__/MeetingSelectorQuery.graphql' import DialogContainer from '../DialogContainer' export const EndMeetingMutationLookup = { diff --git a/packages/client/components/Recurrence/RecurrenceSettings.tsx b/packages/client/components/Recurrence/RecurrenceSettings.tsx index 8015c6a7772..a1e039e913a 100644 --- a/packages/client/components/Recurrence/RecurrenceSettings.tsx +++ b/packages/client/components/Recurrence/RecurrenceSettings.tsx @@ -5,12 +5,12 @@ import React, {PropsWithChildren, useEffect} from 'react' import {Frequency, RRule} from 'rrule' import {MenuPosition} from '../../hooks/useCoords' import useMenu from '../../hooks/useMenu' +import {getJSDateFromRRuleDate, getRRuleDateFromJSDate} from '../../shared/rruleUtil' import plural from '../../utils/plural' import DropdownMenuToggle from '../DropdownMenuToggle' import {toHumanReadable} from './HumanReadableRecurrenceRule' import {Day, RecurrenceDayCheckbox} from './RecurrenceDayCheckbox' import {RecurrenceTimePicker} from './RecurrenceTimePicker' -import {getJSDateFromRRuleDate, getRRuleDateFromJSDate} from '../../shared/rruleUtil' dayjs.extend(utcPlugin) export const ALL_DAYS: Day[] = [ diff --git a/packages/client/components/Recurrence/UpdateRecurrenceSettingsModal.tsx b/packages/client/components/Recurrence/UpdateRecurrenceSettingsModal.tsx index 355d4137c9b..da69cf7f869 100644 --- a/packages/client/components/Recurrence/UpdateRecurrenceSettingsModal.tsx +++ b/packages/client/components/Recurrence/UpdateRecurrenceSettingsModal.tsx @@ -4,15 +4,15 @@ import graphql from 'babel-plugin-relay/macro' import React, {ChangeEvent, useMemo, useState} from 'react' import {useFragment} from 'react-relay' import {RRule} from 'rrule' -import UpdateRecurrenceSettingsMutation from '~/mutations/UpdateRecurrenceSettingsMutation' import {UpdateRecurrenceSettingsModal_meeting$key} from '~/__generated__/UpdateRecurrenceSettingsModal_meeting.graphql' +import UpdateRecurrenceSettingsMutation from '~/mutations/UpdateRecurrenceSettingsMutation' +import {UpdateRecurrenceSettingsMutation as TUpdateRecurrenceSettingsMutation} from '../../__generated__/UpdateRecurrenceSettingsMutation.graphql' import useAtmosphere from '../../hooks/useAtmosphere' import useForm from '../../hooks/useForm' import useMutationProps, {getOnCompletedError} from '../../hooks/useMutationProps' import {PALETTE} from '../../styles/paletteV3' import {CompletedHandler} from '../../types/relayMutations' import Legitity from '../../validation/Legitity' -import {UpdateRecurrenceSettingsMutation as TUpdateRecurrenceSettingsMutation} from '../../__generated__/UpdateRecurrenceSettingsMutation.graphql' import DialogContainer from '../DialogContainer' import PlainButton from '../PlainButton/PlainButton' import StyledError from '../StyledError' diff --git a/packages/client/components/ReflectionCard/ColorBadge.tsx b/packages/client/components/ReflectionCard/ColorBadge.tsx index 23afa905efe..b759a3430b8 100644 --- a/packages/client/components/ReflectionCard/ColorBadge.tsx +++ b/packages/client/components/ReflectionCard/ColorBadge.tsx @@ -2,10 +2,10 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' -import {MenuPosition} from '~/hooks/useCoords' -import useTooltip from '~/hooks/useTooltip' import {NewMeetingPhaseTypeEnum} from '~/__generated__/ActionMeeting_meeting.graphql' import {ColorBadge_reflection$key} from '~/__generated__/ColorBadge_reflection.graphql' +import {MenuPosition} from '~/hooks/useCoords' +import useTooltip from '~/hooks/useTooltip' const DROP_SIZE = 32 const DROP_SIZE_HALF = DROP_SIZE / 2 diff --git a/packages/client/components/ReflectionCard/ReactjiCount.tsx b/packages/client/components/ReflectionCard/ReactjiCount.tsx index dce9f4210e6..65f5c7f30de 100644 --- a/packages/client/components/ReflectionCard/ReactjiCount.tsx +++ b/packages/client/components/ReflectionCard/ReactjiCount.tsx @@ -2,16 +2,16 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {ReactjiCount_reactji$key} from '~/__generated__/ReactjiCount_reactji.graphql' import PlainButton from '~/components/PlainButton/PlainButton' import {TransitionStatus} from '~/hooks/useTransition' import {PALETTE} from '~/styles/paletteV3' import {BezierCurve, Times} from '~/types/constEnums' -import {ReactjiCount_reactji$key} from '~/__generated__/ReactjiCount_reactji.graphql' import {MenuPosition} from '../../hooks/useCoords' import useTooltip from '../../hooks/useTooltip' import ReactjiId from '../../shared/gqlIds/ReactjiId' -import EmojiUsersReaction from './EmojiUsersReaction' import getReactji from '../../utils/getReactji' +import EmojiUsersReaction from './EmojiUsersReaction' const Parent = styled('div')<{status: TransitionStatus}>(({status}) => ({ height: status === TransitionStatus.MOUNTED || status === TransitionStatus.EXITING ? 0 : 24, diff --git a/packages/client/components/ReflectionCard/ReactjiSection.tsx b/packages/client/components/ReflectionCard/ReactjiSection.tsx index 9c495f4661b..c3fee9144ed 100644 --- a/packages/client/components/ReflectionCard/ReactjiSection.tsx +++ b/packages/client/components/ReflectionCard/ReactjiSection.tsx @@ -2,10 +2,10 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {ReactjiSection_reactjis$key} from '~/__generated__/ReactjiSection_reactjis.graphql' import useInitialRender from '~/hooks/useInitialRender' import useTransition, {TransitionStatus} from '~/hooks/useTransition' import {Threshold} from '~/types/constEnums' -import {ReactjiSection_reactjis$key} from '~/__generated__/ReactjiSection_reactjis.graphql' import AddReactjiButton from './AddReactjiButton' import ReactjiCount from './ReactjiCount' diff --git a/packages/client/components/ReflectionCard/ReflectionCard.tsx b/packages/client/components/ReflectionCard/ReflectionCard.tsx index b23f03e0b97..402aa5722a1 100644 --- a/packages/client/components/ReflectionCard/ReflectionCard.tsx +++ b/packages/client/components/ReflectionCard/ReflectionCard.tsx @@ -3,12 +3,13 @@ import graphql from 'babel-plugin-relay/macro' import {convertToRaw, EditorProps} from 'draft-js' import React, {MouseEvent, useEffect, useRef, useState} from 'react' import {commitLocalUpdate, useFragment} from 'react-relay' -import AddReactjiToReactableMutation from '~/mutations/AddReactjiToReactableMutation' -import isDemoRoute from '~/utils/isDemoRoute' import { NewMeetingPhaseTypeEnum, ReflectionCard_meeting$key } from '~/__generated__/ReflectionCard_meeting.graphql' +import AddReactjiToReactableMutation from '~/mutations/AddReactjiToReactableMutation' +import isDemoRoute from '~/utils/isDemoRoute' +import {ReflectionCard_reflection$key} from '../../__generated__/ReflectionCard_reflection.graphql' import useAtmosphere from '../../hooks/useAtmosphere' import useBreakpoint from '../../hooks/useBreakpoint' import {MenuPosition} from '../../hooks/useCoords' @@ -25,7 +26,6 @@ import isAndroid from '../../utils/draftjs/isAndroid' import remountDecorators from '../../utils/draftjs/remountDecorators' import isPhaseComplete from '../../utils/meetings/isPhaseComplete' import isTempId from '../../utils/relay/isTempId' -import {ReflectionCard_reflection$key} from '../../__generated__/ReflectionCard_reflection.graphql' import CardButton from '../CardButton' import {OpenSpotlight} from '../GroupingKanbanColumn' import IconLabel from '../IconLabel' diff --git a/packages/client/components/ReflectionEditorWrapper.tsx b/packages/client/components/ReflectionEditorWrapper.tsx index 9da0ca6ab78..73436c33cd1 100644 --- a/packages/client/components/ReflectionEditorWrapper.tsx +++ b/packages/client/components/ReflectionEditorWrapper.tsx @@ -9,7 +9,8 @@ import { getDefaultKeyBinding } from 'draft-js' import React, {RefObject, Suspense, useEffect, useRef} from 'react' -import {Card, Gutters, ElementHeight} from '../types/constEnums' +import {PALETTE} from '~/styles/paletteV3' +import {Card, ElementHeight, Gutters} from '../types/constEnums' import {textTags} from '../utils/constants' import completeEntity from '../utils/draftjs/completeEntity' import entitizeText from '../utils/draftjs/entitizeText' @@ -19,7 +20,6 @@ import lazyPreload from '../utils/lazyPreload' import linkify from '../utils/linkify' import './TaskEditor/Draft.css' import useCommentPlugins from './TaskEditor/useCommentPlugins' -import {PALETTE} from '~/styles/paletteV3' const EditorStyles = styled('div')(({useFallback, userSelect, isClipped}: any) => ({ color: PALETTE.SLATE_700, diff --git a/packages/client/components/ReflectionGroup/DraggableReflectionCard.tsx b/packages/client/components/ReflectionGroup/DraggableReflectionCard.tsx index d1614b511d2..22b51205077 100644 --- a/packages/client/components/ReflectionGroup/DraggableReflectionCard.tsx +++ b/packages/client/components/ReflectionGroup/DraggableReflectionCard.tsx @@ -3,10 +3,10 @@ import graphql from 'babel-plugin-relay/macro' import React, {useMemo, useState} from 'react' import {useFragment} from 'react-relay' import useSpotlightResults from '~/hooks/useSpotlightResults' -import useDraggableReflectionCard from '../../hooks/useDraggableReflectionCard' import {DraggableReflectionCard_meeting$key} from '../../__generated__/DraggableReflectionCard_meeting.graphql' import {DraggableReflectionCard_reflection$key} from '../../__generated__/DraggableReflectionCard_reflection.graphql' import {DraggableReflectionCard_staticReflections$key} from '../../__generated__/DraggableReflectionCard_staticReflections.graphql' +import useDraggableReflectionCard from '../../hooks/useDraggableReflectionCard' import {SwipeColumn} from '../GroupingKanban' import {OpenSpotlight} from '../GroupingKanbanColumn' import ReflectionCard from '../ReflectionCard/ReflectionCard' diff --git a/packages/client/components/ReflectionGroup/ReflectionGroup.tsx b/packages/client/components/ReflectionGroup/ReflectionGroup.tsx index c7ab9183126..ffb5efa3419 100644 --- a/packages/client/components/ReflectionGroup/ReflectionGroup.tsx +++ b/packages/client/components/ReflectionGroup/ReflectionGroup.tsx @@ -2,6 +2,8 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React, {RefObject, useEffect, useMemo, useRef, useState} from 'react' import {commitLocalUpdate, useFragment} from 'react-relay' +import {ReflectionGroup_meeting$key} from '../../__generated__/ReflectionGroup_meeting.graphql' +import {ReflectionGroup_reflectionGroup$key} from '../../__generated__/ReflectionGroup_reflectionGroup.graphql' import useAtmosphere from '../../hooks/useAtmosphere' import useEventCallback from '../../hooks/useEventCallback' import useExpandedReflections from '../../hooks/useExpandedReflections' @@ -12,8 +14,6 @@ import { Times } from '../../types/constEnums' import {GROUP} from '../../utils/constants' -import {ReflectionGroup_meeting$key} from '../../__generated__/ReflectionGroup_meeting.graphql' -import {ReflectionGroup_reflectionGroup$key} from '../../__generated__/ReflectionGroup_reflectionGroup.graphql' import {SwipeColumn} from '../GroupingKanban' import {OpenSpotlight} from '../GroupingKanbanColumn' import ReflectionGroupHeader from '../ReflectionGroupHeader' diff --git a/packages/client/components/ReflectionGroup/ReflectionGroupTitleEditor.tsx b/packages/client/components/ReflectionGroup/ReflectionGroupTitleEditor.tsx index 64ec7fd9e09..c02a5677c69 100644 --- a/packages/client/components/ReflectionGroup/ReflectionGroupTitleEditor.tsx +++ b/packages/client/components/ReflectionGroup/ReflectionGroupTitleEditor.tsx @@ -2,6 +2,8 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React, {RefObject, useRef} from 'react' import {commitLocalUpdate, useFragment} from 'react-relay' +import {ReflectionGroupTitleEditor_meeting$key} from '../../__generated__/ReflectionGroupTitleEditor_meeting.graphql' +import {ReflectionGroupTitleEditor_reflectionGroup$key} from '../../__generated__/ReflectionGroupTitleEditor_reflectionGroup.graphql' import useAtmosphere from '../../hooks/useAtmosphere' import useMutationProps from '../../hooks/useMutationProps' import UpdateReflectionGroupTitleMutation from '../../mutations/UpdateReflectionGroupTitleMutation' @@ -9,8 +11,6 @@ import {PALETTE} from '../../styles/paletteV3' import ui from '../../styles/ui' import {Card} from '../../types/constEnums' import {RETRO_TOPIC_LABEL} from '../../utils/constants' -import {ReflectionGroupTitleEditor_meeting$key} from '../../__generated__/ReflectionGroupTitleEditor_meeting.graphql' -import {ReflectionGroupTitleEditor_reflectionGroup$key} from '../../__generated__/ReflectionGroupTitleEditor_reflectionGroup.graphql' import StyledError from '../StyledError' interface Props { diff --git a/packages/client/components/ReflectionGroup/RemoteReflection.tsx b/packages/client/components/ReflectionGroup/RemoteReflection.tsx index 522533d3f7d..02c05d48ade 100644 --- a/packages/client/components/ReflectionGroup/RemoteReflection.tsx +++ b/packages/client/components/ReflectionGroup/RemoteReflection.tsx @@ -4,6 +4,11 @@ import graphql from 'babel-plugin-relay/macro' import React, {RefObject, useEffect, useMemo, useRef} from 'react' import {commitLocalUpdate, useFragment} from 'react-relay' import useSpotlightResults from '~/hooks/useSpotlightResults' +import {RemoteReflection_meeting$key} from '../../__generated__/RemoteReflection_meeting.graphql' +import { + RemoteReflection_reflection$data, + RemoteReflection_reflection$key +} from '../../__generated__/RemoteReflection_reflection.graphql' import useAtmosphere from '../../hooks/useAtmosphere' import useEditorState from '../../hooks/useEditorState' import {Elevation} from '../../styles/elevation' @@ -11,11 +16,6 @@ import {BezierCurve, DragAttribute, ElementWidth, Times, ZIndex} from '../../typ import {DeepNonNullable} from '../../types/generics' import {VOTE} from '../../utils/constants' import {getMinTop} from '../../utils/retroGroup/updateClonePosition' -import {RemoteReflection_meeting$key} from '../../__generated__/RemoteReflection_meeting.graphql' -import { - RemoteReflection_reflection$key, - RemoteReflection_reflection$data -} from '../../__generated__/RemoteReflection_reflection.graphql' import ReflectionCardAuthor from '../ReflectionCard/ReflectionCardAuthor' import ReflectionCardRoot from '../ReflectionCard/ReflectionCardRoot' import ReflectionEditorWrapper from '../ReflectionEditorWrapper' diff --git a/packages/client/components/ReflectionGroup/useSpotlightReflectionGroup.ts b/packages/client/components/ReflectionGroup/useSpotlightReflectionGroup.ts index c4c91b4efba..dbdfcd9511e 100644 --- a/packages/client/components/ReflectionGroup/useSpotlightReflectionGroup.ts +++ b/packages/client/components/ReflectionGroup/useSpotlightReflectionGroup.ts @@ -1,7 +1,7 @@ import {useMemo} from 'react' -import useSpotlightResults from '~/hooks/useSpotlightResults' import {ReflectionGroup_meeting$data} from '~/__generated__/ReflectionGroup_meeting.graphql' import {ReflectionGroup_reflectionGroup$data} from '~/__generated__/ReflectionGroup_reflectionGroup.graphql' +import useSpotlightResults from '~/hooks/useSpotlightResults' import useSpotlightVisibleReflections from './useSpotlightVisibleReflections' const useSpotlightReflectionGroup = ( diff --git a/packages/client/components/ReflectionGroupHeader.tsx b/packages/client/components/ReflectionGroupHeader.tsx index 85848189b46..9e79985b3e2 100644 --- a/packages/client/components/ReflectionGroupHeader.tsx +++ b/packages/client/components/ReflectionGroupHeader.tsx @@ -3,13 +3,13 @@ import {Edit} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React, {forwardRef, Ref, RefObject} from 'react' import {useFragment} from 'react-relay' +import {ReflectionGroupHeader_meeting$key} from '../__generated__/ReflectionGroupHeader_meeting.graphql' +import {ReflectionGroupHeader_reflectionGroup$key} from '../__generated__/ReflectionGroupHeader_reflectionGroup.graphql' import {PortalStatus} from '../hooks/usePortal' import {PALETTE} from '../styles/paletteV3' import {ElementWidth, Gutters} from '../types/constEnums' import {GROUP, VOTE} from '../utils/constants' import plural from '../utils/plural' -import {ReflectionGroupHeader_meeting$key} from '../__generated__/ReflectionGroupHeader_meeting.graphql' -import {ReflectionGroupHeader_reflectionGroup$key} from '../__generated__/ReflectionGroupHeader_reflectionGroup.graphql' import ReflectionGroupTitleEditor from './ReflectionGroup/ReflectionGroupTitleEditor' import ReflectionGroupVoting from './ReflectionGroupVoting' import BaseTag from './Tag/BaseTag' diff --git a/packages/client/components/ReflectionGroupVoting.tsx b/packages/client/components/ReflectionGroupVoting.tsx index 0797172425e..78b4c0b9cad 100644 --- a/packages/client/components/ReflectionGroupVoting.tsx +++ b/packages/client/components/ReflectionGroupVoting.tsx @@ -6,14 +6,14 @@ import {useFragment} from 'react-relay' import useAtmosphere from '~/hooks/useAtmosphere' import useMutationProps from '~/hooks/useMutationProps' import Atmosphere from '../Atmosphere' +import {ReflectionGroupVoting_meeting$key} from '../__generated__/ReflectionGroupVoting_meeting.graphql' +import {ReflectionGroupVoting_reflectionGroup$key} from '../__generated__/ReflectionGroupVoting_reflectionGroup.graphql' import VoteForReflectionGroupMutation from '../mutations/VoteForReflectionGroupMutation' import {PALETTE} from '../styles/paletteV3' import {CompletedHandler} from '../types/relayMutations' import getGraphQLError from '../utils/relay/getGraphQLError' import isTempId from '../utils/relay/isTempId' import withMutationProps, {WithMutationProps} from '../utils/relay/withMutationProps' -import {ReflectionGroupVoting_meeting$key} from '../__generated__/ReflectionGroupVoting_meeting.graphql' -import {ReflectionGroupVoting_reflectionGroup$key} from '../__generated__/ReflectionGroupVoting_reflectionGroup.graphql' import FlatButton from './FlatButton' interface Props extends WithMutationProps { diff --git a/packages/client/components/RequestToJoinOrgNotification.tsx b/packages/client/components/RequestToJoinOrgNotification.tsx index a2328c8c604..f48163a99ff 100644 --- a/packages/client/components/RequestToJoinOrgNotification.tsx +++ b/packages/client/components/RequestToJoinOrgNotification.tsx @@ -1,11 +1,11 @@ import graphql from 'babel-plugin-relay/macro' -import {useLocation} from 'react-router' import React from 'react' import {useFragment} from 'react-relay' +import {useLocation} from 'react-router' import {RequestToJoinOrgNotification_notification$key} from '~/__generated__/RequestToJoinOrgNotification_notification.graphql' +import useRouter from '../hooks/useRouter' import NotificationAction from './NotificationAction' import NotificationTemplate from './NotificationTemplate' -import useRouter from '../hooks/useRouter' interface Props { notification: RequestToJoinOrgNotification_notification$key diff --git a/packages/client/components/ResponseMentioned.tsx b/packages/client/components/ResponseMentioned.tsx index e948edc9388..57a42589138 100644 --- a/packages/client/components/ResponseMentioned.tsx +++ b/packages/client/components/ResponseMentioned.tsx @@ -2,11 +2,11 @@ import graphql from 'babel-plugin-relay/macro' import React, {useEffect} from 'react' import {useFragment} from 'react-relay' import NotificationAction from '~/components/NotificationAction' -import useRouter from '../hooks/useRouter' +import useAtmosphere from '~/hooks/useAtmosphere' import {ResponseMentioned_notification$key} from '../__generated__/ResponseMentioned_notification.graphql' -import NotificationTemplate from './NotificationTemplate' +import useRouter from '../hooks/useRouter' import SendClientSideEvent from '../utils/SendClientSideEvent' -import useAtmosphere from '~/hooks/useAtmosphere' +import NotificationTemplate from './NotificationTemplate' interface Props { notification: ResponseMentioned_notification$key diff --git a/packages/client/components/ResponseReplied.tsx b/packages/client/components/ResponseReplied.tsx index 9c36ebd249e..3f84dbfa717 100644 --- a/packages/client/components/ResponseReplied.tsx +++ b/packages/client/components/ResponseReplied.tsx @@ -4,12 +4,12 @@ import {Editor} from 'draft-js' import React from 'react' import {useFragment} from 'react-relay' import NotificationAction from '~/components/NotificationAction' +import {ResponseReplied_notification$key} from '../__generated__/ResponseReplied_notification.graphql' import useEditorState from '../hooks/useEditorState' import useRouter from '../hooks/useRouter' import {cardShadow} from '../styles/elevation' -import {ResponseReplied_notification$key} from '../__generated__/ResponseReplied_notification.graphql' -import NotificationTemplate from './NotificationTemplate' import anonymousAvatar from '../styles/theme/images/anonymous-avatar.svg' +import NotificationTemplate from './NotificationTemplate' const EditorWrapper = styled('div')({ backgroundColor: '#fff', diff --git a/packages/client/components/RetroDiscussPhase.tsx b/packages/client/components/RetroDiscussPhase.tsx index b765f19874f..36cb0a6cd65 100644 --- a/packages/client/components/RetroDiscussPhase.tsx +++ b/packages/client/components/RetroDiscussPhase.tsx @@ -4,20 +4,20 @@ import * as Sentry from '@sentry/browser' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {RetroDiscussPhase_meeting$key} from '~/__generated__/RetroDiscussPhase_meeting.graphql' import useBreakpoint from '~/hooks/useBreakpoint' import useCallbackRef from '~/hooks/useCallbackRef' -import {RetroDiscussPhase_meeting$key} from '~/__generated__/RetroDiscussPhase_meeting.graphql' import EditorHelpModalContainer from '../containers/EditorHelpModalContainer/EditorHelpModalContainer' import {PALETTE} from '../styles/paletteV3' import {Breakpoint} from '../types/constEnums' import {phaseLabelLookup} from '../utils/meetings/lookups' import plural from '../utils/plural' +import DiscussPhaseReflectionGrid from './DiscussPhaseReflectionGrid' +import DiscussPhaseSqueeze from './DiscussPhaseSqueeze' import {DiscussionThreadables} from './DiscussionThreadList' import DiscussionThreadListEmptyState from './DiscussionThreadListEmptyState' import DiscussionThreadListEmptyTranscriptState from './DiscussionThreadListEmptyTranscriptState' import DiscussionThreadRoot from './DiscussionThreadRoot' -import DiscussPhaseReflectionGrid from './DiscussPhaseReflectionGrid' -import DiscussPhaseSqueeze from './DiscussPhaseSqueeze' import LabelHeading from './LabelHeading/LabelHeading' import MeetingContent from './MeetingContent' import MeetingHeaderAndPhase from './MeetingHeaderAndPhase' @@ -26,9 +26,9 @@ import PhaseHeaderDescription from './PhaseHeaderDescription' import PhaseHeaderTitle from './PhaseHeaderTitle' import PhaseWrapper from './PhaseWrapper' import ReflectionGroup from './ReflectionGroup/ReflectionGroup' +import RetroDiscussionThreadHeader from './RetroDiscussionThreadHeader' import {RetroMeetingPhaseProps} from './RetroMeeting' import StageTimerDisplay from './StageTimerDisplay' -import RetroDiscussionThreadHeader from './RetroDiscussionThreadHeader' interface Props extends RetroMeetingPhaseProps { meeting: RetroDiscussPhase_meeting$key diff --git a/packages/client/components/RetroDiscussionThreadHeader.tsx b/packages/client/components/RetroDiscussionThreadHeader.tsx index 4317ba26d8b..15a0a29786b 100644 --- a/packages/client/components/RetroDiscussionThreadHeader.tsx +++ b/packages/client/components/RetroDiscussionThreadHeader.tsx @@ -1,13 +1,13 @@ -import React from 'react' -import FlatButton from './FlatButton' -import graphql from 'babel-plugin-relay/macro' import styled from '@emotion/styled' -import useAtmosphere from '../hooks/useAtmosphere' -import {commitLocalUpdate} from 'relay-runtime' +import graphql from 'babel-plugin-relay/macro' +import React from 'react' import {useFragment} from 'react-relay' +import {commitLocalUpdate} from 'relay-runtime' +import {RetroDiscussionThreadHeader_organization$key} from '~/__generated__/RetroDiscussionThreadHeader_organization.graphql' +import useAtmosphere from '../hooks/useAtmosphere' import {PALETTE} from '../styles/paletteV3' import {Header} from './DiscussionThreadList' -import {RetroDiscussionThreadHeader_organization$key} from '~/__generated__/RetroDiscussionThreadHeader_organization.graphql' +import FlatButton from './FlatButton' const HeaderWrapper = styled('div')({ display: 'flex', diff --git a/packages/client/components/RetroDrawer.tsx b/packages/client/components/RetroDrawer.tsx index e03b4949533..bb877492d7c 100644 --- a/packages/client/components/RetroDrawer.tsx +++ b/packages/client/components/RetroDrawer.tsx @@ -2,13 +2,13 @@ import {Close} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React, {useEffect} from 'react' import {PreloadedQuery, usePreloadedQuery} from 'react-relay' +import {RetroDrawerQuery} from '../__generated__/RetroDrawerQuery.graphql' +import useBreakpoint from '../hooks/useBreakpoint' import {Breakpoint, DiscussionThreadEnum} from '../types/constEnums' -import ResponsiveDashSidebar from './ResponsiveDashSidebar' import MeetingOptions from './MeetingOptions' +import ResponsiveDashSidebar from './ResponsiveDashSidebar' import RetroDrawerTemplateCard from './RetroDrawerTemplateCard' import {Drawer} from './TeamPrompt/TeamPromptDrawer' -import {RetroDrawerQuery} from '../__generated__/RetroDrawerQuery.graphql' -import useBreakpoint from '../hooks/useBreakpoint' interface Props { setShowDrawer: (showDrawer: boolean) => void diff --git a/packages/client/components/RetroDrawerTemplateCard.tsx b/packages/client/components/RetroDrawerTemplateCard.tsx index 73fa7c30e3e..c732b060bdf 100644 --- a/packages/client/components/RetroDrawerTemplateCard.tsx +++ b/packages/client/components/RetroDrawerTemplateCard.tsx @@ -1,15 +1,15 @@ -import {ActivityBadge} from './ActivityLibrary/ActivityBadge' -import {ActivityLibraryCardDescription} from './ActivityLibrary/ActivityLibraryCardDescription' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' -import {ActivityLibraryCard} from './ActivityLibrary/ActivityLibraryCard' -import {ActivityCardImage} from './ActivityLibrary/ActivityCard' import {RetroDrawerTemplateCard_template$key} from '~/__generated__/RetroDrawerTemplateCard_template.graphql' -import {CategoryID, CATEGORY_THEMES} from '././ActivityLibrary/Categories' -import UpdateMeetingTemplateMutation from '../mutations/UpdateMeetingTemplateMutation' -import useMutationProps from '../hooks/useMutationProps' import useAtmosphere from '../hooks/useAtmosphere' +import useMutationProps from '../hooks/useMutationProps' +import UpdateMeetingTemplateMutation from '../mutations/UpdateMeetingTemplateMutation' +import {CATEGORY_THEMES, CategoryID} from '././ActivityLibrary/Categories' +import {ActivityBadge} from './ActivityLibrary/ActivityBadge' +import {ActivityCardImage} from './ActivityLibrary/ActivityCard' +import {ActivityLibraryCard} from './ActivityLibrary/ActivityLibraryCard' +import {ActivityLibraryCardDescription} from './ActivityLibrary/ActivityLibraryCardDescription' interface Props { templateRef: RetroDrawerTemplateCard_template$key diff --git a/packages/client/components/RetroGroupPhase.tsx b/packages/client/components/RetroGroupPhase.tsx index e9a9fd6c827..52dafdf05a8 100644 --- a/packages/client/components/RetroGroupPhase.tsx +++ b/packages/client/components/RetroGroupPhase.tsx @@ -3,11 +3,19 @@ import graphql from 'babel-plugin-relay/macro' * Renders the UI for the reflection phase of the retrospective meeting * */ +import styled from '@emotion/styled' +import {Info as InfoIcon} from '@mui/icons-material' import React from 'react' import {useFragment} from 'react-relay' -import {Info as InfoIcon} from '@mui/icons-material' -import useCallbackRef from '~/hooks/useCallbackRef' import {RetroGroupPhase_meeting$key} from '~/__generated__/RetroGroupPhase_meeting.graphql' +import useCallbackRef from '~/hooks/useCallbackRef' +import useAtmosphere from '../hooks/useAtmosphere' +import {MenuPosition} from '../hooks/useCoords' +import useMutationProps from '../hooks/useMutationProps' +import useTooltip from '../hooks/useTooltip' +import AutogroupMutation from '../mutations/AutogroupMutation' +import ResetReflectionGroupsMutation from '../mutations/ResetReflectionGroupsMutation' +import {Elevation} from '../styles/elevation' import {phaseLabelLookup} from '../utils/meetings/lookups' import GroupingKanban from './GroupingKanban' import MeetingContent from './MeetingContent' @@ -17,17 +25,9 @@ import MeetingTopBar from './MeetingTopBar' import PhaseHeaderDescription from './PhaseHeaderDescription' import PhaseHeaderTitle from './PhaseHeaderTitle' import PhaseWrapper from './PhaseWrapper' +import PrimaryButton from './PrimaryButton' import {RetroMeetingPhaseProps} from './RetroMeeting' import StageTimerDisplay from './StageTimerDisplay' -import PrimaryButton from './PrimaryButton' -import styled from '@emotion/styled' -import AutogroupMutation from '../mutations/AutogroupMutation' -import ResetReflectionGroupsMutation from '../mutations/ResetReflectionGroupsMutation' -import useAtmosphere from '../hooks/useAtmosphere' -import useMutationProps from '../hooks/useMutationProps' -import {Elevation} from '../styles/elevation' -import useTooltip from '../hooks/useTooltip' -import {MenuPosition} from '../hooks/useCoords' const ButtonWrapper = styled('div')({ display: 'flex', diff --git a/packages/client/components/RetroMeetingSidebar.tsx b/packages/client/components/RetroMeetingSidebar.tsx index 01722e479bd..a77fbd832ee 100644 --- a/packages/client/components/RetroMeetingSidebar.tsx +++ b/packages/client/components/RetroMeetingSidebar.tsx @@ -1,12 +1,12 @@ import graphql from 'babel-plugin-relay/macro' import React, {Fragment, useState} from 'react' import {useFragment} from 'react-relay' -import useRouter from '~/hooks/useRouter' -import isDemoRoute from '~/utils/isDemoRoute' import { NewMeetingPhaseTypeEnum, RetroMeetingSidebar_meeting$key } from '~/__generated__/RetroMeetingSidebar_meeting.graphql' +import useRouter from '~/hooks/useRouter' +import isDemoRoute from '~/utils/isDemoRoute' import useAtmosphere from '../hooks/useAtmosphere' import useGotoStageId from '../hooks/useGotoStageId' import getSidebarItemStage from '../utils/getSidebarItemStage' diff --git a/packages/client/components/RetroReflectPhase/PhaseItemColumn.tsx b/packages/client/components/RetroReflectPhase/PhaseItemColumn.tsx index 1053c5b95bc..d5ce339b896 100644 --- a/packages/client/components/RetroReflectPhase/PhaseItemColumn.tsx +++ b/packages/client/components/RetroReflectPhase/PhaseItemColumn.tsx @@ -4,6 +4,7 @@ import {EditorState} from 'draft-js' import React, {RefObject, useEffect, useMemo, useRef} from 'react' import {useFragment} from 'react-relay' import {PhaseItemColumn_prompt$key} from '~/__generated__/PhaseItemColumn_prompt.graphql' +import {PhaseItemColumn_meeting$key} from '../../__generated__/PhaseItemColumn_meeting.graphql' import useAtmosphere from '../../hooks/useAtmosphere' import {MenuPosition} from '../../hooks/useCoords' import useForceUpdate from '../../hooks/useForceUpdate' @@ -13,7 +14,6 @@ import {DECELERATE} from '../../styles/animation' import {PALETTE} from '../../styles/paletteV3' import {BezierCurve, ElementWidth, Gutters} from '../../types/constEnums' import getNextSortOrder from '../../utils/getNextSortOrder' -import {PhaseItemColumn_meeting$key} from '../../__generated__/PhaseItemColumn_meeting.graphql' import RetroPrompt from '../RetroPrompt' import PhaseItemChits from './PhaseItemChits' import PhaseItemEditor from './PhaseItemEditor' diff --git a/packages/client/components/RetroReflectPhase/PhaseItemEditor.tsx b/packages/client/components/RetroReflectPhase/PhaseItemEditor.tsx index 4edc7791790..51dfc541425 100644 --- a/packages/client/components/RetroReflectPhase/PhaseItemEditor.tsx +++ b/packages/client/components/RetroReflectPhase/PhaseItemEditor.tsx @@ -1,10 +1,12 @@ import styled from '@emotion/styled' -import {Stack} from 'immutable' import graphql from 'babel-plugin-relay/macro' -import {convertFromRaw, convertToRaw, EditorState, ContentState} from 'draft-js' +import {ContentState, EditorState, convertFromRaw, convertToRaw} from 'draft-js' +import {Stack} from 'immutable' import React, {MutableRefObject, RefObject, useEffect, useRef, useState} from 'react' import {useFragment} from 'react-relay' +import {PhaseItemEditor_meeting$key} from '../../__generated__/PhaseItemEditor_meeting.graphql' import useAtmosphere from '../../hooks/useAtmosphere' +import useEditorState from '../../hooks/useEditorState' import useMutationProps from '../../hooks/useMutationProps' import usePortal from '../../hooks/usePortal' import CreateReflectionMutation from '../../mutations/CreateReflectionMutation' @@ -13,13 +15,11 @@ import {Elevation} from '../../styles/elevation' import {PALETTE} from '../../styles/paletteV3' import {BezierCurve, ZIndex} from '../../types/constEnums' import convertToTaskContent from '../../utils/draftjs/convertToTaskContent' -import {PhaseItemEditor_meeting$key} from '../../__generated__/PhaseItemEditor_meeting.graphql' import ReflectionCardAuthor from '../ReflectionCard/ReflectionCardAuthor' import ReflectionCardRoot from '../ReflectionCard/ReflectionCardRoot' import ReflectionEditorWrapper from '../ReflectionEditorWrapper' -import getBBox from './getBBox' import {ReflectColumnCardInFlight} from './PhaseItemColumn' -import useEditorState from '../../hooks/useEditorState' +import getBBox from './getBBox' const FLIGHT_TIME = 500 const CardInFlightStyles = styled(ReflectionCardRoot)<{transform: string; isStart: boolean}>( diff --git a/packages/client/components/RetroReflectPhase/ReflectionStack.tsx b/packages/client/components/RetroReflectPhase/ReflectionStack.tsx index d68242aadad..7a64cad67f4 100644 --- a/packages/client/components/RetroReflectPhase/ReflectionStack.tsx +++ b/packages/client/components/RetroReflectPhase/ReflectionStack.tsx @@ -3,6 +3,7 @@ import graphql from 'babel-plugin-relay/macro' import React, {RefObject, useRef} from 'react' import {useFragment} from 'react-relay' import {ReflectionStack_meeting$key} from '~/__generated__/ReflectionStack_meeting.graphql' +import {PhaseItemColumn_meeting$data} from '../../__generated__/PhaseItemColumn_meeting.graphql' import useExpandedReflections from '../../hooks/useExpandedReflections' import { Breakpoint, @@ -10,7 +11,6 @@ import { ElementWidth, ReflectionStackPerspective } from '../../types/constEnums' -import {PhaseItemColumn_meeting$data} from '../../__generated__/PhaseItemColumn_meeting.graphql' import ReflectionCard from '../ReflectionCard/ReflectionCard' import ExpandedReflectionStack from './ExpandedReflectionStack' import ReflectionStackPlaceholder from './ReflectionStackPlaceholder' diff --git a/packages/client/components/RetroReflectPhase/RetroReflectPhase.tsx b/packages/client/components/RetroReflectPhase/RetroReflectPhase.tsx index 493ae73247c..9fa7a86cfab 100644 --- a/packages/client/components/RetroReflectPhase/RetroReflectPhase.tsx +++ b/packages/client/components/RetroReflectPhase/RetroReflectPhase.tsx @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import React, {useState} from 'react' import {useFragment} from 'react-relay' -import useCallbackRef from '~/hooks/useCallbackRef' import {RetroReflectPhase_meeting$key} from '~/__generated__/RetroReflectPhase_meeting.graphql' +import useCallbackRef from '~/hooks/useCallbackRef' import useBreakpoint from '../../hooks/useBreakpoint' import {Breakpoint} from '../../types/constEnums' import {phaseLabelLookup} from '../../utils/meetings/lookups' @@ -15,8 +15,8 @@ import PhaseWrapper from '../PhaseWrapper' import {RetroMeetingPhaseProps} from '../RetroMeeting' import StageTimerDisplay from '../StageTimerDisplay' import PhaseItemColumn from './PhaseItemColumn' -import ReflectWrapperMobile from './ReflectionWrapperMobile' import ReflectWrapperDesktop from './ReflectWrapperDesktop' +import ReflectWrapperMobile from './ReflectionWrapperMobile' interface Props extends RetroMeetingPhaseProps { meeting: RetroReflectPhase_meeting$key diff --git a/packages/client/components/RetroSidebarDiscussSection.tsx b/packages/client/components/RetroSidebarDiscussSection.tsx index 4730d138d1c..d83e63fb5f6 100644 --- a/packages/client/components/RetroSidebarDiscussSection.tsx +++ b/packages/client/components/RetroSidebarDiscussSection.tsx @@ -4,13 +4,13 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {DragDropContext, Draggable, Droppable, DropResult} from 'react-beautiful-dnd' import {useFragment} from 'react-relay' +import { + RetroSidebarDiscussSection_meeting$data, + RetroSidebarDiscussSection_meeting$key +} from '~/__generated__/RetroSidebarDiscussSection_meeting.graphql' import useAtmosphere from '~/hooks/useAtmosphere' import useGotoStageId from '~/hooks/useGotoStageId' import {DeepNonNullable} from '~/types/generics' -import { - RetroSidebarDiscussSection_meeting$key, - RetroSidebarDiscussSection_meeting$data -} from '~/__generated__/RetroSidebarDiscussSection_meeting.graphql' import DragDiscussionTopicMutation from '../mutations/DragDiscussionTopicMutation' import {navItemRaised} from '../styles/elevation' import {PALETTE} from '../styles/paletteV3' diff --git a/packages/client/components/RetroSidebarPhaseListItemChildren.tsx b/packages/client/components/RetroSidebarPhaseListItemChildren.tsx index 5ff5d86d4cf..83428fdb9e5 100644 --- a/packages/client/components/RetroSidebarPhaseListItemChildren.tsx +++ b/packages/client/components/RetroSidebarPhaseListItemChildren.tsx @@ -1,11 +1,11 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' -import useGotoStageId from '~/hooks/useGotoStageId' import { NewMeetingPhaseTypeEnum, RetroSidebarPhaseListItemChildren_meeting$key } from '~/__generated__/RetroSidebarPhaseListItemChildren_meeting.graphql' +import useGotoStageId from '~/hooks/useGotoStageId' import isPhaseComplete from '../utils/meetings/isPhaseComplete' import MeetingSidebarTeamMemberStageItems from './MeetingSidebarTeamMemberStageItems' import RetroSidebarDiscussSection from './RetroSidebarDiscussSection' diff --git a/packages/client/components/RetroVoteMetaHeader.tsx b/packages/client/components/RetroVoteMetaHeader.tsx index 0231438d5e6..38148c32f0d 100644 --- a/packages/client/components/RetroVoteMetaHeader.tsx +++ b/packages/client/components/RetroVoteMetaHeader.tsx @@ -3,11 +3,11 @@ import {ExpandMore} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {RetroVoteMetaHeader_meeting$key} from '~/__generated__/RetroVoteMetaHeader_meeting.graphql' import useAtmosphere from '~/hooks/useAtmosphere' import {MenuPosition} from '~/hooks/useCoords' import useMenu from '~/hooks/useMenu' import lazyPreload from '~/utils/lazyPreload' -import {RetroVoteMetaHeader_meeting$key} from '~/__generated__/RetroVoteMetaHeader_meeting.graphql' import {PALETTE} from '../styles/paletteV3' import {FONT_FAMILY} from '../styles/typographyV2' import {Breakpoint} from '../types/constEnums' diff --git a/packages/client/components/ReviewRequestToJoinOrgModal.tsx b/packages/client/components/ReviewRequestToJoinOrgModal.tsx index 2604455e6f6..dcdd9844a2f 100644 --- a/packages/client/components/ReviewRequestToJoinOrgModal.tsx +++ b/packages/client/components/ReviewRequestToJoinOrgModal.tsx @@ -1,14 +1,14 @@ import graphql from 'babel-plugin-relay/macro' -import React, {useState, useMemo} from 'react' -import {PreloadedQuery, usePreloadedQuery, useFragment} from 'react-relay' +import React, {useMemo, useState} from 'react' +import {PreloadedQuery, useFragment, usePreloadedQuery} from 'react-relay' +import {ReviewRequestToJoinOrgModalQuery} from '../__generated__/ReviewRequestToJoinOrgModalQuery.graphql' +import {ReviewRequestToJoinOrgModal_viewer$key} from '../__generated__/ReviewRequestToJoinOrgModal_viewer.graphql' +import useAcceptRequestToJoinDomainMutation from '../mutations/useAcceptRequestToJoinDomainMutation' +import Checkbox from './Checkbox' import DialogContainer from './DialogContainer' import DialogTitle from './DialogTitle' import PrimaryButton from './PrimaryButton' import SecondaryButton from './SecondaryButton' -import {ReviewRequestToJoinOrgModalQuery} from '../__generated__/ReviewRequestToJoinOrgModalQuery.graphql' -import {ReviewRequestToJoinOrgModal_viewer$key} from '../__generated__/ReviewRequestToJoinOrgModal_viewer.graphql' -import Checkbox from './Checkbox' -import useAcceptRequestToJoinDomainMutation from '../mutations/useAcceptRequestToJoinDomainMutation' const ReviewRequestToJoinOrgModalViewerFragment = graphql` fragment ReviewRequestToJoinOrgModal_viewer on User diff --git a/packages/client/components/ReviewRequestToJoinOrgRoot.tsx b/packages/client/components/ReviewRequestToJoinOrgRoot.tsx index e35f9011012..d4a4d018008 100644 --- a/packages/client/components/ReviewRequestToJoinOrgRoot.tsx +++ b/packages/client/components/ReviewRequestToJoinOrgRoot.tsx @@ -1,12 +1,12 @@ import React, {Suspense, useCallback, useEffect} from 'react' import {useHistory, useLocation} from 'react-router' -import useRouter from '../hooks/useRouter' -import useModal from '../hooks/useModal' import ReviewRequestToJoinOrgModal from '~/components/ReviewRequestToJoinOrgModal' -import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import reviewRequestToJoinOrgModalQuery, { ReviewRequestToJoinOrgModalQuery } from '../__generated__/ReviewRequestToJoinOrgModalQuery.graphql' +import useModal from '../hooks/useModal' +import useQueryLoaderNow from '../hooks/useQueryLoaderNow' +import useRouter from '../hooks/useRouter' const ReviewRequestToJoinOrgRoot = () => { const {match} = useRouter<{requestId: string}>() diff --git a/packages/client/components/ScheduleDialog.tsx b/packages/client/components/ScheduleDialog.tsx index 39f484dbff1..b3c6d5f6724 100644 --- a/packages/client/components/ScheduleDialog.tsx +++ b/packages/client/components/ScheduleDialog.tsx @@ -1,34 +1,34 @@ -import React, {ChangeEvent, useState} from 'react' -import {RecurrenceSettings} from './Recurrence/RecurrenceSettings' -import * as Collapsible from '@radix-ui/react-collapsible' import {EventRepeat, ExpandMore} from '@mui/icons-material' -import PrimaryButton from './PrimaryButton' -import {DialogActions} from '../ui/Dialog/DialogActions' -import SecondaryButton from './SecondaryButton' -import GcalSettings, { - GcalEventInput -} from '../modules/userDashboard/components/GcalModal/GcalSettings' -import logo from '../styles/theme/images/graphics/google.svg' -import gcalLogo from '../styles/theme/images/graphics/google-calendar.svg' -import useForm from '../hooks/useForm' -import StyledError from './StyledError' -import GcalClientManager from '../utils/GcalClientManager' -import SendClientSideEvent from '../utils/SendClientSideEvent' +import * as Collapsible from '@radix-ui/react-collapsible' import graphql from 'babel-plugin-relay/macro' +import clsx from 'clsx' +import dayjs from 'dayjs' +import React, {ChangeEvent, useState} from 'react' import {useFragment} from 'react-relay' +import {RRule} from 'rrule' import {ScheduleDialog_team$key} from '~/__generated__/ScheduleDialog_team.graphql' -import useAtmosphere from '../hooks/useAtmosphere' -import {MenuMutationProps} from '../hooks/useMutationProps' -import Legitity from '../validation/Legitity' import { CreateGcalEventInput, RecurrenceSettingsInput } from '../__generated__/StartRetrospectiveMutation.graphql' -import {RRule} from 'rrule' -import dayjs from 'dayjs' -import {toHumanReadable} from './Recurrence/HumanReadableRecurrenceRule' -import clsx from 'clsx' +import useAtmosphere from '../hooks/useAtmosphere' +import useForm from '../hooks/useForm' +import {MenuMutationProps} from '../hooks/useMutationProps' +import GcalSettings, { + GcalEventInput +} from '../modules/userDashboard/components/GcalModal/GcalSettings' +import gcalLogo from '../styles/theme/images/graphics/google-calendar.svg' +import logo from '../styles/theme/images/graphics/google.svg' +import {DialogActions} from '../ui/Dialog/DialogActions' +import GcalClientManager from '../utils/GcalClientManager' +import SendClientSideEvent from '../utils/SendClientSideEvent' import plural from '../utils/plural' +import Legitity from '../validation/Legitity' +import PrimaryButton from './PrimaryButton' +import {toHumanReadable} from './Recurrence/HumanReadableRecurrenceRule' +import {RecurrenceSettings} from './Recurrence/RecurrenceSettings' +import SecondaryButton from './SecondaryButton' +import StyledError from './StyledError' const validateTitle = (title: string) => new Legitity(title).trim().min(2, `C’mon, you call that a title?`) diff --git a/packages/client/components/ScopePhase.tsx b/packages/client/components/ScopePhase.tsx index dd90d6bc720..978338259c7 100644 --- a/packages/client/components/ScopePhase.tsx +++ b/packages/client/components/ScopePhase.tsx @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' -import useGotoStageId from '~/hooks/useGotoStageId' import {ScopePhase_meeting$key} from '~/__generated__/ScopePhase_meeting.graphql' +import useGotoStageId from '~/hooks/useGotoStageId' import {phaseLabelLookup} from '../utils/meetings/lookups' import MeetingContent from './MeetingContent' import MeetingHeaderAndPhase from './MeetingHeaderAndPhase' diff --git a/packages/client/components/ScopePhaseArea.tsx b/packages/client/components/ScopePhaseArea.tsx index 44702ccb239..7279ffb5e71 100644 --- a/packages/client/components/ScopePhaseArea.tsx +++ b/packages/client/components/ScopePhaseArea.tsx @@ -3,16 +3,16 @@ import graphql from 'babel-plugin-relay/macro' import React, {useState} from 'react' import {useFragment} from 'react-relay' import SwipeableViews from 'react-swipeable-views' +import {ScopePhaseArea_meeting$key} from '~/__generated__/ScopePhaseArea_meeting.graphql' import useBreakpoint from '~/hooks/useBreakpoint' import {Breakpoint} from '~/types/constEnums' -import {ScopePhaseArea_meeting$key} from '~/__generated__/ScopePhaseArea_meeting.graphql' import {Elevation} from '../styles/elevation' import {PALETTE} from '../styles/paletteV3' import AzureDevOpsSVG from './AzureDevOpsSVG' import GitHubSVG from './GitHubSVG' import GitLabSVG from './GitLabSVG' -import JiraServerSVG from './JiraServerSVG' import JiraSVG from './JiraSVG' +import JiraServerSVG from './JiraServerSVG' import ParabolLogoSVG from './ParabolLogoSVG' import ScopePhaseAreaAzureDevOps from './ScopePhaseAreaAzureDevOps' import ScopePhaseAreaGitHub from './ScopePhaseAreaGitHub' diff --git a/packages/client/components/ScopePhaseAreaAddAzureDevOps.tsx b/packages/client/components/ScopePhaseAreaAddAzureDevOps.tsx index 29a69d42b6e..02a3ed859bb 100644 --- a/packages/client/components/ScopePhaseAreaAddAzureDevOps.tsx +++ b/packages/client/components/ScopePhaseAreaAddAzureDevOps.tsx @@ -3,10 +3,10 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import AzureDevOpsClientManager from '~/utils/AzureDevOpsClientManager' +import {ScopePhaseAreaAddAzureDevOps_meeting$key} from '../__generated__/ScopePhaseAreaAddAzureDevOps_meeting.graphql' import useAtmosphere from '../hooks/useAtmosphere' import useMutationProps from '../hooks/useMutationProps' import {PALETTE} from '../styles/paletteV3' -import {ScopePhaseAreaAddAzureDevOps_meeting$key} from '../__generated__/ScopePhaseAreaAddAzureDevOps_meeting.graphql' import AzureDevOpsSVG from './AzureDevOpsSVG' import RaisedButton from './RaisedButton' diff --git a/packages/client/components/ScopePhaseAreaAddGitHub.tsx b/packages/client/components/ScopePhaseAreaAddGitHub.tsx index 8984f860735..d761088d452 100644 --- a/packages/client/components/ScopePhaseAreaAddGitHub.tsx +++ b/packages/client/components/ScopePhaseAreaAddGitHub.tsx @@ -2,11 +2,11 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {ScopePhaseAreaAddGitHub_meeting$key} from '../__generated__/ScopePhaseAreaAddGitHub_meeting.graphql' import useAtmosphere from '../hooks/useAtmosphere' import useMutationProps from '../hooks/useMutationProps' import {PALETTE} from '../styles/paletteV3' import GitHubClientManager from '../utils/GitHubClientManager' -import {ScopePhaseAreaAddGitHub_meeting$key} from '../__generated__/ScopePhaseAreaAddGitHub_meeting.graphql' import GitHubSVG from './GitHubSVG' import RaisedButton from './RaisedButton' diff --git a/packages/client/components/ScopePhaseAreaAddGitLab.tsx b/packages/client/components/ScopePhaseAreaAddGitLab.tsx index 0625642c838..e589573c47d 100644 --- a/packages/client/components/ScopePhaseAreaAddGitLab.tsx +++ b/packages/client/components/ScopePhaseAreaAddGitLab.tsx @@ -3,10 +3,10 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import GitLabClientManager from '~/utils/GitLabClientManager' +import {ScopePhaseAreaAddGitLab_meeting$key} from '../__generated__/ScopePhaseAreaAddGitLab_meeting.graphql' import useAtmosphere from '../hooks/useAtmosphere' import useMutationProps from '../hooks/useMutationProps' import {PALETTE} from '../styles/paletteV3' -import {ScopePhaseAreaAddGitLab_meeting$key} from '../__generated__/ScopePhaseAreaAddGitLab_meeting.graphql' import GitLabSVG from './GitLabSVG' import RaisedButton from './RaisedButton' diff --git a/packages/client/components/ScopePhaseAreaAddJira.tsx b/packages/client/components/ScopePhaseAreaAddJira.tsx index 7fda1f3697c..2d48d5e7da7 100644 --- a/packages/client/components/ScopePhaseAreaAddJira.tsx +++ b/packages/client/components/ScopePhaseAreaAddJira.tsx @@ -1,13 +1,13 @@ -import React, {useMemo} from 'react' import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' +import React, {useMemo} from 'react' import {useFragment} from 'react-relay' +import {ScopePhaseAreaAddJira_meeting$key} from '../__generated__/ScopePhaseAreaAddJira_meeting.graphql' import useAtmosphere from '../hooks/useAtmosphere' import useMutationProps from '../hooks/useMutationProps' import {PALETTE} from '../styles/paletteV3' -import AtlassianClientManager, {ERROR_POPUP_CLOSED} from '../utils/AtlassianClientManager' import {ExternalLinks} from '../types/constEnums' -import {ScopePhaseAreaAddJira_meeting$key} from '../__generated__/ScopePhaseAreaAddJira_meeting.graphql' +import AtlassianClientManager, {ERROR_POPUP_CLOSED} from '../utils/AtlassianClientManager' import JiraSVG from './JiraSVG' import RaisedButton from './RaisedButton' diff --git a/packages/client/components/ScopePhaseAreaAddJiraServer.tsx b/packages/client/components/ScopePhaseAreaAddJiraServer.tsx index 634be0a1158..4eec0b82e43 100644 --- a/packages/client/components/ScopePhaseAreaAddJiraServer.tsx +++ b/packages/client/components/ScopePhaseAreaAddJiraServer.tsx @@ -2,11 +2,11 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {ScopePhaseAreaAddJiraServer_meeting$key} from '../__generated__/ScopePhaseAreaAddJiraServer_meeting.graphql' import useAtmosphere from '../hooks/useAtmosphere' import useMutationProps from '../hooks/useMutationProps' import {PALETTE} from '../styles/paletteV3' import JiraServerClientManager from '../utils/JiraServerClientManager' -import {ScopePhaseAreaAddJiraServer_meeting$key} from '../__generated__/ScopePhaseAreaAddJiraServer_meeting.graphql' import JiraServerSVG from './JiraServerSVG' import RaisedButton from './RaisedButton' diff --git a/packages/client/components/ScopePhaseAreaGitHub.tsx b/packages/client/components/ScopePhaseAreaGitHub.tsx index ce15a0cd54e..7b6e5b10f09 100644 --- a/packages/client/components/ScopePhaseAreaGitHub.tsx +++ b/packages/client/components/ScopePhaseAreaGitHub.tsx @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' -import {Providers} from '../types/constEnums' import {ScopePhaseAreaGitHub_meeting$key} from '../__generated__/ScopePhaseAreaGitHub_meeting.graphql' +import {Providers} from '../types/constEnums' import ScopePhaseAreaAddGitHub from './ScopePhaseAreaAddGitHub' import ScopePhaseAreaGitHubScoping from './ScopePhaseAreaGitHubScoping' diff --git a/packages/client/components/ScopingSearchInput.tsx b/packages/client/components/ScopingSearchInput.tsx index 1e6a21250e2..6343a6718f4 100644 --- a/packages/client/components/ScopingSearchInput.tsx +++ b/packages/client/components/ScopingSearchInput.tsx @@ -1,11 +1,11 @@ import styled from '@emotion/styled' import {Close} from '@mui/icons-material' +import {ServiceEnumType} from 'parabol-server/graphql/types/ServiceEnum' import React, {useEffect, useRef} from 'react' import {commitLocalUpdate} from 'react-relay' import useAtmosphere from '../hooks/useAtmosphere' -import SendClientSideEvent from '../utils/SendClientSideEvent' import {PALETTE} from '../styles/paletteV3' -import {ServiceEnumType} from 'parabol-server/graphql/types/ServiceEnum' +import SendClientSideEvent from '../utils/SendClientSideEvent' const SearchInput = styled('input')({ appearance: 'none', diff --git a/packages/client/components/ScopingSearchResultItem.tsx b/packages/client/components/ScopingSearchResultItem.tsx index 8b63233f05d..819571522e0 100644 --- a/packages/client/components/ScopingSearchResultItem.tsx +++ b/packages/client/components/ScopingSearchResultItem.tsx @@ -1,12 +1,12 @@ import styled from '@emotion/styled' import React from 'react' +import {UpdatePokerScopeMutation as TUpdatePokerScopeMutation} from '../__generated__/UpdatePokerScopeMutation.graphql' import useAtmosphere from '../hooks/useAtmosphere' import useMutationProps from '../hooks/useMutationProps' import UpdatePokerScopeMutation from '../mutations/UpdatePokerScopeMutation' import {PALETTE} from '../styles/paletteV3' import {Threshold} from '../types/constEnums' import isTempId from '../utils/relay/isTempId' -import {UpdatePokerScopeMutation as TUpdatePokerScopeMutation} from '../__generated__/UpdatePokerScopeMutation.graphql' import Checkbox from './Checkbox' import Ellipsis from './Ellipsis/Ellipsis' diff --git a/packages/client/components/SelectMeetingDropdown.tsx b/packages/client/components/SelectMeetingDropdown.tsx index 0f992d2b09b..c6179d9c990 100644 --- a/packages/client/components/SelectMeetingDropdown.tsx +++ b/packages/client/components/SelectMeetingDropdown.tsx @@ -2,10 +2,10 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {SelectMeetingDropdown_meetings$key} from '~/__generated__/SelectMeetingDropdown_meetings.graphql' import useRouter from '~/hooks/useRouter' import {PALETTE} from '~/styles/paletteV3' import plural from '~/utils/plural' -import {SelectMeetingDropdown_meetings$key} from '~/__generated__/SelectMeetingDropdown_meetings.graphql' import {MenuProps} from '../hooks/useMenu' import Menu from './Menu' import MenuItem from './MenuItem' diff --git a/packages/client/components/SelectMeetingDropdownItem.tsx b/packages/client/components/SelectMeetingDropdownItem.tsx index b0883078e38..ba8e7114daf 100644 --- a/packages/client/components/SelectMeetingDropdownItem.tsx +++ b/packages/client/components/SelectMeetingDropdownItem.tsx @@ -9,11 +9,11 @@ import * as Sentry from '@sentry/browser' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {SelectMeetingDropdownItem_meeting$key} from '~/__generated__/SelectMeetingDropdownItem_meeting.graphql' import useRouter from '~/hooks/useRouter' import {PALETTE} from '~/styles/paletteV3' import getMeetingPhase from '~/utils/getMeetingPhase' import {meetingTypeToIcon, phaseLabelLookup} from '~/utils/meetings/lookups' -import {SelectMeetingDropdownItem_meeting$key} from '~/__generated__/SelectMeetingDropdownItem_meeting.graphql' const Wrapper = styled('div')({ alignItems: 'center', diff --git a/packages/client/components/SelectSharingScopeDropdown.tsx b/packages/client/components/SelectSharingScopeDropdown.tsx index 2ca135a9214..57d2af47173 100644 --- a/packages/client/components/SelectSharingScopeDropdown.tsx +++ b/packages/client/components/SelectSharingScopeDropdown.tsx @@ -1,12 +1,12 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {SelectSharingScopeDropdown_template$key} from '../__generated__/SelectSharingScopeDropdown_template.graphql' import useAtmosphere from '../hooks/useAtmosphere' import {MenuProps} from '../hooks/useMenu' import useMutationProps from '../hooks/useMutationProps' import UpdatePokerTemplateScopeMutation from '../mutations/UpdatePokerTemplateScopeMutation' import UpdateReflectTemplateScopeMutation from '../mutations/UpdateReflectTemplateScopeMutation' -import {SelectSharingScopeDropdown_template$key} from '../__generated__/SelectSharingScopeDropdown_template.graphql' import DropdownMenuIconItemLabel from './DropdownMenuIconItemLabel' import Menu from './Menu' import MenuItem from './MenuItem' diff --git a/packages/client/components/ShareTopicModal.tsx b/packages/client/components/ShareTopicModal.tsx index 2d80a9dc959..98fe17407de 100644 --- a/packages/client/components/ShareTopicModal.tsx +++ b/packages/client/components/ShareTopicModal.tsx @@ -1,27 +1,27 @@ +import graphql from 'babel-plugin-relay/macro' import React from 'react' -import {PreloadedQuery, usePreloadedQuery, useFragment} from 'react-relay' -import PrimaryButton from './PrimaryButton' -import SecondaryButton from './SecondaryButton' +import {PreloadedQuery, useFragment, usePreloadedQuery} from 'react-relay' +import {ShareTopicModalQuery} from '../__generated__/ShareTopicModalQuery.graphql' +import {ShareTopicModal_viewer$key} from '../__generated__/ShareTopicModal_viewer.graphql' +import useAtmosphere from '../hooks/useAtmosphere' +import useMutationProps from '../hooks/useMutationProps' +import useSlackChannels from '../hooks/useSlackChannels' +import useShareTopicMutation from '../mutations/useShareTopicMutation' import {Dialog} from '../ui/Dialog/Dialog' +import {DialogActions} from '../ui/Dialog/DialogActions' import {DialogContent} from '../ui/Dialog/DialogContent' -import {DialogTitle} from '../ui/Dialog/DialogTitle' import {DialogDescription} from '../ui/Dialog/DialogDescription' -import {DialogActions} from '../ui/Dialog/DialogActions' -import useShareTopicMutation from '../mutations/useShareTopicMutation' +import {DialogTitle} from '../ui/Dialog/DialogTitle' import {Select} from '../ui/Select/Select' +import {SelectContent} from '../ui/Select/SelectContent' +import {SelectGroup} from '../ui/Select/SelectGroup' import {SelectItem} from '../ui/Select/SelectItem' import {SelectTrigger} from '../ui/Select/SelectTrigger' -import {SelectGroup} from '../ui/Select/SelectGroup' import {SelectValue} from '../ui/Select/SelectValue' -import {SelectContent} from '../ui/Select/SelectContent' -import graphql from 'babel-plugin-relay/macro' -import {ShareTopicModalQuery} from '../__generated__/ShareTopicModalQuery.graphql' -import {ShareTopicModal_viewer$key} from '../__generated__/ShareTopicModal_viewer.graphql' import SlackClientManager from '../utils/SlackClientManager' -import useMutationProps from '../hooks/useMutationProps' -import useAtmosphere from '../hooks/useAtmosphere' -import useSlackChannels from '../hooks/useSlackChannels' import findStageById from '../utils/meetings/findStageById' +import PrimaryButton from './PrimaryButton' +import SecondaryButton from './SecondaryButton' interface Props { isOpen: boolean diff --git a/packages/client/components/ShareTopicRoot.tsx b/packages/client/components/ShareTopicRoot.tsx index 66da72f76d5..04f248254c2 100644 --- a/packages/client/components/ShareTopicRoot.tsx +++ b/packages/client/components/ShareTopicRoot.tsx @@ -1,10 +1,10 @@ import React, {Suspense} from 'react' import ShareTopicModal from '~/components/ShareTopicModal' -import {Loader} from '../utils/relay/renderLoader' -import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import shareTopicModalQuery, { ShareTopicModalQuery } from '../__generated__/ShareTopicModalQuery.graphql' +import useQueryLoaderNow from '../hooks/useQueryLoaderNow' +import {Loader} from '../utils/relay/renderLoader' interface Props { onClose: () => void diff --git a/packages/client/components/ShareTopicRouterRoot.tsx b/packages/client/components/ShareTopicRouterRoot.tsx index 7f13c349bbf..de90986081c 100644 --- a/packages/client/components/ShareTopicRouterRoot.tsx +++ b/packages/client/components/ShareTopicRouterRoot.tsx @@ -1,12 +1,12 @@ import React, {Suspense, useCallback} from 'react' import {useHistory, useLocation} from 'react-router' -import useRouter from '../hooks/useRouter' import ShareTopicModal from '~/components/ShareTopicModal' -import {Loader} from '../utils/relay/renderLoader' -import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import shareTopicModalQuery, { ShareTopicModalQuery } from '../__generated__/ShareTopicModalQuery.graphql' +import useQueryLoaderNow from '../hooks/useQueryLoaderNow' +import useRouter from '../hooks/useRouter' +import {Loader} from '../utils/relay/renderLoader' const ShareTopicRouterRoot = () => { const {match} = useRouter<{stageId: string; meetingId: string}>() diff --git a/packages/client/components/SpotlightModal.tsx b/packages/client/components/SpotlightModal.tsx index a204ae380ee..e885b01250a 100644 --- a/packages/client/components/SpotlightModal.tsx +++ b/packages/client/components/SpotlightModal.tsx @@ -5,10 +5,10 @@ import {useFragment} from 'react-relay' import {PortalStatus} from '~/hooks/usePortal' import {MAX_SPOTLIGHT_COLUMNS, SPOTLIGHT_TOP_SECTION_HEIGHT} from '~/utils/constants' import makeMinWidthMediaQuery from '~/utils/makeMinWidthMediaQuery' +import {SpotlightModal_meeting$key} from '../__generated__/SpotlightModal_meeting.graphql' import {Elevation} from '../styles/elevation' import {PALETTE} from '../styles/paletteV3' import {BezierCurve, Breakpoint, ElementWidth, Times, ZIndex} from '../types/constEnums' -import {SpotlightModal_meeting$key} from '../__generated__/SpotlightModal_meeting.graphql' import SpotlightResultsRoot from './SpotlightResultsRoot' import SpotlightSearchBar from './SpotlightSearchBar' import SpotlightSourceGroup from './SpotlightSourceGroup' diff --git a/packages/client/components/SpotlightResults.tsx b/packages/client/components/SpotlightResults.tsx index 2c6bf66b5f5..cd2b0c88f9b 100644 --- a/packages/client/components/SpotlightResults.tsx +++ b/packages/client/components/SpotlightResults.tsx @@ -2,9 +2,9 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React, {RefObject, useRef} from 'react' import {PreloadedQuery, usePreloadedQuery} from 'react-relay' +import {SpotlightResultsQuery} from '~/__generated__/SpotlightResultsQuery.graphql' import useResultsHeight from '~/hooks/useResultsHeight' import {ElementHeight, ElementWidth} from '~/types/constEnums' -import {SpotlightResultsQuery} from '~/__generated__/SpotlightResultsQuery.graphql' import useGroupMatrix from '../hooks/useGroupMatrix' import ReflectionGroup from './ReflectionGroup/ReflectionGroup' import SpotlightResultsEmptyState from './SpotlightResultsEmptyState' diff --git a/packages/client/components/SpotlightSearchBar.tsx b/packages/client/components/SpotlightSearchBar.tsx index d2e689326e6..a85b2e21b30 100644 --- a/packages/client/components/SpotlightSearchBar.tsx +++ b/packages/client/components/SpotlightSearchBar.tsx @@ -5,10 +5,10 @@ import React, {useRef} from 'react' import {commitLocalUpdate, useFragment} from 'react-relay' import SendClientSideEvent from '~/utils/SendClientSideEvent' import Atmosphere from '../Atmosphere' +import {SpotlightSearchBar_meeting$key} from '../__generated__/SpotlightSearchBar_meeting.graphql' import useAtmosphere from '../hooks/useAtmosphere' import {PALETTE} from '../styles/paletteV3' import {ElementHeight, ElementWidth} from '../types/constEnums' -import {SpotlightSearchBar_meeting$key} from '../__generated__/SpotlightSearchBar_meeting.graphql' import MenuItemComponentAvatar from './MenuItemComponentAvatar' import MenuItemLabel from './MenuItemLabel' diff --git a/packages/client/components/SpotlightSourceGroup.tsx b/packages/client/components/SpotlightSourceGroup.tsx index 0caaa45f145..5d23a6a38a7 100644 --- a/packages/client/components/SpotlightSourceGroup.tsx +++ b/packages/client/components/SpotlightSourceGroup.tsx @@ -2,8 +2,8 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React, {RefObject} from 'react' import {useFragment} from 'react-relay' -import {ElementHeight} from '../types/constEnums' import {SpotlightSourceGroup_meeting$key} from '../__generated__/SpotlightSourceGroup_meeting.graphql' +import {ElementHeight} from '../types/constEnums' import ReflectionGroup from './ReflectionGroup/ReflectionGroup' const Source = styled('div')({ diff --git a/packages/client/components/StageTimerControl.tsx b/packages/client/components/StageTimerControl.tsx index b541e7a3be5..9ac8d00ec9d 100644 --- a/packages/client/components/StageTimerControl.tsx +++ b/packages/client/components/StageTimerControl.tsx @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' -import {TransitionStatus} from '~/hooks/useTransition' import {StageTimerControl_meeting$key} from '~/__generated__/StageTimerControl_meeting.graphql' +import {TransitionStatus} from '~/hooks/useTransition' import {MenuPosition} from '../hooks/useCoords' import useMenu from '../hooks/useMenu' import {MeetingLabels} from '../types/constEnums' diff --git a/packages/client/components/StageTimerDisplay.tsx b/packages/client/components/StageTimerDisplay.tsx index ad654014eb2..5edba7dd6c5 100644 --- a/packages/client/components/StageTimerDisplay.tsx +++ b/packages/client/components/StageTimerDisplay.tsx @@ -2,12 +2,12 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {StageTimerDisplay_meeting$key} from '~/__generated__/StageTimerDisplay_meeting.graphql' import PhaseCompleteTag from '~/components/Tag/PhaseCompleteTag' import UndoableGroupPhaseControl from '~/components/UndoableGroupPhaseControl' import useAtmosphere from '~/hooks/useAtmosphere' import {Breakpoint} from '~/types/constEnums' import isDemoRoute from '~/utils/isDemoRoute' -import {StageTimerDisplay_meeting$key} from '~/__generated__/StageTimerDisplay_meeting.graphql' import StageTimerDisplayGauge from './StageTimerDisplayGauge' interface Props { diff --git a/packages/client/components/StageTimerModal.tsx b/packages/client/components/StageTimerModal.tsx index 06aff10725a..e9f30b379fb 100644 --- a/packages/client/components/StageTimerModal.tsx +++ b/packages/client/components/StageTimerModal.tsx @@ -4,10 +4,10 @@ import graphql from 'babel-plugin-relay/macro' import React, {useState} from 'react' import {useFragment} from 'react-relay' import SwipeableViews from 'react-swipeable-views' -import {MenuProps} from '../hooks/useMenu' -import {PALETTE} from '../styles/paletteV3' import {StageTimerModal_facilitator$key} from '../__generated__/StageTimerModal_facilitator.graphql' import {StageTimerModal_stage$key} from '../__generated__/StageTimerModal_stage.graphql' +import {MenuProps} from '../hooks/useMenu' +import {PALETTE} from '../styles/paletteV3' import StageTimerModalEditTimeEnd from './StageTimerModalEditTimeEnd' import StageTimerModalEditTimeLimit from './StageTimerModalEditTimeLimit' import StageTimerModalEndTime from './StageTimerModalEndTime' diff --git a/packages/client/components/StageTimerModalEditTimeEnd.tsx b/packages/client/components/StageTimerModalEditTimeEnd.tsx index b680cb7f876..d1857b20ed9 100644 --- a/packages/client/components/StageTimerModalEditTimeEnd.tsx +++ b/packages/client/components/StageTimerModalEditTimeEnd.tsx @@ -3,13 +3,13 @@ import {Stop} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {StageTimerModalEditTimeEnd_facilitator$key} from '../__generated__/StageTimerModalEditTimeEnd_facilitator.graphql' +import {StageTimerModalEditTimeEnd_stage$key} from '../__generated__/StageTimerModalEditTimeEnd_stage.graphql' import useAtmosphere from '../hooks/useAtmosphere' import useMutationProps from '../hooks/useMutationProps' import SetStageTimerMutation from '../mutations/SetStageTimerMutation' import {PALETTE} from '../styles/paletteV3' import {MeetingLabels} from '../types/constEnums' -import {StageTimerModalEditTimeEnd_facilitator$key} from '../__generated__/StageTimerModalEditTimeEnd_facilitator.graphql' -import {StageTimerModalEditTimeEnd_stage$key} from '../__generated__/StageTimerModalEditTimeEnd_stage.graphql' import MenuItemHR from './MenuItemHR' import PlainButton from './PlainButton/PlainButton' import StageTimerModalEndTime from './StageTimerModalEndTime' diff --git a/packages/client/components/StageTimerModalEditTimeLimit.tsx b/packages/client/components/StageTimerModalEditTimeLimit.tsx index 0c001e7d0d2..827e3f56b7a 100644 --- a/packages/client/components/StageTimerModalEditTimeLimit.tsx +++ b/packages/client/components/StageTimerModalEditTimeLimit.tsx @@ -3,12 +3,12 @@ import {TimerOff} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {StageTimerModalEditTimeLimit_stage$key} from '../__generated__/StageTimerModalEditTimeLimit_stage.graphql' import useAtmosphere from '../hooks/useAtmosphere' import useMutationProps from '../hooks/useMutationProps' import SetStageTimerMutation from '../mutations/SetStageTimerMutation' import {PALETTE} from '../styles/paletteV3' import {MeetingLabels} from '../types/constEnums' -import {StageTimerModalEditTimeLimit_stage$key} from '../__generated__/StageTimerModalEditTimeLimit_stage.graphql' import MenuItemHR from './MenuItemHR' import PlainButton from './PlainButton/PlainButton' import StageTimerModalTimeLimit from './StageTimerModalTimeLimit' diff --git a/packages/client/components/StageTimerModalEndTime.tsx b/packages/client/components/StageTimerModalEndTime.tsx index cabe5ecfaaf..c6c3e10fbd9 100644 --- a/packages/client/components/StageTimerModalEndTime.tsx +++ b/packages/client/components/StageTimerModalEndTime.tsx @@ -3,14 +3,14 @@ import graphql from 'babel-plugin-relay/macro' import ms from 'ms' import React, {useState} from 'react' import {useFragment} from 'react-relay' +import {StageTimerModalEndTime_facilitator$key} from '../__generated__/StageTimerModalEndTime_facilitator.graphql' +import {StageTimerModalEndTime_stage$key} from '../__generated__/StageTimerModalEndTime_stage.graphql' import useAtmosphere from '../hooks/useAtmosphere' import useMutationProps from '../hooks/useMutationProps' import NotificationErrorMessage from '../modules/notifications/components/NotificationErrorMessage' import SetStageTimerMutation from '../mutations/SetStageTimerMutation' import {MeetingLabels} from '../types/constEnums' import roundDateToNearestHalfHour from '../utils/roundDateToNearestHalfHour' -import {StageTimerModalEndTime_facilitator$key} from '../__generated__/StageTimerModalEndTime_facilitator.graphql' -import {StageTimerModalEndTime_stage$key} from '../__generated__/StageTimerModalEndTime_stage.graphql' import SecondaryButton from './SecondaryButton' import StageTimerModalEndTimeDate from './StageTimerModalEndTimeDate' import StageTimerModalEndTimeHour from './StageTimerModalEndTimeHour' diff --git a/packages/client/components/StageTimerModalEndTimeSlackToggle.tsx b/packages/client/components/StageTimerModalEndTimeSlackToggle.tsx index e3eda4a664e..39b695a17fd 100644 --- a/packages/client/components/StageTimerModalEndTimeSlackToggle.tsx +++ b/packages/client/components/StageTimerModalEndTimeSlackToggle.tsx @@ -2,14 +2,14 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {SetSlackNotificationMutation as TSetSlackNotificationMutation} from '../__generated__/SetSlackNotificationMutation.graphql' +import {StageTimerModalEndTimeSlackToggle_facilitator$key} from '../__generated__/StageTimerModalEndTimeSlackToggle_facilitator.graphql' import useAtmosphere from '../hooks/useAtmosphere' import useMutationProps from '../hooks/useMutationProps' import NotificationErrorMessage from '../modules/notifications/components/NotificationErrorMessage' import SetSlackNotificationMutation from '../mutations/SetSlackNotificationMutation' import {ICON_SIZE} from '../styles/typographyV2' import SlackClientManager from '../utils/SlackClientManager' -import {SetSlackNotificationMutation as TSetSlackNotificationMutation} from '../__generated__/SetSlackNotificationMutation.graphql' -import {StageTimerModalEndTimeSlackToggle_facilitator$key} from '../__generated__/StageTimerModalEndTimeSlackToggle_facilitator.graphql' import Checkbox from './Checkbox' import PlainButton from './PlainButton/PlainButton' diff --git a/packages/client/components/StageTimerModalTimeLimit.tsx b/packages/client/components/StageTimerModalTimeLimit.tsx index 1dc913e7b52..8e2f52f78ca 100644 --- a/packages/client/components/StageTimerModalTimeLimit.tsx +++ b/packages/client/components/StageTimerModalTimeLimit.tsx @@ -4,6 +4,7 @@ import graphql from 'babel-plugin-relay/macro' import ms from 'ms' import React, {useState} from 'react' import {useFragment} from 'react-relay' +import {StageTimerModalTimeLimit_stage$key} from '../__generated__/StageTimerModalTimeLimit_stage.graphql' import useAtmosphere from '../hooks/useAtmosphere' import {MenuPosition} from '../hooks/useCoords' import useMenu from '../hooks/useMenu' @@ -12,7 +13,6 @@ import SetStageTimerMutation from '../mutations/SetStageTimerMutation' import {PALETTE} from '../styles/paletteV3' import {MeetingLabels} from '../types/constEnums' import plural from '../utils/plural' -import {StageTimerModalTimeLimit_stage$key} from '../__generated__/StageTimerModalTimeLimit_stage.graphql' import DropdownMenuToggle from './DropdownMenuToggle' import SecondaryButton from './SecondaryButton' import StageTimerMinutePicker from './StageTimerMinutePicker' diff --git a/packages/client/components/StandardHub/StandardHub.tsx b/packages/client/components/StandardHub/StandardHub.tsx index 5180979e4d0..68a54cc3259 100644 --- a/packages/client/components/StandardHub/StandardHub.tsx +++ b/packages/client/components/StandardHub/StandardHub.tsx @@ -7,9 +7,9 @@ import WaveWhiteSVG from 'static/images/waveWhite.svg' import PlainButton from '~/components/PlainButton/PlainButton' import TierTag from '~/components/Tag/TierTag' import useRouter from '~/hooks/useRouter' +import {StandardHub_viewer$key, TierEnum} from '../../__generated__/StandardHub_viewer.graphql' import {PALETTE} from '../../styles/paletteV3' import defaultUserAvatar from '../../styles/theme/images/avatar-user.svg' -import {StandardHub_viewer$key, TierEnum} from '../../__generated__/StandardHub_viewer.graphql' import Avatar from '../Avatar/Avatar' const StandardHubRoot = styled('div')({ diff --git a/packages/client/components/StandardHubUserMenu.tsx b/packages/client/components/StandardHubUserMenu.tsx index 86a84d358f3..00c0c2f9e35 100644 --- a/packages/client/components/StandardHubUserMenu.tsx +++ b/packages/client/components/StandardHubUserMenu.tsx @@ -4,10 +4,10 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import {Link} from 'react-router-dom' +import {StandardHubUserMenu_viewer$key} from '../__generated__/StandardHubUserMenu_viewer.graphql' import {MenuProps} from '../hooks/useMenu' import {PALETTE} from '../styles/paletteV3' import {SIGNOUT_LABEL, SIGNOUT_SLUG} from '../utils/constants' -import {StandardHubUserMenu_viewer$key} from '../__generated__/StandardHubUserMenu_viewer.graphql' import DropdownMenuLabel from './DropdownMenuLabel' import Menu from './Menu' import MenuItem from './MenuItem' diff --git a/packages/client/components/SubmittedForgotPasswordPage.tsx b/packages/client/components/SubmittedForgotPasswordPage.tsx index c4cb6d42e2f..9a6fd89394d 100644 --- a/packages/client/components/SubmittedForgotPasswordPage.tsx +++ b/packages/client/components/SubmittedForgotPasswordPage.tsx @@ -8,8 +8,8 @@ import AuthenticationDialog from './AuthenticationDialog' import DialogTitle from './DialogTitle' import {AuthPageSlug, GotoAuthPage} from './GenericAuthentication' import GoogleOAuthButtonBlock from './GoogleOAuthButtonBlock' -import MicrosoftOAuthButtonBlock from './MicrosoftOAuthButtonBlock' import IconLabel from './IconLabel' +import MicrosoftOAuthButtonBlock from './MicrosoftOAuthButtonBlock' import PlainButton from './PlainButton/PlainButton' import PrimaryButton from './PrimaryButton' diff --git a/packages/client/components/SuggestMentionableUsers.tsx b/packages/client/components/SuggestMentionableUsers.tsx index 30e9cc7796c..8a1fad5aac1 100644 --- a/packages/client/components/SuggestMentionableUsers.tsx +++ b/packages/client/components/SuggestMentionableUsers.tsx @@ -2,8 +2,8 @@ import graphql from 'babel-plugin-relay/macro' import React, {useEffect} from 'react' import {PreloadedQuery, usePreloadedQuery} from 'react-relay' import stringScore from 'string-score' -import {BBox} from '../types/animations' import {SuggestMentionableUsersQuery} from '../__generated__/SuggestMentionableUsersQuery.graphql' +import {BBox} from '../types/animations' import EditorSuggestions from './EditorSuggestions/EditorSuggestions' import {MentionSuggestion} from './TaskEditor/useSuggestions' diff --git a/packages/client/components/SuggestMentionableUsersRoot.tsx b/packages/client/components/SuggestMentionableUsersRoot.tsx index efa94f84e21..9f7d4207a4f 100644 --- a/packages/client/components/SuggestMentionableUsersRoot.tsx +++ b/packages/client/components/SuggestMentionableUsersRoot.tsx @@ -1,9 +1,9 @@ import React, {Suspense} from 'react' -import useQueryLoaderNow from '../hooks/useQueryLoaderNow' -import {BBox} from '../types/animations' import suggestMentionableUsersQuery, { SuggestMentionableUsersQuery } from '../__generated__/SuggestMentionableUsersQuery.graphql' +import useQueryLoaderNow from '../hooks/useQueryLoaderNow' +import {BBox} from '../types/animations' import SuggestMentionableUsers from './SuggestMentionableUsers' import {MentionSuggestion} from './TaskEditor/useSuggestions' diff --git a/packages/client/components/SuggestedActionCreateNewTeam.tsx b/packages/client/components/SuggestedActionCreateNewTeam.tsx index d8835bf59df..b7f9eb440ed 100644 --- a/packages/client/components/SuggestedActionCreateNewTeam.tsx +++ b/packages/client/components/SuggestedActionCreateNewTeam.tsx @@ -2,9 +2,9 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import {RouteComponentProps, withRouter} from 'react-router' +import {SuggestedActionCreateNewTeam_suggestedAction$key} from '../__generated__/SuggestedActionCreateNewTeam_suggestedAction.graphql' import {PALETTE} from '../styles/paletteV3' import withMutationProps, {WithMutationProps} from '../utils/relay/withMutationProps' -import {SuggestedActionCreateNewTeam_suggestedAction$key} from '../__generated__/SuggestedActionCreateNewTeam_suggestedAction.graphql' import SuggestedActionButton from './SuggestedActionButton' import SuggestedActionCard from './SuggestedActionCard' import SuggestedActionCopy from './SuggestedActionCopy' diff --git a/packages/client/components/SuggestedActionInviteYourTeam.tsx b/packages/client/components/SuggestedActionInviteYourTeam.tsx index ec8879e69d2..3ba3bc1d9a3 100644 --- a/packages/client/components/SuggestedActionInviteYourTeam.tsx +++ b/packages/client/components/SuggestedActionInviteYourTeam.tsx @@ -2,9 +2,9 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React, {lazy} from 'react' import {useFragment} from 'react-relay' +import {SuggestedActionInviteYourTeam_suggestedAction$key} from '../__generated__/SuggestedActionInviteYourTeam_suggestedAction.graphql' import useModal from '../hooks/useModal' import {PALETTE} from '../styles/paletteV3' -import {SuggestedActionInviteYourTeam_suggestedAction$key} from '../__generated__/SuggestedActionInviteYourTeam_suggestedAction.graphql' import SuggestedActionButton from './SuggestedActionButton' import SuggestedActionCard from './SuggestedActionCard' import SuggestedActionCopy from './SuggestedActionCopy' diff --git a/packages/client/components/SuggestedActionTryActionMeeting.tsx b/packages/client/components/SuggestedActionTryActionMeeting.tsx index ac26fe9ec9d..2f2264d2e78 100644 --- a/packages/client/components/SuggestedActionTryActionMeeting.tsx +++ b/packages/client/components/SuggestedActionTryActionMeeting.tsx @@ -2,8 +2,8 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import {RouteComponentProps, withRouter} from 'react-router' -import {PALETTE} from '../styles/paletteV3' import {SuggestedActionTryActionMeeting_suggestedAction$key} from '../__generated__/SuggestedActionTryActionMeeting_suggestedAction.graphql' +import {PALETTE} from '../styles/paletteV3' import SuggestedActionButton from './SuggestedActionButton' import SuggestedActionCard from './SuggestedActionCard' import SuggestedActionCopy from './SuggestedActionCopy' diff --git a/packages/client/components/SuggestedActionTryRetroMeeting.tsx b/packages/client/components/SuggestedActionTryRetroMeeting.tsx index e9f9c1e5072..8290a1f9078 100644 --- a/packages/client/components/SuggestedActionTryRetroMeeting.tsx +++ b/packages/client/components/SuggestedActionTryRetroMeeting.tsx @@ -2,8 +2,8 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import {RouteComponentProps, withRouter} from 'react-router' -import {PALETTE} from '../styles/paletteV3' import {SuggestedActionTryRetroMeeting_suggestedAction$key} from '../__generated__/SuggestedActionTryRetroMeeting_suggestedAction.graphql' +import {PALETTE} from '../styles/paletteV3' import SuggestedActionButton from './SuggestedActionButton' import SuggestedActionCard from './SuggestedActionCard' import SuggestedActionCopy from './SuggestedActionCopy' diff --git a/packages/client/components/SuggestedActionTryTheDemo.tsx b/packages/client/components/SuggestedActionTryTheDemo.tsx index 2bf920bf38b..a6e1ef8bc43 100644 --- a/packages/client/components/SuggestedActionTryTheDemo.tsx +++ b/packages/client/components/SuggestedActionTryTheDemo.tsx @@ -3,10 +3,10 @@ import React from 'react' import {useFragment} from 'react-relay' import {RouteComponentProps, withRouter} from 'react-router' import useAtmosphere from '~/hooks/useAtmosphere' +import {SuggestedActionTryTheDemo_suggestedAction$key} from '../__generated__/SuggestedActionTryTheDemo_suggestedAction.graphql' import DismissSuggestedActionMutation from '../mutations/DismissSuggestedActionMutation' import {PALETTE} from '../styles/paletteV3' import withMutationProps, {WithMutationProps} from '../utils/relay/withMutationProps' -import {SuggestedActionTryTheDemo_suggestedAction$key} from '../__generated__/SuggestedActionTryTheDemo_suggestedAction.graphql' import SuggestedActionButton from './SuggestedActionButton' import SuggestedActionCard from './SuggestedActionCard' import SuggestedActionCopy from './SuggestedActionCopy' diff --git a/packages/client/components/Tag/TierTag.tsx b/packages/client/components/Tag/TierTag.tsx index 89dff6ea7e6..221c526972b 100644 --- a/packages/client/components/Tag/TierTag.tsx +++ b/packages/client/components/Tag/TierTag.tsx @@ -1,8 +1,8 @@ import styled from '@emotion/styled' import React from 'react' +import {TierEnum} from '../../__generated__/OrganizationSubscription.graphql' import {PALETTE} from '../../styles/paletteV3' import {TierLabel} from '../../types/constEnums' -import {TierEnum} from '../../__generated__/OrganizationSubscription.graphql' import BaseTag from './BaseTag' interface Props { diff --git a/packages/client/components/TaskColumns/TaskColumns.tsx b/packages/client/components/TaskColumns/TaskColumns.tsx index 18d664d91ce..bd42a583e8f 100644 --- a/packages/client/components/TaskColumns/TaskColumns.tsx +++ b/packages/client/components/TaskColumns/TaskColumns.tsx @@ -4,18 +4,18 @@ import React, {useMemo} from 'react' import {DragDropContext, DropResult} from 'react-beautiful-dnd' import {useFragment} from 'react-relay' import {TaskColumns_teams$key} from '~/__generated__/TaskColumns_teams.graphql' +import {TaskStatusEnum} from '../../__generated__/CreateTaskMutation.graphql' +import {TaskColumns_tasks$key} from '../../__generated__/TaskColumns_tasks.graphql' +import {AreaEnum} from '../../__generated__/UpdateTaskMutation.graphql' import EditorHelpModalContainer from '../../containers/EditorHelpModalContainer/EditorHelpModalContainer' import useAtmosphere from '../../hooks/useAtmosphere' import useEventCallback from '../../hooks/useEventCallback' import TaskColumn from '../../modules/teamDashboard/components/TaskColumn/TaskColumn' import UpdateTaskMutation from '../../mutations/UpdateTaskMutation' import {Layout} from '../../types/constEnums' -import {columnArray, MEETING, meetingColumnArray, SORT_STEP} from '../../utils/constants' +import {MEETING, SORT_STEP, columnArray, meetingColumnArray} from '../../utils/constants' import dndNoise from '../../utils/dndNoise' import makeTasksByStatus from '../../utils/makeTasksByStatus' -import {TaskStatusEnum} from '../../__generated__/CreateTaskMutation.graphql' -import {TaskColumns_tasks$key} from '../../__generated__/TaskColumns_tasks.graphql' -import {AreaEnum} from '../../__generated__/UpdateTaskMutation.graphql' const ColumnsBlock = styled('div')({ display: 'flex', diff --git a/packages/client/components/TaskEditor/CommentEditor.tsx b/packages/client/components/TaskEditor/CommentEditor.tsx index bb75b4da787..cb7378613bb 100644 --- a/packages/client/components/TaskEditor/CommentEditor.tsx +++ b/packages/client/components/TaskEditor/CommentEditor.tsx @@ -16,8 +16,8 @@ import isAndroid from '../../utils/draftjs/isAndroid' import isRichDraft from '../../utils/draftjs/isRichDraft' import lazyPreload from '../../utils/lazyPreload' import linkify from '../../utils/linkify' -import blockStyleFn from './blockStyleFn' import './Draft.css' +import blockStyleFn from './blockStyleFn' import useCommentPlugins from './useCommentPlugins' const RootEditor = styled('div')({ diff --git a/packages/client/components/TaskEditor/TaskEditor.tsx b/packages/client/components/TaskEditor/TaskEditor.tsx index 075054bba5b..3e85bb6fec8 100644 --- a/packages/client/components/TaskEditor/TaskEditor.tsx +++ b/packages/client/components/TaskEditor/TaskEditor.tsx @@ -17,8 +17,8 @@ import entitizeText from '../../utils/draftjs/entitizeText' import isAndroid from '../../utils/draftjs/isAndroid' import isRichDraft from '../../utils/draftjs/isRichDraft' import lazyPreload from '../../utils/lazyPreload' -import blockStyleFn from './blockStyleFn' import './Draft.css' +import blockStyleFn from './blockStyleFn' import useTaskPlugins from './useTaskPlugins' const RootEditor = styled('div')<{noText: boolean; readOnly: boolean | undefined}>( diff --git a/packages/client/components/TaskEditor/useSuggestions.tsx b/packages/client/components/TaskEditor/useSuggestions.tsx index 483d8bea660..ca381e7c5c9 100644 --- a/packages/client/components/TaskEditor/useSuggestions.tsx +++ b/packages/client/components/TaskEditor/useSuggestions.tsx @@ -1,5 +1,5 @@ import {EditorProps, EditorState} from 'draft-js' -import React, {lazy, Suspense, useState} from 'react' +import React, {Suspense, lazy, useState} from 'react' import useForceUpdate from '../../hooks/useForceUpdate' import {SetEditorState} from '../../types/draft' import completeEntity from '../../utils/draftjs/completeEntity' diff --git a/packages/client/components/TaskFooterIntegrateMenu.tsx b/packages/client/components/TaskFooterIntegrateMenu.tsx index f989bc6072c..06e19980674 100644 --- a/packages/client/components/TaskFooterIntegrateMenu.tsx +++ b/packages/client/components/TaskFooterIntegrateMenu.tsx @@ -1,16 +1,16 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {PreloadedQuery, useFragment, usePreloadedQuery} from 'react-relay' -import {MenuProps} from '../hooks/useMenu' -import {MenuMutationProps} from '../hooks/useMutationProps' +import {IntegrationProviderServiceEnum} from '../__generated__/CreateTaskIntegrationMutation.graphql' import {TaskFooterIntegrateMenuQuery} from '../__generated__/TaskFooterIntegrateMenuQuery.graphql' import {TaskFooterIntegrateMenu_task$key} from '../__generated__/TaskFooterIntegrateMenu_task.graphql' -import TaskFooterIntegrateMenuList from './TaskFooterIntegrateMenuList' -import TaskFooterIntegrateMenuSignup from './TaskFooterIntegrateMenuSignup' -import {IntegrationProviderServiceEnum} from '../__generated__/CreateTaskIntegrationMutation.graphql' -import CreateTaskIntegrationMutation from '../mutations/CreateTaskIntegrationMutation' import useAtmosphere from '../hooks/useAtmosphere' import {makePlaceholder, useIsIntegrated} from '../hooks/useIsIntegrated' +import {MenuProps} from '../hooks/useMenu' +import {MenuMutationProps} from '../hooks/useMutationProps' +import CreateTaskIntegrationMutation from '../mutations/CreateTaskIntegrationMutation' +import TaskFooterIntegrateMenuList from './TaskFooterIntegrateMenuList' +import TaskFooterIntegrateMenuSignup from './TaskFooterIntegrateMenuSignup' interface Props { menuProps: MenuProps diff --git a/packages/client/components/TaskFooterIntegrateMenuList.tsx b/packages/client/components/TaskFooterIntegrateMenuList.tsx index 0c5c470e7f5..0ac264f345a 100644 --- a/packages/client/components/TaskFooterIntegrateMenuList.tsx +++ b/packages/client/components/TaskFooterIntegrateMenuList.tsx @@ -4,15 +4,15 @@ import React, {useEffect, useState} from 'react' import {useLazyLoadQuery} from 'react-relay' import useSearchFilter from '~/hooks/useSearchFilter' import IntegrationRepoId from '~/shared/gqlIds/IntegrationRepoId' +import {TaskServiceEnum} from '../__generated__/CreateTaskMutation.graphql' +import {TaskFooterIntegrateMenuListLocalQuery} from '../__generated__/TaskFooterIntegrateMenuListLocalQuery.graphql' import {MenuProps} from '../hooks/useMenu' import {PALETTE} from '../styles/paletteV3' -import {TaskFooterIntegrateMenuListLocalQuery} from '../__generated__/TaskFooterIntegrateMenuListLocalQuery.graphql' import {EmptyDropdownMenuItemLabel} from './EmptyDropdownMenuItemLabel' import Menu from './Menu' import MenuItemHR from './MenuItemHR' import {SearchMenuItem} from './SearchMenuItem' import TaskIntegrationMenuItem from './TaskIntegrationMenuItem' -import {TaskServiceEnum} from '../__generated__/CreateTaskMutation.graphql' interface Props { menuProps: MenuProps diff --git a/packages/client/components/TaskFooterIntegrateMenuRoot.tsx b/packages/client/components/TaskFooterIntegrateMenuRoot.tsx index 6dddbb894a1..d9dd8740cc7 100644 --- a/packages/client/components/TaskFooterIntegrateMenuRoot.tsx +++ b/packages/client/components/TaskFooterIntegrateMenuRoot.tsx @@ -1,15 +1,15 @@ import graphql from 'babel-plugin-relay/macro' import React, {Suspense} from 'react' import {useFragment} from 'react-relay' +import taskFooterIntegrateMenuQuery, { + TaskFooterIntegrateMenuQuery +} from '../__generated__/TaskFooterIntegrateMenuQuery.graphql' +import {TaskFooterIntegrateMenuRoot_task$key} from '../__generated__/TaskFooterIntegrateMenuRoot_task.graphql' import {MenuProps} from '../hooks/useMenu' import {MenuMutationProps} from '../hooks/useMutationProps' import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import {UseTaskChild} from '../hooks/useTaskChildFocus' import {LoaderSize} from '../types/constEnums' -import taskFooterIntegrateMenuQuery, { - TaskFooterIntegrateMenuQuery -} from '../__generated__/TaskFooterIntegrateMenuQuery.graphql' -import {TaskFooterIntegrateMenuRoot_task$key} from '../__generated__/TaskFooterIntegrateMenuRoot_task.graphql' import LoadingComponent from './LoadingComponent/LoadingComponent' import TaskFooterIntegrateMenu from './TaskFooterIntegrateMenu' diff --git a/packages/client/components/TaskFooterIntegrateMenuSignup.tsx b/packages/client/components/TaskFooterIntegrateMenuSignup.tsx index e69b1af3ae7..4455346f7a4 100644 --- a/packages/client/components/TaskFooterIntegrateMenuSignup.tsx +++ b/packages/client/components/TaskFooterIntegrateMenuSignup.tsx @@ -2,8 +2,8 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' -import {PALETTE} from '~/styles/paletteV3' import {TaskFooterIntegrateMenuSignup_TeamMemberIntegrations$key} from '~/__generated__/TaskFooterIntegrateMenuSignup_TeamMemberIntegrations.graphql' +import {PALETTE} from '~/styles/paletteV3' import {MenuProps} from '../hooks/useMenu' import {MenuMutationProps} from '../hooks/useMutationProps' import AddToAzureMenuItem from './AddToAzureMenuItem' diff --git a/packages/client/components/TaskIntegrationLink.tsx b/packages/client/components/TaskIntegrationLink.tsx index 8059177592d..050af864ad3 100644 --- a/packages/client/components/TaskIntegrationLink.tsx +++ b/packages/client/components/TaskIntegrationLink.tsx @@ -3,9 +3,9 @@ import graphql from 'babel-plugin-relay/macro' import React, {ReactNode} from 'react' import {useFragment} from 'react-relay' import {parseWebPath} from '~/utils/parseWebPath' +import {TaskIntegrationLink_integration$key} from '../__generated__/TaskIntegrationLink_integration.graphql' import {PALETTE} from '../styles/paletteV3' import {Card} from '../types/constEnums' -import {TaskIntegrationLink_integration$key} from '../__generated__/TaskIntegrationLink_integration.graphql' import JiraIssueLink from './JiraIssueLink' const StyledLink = styled('a')({ diff --git a/packages/client/components/TaskIntegrationMenuItem.tsx b/packages/client/components/TaskIntegrationMenuItem.tsx index b67910c4770..c8212b3b687 100644 --- a/packages/client/components/TaskIntegrationMenuItem.tsx +++ b/packages/client/components/TaskIntegrationMenuItem.tsx @@ -3,8 +3,8 @@ import {TaskServiceEnum} from '~/../server/database/types/Task' import AzureDevOpsSVG from './AzureDevOpsSVG' import GitHubSVG from './GitHubSVG' import GitLabSVG from './GitLabSVG' -import JiraServerSVG from './JiraServerSVG' import JiraSVG from './JiraSVG' +import JiraServerSVG from './JiraServerSVG' import MenuItem from './MenuItem' import MenuItemAvatar from './MenuItemAvatar' import MenuItemLabel from './MenuItemLabel' diff --git a/packages/client/components/TaskInvolves.tsx b/packages/client/components/TaskInvolves.tsx index 88e4dac4931..0fae1dbfdd9 100644 --- a/packages/client/components/TaskInvolves.tsx +++ b/packages/client/components/TaskInvolves.tsx @@ -7,13 +7,13 @@ import NotificationAction from '~/components/NotificationAction' import OutcomeCardStatusIndicator from '~/modules/outcomeCard/components/OutcomeCardStatusIndicator/OutcomeCardStatusIndicator' import {cardShadow} from '~/styles/elevation' import convertToTaskContent from '~/utils/draftjs/convertToTaskContent' +import {TaskInvolves_notification$key} from '../__generated__/TaskInvolves_notification.graphql' import useAtmosphere from '../hooks/useAtmosphere' import useEditorState from '../hooks/useEditorState' import useMutationProps from '../hooks/useMutationProps' import useRouter from '../hooks/useRouter' import SetNotificationStatusMutation from '../mutations/SetNotificationStatusMutation' import {ASSIGNEE, MENTIONEE} from '../utils/constants' -import {TaskInvolves_notification$key} from '../__generated__/TaskInvolves_notification.graphql' import NotificationTemplate from './NotificationTemplate' const involvementWord = { diff --git a/packages/client/components/TaskWatermark.tsx b/packages/client/components/TaskWatermark.tsx index 83e7cd503d8..f98f8177ac4 100644 --- a/packages/client/components/TaskWatermark.tsx +++ b/packages/client/components/TaskWatermark.tsx @@ -3,8 +3,8 @@ import React from 'react' import AzureDevOpsSVG from './AzureDevOpsSVG' import GitHubSVG from './GitHubSVG' import GitLabSVG from './GitLabSVG' -import JiraServerSVG from './JiraServerSVG' import JiraSVG from './JiraSVG' +import JiraServerSVG from './JiraServerSVG' const iconLookup = { _xGitHubIssue: GitHubSVG, diff --git a/packages/client/components/TeamDashTeamMemberMenu.tsx b/packages/client/components/TeamDashTeamMemberMenu.tsx index 25c01145d3d..d4897ffd634 100644 --- a/packages/client/components/TeamDashTeamMemberMenu.tsx +++ b/packages/client/components/TeamDashTeamMemberMenu.tsx @@ -2,10 +2,10 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import useSearchFilter from '~/hooks/useSearchFilter' +import {TeamDashTeamMemberMenu_team$key} from '../__generated__/TeamDashTeamMemberMenu_team.graphql' import useAtmosphere from '../hooks/useAtmosphere' import {MenuProps} from '../hooks/useMenu' import filterTeamMember from '../utils/relay/filterTeamMember' -import {TeamDashTeamMemberMenu_team$key} from '../__generated__/TeamDashTeamMemberMenu_team.graphql' import DropdownMenuLabel from './DropdownMenuLabel' import {EmptyDropdownMenuItemLabel} from './EmptyDropdownMenuItemLabel' import Menu from './Menu' diff --git a/packages/client/components/TeamFilterMenu.tsx b/packages/client/components/TeamFilterMenu.tsx index c047c766518..375af20d163 100644 --- a/packages/client/components/TeamFilterMenu.tsx +++ b/packages/client/components/TeamFilterMenu.tsx @@ -1,16 +1,16 @@ import graphql from 'babel-plugin-relay/macro' import React, {useMemo, useRef} from 'react' import {useFragment} from 'react-relay' +import { + TeamFilterMenu_viewer$data, + TeamFilterMenu_viewer$key +} from '~/__generated__/TeamFilterMenu_viewer.graphql' import useAtmosphere from '~/hooks/useAtmosphere' import useRouter from '~/hooks/useRouter' import useSearchFilter from '~/hooks/useSearchFilter' import {FilterLabels} from '~/types/constEnums' import constructFilterQueryParamURL from '~/utils/constructFilterQueryParamURL' import {useQueryParameterParser} from '~/utils/useQueryParameterParser' -import { - TeamFilterMenu_viewer$data, - TeamFilterMenu_viewer$key -} from '~/__generated__/TeamFilterMenu_viewer.graphql' import {MenuProps} from '../hooks/useMenu' import DropdownMenuLabel from './DropdownMenuLabel' import {EmptyDropdownMenuItemLabel} from './EmptyDropdownMenuItemLabel' diff --git a/packages/client/components/TeamHealth.tsx b/packages/client/components/TeamHealth.tsx index 6c62b85061f..2f746c182cf 100644 --- a/packages/client/components/TeamHealth.tsx +++ b/packages/client/components/TeamHealth.tsx @@ -1,24 +1,24 @@ +import * as RadioGroup from '@radix-ui/react-radio-group' import graphql from 'babel-plugin-relay/macro' +import clsx from 'clsx' import React, {ReactElement} from 'react' import {useFragment} from 'react-relay' -import useGotoStageId from '~/hooks/useGotoStageId' import {TeamHealth_meeting$key} from '~/__generated__/TeamHealth_meeting.graphql' +import useGotoStageId from '~/hooks/useGotoStageId' +import useAtmosphere from '../hooks/useAtmosphere' +import useMutationProps from '../hooks/useMutationProps' +import RevealTeamHealthVotesMutation from '../mutations/RevealTeamHealthVotesMutation' +import SetTeamHealthVoteMutation from '../mutations/SetTeamHealthVoteMutation' +import getTeamHealthVoteColor from '../utils/getTeamHealthVoteColor' import {phaseLabelLookup} from '../utils/meetings/lookups' import MeetingContent from './MeetingContent' import MeetingHeaderAndPhase from './MeetingHeaderAndPhase' import MeetingTopBar from './MeetingTopBar' import PhaseHeaderTitle from './PhaseHeaderTitle' import PhaseWrapper from './PhaseWrapper' -import TeamHealthVotingRow from './TeamHealthVotingRow' -import useMutationProps from '../hooks/useMutationProps' -import useAtmosphere from '../hooks/useAtmosphere' -import SetTeamHealthVoteMutation from '../mutations/SetTeamHealthVoteMutation' -import RevealTeamHealthVotesMutation from '../mutations/RevealTeamHealthVotesMutation' -import * as RadioGroup from '@radix-ui/react-radio-group' -import clsx from 'clsx' import RaisedButton from './RaisedButton' -import getTeamHealthVoteColor from '../utils/getTeamHealthVoteColor' import StageTimerDisplay from './StageTimerDisplay' +import TeamHealthVotingRow from './TeamHealthVotingRow' interface Props { avatarGroup: ReactElement diff --git a/packages/client/components/TeamHealthVotingRow.tsx b/packages/client/components/TeamHealthVotingRow.tsx index e706ef3b60d..c5c98030620 100644 --- a/packages/client/components/TeamHealthVotingRow.tsx +++ b/packages/client/components/TeamHealthVotingRow.tsx @@ -1,11 +1,11 @@ +import {Check as CheckIcon} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {TeamHealthVotingRow_stage$key} from '../__generated__/TeamHealthVotingRow_stage.graphql' import {PALETTE} from '../styles/paletteV3' import {PokerCards} from '../types/constEnums' -import {TeamHealthVotingRow_stage$key} from '../__generated__/TeamHealthVotingRow_stage.graphql' import AvatarList from './AvatarList' -import {Check as CheckIcon} from '@mui/icons-material' import MiniPokerCard from './MiniPokerCard' import PokerVotingNoVotes from './PokerVotingNoVotes' diff --git a/packages/client/components/TeamInvitationDialog.tsx b/packages/client/components/TeamInvitationDialog.tsx index f28a47d7950..2b14e65c979 100644 --- a/packages/client/components/TeamInvitationDialog.tsx +++ b/packages/client/components/TeamInvitationDialog.tsx @@ -3,8 +3,8 @@ import React, {useEffect} from 'react' import {useFragment} from 'react-relay' import {RouteComponentProps, withRouter} from 'react-router' import useAtmosphere from '~/hooks/useAtmosphere' -import {LocalStorageKey} from '../types/constEnums' import {TeamInvitationDialog_verifiedInvitation$key} from '../__generated__/TeamInvitationDialog_verifiedInvitation.graphql' +import {LocalStorageKey} from '../types/constEnums' import TeamInvitationAccept from './TeamInvitationAccept' import TeamInvitationEmailCreateAccount from './TeamInvitationEmailCreateAccount' import TeamInvitationEmailSignin from './TeamInvitationEmailSignin' diff --git a/packages/client/components/TeamInvitationEmailSignin.tsx b/packages/client/components/TeamInvitationEmailSignin.tsx index 092bcaf6894..fabd428ed54 100644 --- a/packages/client/components/TeamInvitationEmailSignin.tsx +++ b/packages/client/components/TeamInvitationEmailSignin.tsx @@ -2,8 +2,9 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' -import useDocumentTitle from '../hooks/useDocumentTitle' import {TeamInvitationEmailSignin_verifiedInvitation$key} from '../__generated__/TeamInvitationEmailSignin_verifiedInvitation.graphql' +import useDocumentTitle from '../hooks/useDocumentTitle' +import {AUTH_DIALOG_WIDTH} from './AuthenticationDialog' import DialogContent from './DialogContent' import DialogTitle from './DialogTitle' import EmailPasswordAuthForm from './EmailPasswordAuthForm' @@ -11,7 +12,6 @@ import ForgotPasswordOneClick from './ForgotPasswordOneClick' import InvitationCenteredCopy from './InvitationCenteredCopy' import InvitationDialogCopy from './InvitationDialogCopy' import InviteDialog from './InviteDialog' -import {AUTH_DIALOG_WIDTH} from './AuthenticationDialog' interface Props { invitationToken: string diff --git a/packages/client/components/TeamInvitationErrorAccepted.tsx b/packages/client/components/TeamInvitationErrorAccepted.tsx index 62a901725f3..03788963fca 100644 --- a/packages/client/components/TeamInvitationErrorAccepted.tsx +++ b/packages/client/components/TeamInvitationErrorAccepted.tsx @@ -2,8 +2,8 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' -import useDocumentTitle from '../hooks/useDocumentTitle' import {TeamInvitationErrorAccepted_verifiedInvitation$key} from '../__generated__/TeamInvitationErrorAccepted_verifiedInvitation.graphql' +import useDocumentTitle from '../hooks/useDocumentTitle' import DialogContent from './DialogContent' import DialogTitle from './DialogTitle' import InvitationDialogCopy from './InvitationDialogCopy' diff --git a/packages/client/components/TeamInvitationErrorExpired.tsx b/packages/client/components/TeamInvitationErrorExpired.tsx index b3003497c2e..119e96987a2 100644 --- a/packages/client/components/TeamInvitationErrorExpired.tsx +++ b/packages/client/components/TeamInvitationErrorExpired.tsx @@ -2,9 +2,9 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {TeamInvitationErrorExpired_verifiedInvitation$key} from '../__generated__/TeamInvitationErrorExpired_verifiedInvitation.graphql' import useDocumentTitle from '../hooks/useDocumentTitle' import {PALETTE} from '../styles/paletteV3' -import {TeamInvitationErrorExpired_verifiedInvitation$key} from '../__generated__/TeamInvitationErrorExpired_verifiedInvitation.graphql' import DialogContent from './DialogContent' import DialogTitle from './DialogTitle' import InvitationDialogCopy from './InvitationDialogCopy' diff --git a/packages/client/components/TeamInvitationGoogleCreateAccount.tsx b/packages/client/components/TeamInvitationGoogleCreateAccount.tsx index e0df5c4b409..f55d4d11a9a 100644 --- a/packages/client/components/TeamInvitationGoogleCreateAccount.tsx +++ b/packages/client/components/TeamInvitationGoogleCreateAccount.tsx @@ -2,11 +2,12 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React, {useState} from 'react' import {useFragment} from 'react-relay' +import {TeamInvitationGoogleCreateAccount_verifiedInvitation$key} from '../__generated__/TeamInvitationGoogleCreateAccount_verifiedInvitation.graphql' import useDocumentTitle from '../hooks/useDocumentTitle' import useRouter from '../hooks/useRouter' import {PALETTE} from '../styles/paletteV3' -import {TeamInvitationGoogleCreateAccount_verifiedInvitation$key} from '../__generated__/TeamInvitationGoogleCreateAccount_verifiedInvitation.graphql' import AuthPrivacyFooter from './AuthPrivacyFooter' +import {AUTH_DIALOG_WIDTH} from './AuthenticationDialog' import DialogContent from './DialogContent' import DialogTitle from './DialogTitle' import EmailPasswordAuthForm from './EmailPasswordAuthForm' @@ -16,7 +17,6 @@ import InvitationCenteredCopy from './InvitationCenteredCopy' import InvitationDialogCopy from './InvitationDialogCopy' import InviteDialog from './InviteDialog' import PlainButton from './PlainButton/PlainButton' -import {AUTH_DIALOG_WIDTH} from './AuthenticationDialog' interface Props { invitationToken: string diff --git a/packages/client/components/TeamInvitationGoogleSignin.tsx b/packages/client/components/TeamInvitationGoogleSignin.tsx index 463ade9ac2d..d7695aa5c49 100644 --- a/packages/client/components/TeamInvitationGoogleSignin.tsx +++ b/packages/client/components/TeamInvitationGoogleSignin.tsx @@ -2,9 +2,9 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {TeamInvitationGoogleSignin_verifiedInvitation$key} from '../__generated__/TeamInvitationGoogleSignin_verifiedInvitation.graphql' import useDocumentTitle from '../hooks/useDocumentTitle' import useRouter from '../hooks/useRouter' -import {TeamInvitationGoogleSignin_verifiedInvitation$key} from '../__generated__/TeamInvitationGoogleSignin_verifiedInvitation.graphql' import DialogContent from './DialogContent' import DialogTitle from './DialogTitle' import GoogleOAuthButtonBlock from './GoogleOAuthButtonBlock' diff --git a/packages/client/components/TeamInvitationNotification.tsx b/packages/client/components/TeamInvitationNotification.tsx index 4f8a5156e04..cd51db6de15 100644 --- a/packages/client/components/TeamInvitationNotification.tsx +++ b/packages/client/components/TeamInvitationNotification.tsx @@ -1,11 +1,11 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {TeamInvitationNotification_notification$key} from '~/__generated__/TeamInvitationNotification_notification.graphql' import NotificationAction from '~/components/NotificationAction' import useAtmosphere from '~/hooks/useAtmosphere' import useMutationProps from '~/hooks/useMutationProps' import useRouter from '~/hooks/useRouter' -import {TeamInvitationNotification_notification$key} from '~/__generated__/TeamInvitationNotification_notification.graphql' import AcceptTeamInvitationMutation from '../mutations/AcceptTeamInvitationMutation' import NotificationTemplate from './NotificationTemplate' diff --git a/packages/client/components/TeamInvitationRoot.tsx b/packages/client/components/TeamInvitationRoot.tsx index 6dbf2011256..f64b07f2923 100644 --- a/packages/client/components/TeamInvitationRoot.tsx +++ b/packages/client/components/TeamInvitationRoot.tsx @@ -1,7 +1,7 @@ import React, {Suspense} from 'react' import {RouteComponentProps} from 'react-router' -import useNoIndex from '~/hooks/useNoIndex' import teamInvitationQuery, {TeamInvitationQuery} from '~/__generated__/TeamInvitationQuery.graphql' +import useNoIndex from '~/hooks/useNoIndex' import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import TeamInvitation from './TeamInvitation' diff --git a/packages/client/components/TeamPrompt/TeamPromptDiscussionDrawer.tsx b/packages/client/components/TeamPrompt/TeamPromptDiscussionDrawer.tsx index 1104253543a..5601ff433b4 100644 --- a/packages/client/components/TeamPrompt/TeamPromptDiscussionDrawer.tsx +++ b/packages/client/components/TeamPrompt/TeamPromptDiscussionDrawer.tsx @@ -4,18 +4,18 @@ import {JSONContent} from '@tiptap/react' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {TeamPromptDiscussionDrawer_meeting$key} from '~/__generated__/TeamPromptDiscussionDrawer_meeting.graphql' import useAtmosphere from '~/hooks/useAtmosphere' import useMutationProps from '~/hooks/useMutationProps' import AddReactjiToReactableMutation from '~/mutations/AddReactjiToReactableMutation' import ReactjiId from '~/shared/gqlIds/ReactjiId' import findStageById from '~/utils/meetings/findStageById' -import {TeamPromptDiscussionDrawer_meeting$key} from '~/__generated__/TeamPromptDiscussionDrawer_meeting.graphql' import {PALETTE} from '../../styles/paletteV3' import Avatar from '../Avatar/Avatar' import DiscussionThreadRoot from '../DiscussionThreadRoot' import PlainButton from '../PlainButton/PlainButton' -import PromptResponseEditor from '../promptResponse/PromptResponseEditor' import ReactjiSection from '../ReflectionCard/ReactjiSection' +import PromptResponseEditor from '../promptResponse/PromptResponseEditor' import TeamPromptLastUpdatedTime from './TeamPromptLastUpdatedTime' const ThreadColumn = styled('div')({ diff --git a/packages/client/components/TeamPrompt/TeamPromptDrawer.tsx b/packages/client/components/TeamPrompt/TeamPromptDrawer.tsx index df0281c13b3..3392a34bcb7 100644 --- a/packages/client/components/TeamPrompt/TeamPromptDrawer.tsx +++ b/packages/client/components/TeamPrompt/TeamPromptDrawer.tsx @@ -2,16 +2,16 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {commitLocalUpdate, useFragment} from 'react-relay' -import useAtmosphere from '~/hooks/useAtmosphere' import {TeamPromptDrawer_meeting$key} from '~/__generated__/TeamPromptDrawer_meeting.graphql' +import useAtmosphere from '~/hooks/useAtmosphere' +import useBreakpoint from '../../hooks/useBreakpoint' import {desktopSidebarShadow} from '../../styles/elevation' import {BezierCurve, Breakpoint, DiscussionThreadEnum, ZIndex} from '../../types/constEnums' +import SendClientSideEvent from '../../utils/SendClientSideEvent' +import findStageById from '../../utils/meetings/findStageById' import ResponsiveDashSidebar from '../ResponsiveDashSidebar' import TeamPromptDiscussionDrawer from './TeamPromptDiscussionDrawer' import TeamPromptWorkDrawer from './TeamPromptWorkDrawer' -import useBreakpoint from '../../hooks/useBreakpoint' -import findStageById from '../../utils/meetings/findStageById' -import SendClientSideEvent from '../../utils/SendClientSideEvent' export const Drawer = styled('div')<{isDesktop: boolean; isMobile: boolean; isOpen: boolean}>( ({isDesktop, isMobile, isOpen}) => ({ diff --git a/packages/client/components/TeamPrompt/TeamPromptEditablePrompt.tsx b/packages/client/components/TeamPrompt/TeamPromptEditablePrompt.tsx index e9d870fd4ea..c31f0c79eaa 100644 --- a/packages/client/components/TeamPrompt/TeamPromptEditablePrompt.tsx +++ b/packages/client/components/TeamPrompt/TeamPromptEditablePrompt.tsx @@ -3,12 +3,12 @@ import {Edit} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {TeamPromptEditablePrompt_meeting$key} from '~/__generated__/TeamPromptEditablePrompt_meeting.graphql' import useAtmosphere from '~/hooks/useAtmosphere' import useModal from '~/hooks/useModal' import useMutationProps from '~/hooks/useMutationProps' import UpdateMeetingPromptMutation from '~/mutations/UpdateMeetingPromptMutation' import {PALETTE} from '~/styles/paletteV3' -import {TeamPromptEditablePrompt_meeting$key} from '~/__generated__/TeamPromptEditablePrompt_meeting.graphql' import TeamPromptEditablePromptModal from './TeamPromptEditablePromptModal' const Prompt = styled('h1')<{isEditable?: boolean}>(({isEditable = false}) => ({ diff --git a/packages/client/components/TeamPrompt/TeamPromptOptions.tsx b/packages/client/components/TeamPrompt/TeamPromptOptions.tsx index bef32e09be0..cf307d37157 100644 --- a/packages/client/components/TeamPrompt/TeamPromptOptions.tsx +++ b/packages/client/components/TeamPrompt/TeamPromptOptions.tsx @@ -2,11 +2,11 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {TeamPromptOptions_meeting$key} from '~/__generated__/TeamPromptOptions_meeting.graphql' import {MenuPosition} from '~/hooks/useCoords' import useMenu from '~/hooks/useMenu' import {PALETTE} from '~/styles/paletteV3' import {mergeRefs} from '~/utils/react/mergeRefs' -import {TeamPromptOptions_meeting$key} from '~/__generated__/TeamPromptOptions_meeting.graphql' import useTooltip from '../../hooks/useTooltip' import BaseButton from '../BaseButton' import IconLabel from '../IconLabel' diff --git a/packages/client/components/TeamPrompt/TeamPromptOptionsMenu.tsx b/packages/client/components/TeamPrompt/TeamPromptOptionsMenu.tsx index d0d1d211609..ce8ed1e29df 100644 --- a/packages/client/components/TeamPrompt/TeamPromptOptionsMenu.tsx +++ b/packages/client/components/TeamPrompt/TeamPromptOptionsMenu.tsx @@ -2,16 +2,16 @@ import styled from '@emotion/styled' import {Flag, Link as MuiLink, OpenInNew, Replay} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React from 'react' -import {Link} from 'react-router-dom' import {useFragment} from 'react-relay' +import {Link} from 'react-router-dom' +import {TeamPromptOptionsMenu_meeting$key} from '~/__generated__/TeamPromptOptionsMenu_meeting.graphql' import useAtmosphere from '~/hooks/useAtmosphere' import {MenuProps} from '~/hooks/useMenu' import useMutationProps from '~/hooks/useMutationProps' import useRouter from '~/hooks/useRouter' import EndTeamPromptMutation from '~/mutations/EndTeamPromptMutation' -import {TeamPromptOptionsMenu_meeting$key} from '~/__generated__/TeamPromptOptionsMenu_meeting.graphql' -import SendClientSideEvent from '../../utils/SendClientSideEvent' import {PALETTE} from '../../styles/paletteV3' +import SendClientSideEvent from '../../utils/SendClientSideEvent' import makeAppURL from '../../utils/makeAppURL' import Menu from '../Menu' import MenuItem from '../MenuItem' diff --git a/packages/client/components/TeamPrompt/TeamPromptRepliesAvatarList.tsx b/packages/client/components/TeamPrompt/TeamPromptRepliesAvatarList.tsx index a97ee933707..a5c92a70afa 100644 --- a/packages/client/components/TeamPrompt/TeamPromptRepliesAvatarList.tsx +++ b/packages/client/components/TeamPrompt/TeamPromptRepliesAvatarList.tsx @@ -2,9 +2,9 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {TeamPromptRepliesAvatarList_edges$key} from '~/__generated__/TeamPromptRepliesAvatarList_edges.graphql' import useOverflowAvatars from '~/hooks/useOverflowAvatars' import {TransitionStatus} from '~/hooks/useTransition' -import {TeamPromptRepliesAvatarList_edges$key} from '~/__generated__/TeamPromptRepliesAvatarList_edges.graphql' import AvatarListUser from '../AvatarListUser' import TeamPromptOverflowAvatar from './TeamPromptOverflowAvatar' diff --git a/packages/client/components/TeamPrompt/TeamPromptResponseCard.tsx b/packages/client/components/TeamPrompt/TeamPromptResponseCard.tsx index 9bd86c9eb8e..ac9f72b9ab9 100644 --- a/packages/client/components/TeamPrompt/TeamPromptResponseCard.tsx +++ b/packages/client/components/TeamPrompt/TeamPromptResponseCard.tsx @@ -1,10 +1,12 @@ import styled from '@emotion/styled' +import {Link} from '@mui/icons-material' import {Editor as EditorState} from '@tiptap/core' import {JSONContent} from '@tiptap/react' import graphql from 'babel-plugin-relay/macro' import React, {useMemo} from 'react' -import {commitLocalUpdate, useFragment} from 'react-relay' import CopyToClipboard from 'react-copy-to-clipboard' +import {commitLocalUpdate, useFragment} from 'react-relay' +import {TeamPromptResponseCard_stage$key} from '~/__generated__/TeamPromptResponseCard_stage.graphql' import useAnimatedCard from '~/hooks/useAnimatedCard' import useAtmosphere from '~/hooks/useAtmosphere' import useEventCallback from '~/hooks/useEventCallback' @@ -13,9 +15,13 @@ import {Elevation} from '~/styles/elevation' import {PALETTE} from '~/styles/paletteV3' import {BezierCurve, Card} from '~/types/constEnums' import plural from '~/utils/plural' -import {TeamPromptResponseCard_stage$key} from '~/__generated__/TeamPromptResponseCard_stage.graphql' +import {MenuPosition} from '../../hooks/useCoords' import useMutationProps from '../../hooks/useMutationProps' +import useTooltip from '../../hooks/useTooltip' import UpsertTeamPromptResponseMutation from '../../mutations/UpsertTeamPromptResponseMutation' +import SendClientSideEvent from '../../utils/SendClientSideEvent' +import makeAppURL from '../../utils/makeAppURL' +import {mergeRefs} from '../../utils/react/mergeRefs' import Avatar from '../Avatar/Avatar' import PlainButton from '../PlainButton/PlainButton' import PromptResponseEditor from '../promptResponse/PromptResponseEditor' @@ -23,12 +29,6 @@ import {ResponseCardDimensions, ResponsesGridBreakpoints} from './TeamPromptGrid import TeamPromptLastUpdatedTime from './TeamPromptLastUpdatedTime' import TeamPromptRepliesAvatarList from './TeamPromptRepliesAvatarList' import {TeamPromptResponseEmojis} from './TeamPromptResponseEmojis' -import makeAppURL from '../../utils/makeAppURL' -import SendClientSideEvent from '../../utils/SendClientSideEvent' -import {mergeRefs} from '../../utils/react/mergeRefs' -import useTooltip from '../../hooks/useTooltip' -import {MenuPosition} from '../../hooks/useCoords' -import {Link} from '@mui/icons-material' const twoColumnResponseMediaQuery = `@media screen and (min-width: ${ResponsesGridBreakpoints.TWO_RESPONSE_COLUMN}px)` const threeColumnResponseMediaQuery = `@media screen and (min-width: ${ResponsesGridBreakpoints.THREE_RESPONSE_COLUMNS}px)` diff --git a/packages/client/components/TeamPrompt/TeamPromptResponseEmojis.tsx b/packages/client/components/TeamPrompt/TeamPromptResponseEmojis.tsx index 712858a306c..69c435bb3a7 100644 --- a/packages/client/components/TeamPrompt/TeamPromptResponseEmojis.tsx +++ b/packages/client/components/TeamPrompt/TeamPromptResponseEmojis.tsx @@ -1,11 +1,11 @@ import graphql from 'babel-plugin-relay/macro' +import React from 'react' import {useFragment} from 'react-relay' import {TeamPromptResponseEmojis_response$key} from '~/__generated__/TeamPromptResponseEmojis_response.graphql' import useAtmosphere from '../../hooks/useAtmosphere' import useMutationProps from '../../hooks/useMutationProps' import AddReactjiToReactableMutation from '../../mutations/AddReactjiToReactableMutation' import ReactjiId from '../../shared/gqlIds/ReactjiId' -import React from 'react' import ReactjiSection from '../ReflectionCard/ReactjiSection' interface Props { diff --git a/packages/client/components/TeamPrompt/TeamPromptTopBar.tsx b/packages/client/components/TeamPrompt/TeamPromptTopBar.tsx index d99f03661ef..bcf1ff3477f 100644 --- a/packages/client/components/TeamPrompt/TeamPromptTopBar.tsx +++ b/packages/client/components/TeamPrompt/TeamPromptTopBar.tsx @@ -1,25 +1,25 @@ import styled from '@emotion/styled' +import {KeyboardArrowLeft, KeyboardArrowRight} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' -import {Link} from 'react-router-dom' import React from 'react' import {commitLocalUpdate, useFragment} from 'react-relay' +import {Link} from 'react-router-dom' +import {TeamPromptTopBar_meeting$key} from '~/__generated__/TeamPromptTopBar_meeting.graphql' import useAtmosphere from '~/hooks/useAtmosphere' import {useRenameMeeting} from '~/hooks/useRenameMeeting' import NewMeetingAvatarGroup from '~/modules/meeting/components/MeetingAvatarGroup/NewMeetingAvatarGroup' -import {TeamPromptTopBar_meeting$key} from '~/__generated__/TeamPromptTopBar_meeting.graphql' import useModal from '../../hooks/useModal' import {meetingAvatarMediaQueries, meetingTopBarMediaQuery} from '../../styles/meeting' +import SendClientSideEvent from '../../utils/SendClientSideEvent' import EditableText from '../EditableText' +import IconLabel from '../IconLabel' import LogoBlock from '../LogoBlock/LogoBlock' import {IconGroupBlock, MeetingTopBarStyles} from '../MeetingTopBar' +import {EndRecurringMeetingModal} from '../Recurrence/EndRecurringMeetingModal' import {HumanReadableRecurrenceRule} from '../Recurrence/HumanReadableRecurrenceRule' import {UpdateRecurrenceSettingsModal} from '../Recurrence/UpdateRecurrenceSettingsModal' -import {EndRecurringMeetingModal} from '../Recurrence/EndRecurringMeetingModal' import {TeamPromptMeetingStatus} from './TeamPromptMeetingStatus' import TeamPromptOptions from './TeamPromptOptions' -import {KeyboardArrowLeft, KeyboardArrowRight} from '@mui/icons-material' -import IconLabel from '../IconLabel' -import SendClientSideEvent from '../../utils/SendClientSideEvent' const TeamPromptLogoBlock = styled(LogoBlock)({ marginRight: '8px', diff --git a/packages/client/components/TeamPrompt/TeamPromptWorkDrawer.tsx b/packages/client/components/TeamPrompt/TeamPromptWorkDrawer.tsx index b095e66d6f9..9f51d4e28cd 100644 --- a/packages/client/components/TeamPrompt/TeamPromptWorkDrawer.tsx +++ b/packages/client/components/TeamPrompt/TeamPromptWorkDrawer.tsx @@ -3,18 +3,18 @@ import graphql from 'babel-plugin-relay/macro' import React, {useEffect, useState} from 'react' import {useFragment} from 'react-relay' import {TeamPromptWorkDrawer_meeting$key} from '../../__generated__/TeamPromptWorkDrawer_meeting.graphql' -import Tabs from '../Tabs/Tabs' -import Tab from '../Tab/Tab' -import ParabolLogoSVG from '../ParabolLogoSVG' +import useAtmosphere from '../../hooks/useAtmosphere' +import gcalLogo from '../../styles/theme/images/graphics/google-calendar.svg' +import SendClientSideEvent from '../../utils/SendClientSideEvent' import GitHubSVG from '../GitHubSVG' -import ParabolTasksPanel from './WorkDrawer/ParabolTasksPanel' -import GitHubIntegrationPanel from './WorkDrawer/GitHubIntegrationPanel' import JiraSVG from '../JiraSVG' -import JiraIntegrationPanel from './WorkDrawer/JiraIntegrationPanel' -import gcalLogo from '../../styles/theme/images/graphics/google-calendar.svg' +import ParabolLogoSVG from '../ParabolLogoSVG' +import Tab from '../Tab/Tab' +import Tabs from '../Tabs/Tabs' import GCalIntegrationPanel from './WorkDrawer/GCalIntegrationPanel' -import SendClientSideEvent from '../../utils/SendClientSideEvent' -import useAtmosphere from '../../hooks/useAtmosphere' +import GitHubIntegrationPanel from './WorkDrawer/GitHubIntegrationPanel' +import JiraIntegrationPanel from './WorkDrawer/JiraIntegrationPanel' +import ParabolTasksPanel from './WorkDrawer/ParabolTasksPanel' interface Props { meetingRef: TeamPromptWorkDrawer_meeting$key diff --git a/packages/client/components/TeamPrompt/WorkDrawer/GCalEventCard.tsx b/packages/client/components/TeamPrompt/WorkDrawer/GCalEventCard.tsx index d07a773d4a9..0c975f1f8a9 100644 --- a/packages/client/components/TeamPrompt/WorkDrawer/GCalEventCard.tsx +++ b/packages/client/components/TeamPrompt/WorkDrawer/GCalEventCard.tsx @@ -1,16 +1,16 @@ +import {ContentCopy} from '@mui/icons-material' +import graphql from 'babel-plugin-relay/macro' +import clsx from 'clsx' +import ms from 'ms' import React from 'react' import CopyToClipboard from 'react-copy-to-clipboard' -import useTooltip from '../../../hooks/useTooltip' -import {MenuPosition} from '../../../hooks/useCoords' import {useFragment} from 'react-relay' -import graphql from 'babel-plugin-relay/macro' import {GCalEventCard_event$key} from '../../../__generated__/GCalEventCard_event.graphql' -import {mergeRefs} from '../../../utils/react/mergeRefs' -import clsx from 'clsx' -import {ContentCopy} from '@mui/icons-material' -import ms from 'ms' -import SendClientSideEvent from '../../../utils/SendClientSideEvent' import useAtmosphere from '../../../hooks/useAtmosphere' +import {MenuPosition} from '../../../hooks/useCoords' +import useTooltip from '../../../hooks/useTooltip' +import SendClientSideEvent from '../../../utils/SendClientSideEvent' +import {mergeRefs} from '../../../utils/react/mergeRefs' interface Props { eventRef: GCalEventCard_event$key diff --git a/packages/client/components/TeamPrompt/WorkDrawer/GCalIntegrationPanel.tsx b/packages/client/components/TeamPrompt/WorkDrawer/GCalIntegrationPanel.tsx index f27505d9411..88ce942c7ec 100644 --- a/packages/client/components/TeamPrompt/WorkDrawer/GCalIntegrationPanel.tsx +++ b/packages/client/components/TeamPrompt/WorkDrawer/GCalIntegrationPanel.tsx @@ -1,14 +1,14 @@ -import React, {useState} from 'react' import graphql from 'babel-plugin-relay/macro' +import clsx from 'clsx' +import React, {useState} from 'react' import {useFragment} from 'react-relay' import {GCalIntegrationPanel_meeting$key} from '../../../__generated__/GCalIntegrationPanel_meeting.graphql' import useAtmosphere from '../../../hooks/useAtmosphere' import useMutationProps from '../../../hooks/useMutationProps' -import GCalIntegrationResultsRoot from './GCalIntegrationResultsRoot' -import GcalClientManager from '../../../utils/GcalClientManager' import gcalSVG from '../../../styles/theme/images/graphics/google-calendar.svg' -import clsx from 'clsx' +import GcalClientManager from '../../../utils/GcalClientManager' import SendClientSideEvent from '../../../utils/SendClientSideEvent' +import GCalIntegrationResultsRoot from './GCalIntegrationResultsRoot' const GCAL_QUERY_TABS = [ { diff --git a/packages/client/components/TeamPrompt/WorkDrawer/GCalIntegrationResults.tsx b/packages/client/components/TeamPrompt/WorkDrawer/GCalIntegrationResults.tsx index 5f007cd29f8..3d125709b65 100644 --- a/packages/client/components/TeamPrompt/WorkDrawer/GCalIntegrationResults.tsx +++ b/packages/client/components/TeamPrompt/WorkDrawer/GCalIntegrationResults.tsx @@ -1,11 +1,11 @@ -import React from 'react' +import {OpenInNew} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' +import React from 'react' import {PreloadedQuery, usePreloadedQuery} from 'react-relay' -import {GCalIntegrationResultsQuery} from '../../../__generated__/GCalIntegrationResultsQuery.graphql' +import {Link} from 'react-router-dom' import halloweenRetrospectiveTemplate from '../../../../../static/images/illustrations/halloweenRetrospectiveTemplate.png' +import {GCalIntegrationResultsQuery} from '../../../__generated__/GCalIntegrationResultsQuery.graphql' import GCalEventCard from './GCalEventCard' -import {OpenInNew} from '@mui/icons-material' -import {Link} from 'react-router-dom' interface Props { queryRef: PreloadedQuery diff --git a/packages/client/components/TeamPrompt/WorkDrawer/GCalIntegrationResultsRoot.tsx b/packages/client/components/TeamPrompt/WorkDrawer/GCalIntegrationResultsRoot.tsx index abb92e6da8c..b9f6a2f7362 100644 --- a/packages/client/components/TeamPrompt/WorkDrawer/GCalIntegrationResultsRoot.tsx +++ b/packages/client/components/TeamPrompt/WorkDrawer/GCalIntegrationResultsRoot.tsx @@ -1,12 +1,12 @@ +import ms from 'ms' import React, {Suspense} from 'react' -import useQueryLoaderNow from '../../../hooks/useQueryLoaderNow' +import {Loader} from '~/utils/relay/renderLoader' import gcalIntegrationResultsQuery, { GCalIntegrationResultsQuery } from '../../../__generated__/GCalIntegrationResultsQuery.graphql' +import useQueryLoaderNow from '../../../hooks/useQueryLoaderNow' import ErrorBoundary from '../../ErrorBoundary' import GCalIntegrationResults from './GCalIntegrationResults' -import {Loader} from '~/utils/relay/renderLoader' -import ms from 'ms' interface Props { teamId: string diff --git a/packages/client/components/TeamPrompt/WorkDrawer/GitHubIntegrationPanel.tsx b/packages/client/components/TeamPrompt/WorkDrawer/GitHubIntegrationPanel.tsx index f683a5d4187..5f7bfd142e7 100644 --- a/packages/client/components/TeamPrompt/WorkDrawer/GitHubIntegrationPanel.tsx +++ b/packages/client/components/TeamPrompt/WorkDrawer/GitHubIntegrationPanel.tsx @@ -1,15 +1,15 @@ -import React, {useState} from 'react' import graphql from 'babel-plugin-relay/macro' +import clsx from 'clsx' +import React, {useState} from 'react' import {useFragment} from 'react-relay' import {GitHubIntegrationPanel_meeting$key} from '../../../__generated__/GitHubIntegrationPanel_meeting.graphql' -import clsx from 'clsx' -import gitHubSVG from '../../../styles/theme/images/graphics/github-circle.svg' -import GitHubClientManager from '../../../utils/GitHubClientManager' import useAtmosphere from '../../../hooks/useAtmosphere' import useMutationProps from '../../../hooks/useMutationProps' +import gitHubSVG from '../../../styles/theme/images/graphics/github-circle.svg' +import GitHubClientManager from '../../../utils/GitHubClientManager' +import SendClientSideEvent from '../../../utils/SendClientSideEvent' import GitHubIntegrationResultsRoot from './GitHubIntegrationResultsRoot' import GitHubRepoFilterBar from './GitHubRepoFilterBar' -import SendClientSideEvent from '../../../utils/SendClientSideEvent' const GITHUB_QUERY_TABS: {key: 'issue' | 'pullRequest'; label: string}[] = [ { diff --git a/packages/client/components/TeamPrompt/WorkDrawer/GitHubIntegrationResults.tsx b/packages/client/components/TeamPrompt/WorkDrawer/GitHubIntegrationResults.tsx index b8e5b88d804..cf9914e1d4a 100644 --- a/packages/client/components/TeamPrompt/WorkDrawer/GitHubIntegrationResults.tsx +++ b/packages/client/components/TeamPrompt/WorkDrawer/GitHubIntegrationResults.tsx @@ -1,14 +1,14 @@ -import React from 'react' import graphql from 'babel-plugin-relay/macro' +import React from 'react' import {PreloadedQuery, usePaginationFragment, usePreloadedQuery} from 'react-relay' +import {Link} from 'react-router-dom' +import halloweenRetrospectiveTemplate from '../../../../../static/images/illustrations/halloweenRetrospectiveTemplate.png' import {GitHubIntegrationResultsQuery} from '../../../__generated__/GitHubIntegrationResultsQuery.graphql' import {GitHubIntegrationResultsSearchPaginationQuery} from '../../../__generated__/GitHubIntegrationResultsSearchPaginationQuery.graphql' import {GitHubIntegrationResults_search$key} from '../../../__generated__/GitHubIntegrationResults_search.graphql' import useLoadNextOnScrollBottom from '../../../hooks/useLoadNextOnScrollBottom' -import halloweenRetrospectiveTemplate from '../../../../../static/images/illustrations/halloweenRetrospectiveTemplate.png' -import GitHubObjectCard from './GitHubObjectCard' import Ellipsis from '../../Ellipsis/Ellipsis' -import {Link} from 'react-router-dom' +import GitHubObjectCard from './GitHubObjectCard' interface Props { queryRef: PreloadedQuery diff --git a/packages/client/components/TeamPrompt/WorkDrawer/GitHubIntegrationResultsRoot.tsx b/packages/client/components/TeamPrompt/WorkDrawer/GitHubIntegrationResultsRoot.tsx index 32b3c8c8d90..394487eb5ed 100644 --- a/packages/client/components/TeamPrompt/WorkDrawer/GitHubIntegrationResultsRoot.tsx +++ b/packages/client/components/TeamPrompt/WorkDrawer/GitHubIntegrationResultsRoot.tsx @@ -1,11 +1,11 @@ import React, {Suspense} from 'react' -import useQueryLoaderNow from '../../../hooks/useQueryLoaderNow' +import {Loader} from '~/utils/relay/renderLoader' import gitHubIntegrationResultsQuery, { GitHubIntegrationResultsQuery } from '../../../__generated__/GitHubIntegrationResultsQuery.graphql' +import useQueryLoaderNow from '../../../hooks/useQueryLoaderNow' import ErrorBoundary from '../../ErrorBoundary' import GitHubIntegrationResults from './GitHubIntegrationResults' -import {Loader} from '~/utils/relay/renderLoader' interface Props { teamId: string diff --git a/packages/client/components/TeamPrompt/WorkDrawer/GitHubObjectCard.tsx b/packages/client/components/TeamPrompt/WorkDrawer/GitHubObjectCard.tsx index 266a9e459f3..678ab58dffb 100644 --- a/packages/client/components/TeamPrompt/WorkDrawer/GitHubObjectCard.tsx +++ b/packages/client/components/TeamPrompt/WorkDrawer/GitHubObjectCard.tsx @@ -1,22 +1,22 @@ +import {Link} from '@mui/icons-material' +import graphql from 'babel-plugin-relay/macro' import React from 'react' import CopyToClipboard from 'react-copy-to-clipboard' +import {useFragment} from 'react-relay' +import {GitHubObjectCard_result$key} from '../../../__generated__/GitHubObjectCard_result.graphql' +import useAtmosphere from '../../../hooks/useAtmosphere' +import {MenuPosition} from '../../../hooks/useCoords' +import useTooltip from '../../../hooks/useTooltip' import gitHubSVG from '../../../styles/theme/images/graphics/github-circle.svg' -import gitHubMerged from '../../../styles/theme/images/graphics/github-merged.svg' import githubIssueClosed from '../../../styles/theme/images/graphics/github-issue-closed.svg' import githubIssueOpen from '../../../styles/theme/images/graphics/github-issue-open.svg' -import githubPROpen from '../../../styles/theme/images/graphics/github-pr-open.svg' -import githubPRDraft from '../../../styles/theme/images/graphics/github-pr-draft.svg' +import gitHubMerged from '../../../styles/theme/images/graphics/github-merged.svg' import githubPRClosed from '../../../styles/theme/images/graphics/github-pr-closed.svg' +import githubPRDraft from '../../../styles/theme/images/graphics/github-pr-draft.svg' +import githubPROpen from '../../../styles/theme/images/graphics/github-pr-open.svg' +import SendClientSideEvent from '../../../utils/SendClientSideEvent' import relativeDate from '../../../utils/date/relativeDate' -import {Link} from '@mui/icons-material' -import useTooltip from '../../../hooks/useTooltip' -import {MenuPosition} from '../../../hooks/useCoords' -import {useFragment} from 'react-relay' -import graphql from 'babel-plugin-relay/macro' -import {GitHubObjectCard_result$key} from '../../../__generated__/GitHubObjectCard_result.graphql' import {mergeRefs} from '../../../utils/react/mergeRefs' -import useAtmosphere from '../../../hooks/useAtmosphere' -import SendClientSideEvent from '../../../utils/SendClientSideEvent' const ISSUE_STATUS_MAP: Record = { OPEN: githubIssueOpen, diff --git a/packages/client/components/TeamPrompt/WorkDrawer/GitHubRepoFilterBar.tsx b/packages/client/components/TeamPrompt/WorkDrawer/GitHubRepoFilterBar.tsx index b845085f343..8cae46ae645 100644 --- a/packages/client/components/TeamPrompt/WorkDrawer/GitHubRepoFilterBar.tsx +++ b/packages/client/components/TeamPrompt/WorkDrawer/GitHubRepoFilterBar.tsx @@ -1,15 +1,14 @@ -import React from 'react' +import {ExpandMore, FilterList} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' -import {FilterList} from '@mui/icons-material' -import useMenu from '../../../hooks/useMenu' -import {MenuPosition} from '../../../hooks/useCoords' -import GitHubRepoSearchFilterMenu from '../../GitHubRepoSearchFilterMenu' +import clsx from 'clsx' +import React from 'react' import {useFragment} from 'react-relay' import {GitHubRepoFilterBar_teamMember$key} from '../../../__generated__/GitHubRepoFilterBar_teamMember.graphql' -import {ExpandMore} from '@mui/icons-material' +import {MenuPosition} from '../../../hooks/useCoords' +import useMenu from '../../../hooks/useMenu' import {PortalStatus} from '../../../hooks/usePortal' -import clsx from 'clsx' import plural from '../../../utils/plural' +import GitHubRepoSearchFilterMenu from '../../GitHubRepoSearchFilterMenu' interface Props { teamMemberRef: GitHubRepoFilterBar_teamMember$key diff --git a/packages/client/components/TeamPrompt/WorkDrawer/JiraIntegrationPanel.tsx b/packages/client/components/TeamPrompt/WorkDrawer/JiraIntegrationPanel.tsx index 88901f01b9b..6430d4724b0 100644 --- a/packages/client/components/TeamPrompt/WorkDrawer/JiraIntegrationPanel.tsx +++ b/packages/client/components/TeamPrompt/WorkDrawer/JiraIntegrationPanel.tsx @@ -1,12 +1,12 @@ -import React from 'react' import graphql from 'babel-plugin-relay/macro' +import React from 'react' import {useFragment} from 'react-relay' import {JiraIntegrationPanel_meeting$key} from '../../../__generated__/JiraIntegrationPanel_meeting.graphql' -import AtlassianClientManager from '../../../utils/AtlassianClientManager' import useAtmosphere from '../../../hooks/useAtmosphere' import useMutationProps from '../../../hooks/useMutationProps' -import JiraIntegrationResultsRoot from './JiraIntegrationResultsRoot' +import AtlassianClientManager from '../../../utils/AtlassianClientManager' import SendClientSideEvent from '../../../utils/SendClientSideEvent' +import JiraIntegrationResultsRoot from './JiraIntegrationResultsRoot' interface Props { meetingRef: JiraIntegrationPanel_meeting$key diff --git a/packages/client/components/TeamPrompt/WorkDrawer/JiraIntegrationResults.tsx b/packages/client/components/TeamPrompt/WorkDrawer/JiraIntegrationResults.tsx index 1d01c707b37..6da260ddbc4 100644 --- a/packages/client/components/TeamPrompt/WorkDrawer/JiraIntegrationResults.tsx +++ b/packages/client/components/TeamPrompt/WorkDrawer/JiraIntegrationResults.tsx @@ -1,14 +1,14 @@ -import React from 'react' import graphql from 'babel-plugin-relay/macro' +import React from 'react' import {PreloadedQuery, usePaginationFragment, usePreloadedQuery} from 'react-relay' +import {Link} from 'react-router-dom' +import halloweenRetrospectiveTemplate from '../../../../../static/images/illustrations/halloweenRetrospectiveTemplate.png' import {JiraIntegrationResultsQuery} from '../../../__generated__/JiraIntegrationResultsQuery.graphql' import {JiraIntegrationResultsSearchPaginationQuery} from '../../../__generated__/JiraIntegrationResultsSearchPaginationQuery.graphql' import {JiraIntegrationResults_search$key} from '../../../__generated__/JiraIntegrationResults_search.graphql' -import halloweenRetrospectiveTemplate from '../../../../../static/images/illustrations/halloweenRetrospectiveTemplate.png' -import JiraObjectCard from './JiraObjectCard' import useLoadNextOnScrollBottom from '../../../hooks/useLoadNextOnScrollBottom' import Ellipsis from '../../Ellipsis/Ellipsis' -import {Link} from 'react-router-dom' +import JiraObjectCard from './JiraObjectCard' interface Props { queryRef: PreloadedQuery diff --git a/packages/client/components/TeamPrompt/WorkDrawer/JiraIntegrationResultsRoot.tsx b/packages/client/components/TeamPrompt/WorkDrawer/JiraIntegrationResultsRoot.tsx index cadccb256d2..dac120c9396 100644 --- a/packages/client/components/TeamPrompt/WorkDrawer/JiraIntegrationResultsRoot.tsx +++ b/packages/client/components/TeamPrompt/WorkDrawer/JiraIntegrationResultsRoot.tsx @@ -1,11 +1,11 @@ import React, {Suspense} from 'react' -import useQueryLoaderNow from '../../../hooks/useQueryLoaderNow' +import {Loader} from '~/utils/relay/renderLoader' import jiraIntegrationResultsQuery, { JiraIntegrationResultsQuery } from '../../../__generated__/JiraIntegrationResultsQuery.graphql' +import useQueryLoaderNow from '../../../hooks/useQueryLoaderNow' import ErrorBoundary from '../../ErrorBoundary' import JiraIntegrationResults from './JiraIntegrationResults' -import {Loader} from '~/utils/relay/renderLoader' interface Props { teamId: string diff --git a/packages/client/components/TeamPrompt/WorkDrawer/JiraObjectCard.tsx b/packages/client/components/TeamPrompt/WorkDrawer/JiraObjectCard.tsx index 97974a53660..76e35dbb96f 100644 --- a/packages/client/components/TeamPrompt/WorkDrawer/JiraObjectCard.tsx +++ b/packages/client/components/TeamPrompt/WorkDrawer/JiraObjectCard.tsx @@ -1,16 +1,16 @@ +import {Link} from '@mui/icons-material' +import graphql from 'babel-plugin-relay/macro' import React from 'react' import CopyToClipboard from 'react-copy-to-clipboard' -import jiraSVG from '../../../styles/theme/images/graphics/jira.svg' -import relativeDate from '../../../utils/date/relativeDate' -import {Link} from '@mui/icons-material' -import useTooltip from '../../../hooks/useTooltip' -import {MenuPosition} from '../../../hooks/useCoords' import {useFragment} from 'react-relay' -import graphql from 'babel-plugin-relay/macro' import {JiraObjectCard_result$key} from '../../../__generated__/JiraObjectCard_result.graphql' -import {mergeRefs} from '../../../utils/react/mergeRefs' import useAtmosphere from '../../../hooks/useAtmosphere' +import {MenuPosition} from '../../../hooks/useCoords' +import useTooltip from '../../../hooks/useTooltip' +import jiraSVG from '../../../styles/theme/images/graphics/jira.svg' import SendClientSideEvent from '../../../utils/SendClientSideEvent' +import relativeDate from '../../../utils/date/relativeDate' +import {mergeRefs} from '../../../utils/react/mergeRefs' interface Props { resultRef: JiraObjectCard_result$key diff --git a/packages/client/components/TeamPrompt/WorkDrawer/ParabolTasksPanel.tsx b/packages/client/components/TeamPrompt/WorkDrawer/ParabolTasksPanel.tsx index 1099adffba0..e3538eb5db4 100644 --- a/packages/client/components/TeamPrompt/WorkDrawer/ParabolTasksPanel.tsx +++ b/packages/client/components/TeamPrompt/WorkDrawer/ParabolTasksPanel.tsx @@ -1,18 +1,18 @@ -import React, {useState} from 'react' import graphql from 'babel-plugin-relay/macro' +import clsx from 'clsx' +import React, {useState} from 'react' import {useFragment} from 'react-relay' -import {TaskStatusEnum} from '../../../__generated__/ParabolTasksResultsQuery.graphql' import {ParabolTasksPanel_meeting$key} from '../../../__generated__/ParabolTasksPanel_meeting.graphql' -import {TaskStatus} from '../../../types/constEnums' -import {meetingColumnArray} from '../../../utils/constants' -import {taskStatusLabels} from '../../../utils/taskStatus' +import {TaskStatusEnum} from '../../../__generated__/ParabolTasksResultsQuery.graphql' import useAtmosphere from '../../../hooks/useAtmosphere' import CreateTaskMutation from '../../../mutations/CreateTaskMutation' +import {TaskStatus} from '../../../types/constEnums' +import SendClientSideEvent from '../../../utils/SendClientSideEvent' +import {meetingColumnArray} from '../../../utils/constants' import dndNoise from '../../../utils/dndNoise' +import {taskStatusLabels} from '../../../utils/taskStatus' import AddTaskButton from '../../AddTaskButton' import ParabolTasksResultsRoot from './ParabolTasksResultsRoot' -import clsx from 'clsx' -import SendClientSideEvent from '../../../utils/SendClientSideEvent' interface Props { meetingRef: ParabolTasksPanel_meeting$key diff --git a/packages/client/components/TeamPrompt/WorkDrawer/ParabolTasksResults.tsx b/packages/client/components/TeamPrompt/WorkDrawer/ParabolTasksResults.tsx index 107ce9f2ab4..d6cb4fbee39 100644 --- a/packages/client/components/TeamPrompt/WorkDrawer/ParabolTasksResults.tsx +++ b/packages/client/components/TeamPrompt/WorkDrawer/ParabolTasksResults.tsx @@ -1,14 +1,14 @@ -import React from 'react' import graphql from 'babel-plugin-relay/macro' +import React from 'react' import {PreloadedQuery, usePreloadedQuery} from 'react-relay' +import halloweenRetrospectiveTemplate from '../../../../../static/images/illustrations/halloweenRetrospectiveTemplate.png' import { ParabolTasksResultsQuery, TaskStatusEnum } from '../../../__generated__/ParabolTasksResultsQuery.graphql' -import NullableTask from '../../NullableTask/NullableTask' -import halloweenRetrospectiveTemplate from '../../../../../static/images/illustrations/halloweenRetrospectiveTemplate.png' -import {taskStatusLabels} from '../../../utils/taskStatus' import useAtmosphere from '../../../hooks/useAtmosphere' +import {taskStatusLabels} from '../../../utils/taskStatus' +import NullableTask from '../../NullableTask/NullableTask' interface Props { queryRef: PreloadedQuery diff --git a/packages/client/components/TeamPrompt/WorkDrawer/ParabolTasksResultsRoot.tsx b/packages/client/components/TeamPrompt/WorkDrawer/ParabolTasksResultsRoot.tsx index 4e508ab58e5..3fa964fba44 100644 --- a/packages/client/components/TeamPrompt/WorkDrawer/ParabolTasksResultsRoot.tsx +++ b/packages/client/components/TeamPrompt/WorkDrawer/ParabolTasksResultsRoot.tsx @@ -1,13 +1,13 @@ import React, {Suspense} from 'react' -import useQueryLoaderNow from '../../../hooks/useQueryLoaderNow' +import {Loader} from '~/utils/relay/renderLoader' import parabolTasksResultsQuery, { ParabolTasksResultsQuery, TaskStatusEnum } from '../../../__generated__/ParabolTasksResultsQuery.graphql' +import useAtmosphere from '../../../hooks/useAtmosphere' +import useQueryLoaderNow from '../../../hooks/useQueryLoaderNow' import ErrorBoundary from '../../ErrorBoundary' import ParabolTasksResults from './ParabolTasksResults' -import {Loader} from '~/utils/relay/renderLoader' -import useAtmosphere from '../../../hooks/useAtmosphere' interface Props { selectedStatus: TaskStatusEnum diff --git a/packages/client/components/TeamPromptMeeting.tsx b/packages/client/components/TeamPromptMeeting.tsx index bc5cdbfdbf0..203a1b25fb9 100644 --- a/packages/client/components/TeamPromptMeeting.tsx +++ b/packages/client/components/TeamPromptMeeting.tsx @@ -3,13 +3,13 @@ import graphql from 'babel-plugin-relay/macro' import React, {Suspense, useEffect, useMemo} from 'react' import {commitLocalUpdate, useFragment} from 'react-relay' import {useHistory} from 'react-router' +import {TeamPromptMeeting_meeting$key} from '~/__generated__/TeamPromptMeeting_meeting.graphql' import useAtmosphere from '~/hooks/useAtmosphere' import useMeeting from '~/hooks/useMeeting' import useTransition from '~/hooks/useTransition' import {DiscussionThreadEnum} from '~/types/constEnums' import {isNotNull} from '~/utils/predicates' import sortByISO8601Date from '~/utils/sortByISO8601Date' -import {TeamPromptMeeting_meeting$key} from '~/__generated__/TeamPromptMeeting_meeting.graphql' import getPhaseByTypename from '../utils/getPhaseByTypename' import ErrorBoundary from './ErrorBoundary' import MeetingArea from './MeetingArea' diff --git a/packages/client/components/TeamsLimitExceededNotification.tsx b/packages/client/components/TeamsLimitExceededNotification.tsx index 36edacb7c0b..4238767e500 100644 --- a/packages/client/components/TeamsLimitExceededNotification.tsx +++ b/packages/client/components/TeamsLimitExceededNotification.tsx @@ -1,12 +1,12 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {TeamsLimitExceededNotification_notification$key} from '~/__generated__/TeamsLimitExceededNotification_notification.graphql' import useRouter from '~/hooks/useRouter' import defaultOrgAvatar from '~/styles/theme/images/avatar-organization.svg' -import {TeamsLimitExceededNotification_notification$key} from '~/__generated__/TeamsLimitExceededNotification_notification.graphql' +import {Threshold} from '../types/constEnums' import NotificationAction from './NotificationAction' import NotificationTemplate from './NotificationTemplate' -import {Threshold} from '../types/constEnums' interface Props { notification: TeamsLimitExceededNotification_notification$key diff --git a/packages/client/components/TeamsLimitReminderNotification.tsx b/packages/client/components/TeamsLimitReminderNotification.tsx index afdc9d8e403..b432f4c812a 100644 --- a/packages/client/components/TeamsLimitReminderNotification.tsx +++ b/packages/client/components/TeamsLimitReminderNotification.tsx @@ -1,12 +1,12 @@ import graphql from 'babel-plugin-relay/macro' import React, {useEffect} from 'react' import {useFragment} from 'react-relay' +import {TeamsLimitReminderNotification_notification$key} from '~/__generated__/TeamsLimitReminderNotification_notification.graphql' import useRouter from '~/hooks/useRouter' import defaultOrgAvatar from '~/styles/theme/images/avatar-organization.svg' -import {TeamsLimitReminderNotification_notification$key} from '~/__generated__/TeamsLimitReminderNotification_notification.graphql' import useAtmosphere from '../hooks/useAtmosphere' -import SendClientSideEvent from '../utils/SendClientSideEvent' import {Threshold} from '../types/constEnums' +import SendClientSideEvent from '../utils/SendClientSideEvent' import makeDateString from '../utils/makeDateString' import NotificationAction from './NotificationAction' import NotificationTemplate from './NotificationTemplate' diff --git a/packages/client/components/ThreadedCommentBase.tsx b/packages/client/components/ThreadedCommentBase.tsx index 0b46cfb7682..e592c81116e 100644 --- a/packages/client/components/ThreadedCommentBase.tsx +++ b/packages/client/components/ThreadedCommentBase.tsx @@ -3,6 +3,9 @@ import graphql from 'babel-plugin-relay/macro' import {convertToRaw, EditorState} from 'draft-js' import React, {ReactNode, useEffect, useRef, useState} from 'react' import {commitLocalUpdate, useFragment} from 'react-relay' +import {ThreadedCommentBase_comment$key} from '~/__generated__/ThreadedCommentBase_comment.graphql' +import {ThreadedCommentBase_discussion$key} from '~/__generated__/ThreadedCommentBase_discussion.graphql' +import {ThreadedCommentBase_viewer$key} from '~/__generated__/ThreadedCommentBase_viewer.graphql' import useAtmosphere from '~/hooks/useAtmosphere' import useEditorState from '~/hooks/useEditorState' import useMutationProps from '~/hooks/useMutationProps' @@ -11,13 +14,10 @@ import UpdateCommentContentMutation from '~/mutations/UpdateCommentContentMutati import convertToTaskContent from '~/utils/draftjs/convertToTaskContent' import isAndroid from '~/utils/draftjs/isAndroid' import isTempId from '~/utils/relay/isTempId' -import {ThreadedCommentBase_comment$key} from '~/__generated__/ThreadedCommentBase_comment.graphql' -import {ThreadedCommentBase_discussion$key} from '~/__generated__/ThreadedCommentBase_discussion.graphql' -import {ThreadedCommentBase_viewer$key} from '~/__generated__/ThreadedCommentBase_viewer.graphql' -import SendClientSideEvent from '../utils/SendClientSideEvent' import anonymousAvatar from '../styles/theme/images/anonymous-avatar.svg' import deletedAvatar from '../styles/theme/images/deleted-avatar-placeholder.svg' import {PARABOL_AI_USER_ID} from '../utils/constants' +import SendClientSideEvent from '../utils/SendClientSideEvent' import {DiscussionThreadables} from './DiscussionThreadList' import CommentEditor from './TaskEditor/CommentEditor' import ThreadedAvatarColumn from './ThreadedAvatarColumn' diff --git a/packages/client/components/ThreadedCommentFooter.tsx b/packages/client/components/ThreadedCommentFooter.tsx index bfaf75f403e..9178c2cb77e 100644 --- a/packages/client/components/ThreadedCommentFooter.tsx +++ b/packages/client/components/ThreadedCommentFooter.tsx @@ -2,8 +2,8 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' -import {PALETTE} from '~/styles/paletteV3' import {ThreadedCommentFooter_reactjis$key} from '~/__generated__/ThreadedCommentFooter_reactjis.graphql' +import {PALETTE} from '~/styles/paletteV3' import ReactjiSection from './ReflectionCard/ReactjiSection' import ThreadedReplyButton from './ThreadedReplyButton' diff --git a/packages/client/components/ThreadedCommentHeader.tsx b/packages/client/components/ThreadedCommentHeader.tsx index 0b33e7f92ef..5a902055eaa 100644 --- a/packages/client/components/ThreadedCommentHeader.tsx +++ b/packages/client/components/ThreadedCommentHeader.tsx @@ -2,12 +2,12 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' -import {PALETTE} from '~/styles/paletteV3' -import relativeDate from '~/utils/date/relativeDate' import { - ThreadedCommentHeader_comment$key, - ThreadedCommentHeader_comment$data + ThreadedCommentHeader_comment$data, + ThreadedCommentHeader_comment$key } from '~/__generated__/ThreadedCommentHeader_comment.graphql' +import {PALETTE} from '~/styles/paletteV3' +import relativeDate from '~/utils/date/relativeDate' import {PARABOL_AI_USER_ID} from '../utils/constants' import CommentAuthorOptionsButton from './CommentAuthorOptionsButton' import AddReactjiButton from './ReflectionCard/AddReactjiButton' diff --git a/packages/client/components/ThreadedItemReply.tsx b/packages/client/components/ThreadedItemReply.tsx index f0a0999a832..590d02e8f19 100644 --- a/packages/client/components/ThreadedItemReply.tsx +++ b/packages/client/components/ThreadedItemReply.tsx @@ -2,12 +2,12 @@ import graphql from 'babel-plugin-relay/macro' import {Editor} from 'draft-js' import React, {RefObject, useRef} from 'react' import {commitLocalUpdate, useFragment} from 'react-relay' -import useAtmosphere from '~/hooks/useAtmosphere' -import useClickAway from '~/hooks/useClickAway' -import isAndroid from '~/utils/draftjs/isAndroid' import {ThreadedItemReply_discussion$key} from '~/__generated__/ThreadedItemReply_discussion.graphql' import {ThreadedItemReply_threadable$key} from '~/__generated__/ThreadedItemReply_threadable.graphql' import {ThreadedItemReply_viewer$key} from '~/__generated__/ThreadedItemReply_viewer.graphql' +import useAtmosphere from '~/hooks/useAtmosphere' +import useClickAway from '~/hooks/useClickAway' +import isAndroid from '~/utils/draftjs/isAndroid' import DiscussionThreadInput from './DiscussionThreadInput' import {DiscussionThreadables} from './DiscussionThreadList' import {ReplyMention, SetReplyMention} from './ThreadedItem' diff --git a/packages/client/components/ThreadedPollBase.tsx b/packages/client/components/ThreadedPollBase.tsx index bde8b9840e7..7e19e8b3958 100644 --- a/packages/client/components/ThreadedPollBase.tsx +++ b/packages/client/components/ThreadedPollBase.tsx @@ -13,11 +13,11 @@ import PlainButton from './PlainButton/PlainButton' import {AddPollOptionButton} from './Poll/AddPollOptionButton' import EditablePollOption from './Poll/EditablePollOption' import EditablePollTitle from './Poll/EditablePollTitle' -import {addLocalPollOption} from './Poll/local/newPoll' import Poll from './Poll/Poll' import PollOption from './Poll/PollOption' import {getPollState} from './Poll/PollState' import PollTitle from './Poll/PollTitle' +import {addLocalPollOption} from './Poll/local/newPoll' const PollOptions = styled('div')({ fontSize: '14px', diff --git a/packages/client/components/ThreadedTaskBase.tsx b/packages/client/components/ThreadedTaskBase.tsx index 176f8dfdd06..eb05e3a2f99 100644 --- a/packages/client/components/ThreadedTaskBase.tsx +++ b/packages/client/components/ThreadedTaskBase.tsx @@ -2,11 +2,11 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React, {ReactNode, useRef} from 'react' import {commitLocalUpdate, useFragment} from 'react-relay' -import useAtmosphere from '~/hooks/useAtmosphere' -import {PALETTE} from '~/styles/paletteV3' import {ThreadedTaskBase_discussion$key} from '~/__generated__/ThreadedTaskBase_discussion.graphql' import {ThreadedTaskBase_task$key} from '~/__generated__/ThreadedTaskBase_task.graphql' import {ThreadedTaskBase_viewer$key} from '~/__generated__/ThreadedTaskBase_viewer.graphql' +import useAtmosphere from '~/hooks/useAtmosphere' +import {PALETTE} from '~/styles/paletteV3' import {DiscussionThreadables} from './DiscussionThreadList' import NullableTask from './NullableTask/NullableTask' import ThreadedAvatarColumn from './ThreadedAvatarColumn' diff --git a/packages/client/components/TimelineEvent.tsx b/packages/client/components/TimelineEvent.tsx index 0a3596d74a3..05c9e906aea 100644 --- a/packages/client/components/TimelineEvent.tsx +++ b/packages/client/components/TimelineEvent.tsx @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import React, {lazy, Suspense} from 'react' import {useFragment} from 'react-relay' -import {ValueOf} from '../types/generics' import {TimelineEvent_timelineEvent$key} from '../__generated__/TimelineEvent_timelineEvent.graphql' +import {ValueOf} from '../types/generics' import DelayUnmount from './DelayUnmount' import TimelineEventMock from './TimelineEventMock' diff --git a/packages/client/components/TimelineEventCard.tsx b/packages/client/components/TimelineEventCard.tsx index 7cb80393a73..86ab45b8154 100644 --- a/packages/client/components/TimelineEventCard.tsx +++ b/packages/client/components/TimelineEventCard.tsx @@ -2,8 +2,8 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React, {ReactNode} from 'react' import {useFragment} from 'react-relay' -import {cardShadow} from '../styles/elevation' import {TimelineEventCard_timelineEvent$key} from '../__generated__/TimelineEventCard_timelineEvent.graphql' +import {cardShadow} from '../styles/elevation' import TimelineEventDate from './TimelineEventDate' import TimelineEventHeaderMenuToggle from './TimelineEventHeaderMenuToggle' import TimelineEventTypeIcon from './TimelineEventTypeIcon' diff --git a/packages/client/components/TimelineEventCompletedActionMeeting.tsx b/packages/client/components/TimelineEventCompletedActionMeeting.tsx index 77b4465806a..d9d0b1ca00f 100644 --- a/packages/client/components/TimelineEventCompletedActionMeeting.tsx +++ b/packages/client/components/TimelineEventCompletedActionMeeting.tsx @@ -2,15 +2,15 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {TimelineEventCompletedActionMeeting_timelineEvent$key} from '../__generated__/TimelineEventCompletedActionMeeting_timelineEvent.graphql' import useAtmosphere from '../hooks/useAtmosphere' import SendClientSideEvent from '../utils/SendClientSideEvent' import relativeDate from '../utils/date/relativeDate' import plural from '../utils/plural' -import {TimelineEventCompletedActionMeeting_timelineEvent$key} from '../__generated__/TimelineEventCompletedActionMeeting_timelineEvent.graphql' import StyledLink from './StyledLink' +import TimelineEventTitle from './TImelineEventTitle' import TimelineEventBody from './TimelineEventBody' import TimelineEventCard from './TimelineEventCard' -import TimelineEventTitle from './TImelineEventTitle' interface Props { timelineEvent: TimelineEventCompletedActionMeeting_timelineEvent$key diff --git a/packages/client/components/TimelineEventCompletedRetroMeeting.tsx b/packages/client/components/TimelineEventCompletedRetroMeeting.tsx index 1391de3e57a..e555203ee63 100644 --- a/packages/client/components/TimelineEventCompletedRetroMeeting.tsx +++ b/packages/client/components/TimelineEventCompletedRetroMeeting.tsx @@ -2,14 +2,14 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {TimelineEventCompletedRetroMeeting_timelineEvent$key} from '../__generated__/TimelineEventCompletedRetroMeeting_timelineEvent.graphql' import useAtmosphere from '../hooks/useAtmosphere' import SendClientSideEvent from '../utils/SendClientSideEvent' import plural from '../utils/plural' -import {TimelineEventCompletedRetroMeeting_timelineEvent$key} from '../__generated__/TimelineEventCompletedRetroMeeting_timelineEvent.graphql' import StyledLink from './StyledLink' +import TimelineEventTitle from './TImelineEventTitle' import TimelineEventBody from './TimelineEventBody' import TimelineEventCard from './TimelineEventCard' -import TimelineEventTitle from './TImelineEventTitle' interface Props { timelineEvent: TimelineEventCompletedRetroMeeting_timelineEvent$key diff --git a/packages/client/components/TimelineEventJoinedParabol.tsx b/packages/client/components/TimelineEventJoinedParabol.tsx index ba9a5cb17dc..9da3265431e 100644 --- a/packages/client/components/TimelineEventJoinedParabol.tsx +++ b/packages/client/components/TimelineEventJoinedParabol.tsx @@ -4,9 +4,9 @@ import React from 'react' import {useFragment} from 'react-relay' import {TimelineEventJoinedParabol_timelineEvent$key} from '../__generated__/TimelineEventJoinedParabol_timelineEvent.graphql' import StyledLink from './StyledLink' +import TimelineEventTitle from './TImelineEventTitle' import TimelineEventBody from './TimelineEventBody' import TimelineEventCard from './TimelineEventCard' -import TimelineEventTitle from './TImelineEventTitle' interface Props { timelineEvent: TimelineEventJoinedParabol_timelineEvent$key diff --git a/packages/client/components/TimelineEventPokerComplete.tsx b/packages/client/components/TimelineEventPokerComplete.tsx index 1cc02fe7a8e..02c8935011e 100644 --- a/packages/client/components/TimelineEventPokerComplete.tsx +++ b/packages/client/components/TimelineEventPokerComplete.tsx @@ -2,15 +2,15 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {TimelineEventPokerComplete_timelineEvent$key} from '../__generated__/TimelineEventPokerComplete_timelineEvent.graphql' import useAtmosphere from '../hooks/useAtmosphere' import SendClientSideEvent from '../utils/SendClientSideEvent' import plural from '../utils/plural' -import {TimelineEventPokerComplete_timelineEvent$key} from '../__generated__/TimelineEventPokerComplete_timelineEvent.graphql' +import CardsSVG from './CardsSVG' import StyledLink from './StyledLink' +import TimelineEventTitle from './TImelineEventTitle' import TimelineEventBody from './TimelineEventBody' import TimelineEventCard from './TimelineEventCard' -import TimelineEventTitle from './TImelineEventTitle' -import CardsSVG from './CardsSVG' interface Props { timelineEvent: TimelineEventPokerComplete_timelineEvent$key diff --git a/packages/client/components/TimelineEventTeamCreated.tsx b/packages/client/components/TimelineEventTeamCreated.tsx index 8c7f43f0821..2a922fd9c40 100644 --- a/packages/client/components/TimelineEventTeamCreated.tsx +++ b/packages/client/components/TimelineEventTeamCreated.tsx @@ -4,9 +4,9 @@ import React from 'react' import {useFragment} from 'react-relay' import {TimelineEventTeamCreated_timelineEvent$key} from '../__generated__/TimelineEventTeamCreated_timelineEvent.graphql' import StyledLink from './StyledLink' +import TimelineEventTitle from './TImelineEventTitle' import TimelineEventBody from './TimelineEventBody' import TimelineEventCard from './TimelineEventCard' -import TimelineEventTitle from './TImelineEventTitle' interface Props { timelineEvent: TimelineEventTeamCreated_timelineEvent$key diff --git a/packages/client/components/TimelineEventTeamPromptComplete.tsx b/packages/client/components/TimelineEventTeamPromptComplete.tsx index 9bf42575646..d74a9671494 100644 --- a/packages/client/components/TimelineEventTeamPromptComplete.tsx +++ b/packages/client/components/TimelineEventTeamPromptComplete.tsx @@ -2,14 +2,14 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {TimelineEventTeamPromptComplete_timelineEvent$key} from '../__generated__/TimelineEventTeamPromptComplete_timelineEvent.graphql' import useAtmosphere from '../hooks/useAtmosphere' import SendClientSideEvent from '../utils/SendClientSideEvent' import plural from '../utils/plural' -import {TimelineEventTeamPromptComplete_timelineEvent$key} from '../__generated__/TimelineEventTeamPromptComplete_timelineEvent.graphql' import StyledLink from './StyledLink' +import TimelineEventTitle from './TImelineEventTitle' import TimelineEventBody from './TimelineEventBody' import TimelineEventCard from './TimelineEventCard' -import TimelineEventTitle from './TImelineEventTitle' interface Props { timelineEvent: TimelineEventTeamPromptComplete_timelineEvent$key diff --git a/packages/client/components/TimelineEventTypeIcon.tsx b/packages/client/components/TimelineEventTypeIcon.tsx index d896df2ed98..a957f1b8eaf 100644 --- a/packages/client/components/TimelineEventTypeIcon.tsx +++ b/packages/client/components/TimelineEventTypeIcon.tsx @@ -9,8 +9,8 @@ import { Style, Timeline } from '@mui/icons-material' -import {PALETTE} from '../styles/paletteV3' import React from 'react' +import {PALETTE} from '../styles/paletteV3' interface Props { iconName?: string diff --git a/packages/client/components/TimelineEventTypeMenu.tsx b/packages/client/components/TimelineEventTypeMenu.tsx index 24ff1d0745a..2194f374570 100644 --- a/packages/client/components/TimelineEventTypeMenu.tsx +++ b/packages/client/components/TimelineEventTypeMenu.tsx @@ -3,12 +3,12 @@ import useAtmosphere from '~/hooks/useAtmosphere' import useRouter from '~/hooks/useRouter' import constructFilterQueryParamURL from '~/utils/constructFilterQueryParamURL' import {useQueryParameterParser} from '~/utils/useQueryParameterParser' +import TimelineEventTypeEnum from '../../server/graphql/types/TimelineEventTypeEnum' import {MenuProps} from '../hooks/useMenu' import DropdownMenuLabel from './DropdownMenuLabel' +import EventTypeFilterMenuItemLabel from './EventTypeFilterMenuItemLabel' import Menu from './Menu' import MenuItem from './MenuItem' -import TimelineEventTypeEnum from '../../server/graphql/types/TimelineEventTypeEnum' -import EventTypeFilterMenuItemLabel from './EventTypeFilterMenuItemLabel' interface Props { menuProps: MenuProps diff --git a/packages/client/components/TimelineFeedList.tsx b/packages/client/components/TimelineFeedList.tsx index 9b175bf45db..b0c1159f355 100644 --- a/packages/client/components/TimelineFeedList.tsx +++ b/packages/client/components/TimelineFeedList.tsx @@ -2,12 +2,12 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React, {useMemo} from 'react' import {usePaginationFragment} from 'react-relay' +import {Link} from 'react-router-dom' import useLoadNextOnScrollBottom from '~/hooks/useLoadNextOnScrollBottom' import {TimelineFeedListPaginationQuery} from '../__generated__/TimelineFeedListPaginationQuery.graphql' import {TimelineFeedList_query$key} from '../__generated__/TimelineFeedList_query.graphql' import TimelineEvent from './TimelineEvent' import TimelineHistoryLockedCard from './TimelineHistoryLockedCard' -import {Link} from 'react-router-dom' const ResultScroller = styled('div')({ overflow: 'auto' diff --git a/packages/client/components/TimelineHeader.tsx b/packages/client/components/TimelineHeader.tsx index a659e0f3248..003a0b3bde4 100644 --- a/packages/client/components/TimelineHeader.tsx +++ b/packages/client/components/TimelineHeader.tsx @@ -1,17 +1,17 @@ import graphql from 'babel-plugin-relay/macro' import React, {useMemo} from 'react' +import {useFragment} from 'react-relay' +import {TimelineHeader_viewer$key} from '../__generated__/TimelineHeader_viewer.graphql' +import useAtmosphere from '../hooks/useAtmosphere' import {MenuPosition} from '../hooks/useCoords' import useMenu from '../hooks/useMenu' import {FilterLabels} from '../types/constEnums' +import {timelineEventTypeMenuLabels} from '../utils/constants' import lazyPreload from '../utils/lazyPreload' +import {useQueryParameterParser} from '../utils/useQueryParameterParser' +import DashFilterToggle from './DashFilterToggle/DashFilterToggle' import DashSectionControls from './Dashboard/DashSectionControls' import DashSectionHeader from './Dashboard/DashSectionHeader' -import DashFilterToggle from './DashFilterToggle/DashFilterToggle' -import {useQueryParameterParser} from '../utils/useQueryParameterParser' -import useAtmosphere from '../hooks/useAtmosphere' -import {timelineEventTypeMenuLabels} from '../utils/constants' -import {useFragment} from 'react-relay' -import {TimelineHeader_viewer$key} from '../__generated__/TimelineHeader_viewer.graphql' const TeamFilterMenu = lazyPreload( () => diff --git a/packages/client/components/TimelineHistoryLockedCard.tsx b/packages/client/components/TimelineHistoryLockedCard.tsx index c6d052e68f1..020ae2730ce 100644 --- a/packages/client/components/TimelineHistoryLockedCard.tsx +++ b/packages/client/components/TimelineHistoryLockedCard.tsx @@ -3,13 +3,13 @@ import {Lock} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React, {useEffect, useRef} from 'react' import {useFragment} from 'react-relay' +import {TimelineHistoryLockedCard_organization$key} from '../__generated__/TimelineHistoryLockedCard_organization.graphql' import useAtmosphere from '../hooks/useAtmosphere' import useIsVisible from '../hooks/useIsVisible' import useRouter from '../hooks/useRouter' -import SendClientSideEvent from '../utils/SendClientSideEvent' import {cardShadow} from '../styles/elevation' import {PALETTE} from '../styles/paletteV3' -import {TimelineHistoryLockedCard_organization$key} from '../__generated__/TimelineHistoryLockedCard_organization.graphql' +import SendClientSideEvent from '../utils/SendClientSideEvent' import PrimaryButton from './PrimaryButton' interface Props { diff --git a/packages/client/components/TimelinePriorityTasks.tsx b/packages/client/components/TimelinePriorityTasks.tsx index 3834aff904b..554ba4ba218 100644 --- a/packages/client/components/TimelinePriorityTasks.tsx +++ b/packages/client/components/TimelinePriorityTasks.tsx @@ -4,6 +4,7 @@ import graphql from 'babel-plugin-relay/macro' import React, {useMemo} from 'react' import {DragDropContext, Droppable, DroppableProvided, DropResult} from 'react-beautiful-dnd' import {useFragment} from 'react-relay' +import {TimelinePriorityTasks_viewer$key} from '../__generated__/TimelinePriorityTasks_viewer.graphql' import DraggableTask from '../containers/TaskCard/DraggableTask' import useAtmosphere from '../hooks/useAtmosphere' import useEventCallback from '../hooks/useEventCallback' @@ -12,7 +13,6 @@ import {PALETTE} from '../styles/paletteV3' import {DroppableType} from '../types/constEnums' import {ACTIVE, ACTIVE_TASK, SORT_STEP} from '../utils/constants' import dndNoise from '../utils/dndNoise' -import {TimelinePriorityTasks_viewer$key} from '../__generated__/TimelinePriorityTasks_viewer.graphql' import TimelineNoTasks from './TimelineNoTasks' interface Props { diff --git a/packages/client/components/TimelineRightDrawer.tsx b/packages/client/components/TimelineRightDrawer.tsx index 5f6f4b3838a..f634ecc9387 100644 --- a/packages/client/components/TimelineRightDrawer.tsx +++ b/packages/client/components/TimelineRightDrawer.tsx @@ -3,9 +3,9 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import makeMinWidthMediaQuery from '~/utils/makeMinWidthMediaQuery' +import {TimelineRightDrawer_viewer$key} from '../__generated__/TimelineRightDrawer_viewer.graphql' import {PALETTE} from '../styles/paletteV3' import {DashTimeline, NavSidebar} from '../types/constEnums' -import {TimelineRightDrawer_viewer$key} from '../__generated__/TimelineRightDrawer_viewer.graphql' import ErrorBoundary from './ErrorBoundary' import TimelinePriorityTasks from './TimelinePriorityTasks' diff --git a/packages/client/components/TimelineSuggestedAction.tsx b/packages/client/components/TimelineSuggestedAction.tsx index d0623439e7e..5f192adb47a 100644 --- a/packages/client/components/TimelineSuggestedAction.tsx +++ b/packages/client/components/TimelineSuggestedAction.tsx @@ -2,8 +2,8 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React, {lazy} from 'react' import {useFragment} from 'react-relay' -import {ValueOf} from '../types/generics' import {TimelineSuggestedAction_viewer$key} from '../__generated__/TimelineSuggestedAction_viewer.graphql' +import {ValueOf} from '../types/generics' import DelayUnmount from './DelayUnmount' interface Props { diff --git a/packages/client/components/TopBarAvatar.tsx b/packages/client/components/TopBarAvatar.tsx index a026687f2a2..bcb7e0830a4 100644 --- a/packages/client/components/TopBarAvatar.tsx +++ b/packages/client/components/TopBarAvatar.tsx @@ -2,10 +2,10 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {TopBarAvatar_viewer$key} from '~/__generated__/TopBarAvatar_viewer.graphql' import {MenuPosition} from '~/hooks/useCoords' import useMenu from '~/hooks/useMenu' import lazyPreload from '~/utils/lazyPreload' -import {TopBarAvatar_viewer$key} from '~/__generated__/TopBarAvatar_viewer.graphql' import {PALETTE} from '../styles/paletteV3' import defaultUserAvatar from '../styles/theme/images/avatar-user.svg' import Avatar from './Avatar/Avatar' diff --git a/packages/client/components/TopBarNotifications.tsx b/packages/client/components/TopBarNotifications.tsx index 5586877a812..d4f3322fa36 100644 --- a/packages/client/components/TopBarNotifications.tsx +++ b/packages/client/components/TopBarNotifications.tsx @@ -1,10 +1,10 @@ import graphql from 'babel-plugin-relay/macro' import React, {useEffect, useRef} from 'react' import {useFragment} from 'react-relay' +import {TopBarNotifications_query$key} from '~/__generated__/TopBarNotifications_query.graphql' import {MenuPosition} from '~/hooks/useCoords' import useMenu from '~/hooks/useMenu' import lazyPreload from '~/utils/lazyPreload' -import {TopBarNotifications_query$key} from '~/__generated__/TopBarNotifications_query.graphql' import useRouter from '../hooks/useRouter' import TopBarIcon from './TopBarIcon' diff --git a/packages/client/components/TopBarSearch.tsx b/packages/client/components/TopBarSearch.tsx index d87394ce467..db7b7045f3f 100644 --- a/packages/client/components/TopBarSearch.tsx +++ b/packages/client/components/TopBarSearch.tsx @@ -3,12 +3,12 @@ import {Close, Search} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React, {useRef} from 'react' import {useFragment} from 'react-relay' -import {matchPath, RouteProps} from 'react-router' +import {RouteProps, matchPath} from 'react-router' import {commitLocalUpdate} from 'relay-runtime' +import {TopBarSearch_viewer$key} from '~/__generated__/TopBarSearch_viewer.graphql' import useAtmosphere from '~/hooks/useAtmosphere' import useRouter from '~/hooks/useRouter' import {PALETTE} from '~/styles/paletteV3' -import {TopBarSearch_viewer$key} from '~/__generated__/TopBarSearch_viewer.graphql' import Atmosphere from '../Atmosphere' const getShowSearch = (location: NonNullable) => { diff --git a/packages/client/components/UserAvatarInput.tsx b/packages/client/components/UserAvatarInput.tsx index 01cc3475543..33ebb665a3d 100644 --- a/packages/client/components/UserAvatarInput.tsx +++ b/packages/client/components/UserAvatarInput.tsx @@ -1,5 +1,6 @@ import styled from '@emotion/styled' import sanitizeSVG from '@mattkrick/sanitize-svg' +import {Close} from '@mui/icons-material' import React from 'react' import jpgWithoutEXIF from '~/utils/jpgWithoutEXIF' import useAtmosphere from '../hooks/useAtmosphere' @@ -9,7 +10,6 @@ import svgToPng from '../utils/svgToPng' import Avatar from './Avatar/Avatar' import AvatarInput from './AvatarInput' import DialogTitle from './DialogTitle' -import {Close} from '@mui/icons-material' import FlatButton from './FlatButton' const AvatarBlock = styled('div')({ diff --git a/packages/client/components/UserDashTeamMemberMenu.tsx b/packages/client/components/UserDashTeamMemberMenu.tsx index f466c0c29ae..af1f60138e8 100644 --- a/packages/client/components/UserDashTeamMemberMenu.tsx +++ b/packages/client/components/UserDashTeamMemberMenu.tsx @@ -7,11 +7,11 @@ import useSearchFilter from '~/hooks/useSearchFilter' import {FilterLabels} from '~/types/constEnums' import constructFilterQueryParamURL from '~/utils/constructFilterQueryParamURL' import {useQueryParameterParser} from '~/utils/useQueryParameterParser' -import {MenuProps} from '../hooks/useMenu' import { - UserDashTeamMemberMenu_viewer$key, - UserDashTeamMemberMenu_viewer$data + UserDashTeamMemberMenu_viewer$data, + UserDashTeamMemberMenu_viewer$key } from '../__generated__/UserDashTeamMemberMenu_viewer.graphql' +import {MenuProps} from '../hooks/useMenu' import DropdownMenuLabel from './DropdownMenuLabel' import {EmptyDropdownMenuItemLabel} from './EmptyDropdownMenuItemLabel' import Menu from './Menu' diff --git a/packages/client/components/ViewerNotOnTeam.tsx b/packages/client/components/ViewerNotOnTeam.tsx index cd67491fe62..cddcd3e536a 100644 --- a/packages/client/components/ViewerNotOnTeam.tsx +++ b/packages/client/components/ViewerNotOnTeam.tsx @@ -1,13 +1,13 @@ import graphql from 'babel-plugin-relay/macro' import React, {useEffect} from 'react' import {PreloadedQuery, usePreloadedQuery} from 'react-relay' +import {ViewerNotOnTeamQuery} from '../__generated__/ViewerNotOnTeamQuery.graphql' import useAtmosphere from '../hooks/useAtmosphere' import useDocumentTitle from '../hooks/useDocumentTitle' import useMutationProps from '../hooks/useMutationProps' import useRouter from '../hooks/useRouter' import AcceptTeamInvitationMutation from '../mutations/AcceptTeamInvitationMutation' import PushInvitationMutation from '../mutations/PushInvitationMutation' -import {ViewerNotOnTeamQuery} from '../__generated__/ViewerNotOnTeamQuery.graphql' import DialogContent from './DialogContent' import DialogTitle from './DialogTitle' import Ellipsis from './Ellipsis/Ellipsis' diff --git a/packages/client/components/ViewerNotOnTeamRoot.tsx b/packages/client/components/ViewerNotOnTeamRoot.tsx index a90bc899b09..174650f60c0 100644 --- a/packages/client/components/ViewerNotOnTeamRoot.tsx +++ b/packages/client/components/ViewerNotOnTeamRoot.tsx @@ -1,12 +1,12 @@ import React, {Suspense} from 'react' +import viewerNotOnTeamQuery, { + ViewerNotOnTeamQuery +} from '../__generated__/ViewerNotOnTeamQuery.graphql' import useQueryLoaderNow from '../hooks/useQueryLoaderNow' import useSubscription from '../hooks/useSubscription' import NotificationSubscription from '../subscriptions/NotificationSubscription' import {LoaderSize} from '../types/constEnums' import {Loader} from '../utils/relay/renderLoader' -import viewerNotOnTeamQuery, { - ViewerNotOnTeamQuery -} from '../__generated__/ViewerNotOnTeamQuery.graphql' import ViewerNotOnTeam from './ViewerNotOnTeam' const ViewerNotOnTeamRoot = () => { diff --git a/packages/client/components/VoteSettingsMenu.tsx b/packages/client/components/VoteSettingsMenu.tsx index 55fbe472d7b..cfc99fffb85 100644 --- a/packages/client/components/VoteSettingsMenu.tsx +++ b/packages/client/components/VoteSettingsMenu.tsx @@ -2,12 +2,12 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {VoteSettingsMenu_meeting$key} from '~/__generated__/VoteSettingsMenu_meeting.graphql' import useAtmosphere from '~/hooks/useAtmosphere' import useMutationProps from '~/hooks/useMutationProps' import UpdateRetroMaxVotesMutation from '~/mutations/UpdateRetroMaxVotesMutation' import {PALETTE} from '~/styles/paletteV3' import {MeetingSettingsThreshold} from '~/types/constEnums' -import {VoteSettingsMenu_meeting$key} from '~/__generated__/VoteSettingsMenu_meeting.graphql' import {MenuProps} from '../hooks/useMenu' import Menu from './Menu' import StyledError from './StyledError' diff --git a/packages/client/components/promptResponse/PromptResponseEditor.tsx b/packages/client/components/promptResponse/PromptResponseEditor.tsx index 43cd588ad79..fcb7c1e60ca 100644 --- a/packages/client/components/promptResponse/PromptResponseEditor.tsx +++ b/packages/client/components/promptResponse/PromptResponseEditor.tsx @@ -11,8 +11,8 @@ import EditorLinkChangerTipTap from '../EditorLinkChanger/EditorLinkChangerTipTa import EditorLinkViewerTipTap from '../EditorLinkViewer/EditorLinkViewerTipTap' import EmojiMenuTipTap from './EmojiMenuTipTap' import MentionsTipTap from './MentionsTipTap' -import {createEditorExtensions, getLinkProps, LinkMenuProps, LinkPreviewProps} from './tiptapConfig' import {unfurlLoomLinks} from './loomExtension' +import {LinkMenuProps, LinkPreviewProps, createEditorExtensions, getLinkProps} from './tiptapConfig' const LinkIcon = styled(Link)({ height: 18, diff --git a/packages/client/components/useSetTaskEstimate.ts b/packages/client/components/useSetTaskEstimate.ts index 717fc423d31..1ca9cb39046 100644 --- a/packages/client/components/useSetTaskEstimate.ts +++ b/packages/client/components/useSetTaskEstimate.ts @@ -1,11 +1,11 @@ -import useAtmosphere from '../hooks/useAtmosphere' -import useMutationProps from '../hooks/useMutationProps' -import SetTaskEstimateMutation from '../mutations/SetTaskEstimateMutation' -import {CompletedHandler} from '../types/relayMutations' import { SetTaskEstimateMutation as TSetTaskEstimateMutation, TaskEstimateInput } from '../__generated__/SetTaskEstimateMutation.graphql' +import useAtmosphere from '../hooks/useAtmosphere' +import useMutationProps from '../hooks/useMutationProps' +import SetTaskEstimateMutation from '../mutations/SetTaskEstimateMutation' +import {CompletedHandler} from '../types/relayMutations' const useSetTaskEstimate = () => { const {submitMutation, submitting, error, onError, onCompleted} = useMutationProps() diff --git a/packages/client/containers/Signout/signout.ts b/packages/client/containers/Signout/signout.ts index e32cba1b1f3..ceca7c3a68e 100644 --- a/packages/client/containers/Signout/signout.ts +++ b/packages/client/containers/Signout/signout.ts @@ -1,6 +1,6 @@ import Atmosphere from '../../Atmosphere' -import SendClientSideEvent from '../../utils/SendClientSideEvent' import {LocalStorageKey} from '../../types/constEnums' +import SendClientSideEvent from '../../utils/SendClientSideEvent' const signout = (atmosphere: Atmosphere, history: any) => { window.localStorage.removeItem(LocalStorageKey.APP_TOKEN_KEY) diff --git a/packages/client/containers/TaskCard/DraggableTask.tsx b/packages/client/containers/TaskCard/DraggableTask.tsx index 75e124abacf..a0a0183b746 100644 --- a/packages/client/containers/TaskCard/DraggableTask.tsx +++ b/packages/client/containers/TaskCard/DraggableTask.tsx @@ -4,8 +4,8 @@ import React from 'react' import {Draggable, DraggableProvided, DraggableStateSnapshot} from 'react-beautiful-dnd' import {useFragment} from 'react-relay' import {AreaEnum, TaskStatusEnum} from '~/__generated__/UpdateTaskMutation.graphql' -import NullableTask from '../../components/NullableTask/NullableTask' import {DraggableTask_task$key} from '../../__generated__/DraggableTask_task.graphql' +import NullableTask from '../../components/NullableTask/NullableTask' const DraggableStyles = styled('div')({ // sometimes the default blue fuzzies show up around the containing div diff --git a/packages/client/hooks/useAnimatedSpotlightSource.ts b/packages/client/hooks/useAnimatedSpotlightSource.ts index b974ec36a24..2eeb2d60e76 100644 --- a/packages/client/hooks/useAnimatedSpotlightSource.ts +++ b/packages/client/hooks/useAnimatedSpotlightSource.ts @@ -2,10 +2,10 @@ import {Times} from 'parabol-client/types/constEnums' import {MutableRefObject, useLayoutEffect, useRef} from 'react' import useAtmosphere from '~/hooks/useAtmosphere' import {PortalStatus} from '~/hooks/usePortal' -import SendClientSideEvent from '~/utils/SendClientSideEvent' import StartDraggingReflectionMutation from '~/mutations/StartDraggingReflectionMutation' import {Elevation} from '~/styles/elevation' import {BezierCurve, ElementWidth} from '~/types/constEnums' +import SendClientSideEvent from '~/utils/SendClientSideEvent' import clientTempId from '~/utils/relay/clientTempId' import cloneReflection from '~/utils/retroGroup/cloneReflection' diff --git a/packages/client/hooks/useClientSideTrack.ts b/packages/client/hooks/useClientSideTrack.ts index f498bfb5a6c..7824e059659 100644 --- a/packages/client/hooks/useClientSideTrack.ts +++ b/packages/client/hooks/useClientSideTrack.ts @@ -1,6 +1,6 @@ import {useEffect, useRef} from 'react' -import useAtmosphere from './useAtmosphere' import SendClientSideEvent from '../utils/SendClientSideEvent' +import useAtmosphere from './useAtmosphere' // certain users keep sending this non-stop. not sure why. // include an eventId so we know if it's the component. if it's not here, then in must be in trebuchet diff --git a/packages/client/hooks/useDraggableReflectionCard.tsx b/packages/client/hooks/useDraggableReflectionCard.tsx index 8d4d0e2df69..6e6e82e83c5 100644 --- a/packages/client/hooks/useDraggableReflectionCard.tsx +++ b/packages/client/hooks/useDraggableReflectionCard.tsx @@ -1,8 +1,9 @@ import React, {useContext, useEffect, useRef, useState} from 'react' import {commitLocalUpdate} from 'relay-runtime' -import SendClientSideEvent from '~/utils/SendClientSideEvent' import {DraggableReflectionCard_meeting$data} from '~/__generated__/DraggableReflectionCard_meeting.graphql' import {DragReflectionDropTargetTypeEnum} from '~/__generated__/EndDraggingReflectionMutation_meeting.graphql' +import SendClientSideEvent from '~/utils/SendClientSideEvent' +import {DraggableReflectionCard_reflection$data} from '../__generated__/DraggableReflectionCard_reflection.graphql' import {PortalContext, SetPortal} from '../components/AtmosphereProvider/PortalProvider' import {SwipeColumn} from '../components/GroupingKanban' import {ReflectionDragState} from '../components/ReflectionGroup/DraggableReflectionCard' @@ -23,7 +24,6 @@ import updateClonePosition, { getDroppingStyles, getSpotlightAnimation } from '../utils/retroGroup/updateClonePosition' -import {DraggableReflectionCard_reflection$data} from '../__generated__/DraggableReflectionCard_reflection.graphql' import useAtmosphere from './useAtmosphere' import useEventCallback from './useEventCallback' import useSpotlightResults from './useSpotlightResults' diff --git a/packages/client/hooks/useEndMeetingHotkey.ts b/packages/client/hooks/useEndMeetingHotkey.ts index 6122816cf2e..92668697366 100644 --- a/packages/client/hooks/useEndMeetingHotkey.ts +++ b/packages/client/hooks/useEndMeetingHotkey.ts @@ -1,7 +1,7 @@ +import {MeetingTypeEnum} from '~/__generated__/MeetingSelectorQuery.graphql' import EndCheckInMutation from '~/mutations/EndCheckInMutation' import EndRetrospectiveMutation from '~/mutations/EndRetrospectiveMutation' import EndSprintPokerMutation from '~/mutations/EndSprintPokerMutation' -import {MeetingTypeEnum} from '~/__generated__/MeetingSelectorQuery.graphql' import handleHotkey from '../utils/meetings/handleHotkey' import useAtmosphere from './useAtmosphere' import useHotkey from './useHotkey' diff --git a/packages/client/hooks/useGotoStageId.ts b/packages/client/hooks/useGotoStageId.ts index 73d6aeb219e..b73eac1e94a 100644 --- a/packages/client/hooks/useGotoStageId.ts +++ b/packages/client/hooks/useGotoStageId.ts @@ -3,8 +3,8 @@ import {useCallback} from 'react' import {readInlineData} from 'relay-runtime' import {NavigateMeetingMutation as TNavigateMeetingMutation} from '~/__generated__/NavigateMeetingMutation.graphql' import {useGotoStageId_meeting$key} from '~/__generated__/useGotoStageId_meeting.graphql' -import {demoTeamId} from '../modules/demo/initDB' import LocalAtmosphere from '../modules/demo/LocalAtmosphere' +import {demoTeamId} from '../modules/demo/initDB' import NavigateMeetingMutation from '../mutations/NavigateMeetingMutation' import findStageById from '../utils/meetings/findStageById' import isForwardProgress from '../utils/meetings/isForwardProgress' diff --git a/packages/client/hooks/useInitialSafeRoute.ts b/packages/client/hooks/useInitialSafeRoute.ts index 4210c177ef4..84d3e7fb75b 100644 --- a/packages/client/hooks/useInitialSafeRoute.ts +++ b/packages/client/hooks/useInitialSafeRoute.ts @@ -2,6 +2,7 @@ import graphql from 'babel-plugin-relay/macro' import {Dispatch, SetStateAction, useEffect} from 'react' import {readInlineData} from 'relay-runtime' import {useInitialSafeRoute_meeting$key} from '~/__generated__/useInitialSafeRoute_meeting.graphql' +import {NewMeetingPhaseTypeEnum} from '../__generated__/ActionMeeting_meeting.graphql' import {RetroDemo} from '../types/constEnums' import findKeyByValue from '../utils/findKeyByValue' import findStageById from '../utils/meetings/findStageById' @@ -9,7 +10,6 @@ import fromStageIdToUrl from '../utils/meetings/fromStageIdToUrl' import getMeetingPathParams from '../utils/meetings/getMeetingPathParams' import {phaseTypeToSlug} from '../utils/meetings/lookups' import updateLocalStage from '../utils/relay/updateLocalStage' -import {NewMeetingPhaseTypeEnum} from '../__generated__/ActionMeeting_meeting.graphql' import useAtmosphere from './useAtmosphere' import useRouter from './useRouter' diff --git a/packages/client/hooks/useIsIntegrated.ts b/packages/client/hooks/useIsIntegrated.ts index cd05f887bed..e7ac801b8ca 100644 --- a/packages/client/hooks/useIsIntegrated.ts +++ b/packages/client/hooks/useIsIntegrated.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' -import {useIsIntegrated_integrations$key} from '../__generated__/useIsIntegrated_integrations.graphql' import {useFragment} from 'react-relay' +import {useIsIntegrated_integrations$key} from '../__generated__/useIsIntegrated_integrations.graphql' type IntegrationLookup = { hasGitHub: boolean diff --git a/packages/client/hooks/useMeeting.ts b/packages/client/hooks/useMeeting.ts index 6f5f16d2e5b..e5f00e7db34 100644 --- a/packages/client/hooks/useMeeting.ts +++ b/packages/client/hooks/useMeeting.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {readInlineData} from 'relay-runtime' -import isDemoRoute from '~/utils/isDemoRoute' import {useMeeting_meeting$key} from '~/__generated__/useMeeting_meeting.graphql' +import isDemoRoute from '~/utils/isDemoRoute' import {Breakpoint} from '../types/constEnums' import useAutoCheckIn from './useAutoCheckIn' import useBreakpoint from './useBreakpoint' diff --git a/packages/client/hooks/useNewFeatureSnackbar.ts b/packages/client/hooks/useNewFeatureSnackbar.ts index 6e4d103bc62..30f6730b342 100644 --- a/packages/client/hooks/useNewFeatureSnackbar.ts +++ b/packages/client/hooks/useNewFeatureSnackbar.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {useEffect} from 'react' import {useFragment} from 'react-relay' -import DismissNewFeatureMutation from '../mutations/DismissNewFeatureMutation' import {useNewFeatureSnackbar_viewer$key} from '../__generated__/useNewFeatureSnackbar_viewer.graphql' +import DismissNewFeatureMutation from '../mutations/DismissNewFeatureMutation' import useAtmosphere from './useAtmosphere' import useMutationProps from './useMutationProps' diff --git a/packages/client/hooks/useQueryLoaderNow.tsx b/packages/client/hooks/useQueryLoaderNow.tsx index 4e7207e6a35..33f2bd2d36e 100644 --- a/packages/client/hooks/useQueryLoaderNow.tsx +++ b/packages/client/hooks/useQueryLoaderNow.tsx @@ -1,9 +1,9 @@ import areEqual from 'fbjs/lib/areEqual' import {useCallback, useEffect, useRef} from 'react' import { - fetchQuery, - PreloadableConcreteRequest, PreloadFetchPolicy, + PreloadableConcreteRequest, + fetchQuery, useQueryLoader } from 'react-relay' import {GraphQLTaggedNode, OperationType, VariablesOf} from 'relay-runtime' diff --git a/packages/client/hooks/useSnacksForNewMeetings.ts b/packages/client/hooks/useSnacksForNewMeetings.ts index c72f6b9bda7..2a41b9735ab 100644 --- a/packages/client/hooks/useSnacksForNewMeetings.ts +++ b/packages/client/hooks/useSnacksForNewMeetings.ts @@ -2,9 +2,9 @@ import graphql from 'babel-plugin-relay/macro' import ms from 'ms' import {useEffect, useState} from 'react' import {readInlineData} from 'relay-runtime' +import {useSnacksForNewMeetings_meetings$key} from '~/__generated__/useSnacksForNewMeetings_meetings.graphql' import useAtmosphere from '~/hooks/useAtmosphere' import useRouter from '~/hooks/useRouter' -import {useSnacksForNewMeetings_meetings$key} from '~/__generated__/useSnacksForNewMeetings_meetings.graphql' const useSnacksForNewMeetings = (meetingsRef: readonly useSnacksForNewMeetings_meetings$key[]) => { const [dismissedMeetingIds] = useState(() => new Set()) diff --git a/packages/client/hooks/useSpotlightSimulatedDrag.tsx b/packages/client/hooks/useSpotlightSimulatedDrag.tsx index ad9774ebb09..bf93a24cbe2 100644 --- a/packages/client/hooks/useSpotlightSimulatedDrag.tsx +++ b/packages/client/hooks/useSpotlightSimulatedDrag.tsx @@ -1,8 +1,8 @@ import {MutableRefObject, useCallback, useEffect, useMemo, useRef} from 'react' import {commitLocalUpdate} from 'react-relay' -import SendClientSideEvent from '~/utils/SendClientSideEvent' -import {Times} from '~/types/constEnums' import {GroupingKanban_meeting$data} from '~/__generated__/GroupingKanban_meeting.graphql' +import {Times} from '~/types/constEnums' +import SendClientSideEvent from '~/utils/SendClientSideEvent' import EndDraggingReflectionMutation from '../mutations/EndDraggingReflectionMutation' import useAtmosphere from './useAtmosphere' diff --git a/packages/client/hooks/useSubColumns.ts b/packages/client/hooks/useSubColumns.ts index 48e4ce6b9ef..7e653bf7441 100644 --- a/packages/client/hooks/useSubColumns.ts +++ b/packages/client/hooks/useSubColumns.ts @@ -1,8 +1,8 @@ import {RefObject, useMemo, useState} from 'react' import {commitLocalUpdate} from 'react-relay' +import {GroupingKanbanColumn_reflectionGroups$data} from '~/__generated__/GroupingKanbanColumn_reflectionGroups.graphql' import getBBox from '~/components/RetroReflectPhase/getBBox' import {Breakpoint, ElementHeight, ElementWidth} from '~/types/constEnums' -import {GroupingKanbanColumn_reflectionGroups$data} from '~/__generated__/GroupingKanbanColumn_reflectionGroups.graphql' import useAtmosphere from './useAtmosphere' import useBreakpoint from './useBreakpoint' import useResizeObserver from './useResizeObserver' diff --git a/packages/client/modules/demo/ClientGraphQLServer.ts b/packages/client/modules/demo/ClientGraphQLServer.ts index 1053d69b2b3..e58c5f10f22 100644 --- a/packages/client/modules/demo/ClientGraphQLServer.ts +++ b/packages/client/modules/demo/ClientGraphQLServer.ts @@ -5,17 +5,17 @@ import ms from 'ms' import {Variables} from 'relay-runtime' import StrictEventEmitter from 'strict-event-emitter-types' import stringSimilarity from 'string-similarity' -import {PALETTE} from '~/styles/paletteV3' import {ReactableEnum} from '~/__generated__/AddReactjiToReactableMutation.graphql' import {DragReflectionDropTargetTypeEnum} from '~/__generated__/EndDraggingReflectionMutation.graphql' +import {PALETTE} from '~/styles/paletteV3' import DiscussPhase from '../../../server/database/types/DiscussPhase' import DiscussStage from '../../../server/database/types/DiscussStage' import NewMeetingPhase from '../../../server/database/types/GenericMeetingPhase' import NewMeetingStage from '../../../server/database/types/GenericMeetingStage' import GoogleAnalyzedEntity from '../../../server/database/types/GoogleAnalyzedEntity' +import ReflectPhase from '../../../server/database/types/ReflectPhase' import Reflection from '../../../server/database/types/Reflection' import ReflectionGroup from '../../../server/database/types/ReflectionGroup' -import ReflectPhase from '../../../server/database/types/ReflectPhase' import ITask from '../../../server/database/types/Task' import { ExternalLinks, @@ -36,6 +36,7 @@ import startStage_ from '../../utils/startStage_' import unlockAllStagesForPhase from '../../utils/unlockAllStagesForPhase' import unlockNextStages from '../../utils/unlockNextStages' import normalizeRawDraftJS from '../../validation/normalizeRawDraftJS' +import LocalAtmosphere from './LocalAtmosphere' import entityLookup from './entityLookup' import getDemoEntities from './getDemoEntities' import handleCompletedDemoStage from './handleCompletedDemoStage' @@ -43,13 +44,12 @@ import initBotScript from './initBotScript' import initDB, { DemoComment, DemoDiscussion, - demoTeamId, DemoThreadableEdge, - demoViewerId, JiraProjectKeyLookup, - RetroDemoDB + RetroDemoDB, + demoTeamId, + demoViewerId } from './initDB' -import LocalAtmosphere from './LocalAtmosphere' export type DemoReflection = Omit & { __typename: string diff --git a/packages/client/modules/demo/DemoGenericMeetingStage.ts b/packages/client/modules/demo/DemoGenericMeetingStage.ts index 6429428d7d4..6e386d14f2d 100644 --- a/packages/client/modules/demo/DemoGenericMeetingStage.ts +++ b/packages/client/modules/demo/DemoGenericMeetingStage.ts @@ -1,5 +1,5 @@ -import {RetroDemo} from '../../types/constEnums' import {NewMeetingPhaseTypeEnum} from '../../__generated__/MeetingControlBar_meeting.graphql' +import {RetroDemo} from '../../types/constEnums' export default class DemoGenericMeetingStage { __typename = 'GenericMeetingStage' diff --git a/packages/client/modules/demo/handleCompletedDemoStage.ts b/packages/client/modules/demo/handleCompletedDemoStage.ts index f7b48422363..7589b1fe285 100644 --- a/packages/client/modules/demo/handleCompletedDemoStage.ts +++ b/packages/client/modules/demo/handleCompletedDemoStage.ts @@ -3,8 +3,8 @@ import {ACTIVE, GROUP, REFLECT, VOTE} from '../../utils/constants' import extractTextFromDraftString from '../../utils/draftjs/extractTextFromDraftString' import mapGroupsToStages from '../../utils/makeGroupsToStages' import clientTempId from '../../utils/relay/clientTempId' -import commentLookup from './commentLookup' import DemoDiscussStage from './DemoDiscussStage' +import commentLookup from './commentLookup' import {RetroDemoDB} from './initDB' import reactjiLookup from './reactjiLookup' import taskLookup from './taskLookup' diff --git a/packages/client/modules/demo/initBotScript.ts b/packages/client/modules/demo/initBotScript.ts index 8dc9cdd840a..151cc3524a2 100644 --- a/packages/client/modules/demo/initBotScript.ts +++ b/packages/client/modules/demo/initBotScript.ts @@ -1,5 +1,5 @@ -import {RetroDemo} from '~/types/constEnums' import {DragReflectionDropTargetTypeEnum} from '~/__generated__/EndDraggingReflectionMutation.graphql' +import {RetroDemo} from '~/types/constEnums' import {demoTeamId} from './initDB' // 3 -> 1 diff --git a/packages/client/modules/demo/initDB.ts b/packages/client/modules/demo/initDB.ts index 7d1b673b94c..d452d9ee3af 100644 --- a/packages/client/modules/demo/initDB.ts +++ b/packages/client/modules/demo/initDB.ts @@ -1,5 +1,5 @@ -import {PALETTE} from '~/styles/paletteV3' import {SlackNotificationEventEnum} from '~/__generated__/SlackNotificationList_viewer.graphql' +import {PALETTE} from '~/styles/paletteV3' import RetrospectiveMeeting from '../../../server/database/types/MeetingRetrospective' import RetrospectiveMeetingSettings from '../../../server/database/types/MeetingSettingsRetrospective' import ITask from '../../../server/database/types/Task' diff --git a/packages/client/modules/email/components/EmailNotifications/EmailNotificationPicker.tsx b/packages/client/modules/email/components/EmailNotifications/EmailNotificationPicker.tsx index 4322938195c..2a842df7432 100644 --- a/packages/client/modules/email/components/EmailNotifications/EmailNotificationPicker.tsx +++ b/packages/client/modules/email/components/EmailNotifications/EmailNotificationPicker.tsx @@ -1,6 +1,6 @@ import graphql from 'babel-plugin-relay/macro' -import typedLookup from 'parabol-client/types/typedLookup' import {EmailNotificationPicker_notification$key} from 'parabol-client/__generated__/EmailNotificationPicker_notification.graphql' +import typedLookup from 'parabol-client/types/typedLookup' import React from 'react' import {useFragment} from 'react-relay' import EmailDiscussionMentioned from './EmailDiscussionMentioned' diff --git a/packages/client/modules/email/components/EmailNotifications/EmailTaskInvolves.tsx b/packages/client/modules/email/components/EmailNotifications/EmailTaskInvolves.tsx index 257992f5800..942f993fe21 100644 --- a/packages/client/modules/email/components/EmailNotifications/EmailTaskInvolves.tsx +++ b/packages/client/modules/email/components/EmailNotifications/EmailTaskInvolves.tsx @@ -1,6 +1,6 @@ import graphql from 'babel-plugin-relay/macro' -import {ASSIGNEE, MENTIONEE} from 'parabol-client/utils/constants' import {EmailTaskInvolves_notification$key} from 'parabol-client/__generated__/EmailTaskInvolves_notification.graphql' +import {ASSIGNEE, MENTIONEE} from 'parabol-client/utils/constants' import React from 'react' import {useFragment} from 'react-relay' import makeAppURL from '../../../../utils/makeAppURL' diff --git a/packages/client/modules/email/components/NotificationSummaryEmail.tsx b/packages/client/modules/email/components/NotificationSummaryEmail.tsx index a989e981d32..09584b916a3 100644 --- a/packages/client/modules/email/components/NotificationSummaryEmail.tsx +++ b/packages/client/modules/email/components/NotificationSummaryEmail.tsx @@ -1,6 +1,6 @@ +import {EmailNotificationPicker_notification$key} from 'parabol-client/__generated__/EmailNotificationPicker_notification.graphql' import {ContactInfo, ExternalLinks} from 'parabol-client/types/constEnums' import plural from 'parabol-client/utils/plural' -import {EmailNotificationPicker_notification$key} from 'parabol-client/__generated__/EmailNotificationPicker_notification.graphql' import React from 'react' import {EMAIL_CORS_OPTIONS} from '../../../types/cors' import makeAppURL from '../../../utils/makeAppURL' diff --git a/packages/client/modules/email/components/SummaryEmail/ExportToCSV.tsx b/packages/client/modules/email/components/SummaryEmail/ExportToCSV.tsx index 1d5446caefc..fc69ed57121 100644 --- a/packages/client/modules/email/components/SummaryEmail/ExportToCSV.tsx +++ b/packages/client/modules/email/components/SummaryEmail/ExportToCSV.tsx @@ -1,10 +1,10 @@ import graphql from 'babel-plugin-relay/macro' import type {Parser as JSON2CSVParser} from 'json2csv' import Parser from 'json2csv/lib/JSON2CSVParser' // only grab the sync parser +import {ExportToCSVQuery} from 'parabol-client/__generated__/ExportToCSVQuery.graphql' import {PALETTE} from 'parabol-client/styles/paletteV3' import extractTextFromDraftString from 'parabol-client/utils/draftjs/extractTextFromDraftString' import withMutationProps, {WithMutationProps} from 'parabol-client/utils/relay/withMutationProps' -import {ExportToCSVQuery} from 'parabol-client/__generated__/ExportToCSVQuery.graphql' import React, {useEffect} from 'react' import useAtmosphere from '~/hooks/useAtmosphere' import {ExternalLinks, PokerCards} from '../../../../types/constEnums' diff --git a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/EmailReflectionCard.tsx b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/EmailReflectionCard.tsx index 7b91722c527..dfb3bd67f4c 100644 --- a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/EmailReflectionCard.tsx +++ b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/EmailReflectionCard.tsx @@ -1,9 +1,9 @@ import graphql from 'babel-plugin-relay/macro' import {convertFromRaw, Editor, EditorState} from 'draft-js' +import {EmailReflectionCard_reflection$key} from 'parabol-client/__generated__/EmailReflectionCard_reflection.graphql' import editorDecorators from 'parabol-client/components/TaskEditor/decorators' import {PALETTE} from 'parabol-client/styles/paletteV3' import {FONT_FAMILY} from 'parabol-client/styles/typographyV2' -import {EmailReflectionCard_reflection$key} from 'parabol-client/__generated__/EmailReflectionCard_reflection.graphql' import React, {useMemo, useRef} from 'react' import {useFragment} from 'react-relay' diff --git a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/EmailTaskCard.tsx b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/EmailTaskCard.tsx index 4dea1f88ef4..bb8ae51275f 100644 --- a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/EmailTaskCard.tsx +++ b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/EmailTaskCard.tsx @@ -1,14 +1,14 @@ import graphql from 'babel-plugin-relay/macro' import {convertFromRaw, Editor, EditorState} from 'draft-js' +import {EmailTaskCard_task$key} from 'parabol-client/__generated__/EmailTaskCard_task.graphql' import editorDecorators from 'parabol-client/components/TaskEditor/decorators' import {PALETTE} from 'parabol-client/styles/paletteV3' import {FONT_FAMILY} from 'parabol-client/styles/typographyV2' import {taskStatusColors} from 'parabol-client/utils/taskStatus' -import {EmailTaskCard_task$key} from 'parabol-client/__generated__/EmailTaskCard_task.graphql' import React, {useMemo, useRef} from 'react' import {useFragment} from 'react-relay' -import convertToTaskContent from '../../../../../utils/draftjs/convertToTaskContent' import {TaskStatusEnum} from '../../../../../__generated__/EmailTaskCard_task.graphql' +import convertToTaskContent from '../../../../../utils/draftjs/convertToTaskContent' interface Props { task: EmailTaskCard_task$key | null diff --git a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/ExportAllTasks.tsx b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/ExportAllTasks.tsx index 1d83a71cd71..65ed83c6d83 100644 --- a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/ExportAllTasks.tsx +++ b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/ExportAllTasks.tsx @@ -1,24 +1,24 @@ +import {Loop} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' +import clsx from 'clsx' import React, {useState} from 'react' -import {Loop} from '@mui/icons-material' -import {MenuPosition} from '../../../../../hooks/useCoords' -import useMenu from '../../../../../hooks/useMenu' -import useMutationProps, {getOnCompletedError} from '../../../../../hooks/useMutationProps' -import lazyPreload from '../../../../../utils/lazyPreload' import {useFragment} from 'react-relay' import { ExportAllTasks_meeting$key, TaskServiceEnum } from '../../../../../__generated__/ExportAllTasks_meeting.graphql' -import CreateTaskIntegrationMutation from '../../../../../mutations/CreateTaskIntegrationMutation' -import useAtmosphere from '../../../../../hooks/useAtmosphere' -import {integrationSvgLookup} from '../../../../../components/TaskIntegrationMenuItem' -import {Providers} from '../../../../../types/constEnums' import GitHubSVG from '../../../../../components/GitHubSVG' -import JiraSVG from '../../../../../components/JiraSVG' import GitLabSVG from '../../../../../components/GitLabSVG' -import clsx from 'clsx' +import JiraSVG from '../../../../../components/JiraSVG' +import {integrationSvgLookup} from '../../../../../components/TaskIntegrationMenuItem' +import useAtmosphere from '../../../../../hooks/useAtmosphere' +import {MenuPosition} from '../../../../../hooks/useCoords' +import useMenu from '../../../../../hooks/useMenu' +import useMutationProps, {getOnCompletedError} from '../../../../../hooks/useMutationProps' +import CreateTaskIntegrationMutation from '../../../../../mutations/CreateTaskIntegrationMutation' +import {Providers} from '../../../../../types/constEnums' import SendClientSideEvent from '../../../../../utils/SendClientSideEvent' +import lazyPreload from '../../../../../utils/lazyPreload' const ExportAllTasksMenuRoot = lazyPreload( () => import(/* webpackChunkName: 'ExportAllTasksMenuRoot' */ './ExportAllTasksMenuRoot') diff --git a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/ExportAllTasksMenu.tsx b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/ExportAllTasksMenu.tsx index 7ada66e8765..d96f590c3cb 100644 --- a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/ExportAllTasksMenu.tsx +++ b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/ExportAllTasksMenu.tsx @@ -1,14 +1,14 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {PreloadedQuery, useFragment, usePreloadedQuery} from 'react-relay' -import {MenuProps} from '../../../../../hooks/useMenu' -import {MenuMutationProps} from '../../../../../hooks/useMutationProps' +import {TaskServiceEnum} from '../../../../../__generated__/CreateTaskMutation.graphql' import {ExportAllTasksMenuQuery} from '../../../../../__generated__/ExportAllTasksMenuQuery.graphql' import {ExportAllTasksMenu_meeting$key} from '../../../../../__generated__/ExportAllTasksMenu_meeting.graphql' import TaskFooterIntegrateMenuList from '../../../../../components/TaskFooterIntegrateMenuList' import TaskFooterIntegrateMenuSignup from '../../../../../components/TaskFooterIntegrateMenuSignup' -import {useIsIntegrated, makePlaceholder} from '../../../../../hooks/useIsIntegrated' -import {TaskServiceEnum} from '../../../../../__generated__/CreateTaskMutation.graphql' +import {makePlaceholder, useIsIntegrated} from '../../../../../hooks/useIsIntegrated' +import {MenuProps} from '../../../../../hooks/useMenu' +import {MenuMutationProps} from '../../../../../hooks/useMutationProps' interface Props { menuProps: MenuProps diff --git a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/ExportAllTasksMenuRoot.tsx b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/ExportAllTasksMenuRoot.tsx index c0a5c4cc4be..df7a84f8220 100644 --- a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/ExportAllTasksMenuRoot.tsx +++ b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/ExportAllTasksMenuRoot.tsx @@ -1,17 +1,17 @@ import graphql from 'babel-plugin-relay/macro' import React, {Suspense} from 'react' import {useFragment} from 'react-relay' -import useQueryLoaderNow from '../../../../../hooks/useQueryLoaderNow' -import {LoaderSize} from '../../../../../types/constEnums' +import {TaskServiceEnum} from '../../../../../__generated__/CreateTaskMutation.graphql' import exportAllTasksMenuQuery, { ExportAllTasksMenuQuery } from '../../../../../__generated__/ExportAllTasksMenuQuery.graphql' import {ExportAllTasksMenuRoot_meeting$key} from '../../../../../__generated__/ExportAllTasksMenuRoot_meeting.graphql' import LoadingComponent from '../../../../../components/LoadingComponent/LoadingComponent' -import ExportAllTasksMenu from './ExportAllTasksMenu' import {MenuProps} from '../../../../../hooks/useMenu' import {MenuMutationProps} from '../../../../../hooks/useMutationProps' -import {TaskServiceEnum} from '../../../../../__generated__/CreateTaskMutation.graphql' +import useQueryLoaderNow from '../../../../../hooks/useQueryLoaderNow' +import {LoaderSize} from '../../../../../types/constEnums' +import ExportAllTasksMenu from './ExportAllTasksMenu' interface Props { menuProps: MenuProps diff --git a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/MeetingMemberTaskSummaryList.tsx b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/MeetingMemberTaskSummaryList.tsx index 534279c9b9b..aeca571181d 100644 --- a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/MeetingMemberTaskSummaryList.tsx +++ b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/MeetingMemberTaskSummaryList.tsx @@ -1,6 +1,6 @@ import graphql from 'babel-plugin-relay/macro' -import plural from 'parabol-client/utils/plural' import {MeetingMemberTaskSummaryList_meetingMember$key} from 'parabol-client/__generated__/MeetingMemberTaskSummaryList_meetingMember.graphql' +import plural from 'parabol-client/utils/plural' import React from 'react' import {useFragment} from 'react-relay' import SummaryAvatarHeader from './SummaryAvatarHeader' diff --git a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/MeetingMembersWithoutTasks.tsx b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/MeetingMembersWithoutTasks.tsx index ee62beef884..5498b2565ab 100644 --- a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/MeetingMembersWithoutTasks.tsx +++ b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/MeetingMembersWithoutTasks.tsx @@ -1,11 +1,11 @@ import graphql from 'babel-plugin-relay/macro' -import useEmailItemGrid from 'parabol-client/hooks/useEmailItemGrid' -import {PALETTE} from 'parabol-client/styles/paletteV3' -import {FONT_FAMILY} from 'parabol-client/styles/typographyV2' import { MeetingMembersWithoutTasks_meeting$key, MeetingTypeEnum } from 'parabol-client/__generated__/MeetingMembersWithoutTasks_meeting.graphql' +import useEmailItemGrid from 'parabol-client/hooks/useEmailItemGrid' +import {PALETTE} from 'parabol-client/styles/paletteV3' +import {FONT_FAMILY} from 'parabol-client/styles/typographyV2' import React from 'react' import {useFragment} from 'react-relay' import EmailBorderBottom from './EmailBorderBottom' diff --git a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/QuickStats.tsx b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/QuickStats.tsx index 67b3e25f034..e3fb8fafd21 100644 --- a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/QuickStats.tsx +++ b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/QuickStats.tsx @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' +import {QuickStats_meeting$key} from 'parabol-client/__generated__/QuickStats_meeting.graphql' import {PALETTE} from 'parabol-client/styles/paletteV3' import {FONT_FAMILY} from 'parabol-client/styles/typographyV2' import {ACTION, RETROSPECTIVE} from 'parabol-client/utils/constants' -import {QuickStats_meeting$key} from 'parabol-client/__generated__/QuickStats_meeting.graphql' import React from 'react' import {useFragment} from 'react-relay' import makeActionStats from './makeActionStats' diff --git a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/RetroTopic.tsx b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/RetroTopic.tsx index 15eb9aeb052..d89d5c32738 100644 --- a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/RetroTopic.tsx +++ b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/RetroTopic.tsx @@ -5,10 +5,10 @@ import {FONT_FAMILY, ICON_SIZE} from 'parabol-client/styles/typographyV2' import plural from 'parabol-client/utils/plural' import React from 'react' import {useFragment} from 'react-relay' +import {RetroTopic_meeting$key} from '../../../../../__generated__/RetroTopic_meeting.graphql' +import {RetroTopic_stage$key} from '../../../../../__generated__/RetroTopic_stage.graphql' import {ExternalLinks} from '../../../../../types/constEnums' import {APP_CORS_OPTIONS, EMAIL_CORS_OPTIONS} from '../../../../../types/cors' -import {RetroTopic_stage$key} from '../../../../../__generated__/RetroTopic_stage.graphql' -import {RetroTopic_meeting$key} from '../../../../../__generated__/RetroTopic_meeting.graphql' import AnchorIfEmail from './AnchorIfEmail' import EmailReflectionCard from './EmailReflectionCard' import ShareTopic from './ShareTopic' diff --git a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/RetroTopics.tsx b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/RetroTopics.tsx index 0c2b2805db9..123d02e2897 100644 --- a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/RetroTopics.tsx +++ b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/RetroTopics.tsx @@ -1,9 +1,9 @@ import graphql from 'babel-plugin-relay/macro' +import {RetroTopics_meeting$key} from 'parabol-client/__generated__/RetroTopics_meeting.graphql' import {PALETTE} from 'parabol-client/styles/paletteV3' import {FONT_FAMILY} from 'parabol-client/styles/typographyV2' import {RETRO_TOPIC_LABEL} from 'parabol-client/utils/constants' import plural from 'parabol-client/utils/plural' -import {RetroTopics_meeting$key} from 'parabol-client/__generated__/RetroTopics_meeting.graphql' import React from 'react' import {useFragment} from 'react-relay' import useEmailItemGrid from '../../../../../hooks/useEmailItemGrid' diff --git a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/ShareTopic.tsx b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/ShareTopic.tsx index 083e2a3f29c..2f72c71d09c 100644 --- a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/ShareTopic.tsx +++ b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/ShareTopic.tsx @@ -1,10 +1,10 @@ import {PALETTE} from 'parabol-client/styles/paletteV3' import {FONT_FAMILY} from 'parabol-client/styles/typographyV2' import React from 'react' -import AnchorIfEmail from './AnchorIfEmail' -import makeAppURL from '../../../../../utils/makeAppURL' -import {useDialogState} from '../../../../../ui/Dialog/useDialogState' import ShareTopicRoot from '../../../../../components/ShareTopicRoot' +import {useDialogState} from '../../../../../ui/Dialog/useDialogState' +import makeAppURL from '../../../../../utils/makeAppURL' +import AnchorIfEmail from './AnchorIfEmail' interface Props { isEmail: boolean diff --git a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/SummaryAvatarHeader.tsx b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/SummaryAvatarHeader.tsx index 287a18df668..2dffc5f88de 100644 --- a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/SummaryAvatarHeader.tsx +++ b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/SummaryAvatarHeader.tsx @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' +import {SummaryAvatarHeader_meetingMember$key} from 'parabol-client/__generated__/SummaryAvatarHeader_meetingMember.graphql' import {PALETTE} from 'parabol-client/styles/paletteV3' import {FONT_FAMILY} from 'parabol-client/styles/typographyV2' -import {SummaryAvatarHeader_meetingMember$key} from 'parabol-client/__generated__/SummaryAvatarHeader_meetingMember.graphql' import React from 'react' import {useFragment} from 'react-relay' diff --git a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/SummaryHeader.tsx b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/SummaryHeader.tsx index 0f4a11b3147..3e5699f9460 100644 --- a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/SummaryHeader.tsx +++ b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/SummaryHeader.tsx @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' +import {SummaryHeader_meeting$key} from 'parabol-client/__generated__/SummaryHeader_meeting.graphql' import {PALETTE} from 'parabol-client/styles/paletteV3' import {FONT_FAMILY} from 'parabol-client/styles/typographyV2' import makeDateString from 'parabol-client/utils/makeDateString' -import {SummaryHeader_meeting$key} from 'parabol-client/__generated__/SummaryHeader_meeting.graphql' import React from 'react' import {useFragment} from 'react-relay' import {ExternalLinks} from '../../../../../types/constEnums' diff --git a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/SummaryPokerStories.tsx b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/SummaryPokerStories.tsx index 3e386b23117..5df09279819 100644 --- a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/SummaryPokerStories.tsx +++ b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/SummaryPokerStories.tsx @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' +import {SummaryPokerStories_meeting$key} from 'parabol-client/__generated__/SummaryPokerStories_meeting.graphql' import {PALETTE} from 'parabol-client/styles/paletteV3' import {FONT_FAMILY} from 'parabol-client/styles/typographyV2' -import {SummaryPokerStories_meeting$key} from 'parabol-client/__generated__/SummaryPokerStories_meeting.graphql' import React from 'react' import {useFragment} from 'react-relay' import makeAppURL from '../../../../../utils/makeAppURL' diff --git a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/SummarySheet.tsx b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/SummarySheet.tsx index 93d37ee81f7..138200b6327 100644 --- a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/SummarySheet.tsx +++ b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/SummarySheet.tsx @@ -1,33 +1,33 @@ -import graphql from 'babel-plugin-relay/macro' +import {TableChart} from '@mui/icons-material' import PictureAsPdf from '@mui/icons-material/PictureAsPdf' +import graphql from 'babel-plugin-relay/macro' +import {SummarySheet_meeting$key} from 'parabol-client/__generated__/SummarySheet_meeting.graphql' import CreateAccountSection from 'parabol-client/modules/demo/components/CreateAccountSection' import {sheetShadow} from 'parabol-client/styles/elevation' import {ACTION} from 'parabol-client/utils/constants' -import {SummarySheet_meeting$key} from 'parabol-client/__generated__/SummarySheet_meeting.graphql' import React from 'react' import {useFragment} from 'react-relay' +import {Link} from 'react-router-dom' +import useAtmosphere from '../../../../../hooks/useAtmosphere' +import {PALETTE} from '../../../../../styles/paletteV3' import {CorsOptions} from '../../../../../types/cors' +import SendClientSideEvent from '../../../../../utils/SendClientSideEvent' +import lazyPreload from '../../../../../utils/lazyPreload' import ExportToCSV from '../ExportToCSV' +import EmailBorderBottom from '../MeetingSummaryEmail/EmailBorderBottom' import ContactUsFooter from './ContactUsFooter' import LogoFooter from './LogoFooter' -import MeetingMembersWithoutTasks from './MeetingMembersWithoutTasks' import MeetingMembersWithTasks from './MeetingMembersWithTasks' +import MeetingMembersWithoutTasks from './MeetingMembersWithoutTasks' import {MeetingSummaryReferrer} from './MeetingSummaryEmail' import QuickStats from './QuickStats' -import TeamHealthSummary from './TeamHealthSummary' import RetroTopics from './RetroTopics' import SummaryHeader from './SummaryHeader' import SummaryPokerStories from './SummaryPokerStories' import SummarySheetCTA from './SummarySheetCTA' +import TeamHealthSummary from './TeamHealthSummary' import TeamPromptResponseSummary from './TeamPromptResponseSummary' import WholeMeetingSummary from './WholeMeetingSummary' -import lazyPreload from '../../../../../utils/lazyPreload' -import EmailBorderBottom from '../MeetingSummaryEmail/EmailBorderBottom' -import {PALETTE} from '../../../../../styles/paletteV3' -import {TableChart} from '@mui/icons-material' -import {Link} from 'react-router-dom' -import SendClientSideEvent from '../../../../../utils/SendClientSideEvent' -import useAtmosphere from '../../../../../hooks/useAtmosphere' const ExportAllTasks = lazyPreload(() => import('./ExportAllTasks')) diff --git a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/TaskSummarySection.tsx b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/TaskSummarySection.tsx index 5a9906bfedd..05c56291daa 100644 --- a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/TaskSummarySection.tsx +++ b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/TaskSummarySection.tsx @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' +import {TaskSummarySection_tasks$key} from 'parabol-client/__generated__/TaskSummarySection_tasks.graphql' import useEmailItemGrid from 'parabol-client/hooks/useEmailItemGrid' import {PALETTE} from 'parabol-client/styles/paletteV3' import {FONT_FAMILY} from 'parabol-client/styles/typographyV2' -import {TaskSummarySection_tasks$key} from 'parabol-client/__generated__/TaskSummarySection_tasks.graphql' import React from 'react' import {useFragment} from 'react-relay' import EmailTaskCard from './EmailTaskCard' diff --git a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/TeamHealthSummary.tsx b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/TeamHealthSummary.tsx index ccbd216e355..ab8b8ae8e65 100644 --- a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/TeamHealthSummary.tsx +++ b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/TeamHealthSummary.tsx @@ -1,10 +1,10 @@ import graphql from 'babel-plugin-relay/macro' +import {TeamHealthSummary_meeting$key} from 'parabol-client/__generated__/TeamHealthSummary_meeting.graphql' import {PALETTE} from 'parabol-client/styles/paletteV3' import {FONT_FAMILY} from 'parabol-client/styles/typographyV2' -import {TeamHealthSummary_meeting$key} from 'parabol-client/__generated__/TeamHealthSummary_meeting.graphql' +import getTeamHealthVoteColor from 'parabol-client/utils/getTeamHealthVoteColor' import React from 'react' import {useFragment} from 'react-relay' -import getTeamHealthVoteColor from 'parabol-client/utils/getTeamHealthVoteColor' interface Props { meeting: TeamHealthSummary_meeting$key diff --git a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/WholeMeetingSummaryResult.tsx b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/WholeMeetingSummaryResult.tsx index 76aba9a8828..56e30fea03b 100644 --- a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/WholeMeetingSummaryResult.tsx +++ b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/WholeMeetingSummaryResult.tsx @@ -1,12 +1,12 @@ import graphql from 'babel-plugin-relay/macro' +import {WholeMeetingSummaryResult_meeting$key} from 'parabol-client/__generated__/WholeMeetingSummaryResult_meeting.graphql' import {PALETTE} from 'parabol-client/styles/paletteV3' import {FONT_FAMILY} from 'parabol-client/styles/typographyV2' -import {WholeMeetingSummaryResult_meeting$key} from 'parabol-client/__generated__/WholeMeetingSummaryResult_meeting.graphql' import React, {useEffect} from 'react' import {useFragment} from 'react-relay' import useAtmosphere from '../../../../../hooks/useAtmosphere' -import SendClientSideEvent from '../../../../../utils/SendClientSideEvent' import {AIExplainer} from '../../../../../types/constEnums' +import SendClientSideEvent from '../../../../../utils/SendClientSideEvent' import EmailBorderBottom from './EmailBorderBottom' const topicTitleStyle = { diff --git a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/makePokerStats.ts b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/makePokerStats.ts index 1c37f760f88..55957107842 100644 --- a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/makePokerStats.ts +++ b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/makePokerStats.ts @@ -1,6 +1,6 @@ import graphql from 'babel-plugin-relay/macro' -import plural from 'parabol-client/utils/plural' import {makePokerStats_meeting$key} from 'parabol-client/__generated__/makePokerStats_meeting.graphql' +import plural from 'parabol-client/utils/plural' import {readInlineData} from 'react-relay' const makePokerStats = (meetingRef: makePokerStats_meeting$key) => { diff --git a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/makeTeamPromptStats.ts b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/makeTeamPromptStats.ts index cf1ac967e70..32606d8fdb8 100644 --- a/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/makeTeamPromptStats.ts +++ b/packages/client/modules/email/components/SummaryEmail/MeetingSummaryEmail/makeTeamPromptStats.ts @@ -1,6 +1,6 @@ import graphql from 'babel-plugin-relay/macro' -import plural from 'parabol-client/utils/plural' import {makeTeamPromptStats_meeting$key} from 'parabol-client/__generated__/makeTeamPromptStats_meeting.graphql' +import plural from 'parabol-client/utils/plural' import {readInlineData} from 'react-relay' const makeTeamPromptStats = (meetingRef: makeTeamPromptStats_meeting$key) => { diff --git a/packages/client/modules/invoice/components/Invoice/Invoice.tsx b/packages/client/modules/invoice/components/Invoice/Invoice.tsx index 5fc39073e19..a50d9543b35 100644 --- a/packages/client/modules/invoice/components/Invoice/Invoice.tsx +++ b/packages/client/modules/invoice/components/Invoice/Invoice.tsx @@ -2,6 +2,7 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {PreloadedQuery, usePreloadedQuery} from 'react-relay' +import {InvoiceQuery, InvoiceStatusEnum} from '../../../../__generated__/InvoiceQuery.graphql' import EmphasisTag from '../../../../components/Tag/EmphasisTag' import useDocumentTitle from '../../../../hooks/useDocumentTitle' import {Elevation} from '../../../../styles/elevation' @@ -9,7 +10,6 @@ import {PALETTE} from '../../../../styles/paletteV3' import {Breakpoint} from '../../../../types/constEnums' import makeDateString from '../../../../utils/makeDateString' import makeMonthString from '../../../../utils/makeMonthString' -import {InvoiceQuery, InvoiceStatusEnum} from '../../../../__generated__/InvoiceQuery.graphql' import invoiceLineFormat from '../../helpers/invoiceLineFormat' import InvoiceFooter from '../InvoiceFooter/InvoiceFooter' import InvoiceHeader from '../InvoiceHeader/InvoiceHeader' diff --git a/packages/client/modules/invoice/components/InvoiceLineItem/InvoiceLineItemDetails.tsx b/packages/client/modules/invoice/components/InvoiceLineItem/InvoiceLineItemDetails.tsx index 54613866c6b..e92025814e1 100644 --- a/packages/client/modules/invoice/components/InvoiceLineItem/InvoiceLineItemDetails.tsx +++ b/packages/client/modules/invoice/components/InvoiceLineItem/InvoiceLineItemDetails.tsx @@ -3,8 +3,8 @@ import graphql from 'babel-plugin-relay/macro' import React, {useState} from 'react' import {useFragment} from 'react-relay' import { - InvoiceLineItemDetails_details$key, - InvoiceLineItemDetails_details$data + InvoiceLineItemDetails_details$data, + InvoiceLineItemDetails_details$key } from '~/__generated__/InvoiceLineItemDetails_details.graphql' import {InvoiceLineItemEnum} from '~/__generated__/InvoiceLineItem_item.graphql' import {PALETTE} from '../../../../styles/paletteV3' diff --git a/packages/client/modules/invoice/containers/InvoiceRoot.tsx b/packages/client/modules/invoice/containers/InvoiceRoot.tsx index ae07a433979..b0db1125ae9 100644 --- a/packages/client/modules/invoice/containers/InvoiceRoot.tsx +++ b/packages/client/modules/invoice/containers/InvoiceRoot.tsx @@ -1,7 +1,7 @@ import React, {Suspense} from 'react' import {RouteComponentProps} from 'react-router' -import useQueryLoaderNow from '../../../hooks/useQueryLoaderNow' import invoiceQuery, {InvoiceQuery} from '../../../__generated__/InvoiceQuery.graphql' +import useQueryLoaderNow from '../../../hooks/useQueryLoaderNow' import Invoice from '../components/Invoice/Invoice' interface Props extends RouteComponentProps<{invoiceId: string}> {} diff --git a/packages/client/modules/meeting/components/ActionMeetingUpdatesPromptTeamHelpText.tsx b/packages/client/modules/meeting/components/ActionMeetingUpdatesPromptTeamHelpText.tsx index 23bbe6a7bf5..efb77f608d4 100644 --- a/packages/client/modules/meeting/components/ActionMeetingUpdatesPromptTeamHelpText.tsx +++ b/packages/client/modules/meeting/components/ActionMeetingUpdatesPromptTeamHelpText.tsx @@ -2,9 +2,9 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {ActionMeetingUpdatesPromptTeamHelpText_currentMeetingMember$key} from '../../../__generated__/ActionMeetingUpdatesPromptTeamHelpText_currentMeetingMember.graphql' import useAtmosphere from '../../../hooks/useAtmosphere' import {PALETTE} from '../../../styles/paletteV3' -import {ActionMeetingUpdatesPromptTeamHelpText_currentMeetingMember$key} from '../../../__generated__/ActionMeetingUpdatesPromptTeamHelpText_currentMeetingMember.graphql' const AgendaControl = styled('span')({ color: PALETTE.SKY_500, diff --git a/packages/client/modules/meeting/components/AddPokerTemplateDimension.tsx b/packages/client/modules/meeting/components/AddPokerTemplateDimension.tsx index 454d555cdf4..d9fb3314fea 100644 --- a/packages/client/modules/meeting/components/AddPokerTemplateDimension.tsx +++ b/packages/client/modules/meeting/components/AddPokerTemplateDimension.tsx @@ -4,12 +4,12 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import {Threshold} from '~/types/constEnums' +import {AddPokerTemplateDimension_dimensions$key} from '../../../__generated__/AddPokerTemplateDimension_dimensions.graphql' import LinkButton from '../../../components/LinkButton' import useAtmosphere from '../../../hooks/useAtmosphere' import useMutationProps from '../../../hooks/useMutationProps' import AddPokerTemplateDimensionMutation from '../../../mutations/AddPokerTemplateDimensionMutation' import dndNoise from '../../../utils/dndNoise' -import {AddPokerTemplateDimension_dimensions$key} from '../../../__generated__/AddPokerTemplateDimension_dimensions.graphql' const AddDimensionLink = styled(LinkButton)({ alignItems: 'center', diff --git a/packages/client/modules/meeting/components/AddTemplatePrompt.tsx b/packages/client/modules/meeting/components/AddTemplatePrompt.tsx index 18db3452b4a..1e97063dbe1 100644 --- a/packages/client/modules/meeting/components/AddTemplatePrompt.tsx +++ b/packages/client/modules/meeting/components/AddTemplatePrompt.tsx @@ -5,11 +5,11 @@ import React from 'react' import {useFragment} from 'react-relay' import useAtmosphere from '~/hooks/useAtmosphere' import {Threshold} from '~/types/constEnums' +import {AddTemplatePrompt_prompts$key} from '../../../__generated__/AddTemplatePrompt_prompts.graphql' import LinkButton from '../../../components/LinkButton' import AddReflectTemplatePromptMutation from '../../../mutations/AddReflectTemplatePromptMutation' import dndNoise from '../../../utils/dndNoise' import withMutationProps, {WithMutationProps} from '../../../utils/relay/withMutationProps' -import {AddTemplatePrompt_prompts$key} from '../../../__generated__/AddTemplatePrompt_prompts.graphql' const AddPromptLink = styled(LinkButton)({ alignItems: 'center', diff --git a/packages/client/modules/meeting/components/CustomTemplateUpgradeMsg.tsx b/packages/client/modules/meeting/components/CustomTemplateUpgradeMsg.tsx index 626a61e6c79..68a5ffb0073 100644 --- a/packages/client/modules/meeting/components/CustomTemplateUpgradeMsg.tsx +++ b/packages/client/modules/meeting/components/CustomTemplateUpgradeMsg.tsx @@ -3,11 +3,11 @@ import styled from '@emotion/styled' import React from 'react' import {useHistory} from 'react-router' import customTemplate from '../../../../../static/images/illustrations/customTemplate.png' +import {MeetingTypeEnum} from '../../../__generated__/TeamInvitationQuery.graphql' import FloatingActionButton from '../../../components/FloatingActionButton' import useAtmosphere from '../../../hooks/useAtmosphere' -import SendClientSideEvent from '../../../utils/SendClientSideEvent' import {BezierCurve} from '../../../types/constEnums' -import {MeetingTypeEnum} from '../../../__generated__/TeamInvitationQuery.graphql' +import SendClientSideEvent from '../../../utils/SendClientSideEvent' const fadein = keyframes` 0% { opacity: 0; } diff --git a/packages/client/modules/meeting/components/EditableTemplateDimension.tsx b/packages/client/modules/meeting/components/EditableTemplateDimension.tsx index f6e424768ca..9eedc7f8ddf 100644 --- a/packages/client/modules/meeting/components/EditableTemplateDimension.tsx +++ b/packages/client/modules/meeting/components/EditableTemplateDimension.tsx @@ -3,13 +3,13 @@ import graphql from 'babel-plugin-relay/macro' import React, {useRef} from 'react' import {useFragment} from 'react-relay' import {PALETTE} from '~/styles/paletteV3' +import {EditableTemplateDimension_dimensions$key} from '../../../__generated__/EditableTemplateDimension_dimensions.graphql' import EditableText from '../../../components/EditableText' import useAtmosphere from '../../../hooks/useAtmosphere' import useMutationProps from '../../../hooks/useMutationProps' import useScrollIntoView from '../../../hooks/useScrollIntoVIew' import RenamePokerTemplateDimensionMutation from '../../../mutations/RenamePokerTemplateDimensionMutation' import Legitity from '../../../validation/Legitity' -import {EditableTemplateDimension_dimensions$key} from '../../../__generated__/EditableTemplateDimension_dimensions.graphql' const StyledEditableText = styled(EditableText)({ fontFamily: PALETTE.SLATE_700, diff --git a/packages/client/modules/meeting/components/EditableTemplatePrompt.tsx b/packages/client/modules/meeting/components/EditableTemplatePrompt.tsx index c7214e51e69..54b9af04bcc 100644 --- a/packages/client/modules/meeting/components/EditableTemplatePrompt.tsx +++ b/packages/client/modules/meeting/components/EditableTemplatePrompt.tsx @@ -2,12 +2,12 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {EditableTemplatePrompt_prompts$key} from '../../../__generated__/EditableTemplatePrompt_prompts.graphql' import EditableText from '../../../components/EditableText' import useAtmosphere from '../../../hooks/useAtmosphere' import useMutationProps from '../../../hooks/useMutationProps' import RenameReflectTemplatePromptMutation from '../../../mutations/RenameReflectTemplatePromptMutation' import Legitity from '../../../validation/Legitity' -import {EditableTemplatePrompt_prompts$key} from '../../../__generated__/EditableTemplatePrompt_prompts.graphql' const StyledEditableText = styled(EditableText)({ fontSize: 16, diff --git a/packages/client/modules/meeting/components/EditableTemplatePromptColor.tsx b/packages/client/modules/meeting/components/EditableTemplatePromptColor.tsx index 3360f57a707..3220269c6f2 100644 --- a/packages/client/modules/meeting/components/EditableTemplatePromptColor.tsx +++ b/packages/client/modules/meeting/components/EditableTemplatePromptColor.tsx @@ -3,10 +3,10 @@ import {ArrowDropDown as ArrowDropDownIcon} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' -import PlainButton from '~/components/PlainButton/PlainButton' -import {BezierCurve} from '~/types/constEnums' import {EditableTemplatePromptColor_prompt$key} from '~/__generated__/EditableTemplatePromptColor_prompt.graphql' import {EditableTemplatePromptColor_prompts$key} from '~/__generated__/EditableTemplatePromptColor_prompts.graphql' +import PlainButton from '~/components/PlainButton/PlainButton' +import {BezierCurve} from '~/types/constEnums' import PalettePicker from '../../../components/PalettePicker/PalettePicker' import {MenuPosition} from '../../../hooks/useCoords' import useMenu from '../../../hooks/useMenu' diff --git a/packages/client/modules/meeting/components/EditableTemplateScaleName.tsx b/packages/client/modules/meeting/components/EditableTemplateScaleName.tsx index 3da7b1b6214..a4bd3f7e4f2 100644 --- a/packages/client/modules/meeting/components/EditableTemplateScaleName.tsx +++ b/packages/client/modules/meeting/components/EditableTemplateScaleName.tsx @@ -2,12 +2,12 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {EditableTemplateScaleName_scales$key} from '../../../__generated__/EditableTemplateScaleName_scales.graphql' import EditableText from '../../../components/EditableText' import useAtmosphere from '../../../hooks/useAtmosphere' import useMutationProps from '../../../hooks/useMutationProps' import RenamePokerTemplateScaleMutation from '../../../mutations/RenamePokerTemplateScaleMutation' import Legitity from '../../../validation/Legitity' -import {EditableTemplateScaleName_scales$key} from '../../../__generated__/EditableTemplateScaleName_scales.graphql' interface Props { name: string diff --git a/packages/client/modules/meeting/components/EditableTemplateScaleValueColor.tsx b/packages/client/modules/meeting/components/EditableTemplateScaleValueColor.tsx index c5d82a4481b..18f7332b77a 100644 --- a/packages/client/modules/meeting/components/EditableTemplateScaleValueColor.tsx +++ b/packages/client/modules/meeting/components/EditableTemplateScaleValueColor.tsx @@ -3,9 +3,9 @@ import {ArrowDropDown as ArrowDropDownIcon} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {EditableTemplateScaleValueColor_scale$key} from '~/__generated__/EditableTemplateScaleValueColor_scale.graphql' import PlainButton from '~/components/PlainButton/PlainButton' import {BezierCurve} from '~/types/constEnums' -import {EditableTemplateScaleValueColor_scale$key} from '~/__generated__/EditableTemplateScaleValueColor_scale.graphql' import {MenuPosition} from '../../../hooks/useCoords' import useMenu from '../../../hooks/useMenu' import {PALETTE} from '../../../styles/paletteV3' diff --git a/packages/client/modules/meeting/components/EditableTemplateScaleValueLabel.tsx b/packages/client/modules/meeting/components/EditableTemplateScaleValueLabel.tsx index b2ddba3c5d9..dc8bec0242d 100644 --- a/packages/client/modules/meeting/components/EditableTemplateScaleValueLabel.tsx +++ b/packages/client/modules/meeting/components/EditableTemplateScaleValueLabel.tsx @@ -2,16 +2,16 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' -import UpdatePokerTemplateScaleValueMutation from '~/mutations/UpdatePokerTemplateScaleValueMutation' -import {PALETTE} from '~/styles/paletteV3' import {EditableTemplateScaleValueLabel_scale$key} from '~/__generated__/EditableTemplateScaleValueLabel_scale.graphql' import {EditableTemplateScaleValueLabel_scaleValue$key} from '~/__generated__/EditableTemplateScaleValueLabel_scaleValue.graphql' +import UpdatePokerTemplateScaleValueMutation from '~/mutations/UpdatePokerTemplateScaleValueMutation' +import {PALETTE} from '~/styles/paletteV3' import EditableText from '../../../components/EditableText' import useAtmosphere from '../../../hooks/useAtmosphere' import useMutationProps from '../../../hooks/useMutationProps' +import {Threshold} from '../../../types/constEnums' import isSpecialPokerLabel from '../../../utils/isSpecialPokerLabel' import Legitity from '../../../validation/Legitity' -import {Threshold} from '../../../types/constEnums' const StyledEditableText = styled(EditableText)<{disabled: boolean | undefined}>(({disabled}) => ({ fontFamily: PALETTE.SLATE_700, diff --git a/packages/client/modules/meeting/components/MeetingAvatarGroup/NewMeetingAvatar.tsx b/packages/client/modules/meeting/components/MeetingAvatarGroup/NewMeetingAvatar.tsx index 97c0445acab..97b8f3af468 100644 --- a/packages/client/modules/meeting/components/MeetingAvatarGroup/NewMeetingAvatar.tsx +++ b/packages/client/modules/meeting/components/MeetingAvatarGroup/NewMeetingAvatar.tsx @@ -2,13 +2,13 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {NewMeetingAvatar_teamMember$key} from '../../../../__generated__/NewMeetingAvatar_teamMember.graphql' import ErrorBoundary from '../../../../components/ErrorBoundary' import {MenuPosition} from '../../../../hooks/useCoords' import useTooltip from '../../../../hooks/useTooltip' import {TransitionStatus} from '../../../../hooks/useTransition' import {DECELERATE} from '../../../../styles/animation' import {meetingAvatarMediaQueries} from '../../../../styles/meeting' -import {NewMeetingAvatar_teamMember$key} from '../../../../__generated__/NewMeetingAvatar_teamMember.graphql' const Item = styled('div')({ position: 'relative' diff --git a/packages/client/modules/meeting/components/MeetingAvatarGroup/NewMeetingAvatarGroup.tsx b/packages/client/modules/meeting/components/MeetingAvatarGroup/NewMeetingAvatarGroup.tsx index 6faa1d0f419..675a34dcd79 100644 --- a/packages/client/modules/meeting/components/MeetingAvatarGroup/NewMeetingAvatarGroup.tsx +++ b/packages/client/modules/meeting/components/MeetingAvatarGroup/NewMeetingAvatarGroup.tsx @@ -2,6 +2,7 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React, {useMemo} from 'react' import {useFragment} from 'react-relay' +import {NewMeetingAvatarGroup_meeting$key} from '../../../../__generated__/NewMeetingAvatarGroup_meeting.graphql' import AddTeamMemberAvatarButton from '../../../../components/AddTeamMemberAvatarButton' import useAtmosphere from '../../../../hooks/useAtmosphere' import useBreakpoint from '../../../../hooks/useBreakpoint' @@ -11,7 +12,6 @@ import {DECELERATE} from '../../../../styles/animation' import {meetingAvatarMediaQueries} from '../../../../styles/meeting' import {PALETTE} from '../../../../styles/paletteV3' import {Breakpoint} from '../../../../types/constEnums' -import {NewMeetingAvatarGroup_meeting$key} from '../../../../__generated__/NewMeetingAvatarGroup_meeting.graphql' import NewMeetingAvatar from './NewMeetingAvatar' const MeetingAvatarGroupRoot = styled('div')({ diff --git a/packages/client/modules/meeting/components/MeetingCheckInPrompt/NewCheckInQuestion.tsx b/packages/client/modules/meeting/components/MeetingCheckInPrompt/NewCheckInQuestion.tsx index dac4215e2e2..7a4779194b8 100644 --- a/packages/client/modules/meeting/components/MeetingCheckInPrompt/NewCheckInQuestion.tsx +++ b/packages/client/modules/meeting/components/MeetingCheckInPrompt/NewCheckInQuestion.tsx @@ -1,27 +1,27 @@ import styled from '@emotion/styled' import {Create as CreateIcon, Refresh as RefreshIcon} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' -import {ContentState, convertToRaw, EditorState, SelectionState} from 'draft-js' +import {ContentState, EditorState, SelectionState, convertToRaw} from 'draft-js' import React, {useRef, useState} from 'react' import {useFragment} from 'react-relay' import {NewCheckInQuestion_meeting$key} from '~/__generated__/NewCheckInQuestion_meeting.graphql' +import { + ModifyType, + useModifyCheckInQuestionMutation$data as TModifyCheckInQuestion$data +} from '../../../../__generated__/useModifyCheckInQuestionMutation.graphql' import EditorInputWrapper from '../../../../components/EditorInputWrapper' import PlainButton from '../../../../components/PlainButton/PlainButton' import '../../../../components/TaskEditor/Draft.css' import useAtmosphere from '../../../../hooks/useAtmosphere' import {MenuPosition} from '../../../../hooks/useCoords' import useEditorState from '../../../../hooks/useEditorState' +import useMutationProps from '../../../../hooks/useMutationProps' import useTooltip from '../../../../hooks/useTooltip' import UpdateNewCheckInQuestionMutation from '../../../../mutations/UpdateNewCheckInQuestionMutation' +import {useModifyCheckInQuestionMutation} from '../../../../mutations/useModifyCheckInQuestionMutation' import {PALETTE} from '../../../../styles/paletteV3' -import convertToTaskContent from '../../../../utils/draftjs/convertToTaskContent' -import useMutationProps from '../../../../hooks/useMutationProps' -import { - useModifyCheckInQuestionMutation$data as TModifyCheckInQuestion$data, - ModifyType -} from '../../../../__generated__/useModifyCheckInQuestionMutation.graphql' import {Button} from '../../../../ui/Button/Button' -import {useModifyCheckInQuestionMutation} from '../../../../mutations/useModifyCheckInQuestionMutation' +import convertToTaskContent from '../../../../utils/draftjs/convertToTaskContent' const CogIcon = styled('div')({ color: PALETTE.SLATE_700, diff --git a/packages/client/modules/meeting/components/MeetingCheckInPrompt/NewMeetingCheckInPrompt.tsx b/packages/client/modules/meeting/components/MeetingCheckInPrompt/NewMeetingCheckInPrompt.tsx index 814c477dfc2..139362c8290 100644 --- a/packages/client/modules/meeting/components/MeetingCheckInPrompt/NewMeetingCheckInPrompt.tsx +++ b/packages/client/modules/meeting/components/MeetingCheckInPrompt/NewMeetingCheckInPrompt.tsx @@ -3,11 +3,11 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import {NewMeetingCheckInPrompt_meeting$key} from '~/__generated__/NewMeetingCheckInPrompt_meeting.graphql' +import {NewMeetingCheckInPrompt_teamMember$key} from '../../../../__generated__/NewMeetingCheckInPrompt_teamMember.graphql' import Avatar from '../../../../components/Avatar/Avatar' import useBreakpoint from '../../../../hooks/useBreakpoint' import defaultUserAvatar from '../../../../styles/theme/images/avatar-user.svg' import {Breakpoint} from '../../../../types/constEnums' -import {NewMeetingCheckInPrompt_teamMember$key} from '../../../../__generated__/NewMeetingCheckInPrompt_teamMember.graphql' import NewMeetingCheckInGreeting from '../NewMeetingCheckInGreeting' import NewCheckInQuestion from './NewCheckInQuestion' diff --git a/packages/client/modules/meeting/components/NewMeetingCheckInGreeting.tsx b/packages/client/modules/meeting/components/NewMeetingCheckInGreeting.tsx index faaee3dabfa..bf7d6eb5c92 100644 --- a/packages/client/modules/meeting/components/NewMeetingCheckInGreeting.tsx +++ b/packages/client/modules/meeting/components/NewMeetingCheckInGreeting.tsx @@ -2,10 +2,10 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' -import {MenuPosition} from '../../../hooks/useCoords' -import useTooltip from '../../../hooks/useTooltip' import {NewMeetingCheckInGreeting_checkInGreeting$key} from '../../../__generated__/NewMeetingCheckInGreeting_checkInGreeting.graphql' import {NewMeetingCheckInGreeting_teamMember$key} from '../../../__generated__/NewMeetingCheckInGreeting_teamMember.graphql' +import {MenuPosition} from '../../../hooks/useCoords' +import useTooltip from '../../../hooks/useTooltip' const GreetingBlock = styled('div')({ fontSize: '1.5rem', diff --git a/packages/client/modules/meeting/components/NewTemplateScaleValueLabelInput.tsx b/packages/client/modules/meeting/components/NewTemplateScaleValueLabelInput.tsx index cdb75badb24..2f7fce4b9fd 100644 --- a/packages/client/modules/meeting/components/NewTemplateScaleValueLabelInput.tsx +++ b/packages/client/modules/meeting/components/NewTemplateScaleValueLabelInput.tsx @@ -6,17 +6,17 @@ import {useFragment} from 'react-relay' import useAtmosphere from '~/hooks/useAtmosphere' import useMutationProps from '~/hooks/useMutationProps' import {PALETTE} from '~/styles/paletteV3' +import { + NewTemplateScaleValueLabelInput_scale$data, + NewTemplateScaleValueLabelInput_scale$key +} from '../../../__generated__/NewTemplateScaleValueLabelInput_scale.graphql' import useScrollIntoView from '../../../hooks/useScrollIntoVIew' import AddPokerTemplateScaleValueMutation from '../../../mutations/AddPokerTemplateScaleValueMutation' import palettePickerOptions from '../../../styles/palettePickerOptions' +import {Threshold} from '../../../types/constEnums' import isSpecialPokerLabel from '../../../utils/isSpecialPokerLabel' import Legitity from '../../../validation/Legitity' -import { - NewTemplateScaleValueLabelInput_scale$key, - NewTemplateScaleValueLabelInput_scale$data -} from '../../../__generated__/NewTemplateScaleValueLabelInput_scale.graphql' import EditableTemplateScaleValueColor from './EditableTemplateScaleValueColor' -import {Threshold} from '../../../types/constEnums' const Form = styled('form')({ width: '100%', diff --git a/packages/client/modules/meeting/components/PokerTemplateScaleDetails.tsx b/packages/client/modules/meeting/components/PokerTemplateScaleDetails.tsx index 066d1f7d841..014b693da05 100644 --- a/packages/client/modules/meeting/components/PokerTemplateScaleDetails.tsx +++ b/packages/client/modules/meeting/components/PokerTemplateScaleDetails.tsx @@ -3,15 +3,15 @@ import {ArrowBack} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React, {useEffect} from 'react' import {commitLocalUpdate, useFragment} from 'react-relay' +import {PokerTemplateScaleDetails_team$key} from '../../../__generated__/PokerTemplateScaleDetails_team.graphql' import FlatButton from '../../../components/FlatButton' import useAtmosphere from '../../../hooks/useAtmosphere' import textOverflow from '../../../styles/helpers/textOverflow' import {PALETTE} from '../../../styles/paletteV3' import {FONT_FAMILY} from '../../../styles/typographyV2' -import {PokerTemplateScaleDetails_team$key} from '../../../__generated__/PokerTemplateScaleDetails_team.graphql' import EditableTemplateScaleName from './EditableTemplateScaleName' -import scaleValueString from './scaleValueString' import TemplateScaleValueList from './TemplateScaleValueList' +import scaleValueString from './scaleValueString' const ScaleHeader = styled('div')({ display: 'flex', diff --git a/packages/client/modules/meeting/components/PokerTemplateScalePicker.tsx b/packages/client/modules/meeting/components/PokerTemplateScalePicker.tsx index 3bcfc9d3d54..5b25e5f165e 100644 --- a/packages/client/modules/meeting/components/PokerTemplateScalePicker.tsx +++ b/packages/client/modules/meeting/components/PokerTemplateScalePicker.tsx @@ -3,6 +3,7 @@ import {ExpandMore} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {PokerTemplateScalePicker_dimension$key} from '../../../__generated__/PokerTemplateScalePicker_dimension.graphql' import {MenuPosition} from '../../../hooks/useCoords' import useMenu from '../../../hooks/useMenu' import useTooltip from '../../../hooks/useTooltip' @@ -10,7 +11,6 @@ import textOverflow from '../../../styles/helpers/textOverflow' import {PALETTE} from '../../../styles/paletteV3' import {FONT_FAMILY} from '../../../styles/typographyV2' import lazyPreload from '../../../utils/lazyPreload' -import {PokerTemplateScalePicker_dimension$key} from '../../../__generated__/PokerTemplateScalePicker_dimension.graphql' const SelectScaleDropdown = lazyPreload( () => diff --git a/packages/client/modules/meeting/components/RemoveTemplate.tsx b/packages/client/modules/meeting/components/RemoveTemplate.tsx index 5d8c9ab0c1e..b9a594d8d57 100644 --- a/packages/client/modules/meeting/components/RemoveTemplate.tsx +++ b/packages/client/modules/meeting/components/RemoveTemplate.tsx @@ -2,6 +2,7 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import {MeetingTypeEnum} from '~/__generated__/MeetingSelectorQuery.graphql' +import {RemoveTemplate_teamTemplates$key} from '../../../__generated__/RemoveTemplate_teamTemplates.graphql' import DetailAction from '../../../components/DetailAction' import useAtmosphere from '../../../hooks/useAtmosphere' import useMutationProps from '../../../hooks/useMutationProps' @@ -9,7 +10,6 @@ import RemovePokerTemplateMutation from '../../../mutations/RemovePokerTemplateM import RemoveReflectTemplateMutation from '../../../mutations/RemoveReflectTemplateMutation' import {SprintPokerDefaults} from '../../../types/constEnums' import {setActiveTemplate} from '../../../utils/relay/setActiveTemplate' -import {RemoveTemplate_teamTemplates$key} from '../../../__generated__/RemoveTemplate_teamTemplates.graphql' interface Props { gotoPublicTemplates: () => void diff --git a/packages/client/modules/meeting/components/ScaleActions.tsx b/packages/client/modules/meeting/components/ScaleActions.tsx index b917e50ad40..301bf51b885 100644 --- a/packages/client/modules/meeting/components/ScaleActions.tsx +++ b/packages/client/modules/meeting/components/ScaleActions.tsx @@ -2,13 +2,13 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {commitLocalUpdate, useFragment} from 'react-relay' +import {ScaleActions_scale$key} from '../../../__generated__/ScaleActions_scale.graphql' import DetailAction from '../../../components/DetailAction' import useAtmosphere from '../../../hooks/useAtmosphere' import useMutationProps from '../../../hooks/useMutationProps' import AddPokerTemplateScaleMutation from '../../../mutations/AddPokerTemplateScaleMutation' import RemovePokerTemplateScaleMutation from '../../../mutations/RemovePokerTemplateScaleMutation' import {Threshold} from '../../../types/constEnums' -import {ScaleActions_scale$key} from '../../../__generated__/ScaleActions_scale.graphql' const CloneAndDelete = styled('div')({ display: 'flex', diff --git a/packages/client/modules/meeting/components/ScaleDropdownMenuItem.tsx b/packages/client/modules/meeting/components/ScaleDropdownMenuItem.tsx index aa269931e77..6362418d51e 100644 --- a/packages/client/modules/meeting/components/ScaleDropdownMenuItem.tsx +++ b/packages/client/modules/meeting/components/ScaleDropdownMenuItem.tsx @@ -6,12 +6,12 @@ import {useFragment} from 'react-relay' import textOverflow from '~/styles/helpers/textOverflow' import {PALETTE} from '~/styles/paletteV3' import {FONT_FAMILY} from '~/styles/typographyV2' +import {ScaleDropdownMenuItem_dimension$key} from '../../../__generated__/ScaleDropdownMenuItem_dimension.graphql' +import {ScaleDropdownMenuItem_scale$key} from '../../../__generated__/ScaleDropdownMenuItem_scale.graphql' import MenuItem from '../../../components/MenuItem' import useAtmosphere from '../../../hooks/useAtmosphere' import useMutationProps from '../../../hooks/useMutationProps' import UpdatePokerTemplateDimensionScaleMutation from '../../../mutations/UpdatePokerTemplateDimensionScaleMutation' -import {ScaleDropdownMenuItem_dimension$key} from '../../../__generated__/ScaleDropdownMenuItem_dimension.graphql' -import {ScaleDropdownMenuItem_scale$key} from '../../../__generated__/ScaleDropdownMenuItem_scale.graphql' import ScaleActions from './ScaleActions' import scaleValueString from './scaleValueString' diff --git a/packages/client/modules/meeting/components/ScaleValuePalettePicker.tsx b/packages/client/modules/meeting/components/ScaleValuePalettePicker.tsx index 9f08a8a5820..265485aee72 100644 --- a/packages/client/modules/meeting/components/ScaleValuePalettePicker.tsx +++ b/packages/client/modules/meeting/components/ScaleValuePalettePicker.tsx @@ -6,10 +6,10 @@ import Menu from '~/components/Menu' import PaletteColor from '~/components/PaletteColor/PaletteColor' import UpdatePokerTemplateScaleValueMutation from '~/mutations/UpdatePokerTemplateScaleValueMutation' import palettePickerOptions from '~/styles/palettePickerOptions' +import {ScaleValuePalettePicker_scale$key} from '../../../__generated__/ScaleValuePalettePicker_scale.graphql' import useAtmosphere from '../../../hooks/useAtmosphere' import {MenuProps} from '../../../hooks/useMenu' import useMutationProps from '../../../hooks/useMutationProps' -import {ScaleValuePalettePicker_scale$key} from '../../../__generated__/ScaleValuePalettePicker_scale.graphql' interface Props { scale: ScaleValuePalettePicker_scale$key diff --git a/packages/client/modules/meeting/components/SelectScaleDropdown.tsx b/packages/client/modules/meeting/components/SelectScaleDropdown.tsx index 07671dec36c..3d7e91864de 100644 --- a/packages/client/modules/meeting/components/SelectScaleDropdown.tsx +++ b/packages/client/modules/meeting/components/SelectScaleDropdown.tsx @@ -3,6 +3,7 @@ import {Add} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React, {useMemo} from 'react' import {useFragment} from 'react-relay' +import {SelectScaleDropdown_dimension$key} from '../../../__generated__/SelectScaleDropdown_dimension.graphql' import LinkButton from '../../../components/LinkButton' import Menu from '../../../components/Menu' import MenuItem from '../../../components/MenuItem' @@ -13,7 +14,6 @@ import useMutationProps from '../../../hooks/useMutationProps' import AddPokerTemplateScaleMutation from '../../../mutations/AddPokerTemplateScaleMutation' import {FONT_FAMILY} from '../../../styles/typographyV2' import {Threshold} from '../../../types/constEnums' -import {SelectScaleDropdown_dimension$key} from '../../../__generated__/SelectScaleDropdown_dimension.graphql' import ScaleDropdownMenuItem from './ScaleDropdownMenuItem' interface Props { diff --git a/packages/client/modules/meeting/components/TemplateDimensionItem.tsx b/packages/client/modules/meeting/components/TemplateDimensionItem.tsx index 2de98a069af..1e7e93c0c76 100644 --- a/packages/client/modules/meeting/components/TemplateDimensionItem.tsx +++ b/packages/client/modules/meeting/components/TemplateDimensionItem.tsx @@ -4,12 +4,12 @@ import graphql from 'babel-plugin-relay/macro' import React, {useState} from 'react' import {DraggableProvided} from 'react-beautiful-dnd' import {useFragment} from 'react-relay' +import {TemplateDimensionItem_dimensions$key} from '~/__generated__/TemplateDimensionItem_dimensions.graphql' import useAtmosphere from '~/hooks/useAtmosphere' import useMutationProps from '~/hooks/useMutationProps' import RemovePokerTemplateDimensionMutation from '~/mutations/RemovePokerTemplateDimensionMutation' -import {TemplateDimensionItem_dimensions$key} from '~/__generated__/TemplateDimensionItem_dimensions.graphql' -import {PALETTE} from '../../../styles/paletteV3' import {TemplateDimensionItem_dimension$key} from '../../../__generated__/TemplateDimensionItem_dimension.graphql' +import {PALETTE} from '../../../styles/paletteV3' import EditableTemplateDimension from './EditableTemplateDimension' import PokerTemplateScalePicker from './PokerTemplateScalePicker' diff --git a/packages/client/modules/meeting/components/TemplateDimensionList.tsx b/packages/client/modules/meeting/components/TemplateDimensionList.tsx index 519f1a63a58..7d352ab5ba4 100644 --- a/packages/client/modules/meeting/components/TemplateDimensionList.tsx +++ b/packages/client/modules/meeting/components/TemplateDimensionList.tsx @@ -3,11 +3,11 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {DragDropContext, Draggable, Droppable, DropResult} from 'react-beautiful-dnd' import {useFragment} from 'react-relay' +import {TemplateDimensionList_dimensions$key} from '../../../__generated__/TemplateDimensionList_dimensions.graphql' import useAtmosphere from '../../../hooks/useAtmosphere' import MovePokerTemplateDimensionMutation from '../../../mutations/MovePokerTemplateDimensionMutation' import {TEMPLATE_DIMENSION} from '../../../utils/constants' import dndNoise from '../../../utils/dndNoise' -import {TemplateDimensionList_dimensions$key} from '../../../__generated__/TemplateDimensionList_dimensions.graphql' import TemplateDimensionItem from './TemplateDimensionItem' interface Props { diff --git a/packages/client/modules/meeting/components/TemplatePromptItem.tsx b/packages/client/modules/meeting/components/TemplatePromptItem.tsx index 6894fe8ac17..b893c5925dc 100644 --- a/packages/client/modules/meeting/components/TemplatePromptItem.tsx +++ b/packages/client/modules/meeting/components/TemplatePromptItem.tsx @@ -4,12 +4,12 @@ import graphql from 'babel-plugin-relay/macro' import React, {useState} from 'react' import {DraggableProvided} from 'react-beautiful-dnd' import {useFragment} from 'react-relay' +import {TemplatePromptItem_prompts$key} from '~/__generated__/TemplatePromptItem_prompts.graphql' import useAtmosphere from '~/hooks/useAtmosphere' import useMutationProps from '~/hooks/useMutationProps' -import {TemplatePromptItem_prompts$key} from '~/__generated__/TemplatePromptItem_prompts.graphql' +import {TemplatePromptItem_prompt$key} from '../../../__generated__/TemplatePromptItem_prompt.graphql' import RemoveReflectTemplatePromptMutation from '../../../mutations/RemoveReflectTemplatePromptMutation' import {PALETTE} from '../../../styles/paletteV3' -import {TemplatePromptItem_prompt$key} from '../../../__generated__/TemplatePromptItem_prompt.graphql' import EditableTemplateDescription from './EditableTemplateDescription' import EditableTemplatePrompt from './EditableTemplatePrompt' import EditableTemplatePromptColor from './EditableTemplatePromptColor' diff --git a/packages/client/modules/meeting/components/TemplatePromptList.tsx b/packages/client/modules/meeting/components/TemplatePromptList.tsx index fe41a4cd469..8c7c8317e05 100644 --- a/packages/client/modules/meeting/components/TemplatePromptList.tsx +++ b/packages/client/modules/meeting/components/TemplatePromptList.tsx @@ -3,11 +3,11 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {DragDropContext, Draggable, Droppable, DropResult} from 'react-beautiful-dnd' import {useFragment} from 'react-relay' +import {TemplatePromptList_prompts$key} from '../../../__generated__/TemplatePromptList_prompts.graphql' import useAtmosphere from '../../../hooks/useAtmosphere' import MoveReflectTemplatePromptMutation from '../../../mutations/MoveReflectTemplatePromptMutation' import {TEMPLATE_PROMPT} from '../../../utils/constants' import dndNoise from '../../../utils/dndNoise' -import {TemplatePromptList_prompts$key} from '../../../__generated__/TemplatePromptList_prompts.graphql' import TemplatePromptItem from './TemplatePromptItem' interface Props { diff --git a/packages/client/modules/meeting/components/TemplateScaleValueItem.tsx b/packages/client/modules/meeting/components/TemplateScaleValueItem.tsx index 77409a53479..739be82b776 100644 --- a/packages/client/modules/meeting/components/TemplateScaleValueItem.tsx +++ b/packages/client/modules/meeting/components/TemplateScaleValueItem.tsx @@ -4,13 +4,13 @@ import graphql from 'babel-plugin-relay/macro' import React, {useState} from 'react' import {DraggableProvided} from 'react-beautiful-dnd' import {useFragment} from 'react-relay' +import {TemplateScaleValueItem_scale$key} from '~/__generated__/TemplateScaleValueItem_scale.graphql' import useAtmosphere from '~/hooks/useAtmosphere' import useMutationProps from '~/hooks/useMutationProps' import RemovePokerTemplateScaleValueMutation from '~/mutations/RemovePokerTemplateScaleValueMutation' -import {TemplateScaleValueItem_scale$key} from '~/__generated__/TemplateScaleValueItem_scale.graphql' +import {TemplateScaleValueItem_scaleValue$key} from '../../../__generated__/TemplateScaleValueItem_scaleValue.graphql' import {PALETTE} from '../../../styles/paletteV3' import isSpecialPokerLabel from '../../../utils/isSpecialPokerLabel' -import {TemplateScaleValueItem_scaleValue$key} from '../../../__generated__/TemplateScaleValueItem_scaleValue.graphql' import EditableTemplateScaleValueColor from './EditableTemplateScaleValueColor' import EditableTemplateScaleValueLabel from './EditableTemplateScaleValueLabel' diff --git a/packages/client/modules/meeting/components/TemplateSharing.tsx b/packages/client/modules/meeting/components/TemplateSharing.tsx index 874fbe3b3a1..a64d315bfd6 100644 --- a/packages/client/modules/meeting/components/TemplateSharing.tsx +++ b/packages/client/modules/meeting/components/TemplateSharing.tsx @@ -3,11 +3,11 @@ import {ExpandMore as ExpandMoreIcon, Share as ShareIcon} from '@mui/icons-mater import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {TemplateSharing_template$key} from '../../../__generated__/TemplateSharing_template.graphql' import {MenuPosition} from '../../../hooks/useCoords' import useMenu from '../../../hooks/useMenu' import {PALETTE} from '../../../styles/paletteV3' import lazyPreload from '../../../utils/lazyPreload' -import {TemplateSharing_template$key} from '../../../__generated__/TemplateSharing_template.graphql' const SelectSharingScopeDropdown = lazyPreload( () => diff --git a/packages/client/modules/newTeam/NewTeam.tsx b/packages/client/modules/newTeam/NewTeam.tsx index 2f1d2ab3080..68a8346979f 100644 --- a/packages/client/modules/newTeam/NewTeam.tsx +++ b/packages/client/modules/newTeam/NewTeam.tsx @@ -3,13 +3,13 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {PreloadedQuery, usePreloadedQuery} from 'react-relay' import useDocumentTitle from '~/hooks/useDocumentTitle' +import {NewTeamQuery} from '../../__generated__/NewTeamQuery.graphql' import IconLabel from '../../components/IconLabel' import LinkButton from '../../components/LinkButton' import useBreakpoint from '../../hooks/useBreakpoint' import {cardShadow} from '../../styles/elevation' import {PALETTE} from '../../styles/paletteV3' import {ExternalLinks} from '../../types/constEnums' -import {NewTeamQuery} from '../../__generated__/NewTeamQuery.graphql' import NewTeamForm from './components/NewTeamForm/NewTeamForm' const NewTeamLayout = styled('div')({ alignItems: 'center', diff --git a/packages/client/modules/newTeam/components/NewTeamForm/NewTeamForm.tsx b/packages/client/modules/newTeam/components/NewTeamForm/NewTeamForm.tsx index 8269686eb2b..5892919926e 100644 --- a/packages/client/modules/newTeam/components/NewTeamForm/NewTeamForm.tsx +++ b/packages/client/modules/newTeam/components/NewTeamForm/NewTeamForm.tsx @@ -2,6 +2,7 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React, {ChangeEvent, FormEvent, useState} from 'react' import {useFragment} from 'react-relay' +import {NewTeamForm_organizations$key} from '../../../../__generated__/NewTeamForm_organizations.graphql' import Checkbox from '../../../../components/Checkbox' import DashHeaderTitle from '../../../../components/DashHeaderTitle' import FieldLabel from '../../../../components/FieldLabel/FieldLabel' @@ -16,14 +17,13 @@ import useMutationProps from '../../../../hooks/useMutationProps' import useRouter from '../../../../hooks/useRouter' import AddOrgMutation from '../../../../mutations/AddOrgMutation' import AddTeamMutation from '../../../../mutations/AddTeamMutation' -import SendClientSideEvent from '../../../../utils/SendClientSideEvent' import {PALETTE} from '../../../../styles/paletteV3' import {Threshold} from '../../../../types/constEnums' +import SendClientSideEvent from '../../../../utils/SendClientSideEvent' import linkify from '../../../../utils/linkify' import parseEmailAddressList from '../../../../utils/parseEmailAddressList' import Legitity from '../../../../validation/Legitity' import teamNameValidation from '../../../../validation/teamNameValidation' -import {NewTeamForm_organizations$key} from '../../../../__generated__/NewTeamForm_organizations.graphql' import NewTeamOrgPicker from '../../../team/components/NewTeamOrgPicker' import NewTeamFormBlock from './NewTeamFormBlock' import NewTeamFormOrgName from './NewTeamFormOrgName' diff --git a/packages/client/modules/newTeam/containers/NewTeamForm/NewTeamRoot.tsx b/packages/client/modules/newTeam/containers/NewTeamForm/NewTeamRoot.tsx index 74542d4d6d3..f699fdc8543 100644 --- a/packages/client/modules/newTeam/containers/NewTeamForm/NewTeamRoot.tsx +++ b/packages/client/modules/newTeam/containers/NewTeamForm/NewTeamRoot.tsx @@ -1,7 +1,7 @@ import React, {Suspense} from 'react' +import newTeamQuery, {NewTeamQuery} from '../../../../__generated__/NewTeamQuery.graphql' import useQueryLoaderNow from '../../../../hooks/useQueryLoaderNow' import useRouter from '../../../../hooks/useRouter' -import newTeamQuery, {NewTeamQuery} from '../../../../__generated__/NewTeamQuery.graphql' import NewTeam from '../../NewTeam' const NewTeamRoot = () => { diff --git a/packages/client/modules/outcomeCard/components/OutcomeCard/OutcomeCard.tsx b/packages/client/modules/outcomeCard/components/OutcomeCard/OutcomeCard.tsx index 30a500b6392..5f1ce1a37ba 100644 --- a/packages/client/modules/outcomeCard/components/OutcomeCard/OutcomeCard.tsx +++ b/packages/client/modules/outcomeCard/components/OutcomeCard/OutcomeCard.tsx @@ -3,14 +3,15 @@ import graphql from 'babel-plugin-relay/macro' import {EditorState} from 'draft-js' import React, {memo, RefObject} from 'react' import {useFragment} from 'react-relay' -import EditingStatus from '~/components/EditingStatus/EditingStatus' -import {PALETTE} from '~/styles/paletteV3' import {OutcomeCard_task$key} from '~/__generated__/OutcomeCard_task.graphql' import {AreaEnum, TaskStatusEnum} from '~/__generated__/UpdateTaskMutation.graphql' +import EditingStatus from '~/components/EditingStatus/EditingStatus' +import {PALETTE} from '~/styles/paletteV3' import IntegratedTaskContent from '../../../../components/IntegratedTaskContent' import TaskEditor from '../../../../components/TaskEditor/TaskEditor' import TaskIntegrationLink from '../../../../components/TaskIntegrationLink' import TaskWatermark from '../../../../components/TaskWatermark' +import useAtmosphere from '../../../../hooks/useAtmosphere' import useTaskChildFocus, {UseTaskChild} from '../../../../hooks/useTaskChildFocus' import {cardFocusShadow, cardHoverShadow, cardShadow, Elevation} from '../../../../styles/elevation' import cardRootStyles from '../../../../styles/helpers/cardRootStyles' @@ -21,7 +22,6 @@ import isTempId from '../../../../utils/relay/isTempId' import {taskStatusLabels} from '../../../../utils/taskStatus' import TaskFooter from '../OutcomeCardFooter/TaskFooter' import OutcomeCardStatusIndicator from '../OutcomeCardStatusIndicator/OutcomeCardStatusIndicator' -import useAtmosphere from '../../../../hooks/useAtmosphere' const RootCard = styled('div')<{ isTaskHovered: boolean diff --git a/packages/client/modules/outcomeCard/components/OutcomeCardAssignMenu/TaskFooterTeamAssigneeMenu.tsx b/packages/client/modules/outcomeCard/components/OutcomeCardAssignMenu/TaskFooterTeamAssigneeMenu.tsx index c36d02b3385..52da89bd3e3 100644 --- a/packages/client/modules/outcomeCard/components/OutcomeCardAssignMenu/TaskFooterTeamAssigneeMenu.tsx +++ b/packages/client/modules/outcomeCard/components/OutcomeCardAssignMenu/TaskFooterTeamAssigneeMenu.tsx @@ -1,13 +1,15 @@ import graphql from 'babel-plugin-relay/macro' import React, {useMemo, useState} from 'react' import {PreloadedQuery, useFragment, usePreloadedQuery} from 'react-relay' +import {TaskFooterTeamAssigneeMenu_viewerIntegrationsQuery} from '~/__generated__/TaskFooterTeamAssigneeMenu_viewerIntegrationsQuery.graphql' import {EmptyDropdownMenuItemLabel} from '~/components/EmptyDropdownMenuItemLabel' import {SearchMenuItem} from '~/components/SearchMenuItem' import useEventCallback from '~/hooks/useEventCallback' import useModal from '~/hooks/useModal' import useSearchFilter from '~/hooks/useSearchFilter' import {useQueryParameterParser} from '~/utils/useQueryParameterParser' -import {TaskFooterTeamAssigneeMenu_viewerIntegrationsQuery} from '~/__generated__/TaskFooterTeamAssigneeMenu_viewerIntegrationsQuery.graphql' +import {TaskFooterTeamAssigneeMenuQuery} from '../../../../__generated__/TaskFooterTeamAssigneeMenuQuery.graphql' +import {TaskFooterTeamAssigneeMenu_task$key} from '../../../../__generated__/TaskFooterTeamAssigneeMenu_task.graphql' import DropdownMenuLabel from '../../../../components/DropdownMenuLabel' import Menu from '../../../../components/Menu' import MenuItem from '../../../../components/MenuItem' @@ -15,8 +17,6 @@ import useAtmosphere from '../../../../hooks/useAtmosphere' import {MenuProps} from '../../../../hooks/useMenu' import useMutationProps from '../../../../hooks/useMutationProps' import ChangeTaskTeamMutation from '../../../../mutations/ChangeTaskTeamMutation' -import {TaskFooterTeamAssigneeMenuQuery} from '../../../../__generated__/TaskFooterTeamAssigneeMenuQuery.graphql' -import {TaskFooterTeamAssigneeMenu_task$key} from '../../../../__generated__/TaskFooterTeamAssigneeMenu_task.graphql' import TaskFooterTeamAssigneeAddIntegrationDialog from './TaskFooterTeamAssigneeAddIntegrationDialog' const query = graphql` diff --git a/packages/client/modules/outcomeCard/components/OutcomeCardAssignMenu/TaskFooterUserAssigneeMenu.tsx b/packages/client/modules/outcomeCard/components/OutcomeCardAssignMenu/TaskFooterUserAssigneeMenu.tsx index eb43c9da077..c985bf70f49 100644 --- a/packages/client/modules/outcomeCard/components/OutcomeCardAssignMenu/TaskFooterUserAssigneeMenu.tsx +++ b/packages/client/modules/outcomeCard/components/OutcomeCardAssignMenu/TaskFooterUserAssigneeMenu.tsx @@ -1,11 +1,13 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React, {useMemo} from 'react' -import {useFragment, PreloadedQuery, usePreloadedQuery} from 'react-relay' +import {PreloadedQuery, useFragment, usePreloadedQuery} from 'react-relay' +import {AreaEnum} from '~/__generated__/UpdateTaskMutation.graphql' import {EmptyDropdownMenuItemLabel} from '~/components/EmptyDropdownMenuItemLabel' import {SearchMenuItem} from '~/components/SearchMenuItem' import useSearchFilter from '~/hooks/useSearchFilter' -import {AreaEnum} from '~/__generated__/UpdateTaskMutation.graphql' +import {TaskFooterUserAssigneeMenuQuery} from '../../../../__generated__/TaskFooterUserAssigneeMenuQuery.graphql' +import {TaskFooterUserAssigneeMenu_task$key} from '../../../../__generated__/TaskFooterUserAssigneeMenu_task.graphql' import DropdownMenuLabel from '../../../../components/DropdownMenuLabel' import Menu from '../../../../components/Menu' import MenuAvatar from '../../../../components/MenuAvatar' @@ -15,8 +17,6 @@ import useAtmosphere from '../../../../hooks/useAtmosphere' import {MenuProps} from '../../../../hooks/useMenu' import UpdateTaskMutation from '../../../../mutations/UpdateTaskMutation' import avatarUser from '../../../../styles/theme/images/avatar-user.svg' -import {TaskFooterUserAssigneeMenuQuery} from '../../../../__generated__/TaskFooterUserAssigneeMenuQuery.graphql' -import {TaskFooterUserAssigneeMenu_task$key} from '../../../../__generated__/TaskFooterUserAssigneeMenu_task.graphql' const StyledPreferredName = styled('div')({ whiteSpace: 'nowrap', diff --git a/packages/client/modules/outcomeCard/components/OutcomeCardFooter/TaskFooter.tsx b/packages/client/modules/outcomeCard/components/OutcomeCardFooter/TaskFooter.tsx index 77a8f7e9708..6853f991fd0 100644 --- a/packages/client/modules/outcomeCard/components/OutcomeCardFooter/TaskFooter.tsx +++ b/packages/client/modules/outcomeCard/components/OutcomeCardFooter/TaskFooter.tsx @@ -4,6 +4,7 @@ import {EditorState} from 'draft-js' import React from 'react' import {useFragment} from 'react-relay' import {AreaEnum} from '~/__generated__/UpdateTaskMutation.graphql' +import {TaskFooter_task$key} from '../../../../__generated__/TaskFooter_task.graphql' import CardButton from '../../../../components/CardButton' import IconLabel from '../../../../components/IconLabel' import useAtmosphere from '../../../../hooks/useAtmosphere' @@ -15,7 +16,6 @@ import {USER_DASH} from '../../../../utils/constants' import removeContentTag from '../../../../utils/draftjs/removeContentTag' import isTaskArchived from '../../../../utils/isTaskArchived' import setLocalTaskError from '../../../../utils/relay/setLocalTaskError' -import {TaskFooter_task$key} from '../../../../__generated__/TaskFooter_task.graphql' import OutcomeCardMessage from '../OutcomeCardMessage/OutcomeCardMessage' import TaskFooterIntegrateToggle from './TaskFooterIntegrateToggle' import TaskFooterTagMenuToggle from './TaskFooterTagMenuToggle' diff --git a/packages/client/modules/outcomeCard/components/OutcomeCardFooter/TaskFooterTagMenuToggle.tsx b/packages/client/modules/outcomeCard/components/OutcomeCardFooter/TaskFooterTagMenuToggle.tsx index 58f47f7dd07..bcf5f8e1cd0 100644 --- a/packages/client/modules/outcomeCard/components/OutcomeCardFooter/TaskFooterTagMenuToggle.tsx +++ b/packages/client/modules/outcomeCard/components/OutcomeCardFooter/TaskFooterTagMenuToggle.tsx @@ -1,7 +1,7 @@ import {EditorState} from 'draft-js' import React from 'react' -import useTooltip from '~/hooks/useTooltip' import {AreaEnum} from '~/__generated__/UpdateTaskMutation.graphql' +import useTooltip from '~/hooks/useTooltip' import CardButton from '../../../../components/CardButton' import IconLabel from '../../../../components/IconLabel' import {MenuPosition} from '../../../../hooks/useCoords' diff --git a/packages/client/modules/outcomeCard/components/OutcomeCardFooter/TaskFooterTeamAssignee.tsx b/packages/client/modules/outcomeCard/components/OutcomeCardFooter/TaskFooterTeamAssignee.tsx index b8ef7a9eecc..06478015f97 100644 --- a/packages/client/modules/outcomeCard/components/OutcomeCardFooter/TaskFooterTeamAssignee.tsx +++ b/packages/client/modules/outcomeCard/components/OutcomeCardFooter/TaskFooterTeamAssignee.tsx @@ -3,6 +3,7 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import useTooltip from '~/hooks/useTooltip' +import {TaskFooterTeamAssignee_task$key} from '../../../../__generated__/TaskFooterTeamAssignee_task.graphql' import CardButton from '../../../../components/CardButton' import {MenuPosition} from '../../../../hooks/useCoords' import useMenu from '../../../../hooks/useMenu' @@ -11,7 +12,6 @@ import textOverflow from '../../../../styles/helpers/textOverflow' import {PALETTE} from '../../../../styles/paletteV3' import {Radius} from '../../../../types/constEnums' import lazyPreload from '../../../../utils/lazyPreload' -import {TaskFooterTeamAssignee_task$key} from '../../../../__generated__/TaskFooterTeamAssignee_task.graphql' const TooltipToggle = styled('div')({ width: '100%' diff --git a/packages/client/modules/outcomeCard/components/OutcomeCardFooter/TaskFooterUserAssignee.tsx b/packages/client/modules/outcomeCard/components/OutcomeCardFooter/TaskFooterUserAssignee.tsx index aa6f98b71b2..c9d2744f814 100644 --- a/packages/client/modules/outcomeCard/components/OutcomeCardFooter/TaskFooterUserAssignee.tsx +++ b/packages/client/modules/outcomeCard/components/OutcomeCardFooter/TaskFooterUserAssignee.tsx @@ -4,6 +4,7 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import useTooltip from '~/hooks/useTooltip' +import {TaskFooterUserAssignee_task$key} from '../../../../__generated__/TaskFooterUserAssignee_task.graphql' import BaseButton from '../../../../components/BaseButton' import {MenuPosition} from '../../../../hooks/useCoords' import useMenu from '../../../../hooks/useMenu' @@ -12,7 +13,6 @@ import textOverflow from '../../../../styles/helpers/textOverflow' import {PALETTE} from '../../../../styles/paletteV3' import avatarUser from '../../../../styles/theme/images/avatar-user.svg' import lazyPreload from '../../../../utils/lazyPreload' -import {TaskFooterUserAssignee_task$key} from '../../../../__generated__/TaskFooterUserAssignee_task.graphql' const label = { ...textOverflow, diff --git a/packages/client/modules/outcomeCard/components/OutcomeCardStatusMenu/TaskFooterTagMenu.tsx b/packages/client/modules/outcomeCard/components/OutcomeCardStatusMenu/TaskFooterTagMenu.tsx index fdd078811bf..820389e901e 100644 --- a/packages/client/modules/outcomeCard/components/OutcomeCardStatusMenu/TaskFooterTagMenu.tsx +++ b/packages/client/modules/outcomeCard/components/OutcomeCardStatusMenu/TaskFooterTagMenu.tsx @@ -3,6 +3,7 @@ import {EditorState} from 'draft-js' import React from 'react' import {useFragment} from 'react-relay' import {AreaEnum} from '~/__generated__/UpdateTaskMutation.graphql' +import {TaskFooterTagMenu_task$key} from '../../../../__generated__/TaskFooterTagMenu_task.graphql' import Menu from '../../../../components/Menu' import MenuItem from '../../../../components/MenuItem' import MenuItemDot from '../../../../components/MenuItemDot' @@ -18,7 +19,6 @@ import {TaskStatus} from '../../../../types/constEnums' import addContentTag from '../../../../utils/draftjs/addContentTag' import removeContentTag from '../../../../utils/draftjs/removeContentTag' import isTaskPrivate from '../../../../utils/isTaskPrivate' -import {TaskFooterTagMenu_task$key} from '../../../../__generated__/TaskFooterTagMenu_task.graphql' import TaskFooterTagMenuStatusItem from './TaskFooterTagMenuStatusItem' const statusItems = [TaskStatus.DONE, TaskStatus.ACTIVE, TaskStatus.STUCK, TaskStatus.FUTURE] diff --git a/packages/client/modules/outcomeCard/components/OutcomeCardStatusMenu/TaskFooterTagMenuStatusItem.tsx b/packages/client/modules/outcomeCard/components/OutcomeCardStatusMenu/TaskFooterTagMenuStatusItem.tsx index 082ede4e2c7..80b15babf37 100644 --- a/packages/client/modules/outcomeCard/components/OutcomeCardStatusMenu/TaskFooterTagMenuStatusItem.tsx +++ b/packages/client/modules/outcomeCard/components/OutcomeCardStatusMenu/TaskFooterTagMenuStatusItem.tsx @@ -2,13 +2,13 @@ import graphql from 'babel-plugin-relay/macro' import React, {forwardRef} from 'react' import {useFragment} from 'react-relay' import {AreaEnum, TaskStatusEnum} from '~/__generated__/UpdateTaskMutation.graphql' +import {TaskFooterTagMenuStatusItem_task$key} from '../../../../__generated__/TaskFooterTagMenuStatusItem_task.graphql' import MenuItem from '../../../../components/MenuItem' import MenuItemDot from '../../../../components/MenuItemDot' import MenuItemLabel from '../../../../components/MenuItemLabel' import useAtmosphere from '../../../../hooks/useAtmosphere' import UpdateTaskMutation from '../../../../mutations/UpdateTaskMutation' import {taskStatusColors, taskStatusLabels} from '../../../../utils/taskStatus' -import {TaskFooterTagMenuStatusItem_task$key} from '../../../../__generated__/TaskFooterTagMenuStatusItem_task.graphql' interface Props { area: AreaEnum diff --git a/packages/client/modules/outcomeCard/components/TaskFooterUserAssigneeMenuRoot.tsx b/packages/client/modules/outcomeCard/components/TaskFooterUserAssigneeMenuRoot.tsx index 3a0099ffc19..1d9bb53ad24 100644 --- a/packages/client/modules/outcomeCard/components/TaskFooterUserAssigneeMenuRoot.tsx +++ b/packages/client/modules/outcomeCard/components/TaskFooterUserAssigneeMenuRoot.tsx @@ -1,15 +1,15 @@ import graphql from 'babel-plugin-relay/macro' import React, {Suspense} from 'react' import {useFragment} from 'react-relay' -import {MenuProps} from '../../../hooks/useMenu' -import useQueryLoaderNow from '../../../hooks/useQueryLoaderNow' -import {UseTaskChild} from '../../../hooks/useTaskChildFocus' -import {Loader} from '../../../utils/relay/renderLoader' import taskFooterUserAssigneeMenuQuery, { TaskFooterUserAssigneeMenuQuery } from '../../../__generated__/TaskFooterUserAssigneeMenuQuery.graphql' import {TaskFooterUserAssigneeMenuRoot_task$key} from '../../../__generated__/TaskFooterUserAssigneeMenuRoot_task.graphql' import {AreaEnum} from '../../../__generated__/UpdateTaskMutation.graphql' +import {MenuProps} from '../../../hooks/useMenu' +import useQueryLoaderNow from '../../../hooks/useQueryLoaderNow' +import {UseTaskChild} from '../../../hooks/useTaskChildFocus' +import {Loader} from '../../../utils/relay/renderLoader' import TaskFooterUserAssigneeMenu from './OutcomeCardAssignMenu/TaskFooterUserAssigneeMenu' interface Props { diff --git a/packages/client/modules/outcomeCard/containers/OutcomeCard/OutcomeCardContainer.tsx b/packages/client/modules/outcomeCard/containers/OutcomeCard/OutcomeCardContainer.tsx index b736bcf20b0..14e9804204c 100644 --- a/packages/client/modules/outcomeCard/containers/OutcomeCard/OutcomeCardContainer.tsx +++ b/packages/client/modules/outcomeCard/containers/OutcomeCard/OutcomeCardContainer.tsx @@ -3,11 +3,11 @@ import graphql from 'babel-plugin-relay/macro' import {ContentState, convertToRaw} from 'draft-js' import React, {memo, useEffect, useRef, useState} from 'react' import {useFragment} from 'react-relay' +import {OutcomeCardContainer_task$key} from '~/__generated__/OutcomeCardContainer_task.graphql' +import {AreaEnum, TaskStatusEnum} from '~/__generated__/UpdateTaskMutation.graphql' import useClickAway from '~/hooks/useClickAway' import useScrollIntoView from '~/hooks/useScrollIntoVIew' import SetTaskHighlightMutation from '~/mutations/SetTaskHighlightMutation' -import {OutcomeCardContainer_task$key} from '~/__generated__/OutcomeCardContainer_task.graphql' -import {AreaEnum, TaskStatusEnum} from '~/__generated__/UpdateTaskMutation.graphql' import useAtmosphere from '../../../../hooks/useAtmosphere' import useEditorState from '../../../../hooks/useEditorState' import useTaskChildFocus from '../../../../hooks/useTaskChildFocus' diff --git a/packages/client/modules/summary/components/NewMeetingSummary.tsx b/packages/client/modules/summary/components/NewMeetingSummary.tsx index 11e11406a67..cb42c5637a8 100644 --- a/packages/client/modules/summary/components/NewMeetingSummary.tsx +++ b/packages/client/modules/summary/components/NewMeetingSummary.tsx @@ -1,8 +1,9 @@ import graphql from 'babel-plugin-relay/macro' import React, {useEffect} from 'react' import {PreloadedQuery, usePreloadedQuery} from 'react-relay' -import DashSidebar from '../../../components/Dashboard/DashSidebar' +import {NewMeetingSummaryQuery} from '../../../__generated__/NewMeetingSummaryQuery.graphql' import DashTopBar from '../../../components/DashTopBar' +import DashSidebar from '../../../components/Dashboard/DashSidebar' import MeetingLockedOverlay from '../../../components/MeetingLockedOverlay' import useDocumentTitle from '../../../hooks/useDocumentTitle' import useRouter from '../../../hooks/useRouter' @@ -12,7 +13,6 @@ import {APP_CORS_OPTIONS} from '../../../types/cors' import {MEETING_SUMMARY_LABEL} from '../../../utils/constants' import isDemoRoute from '../../../utils/isDemoRoute' import makeHref from '../../../utils/makeHref' -import {NewMeetingSummaryQuery} from '../../../__generated__/NewMeetingSummaryQuery.graphql' import {demoTeamId} from '../../demo/initDB' import MeetingSummaryEmail from '../../email/components/SummaryEmail/MeetingSummaryEmail/MeetingSummaryEmail' diff --git a/packages/client/modules/summary/components/NewMeetingSummaryRoot.tsx b/packages/client/modules/summary/components/NewMeetingSummaryRoot.tsx index 1d318a7aef2..9ba0a91c003 100644 --- a/packages/client/modules/summary/components/NewMeetingSummaryRoot.tsx +++ b/packages/client/modules/summary/components/NewMeetingSummaryRoot.tsx @@ -1,11 +1,11 @@ import React, {Suspense} from 'react' +import newMeetingSummaryQuery, { + NewMeetingSummaryQuery +} from '../../../__generated__/NewMeetingSummaryQuery.graphql' import useQueryLoaderNow from '../../../hooks/useQueryLoaderNow' import useRouter from '../../../hooks/useRouter' import {LoaderSize} from '../../../types/constEnums' import {Loader} from '../../../utils/relay/renderLoader' -import newMeetingSummaryQuery, { - NewMeetingSummaryQuery -} from '../../../__generated__/NewMeetingSummaryQuery.graphql' import NewMeetingSummary from './NewMeetingSummary' const NewMeetingSummaryRoot = () => { diff --git a/packages/client/modules/team/components/NewTeamOrgPicker.tsx b/packages/client/modules/team/components/NewTeamOrgPicker.tsx index f0e942e07da..a4f208672b4 100644 --- a/packages/client/modules/team/components/NewTeamOrgPicker.tsx +++ b/packages/client/modules/team/components/NewTeamOrgPicker.tsx @@ -2,13 +2,13 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React, {useEffect, useMemo} from 'react' import {useFragment} from 'react-relay' +import {NewTeamOrgPicker_organizations$key} from '../../../__generated__/NewTeamOrgPicker_organizations.graphql' import DropdownMenuToggle from '../../../components/DropdownMenuToggle' import TierTag from '../../../components/Tag/TierTag' import {MenuPosition} from '../../../hooks/useCoords' import useMenu from '../../../hooks/useMenu' import lazyPreload from '../../../utils/lazyPreload' import sortByTier from '../../../utils/sortByTier' -import {NewTeamOrgPicker_organizations$key} from '../../../__generated__/NewTeamOrgPicker_organizations.graphql' const MenuToggleInner = styled('div')({ alignItems: 'center', diff --git a/packages/client/modules/teamDashboard/components/AgendaInput/AgendaInput.tsx b/packages/client/modules/teamDashboard/components/AgendaInput/AgendaInput.tsx index 81e30e21738..774fe017c27 100644 --- a/packages/client/modules/teamDashboard/components/AgendaInput/AgendaInput.tsx +++ b/packages/client/modules/teamDashboard/components/AgendaInput/AgendaInput.tsx @@ -3,6 +3,7 @@ import {Add} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React, {useRef} from 'react' import {useFragment} from 'react-relay' +import {AgendaInput_team$key} from '../../../../__generated__/AgendaInput_team.graphql' import useAtmosphere from '../../../../hooks/useAtmosphere' import useAtmosphereListener from '../../../../hooks/useAtmosphereListener' import {MenuPosition} from '../../../../hooks/useCoords' @@ -17,7 +18,6 @@ import {PALETTE} from '../../../../styles/paletteV3' import ui from '../../../../styles/ui' import getNextSortOrder from '../../../../utils/getNextSortOrder' import toTeamMemberId from '../../../../utils/relay/toTeamMemberId' -import {AgendaInput_team$key} from '../../../../__generated__/AgendaInput_team.graphql' const AgendaInputBlock = styled('div')({ padding: `8px 0`, diff --git a/packages/client/modules/teamDashboard/components/AgendaItem/AgendaItem.tsx b/packages/client/modules/teamDashboard/components/AgendaItem/AgendaItem.tsx index 864961f92d0..a451958e15b 100644 --- a/packages/client/modules/teamDashboard/components/AgendaItem/AgendaItem.tsx +++ b/packages/client/modules/teamDashboard/components/AgendaItem/AgendaItem.tsx @@ -3,9 +3,10 @@ import graphql from 'babel-plugin-relay/macro' import React, {useEffect, useRef, useState} from 'react' import {useFragment} from 'react-relay' import { - AgendaItem_meeting$key, - AgendaItem_meeting$data + AgendaItem_meeting$data, + AgendaItem_meeting$key } from '~/__generated__/AgendaItem_meeting.graphql' +import {AgendaItem_agendaItem$key} from '../../../../__generated__/AgendaItem_agendaItem.graphql' import Avatar from '../../../../components/Avatar/Avatar' import IconButton from '../../../../components/IconButton' import MeetingSubnavItem from '../../../../components/MeetingSubnavItem' @@ -20,7 +21,6 @@ import pinIcon from '../../../../styles/theme/images/icons/pin.svg' import unpinIcon from '../../../../styles/theme/images/icons/unpin.svg' import {ICON_SIZE} from '../../../../styles/typographyV2' import findStageAfterId from '../../../../utils/meetings/findStageAfterId' -import {AgendaItem_agendaItem$key} from '../../../../__generated__/AgendaItem_agendaItem.graphql' const AgendaItemStyles = styled('div')({ position: 'relative', diff --git a/packages/client/modules/teamDashboard/components/AgendaListAndInput/AgendaListAndInput.tsx b/packages/client/modules/teamDashboard/components/AgendaListAndInput/AgendaListAndInput.tsx index 3fe10d1af0c..f338fe6a7a0 100644 --- a/packages/client/modules/teamDashboard/components/AgendaListAndInput/AgendaListAndInput.tsx +++ b/packages/client/modules/teamDashboard/components/AgendaListAndInput/AgendaListAndInput.tsx @@ -3,11 +3,11 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import { - AgendaListAndInput_meeting$key, - AgendaListAndInput_meeting$data + AgendaListAndInput_meeting$data, + AgendaListAndInput_meeting$key } from '~/__generated__/AgendaListAndInput_meeting.graphql' -import useGotoStageId from '../../../../hooks/useGotoStageId' import {AgendaListAndInput_team$key} from '../../../../__generated__/AgendaListAndInput_team.graphql' +import useGotoStageId from '../../../../hooks/useGotoStageId' import AgendaInput from '../AgendaInput/AgendaInput' import AgendaList from '../AgendaList/AgendaList' diff --git a/packages/client/modules/teamDashboard/components/ArchiveTeam/ArchiveOrganizationForm.tsx b/packages/client/modules/teamDashboard/components/ArchiveTeam/ArchiveOrganizationForm.tsx index dfa5e8319cc..b72437a5de2 100644 --- a/packages/client/modules/teamDashboard/components/ArchiveTeam/ArchiveOrganizationForm.tsx +++ b/packages/client/modules/teamDashboard/components/ArchiveTeam/ArchiveOrganizationForm.tsx @@ -1,12 +1,12 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {ArchiveOrganizationForm_organization$key} from '~/__generated__/ArchiveOrganizationForm_organization.graphql' import useAtmosphere from '~/hooks/useAtmosphere' import useForm from '~/hooks/useForm' import useMutationProps from '~/hooks/useMutationProps' import useRouter from '~/hooks/useRouter' import ArchiveOrganizationMutation from '~/mutations/ArchiveOrganizationMutation' -import {ArchiveOrganizationForm_organization$key} from '~/__generated__/ArchiveOrganizationForm_organization.graphql' import FieldLabel from '../../../../components/FieldLabel/FieldLabel' import BasicInput from '../../../../components/InputField/BasicInput' import Legitity from '../../../../validation/Legitity' diff --git a/packages/client/modules/teamDashboard/components/ArchiveTeam/ArchiveTeamForm.tsx b/packages/client/modules/teamDashboard/components/ArchiveTeam/ArchiveTeamForm.tsx index cd390663f21..bc57a0a1419 100644 --- a/packages/client/modules/teamDashboard/components/ArchiveTeam/ArchiveTeamForm.tsx +++ b/packages/client/modules/teamDashboard/components/ArchiveTeam/ArchiveTeamForm.tsx @@ -2,12 +2,12 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {ArchiveTeamForm_team$key} from '~/__generated__/ArchiveTeamForm_team.graphql' import SecondaryButton from '~/components/SecondaryButton' import useAtmosphere from '~/hooks/useAtmosphere' import useForm from '~/hooks/useForm' import useMutationProps from '~/hooks/useMutationProps' import useRouter from '~/hooks/useRouter' -import {ArchiveTeamForm_team$key} from '~/__generated__/ArchiveTeamForm_team.graphql' import FieldLabel from '../../../../components/FieldLabel/FieldLabel' import BasicInput from '../../../../components/InputField/BasicInput' import PrimaryButton from '../../../../components/PrimaryButton' diff --git a/packages/client/modules/teamDashboard/components/EditTeamName/EditableTeamName.tsx b/packages/client/modules/teamDashboard/components/EditTeamName/EditableTeamName.tsx index 295d27e9862..257f4525787 100644 --- a/packages/client/modules/teamDashboard/components/EditTeamName/EditableTeamName.tsx +++ b/packages/client/modules/teamDashboard/components/EditTeamName/EditableTeamName.tsx @@ -3,12 +3,12 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import useAtmosphere from '~/hooks/useAtmosphere' +import {EditableTeamName_team$key} from '../../../../__generated__/EditableTeamName_team.graphql' import EditableText from '../../../../components/EditableText' import UpdateTeamNameMutation from '../../../../mutations/UpdateTeamNameMutation' import {FONT_FAMILY} from '../../../../styles/typographyV2' import withMutationProps, {WithMutationProps} from '../../../../utils/relay/withMutationProps' import teamNameValidation from '../../../../validation/teamNameValidation' -import {EditableTeamName_team$key} from '../../../../__generated__/EditableTeamName_team.graphql' interface Props extends WithMutationProps { team: EditableTeamName_team$key diff --git a/packages/client/modules/teamDashboard/components/LeaveTeamModal/LeaveTeamModal.tsx b/packages/client/modules/teamDashboard/components/LeaveTeamModal/LeaveTeamModal.tsx index b90e145b708..6354a84f718 100644 --- a/packages/client/modules/teamDashboard/components/LeaveTeamModal/LeaveTeamModal.tsx +++ b/packages/client/modules/teamDashboard/components/LeaveTeamModal/LeaveTeamModal.tsx @@ -2,6 +2,7 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {LeaveTeamModal_teamMember$key} from '../../../../__generated__/LeaveTeamModal_teamMember.graphql' import DialogContainer from '../../../../components/DialogContainer' import DialogContent from '../../../../components/DialogContent' import DialogTitle from '../../../../components/DialogTitle' @@ -10,7 +11,6 @@ import PrimaryButton from '../../../../components/PrimaryButton' import useAtmosphere from '../../../../hooks/useAtmosphere' import useRouter from '../../../../hooks/useRouter' import RemoveTeamMemberMutation from '../../../../mutations/RemoveTeamMemberMutation' -import {LeaveTeamModal_teamMember$key} from '../../../../__generated__/LeaveTeamModal_teamMember.graphql' const StyledDialogContainer = styled(DialogContainer)({ width: 356 diff --git a/packages/client/modules/teamDashboard/components/PromoteTeamMemberModal/PromoteTeamMemberModal.tsx b/packages/client/modules/teamDashboard/components/PromoteTeamMemberModal/PromoteTeamMemberModal.tsx index 5c4208bd2e8..8536b80cd54 100644 --- a/packages/client/modules/teamDashboard/components/PromoteTeamMemberModal/PromoteTeamMemberModal.tsx +++ b/packages/client/modules/teamDashboard/components/PromoteTeamMemberModal/PromoteTeamMemberModal.tsx @@ -3,6 +3,7 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import useAtmosphere from '~/hooks/useAtmosphere' +import {PromoteTeamMemberModal_teamMember$key} from '../../../../__generated__/PromoteTeamMemberModal_teamMember.graphql' import DialogContainer from '../../../../components/DialogContainer' import DialogContent from '../../../../components/DialogContent' import DialogTitle from '../../../../components/DialogTitle' @@ -10,7 +11,6 @@ import IconLabel from '../../../../components/IconLabel' import PrimaryButton from '../../../../components/PrimaryButton' import PromoteToTeamLeadMutation from '../../../../mutations/PromoteToTeamLeadMutation' import withMutationProps, {WithMutationProps} from '../../../../utils/relay/withMutationProps' -import {PromoteTeamMemberModal_teamMember$key} from '../../../../__generated__/PromoteTeamMemberModal_teamMember.graphql' const StyledDialogContainer = styled(DialogContainer)({ width: 420 diff --git a/packages/client/modules/teamDashboard/components/ProviderList/ProviderList.tsx b/packages/client/modules/teamDashboard/components/ProviderList/ProviderList.tsx index 6f2360fad6b..2e5881b2706 100644 --- a/packages/client/modules/teamDashboard/components/ProviderList/ProviderList.tsx +++ b/packages/client/modules/teamDashboard/components/ProviderList/ProviderList.tsx @@ -2,18 +2,18 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {PreloadedQuery, usePreloadedQuery} from 'react-relay' +import {ProviderListQuery} from '../../../../__generated__/ProviderListQuery.graphql' import SettingsWrapper from '../../../../components/Settings/SettingsWrapper' import {PALETTE} from '../../../../styles/paletteV3' -import {ProviderListQuery} from '../../../../__generated__/ProviderListQuery.graphql' import AtlassianProviderRow from '../ProviderRow/AtlassianProviderRow' import AzureDevOpsProviderRow from '../ProviderRow/AzureDevOpsProviderRow' +import GcalProviderRow from '../ProviderRow/GcalProviderRow' import GitHubProviderRow from '../ProviderRow/GitHubProviderRow' import GitLabProviderRow from '../ProviderRow/GitLabProviderRow' import JiraServerProviderRow from '../ProviderRow/JiraServerProviderRow' -import MattermostProviderRow from '../ProviderRow/MattermostProviderRow' import MSTeamsProviderRow from '../ProviderRow/MSTeamsProviderRow' +import MattermostProviderRow from '../ProviderRow/MattermostProviderRow' import SlackProviderRow from '../ProviderRow/SlackProviderRow' -import GcalProviderRow from '../ProviderRow/GcalProviderRow' interface Props { queryRef: PreloadedQuery diff --git a/packages/client/modules/teamDashboard/components/ProviderRow/AtlassianProviderRow.tsx b/packages/client/modules/teamDashboard/components/ProviderRow/AtlassianProviderRow.tsx index e88012c723b..f9cbb9c06b5 100644 --- a/packages/client/modules/teamDashboard/components/ProviderRow/AtlassianProviderRow.tsx +++ b/packages/client/modules/teamDashboard/components/ProviderRow/AtlassianProviderRow.tsx @@ -3,6 +3,7 @@ import jwtDecode from 'jwt-decode' import React, {useEffect, useMemo} from 'react' import {useFragment} from 'react-relay' import AtlassianProviderLogo from '../../../../AtlassianProviderLogo' +import {AtlassianProviderRow_viewer$key} from '../../../../__generated__/AtlassianProviderRow_viewer.graphql' import AtlassianConfigMenu from '../../../../components/AtlassianConfigMenu' import useAtmosphere from '../../../../hooks/useAtmosphere' import {MenuPosition} from '../../../../hooks/useCoords' @@ -11,7 +12,6 @@ import useMutationProps, {MenuMutationProps} from '../../../../hooks/useMutation import {AuthToken} from '../../../../types/AuthToken' import {ExternalLinks, Providers} from '../../../../types/constEnums' import AtlassianClientManager, {ERROR_POPUP_CLOSED} from '../../../../utils/AtlassianClientManager' -import {AtlassianProviderRow_viewer$key} from '../../../../__generated__/AtlassianProviderRow_viewer.graphql' import ProviderRow from './ProviderRow' interface Props { diff --git a/packages/client/modules/teamDashboard/components/ProviderRow/AzureDevOpsProviderRow.tsx b/packages/client/modules/teamDashboard/components/ProviderRow/AzureDevOpsProviderRow.tsx index 69de67e2b2c..c8675c83689 100644 --- a/packages/client/modules/teamDashboard/components/ProviderRow/AzureDevOpsProviderRow.tsx +++ b/packages/client/modules/teamDashboard/components/ProviderRow/AzureDevOpsProviderRow.tsx @@ -2,6 +2,7 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import useAtmosphere from '~/hooks/useAtmosphere' +import {AzureDevOpsProviderRow_viewer$key} from '../../../../__generated__/AzureDevOpsProviderRow_viewer.graphql' import AzureDevOpsConfigMenu from '../../../../components/AzureDevOpsConfigMenu' import AzureDevOpsProviderLogo from '../../../../components/AzureDevOpsProviderLogo' import {MenuPosition} from '../../../../hooks/useCoords' @@ -9,7 +10,6 @@ import useMenu from '../../../../hooks/useMenu' import useMutationProps, {MenuMutationProps} from '../../../../hooks/useMutationProps' import {Providers} from '../../../../types/constEnums' import AzureDevOpsClientManager from '../../../../utils/AzureDevOpsClientManager' -import {AzureDevOpsProviderRow_viewer$key} from '../../../../__generated__/AzureDevOpsProviderRow_viewer.graphql' import ProviderRow from './ProviderRow' interface Props { diff --git a/packages/client/modules/teamDashboard/components/ProviderRow/GcalProviderRow.tsx b/packages/client/modules/teamDashboard/components/ProviderRow/GcalProviderRow.tsx index c29ac58985a..208ede99d93 100644 --- a/packages/client/modules/teamDashboard/components/ProviderRow/GcalProviderRow.tsx +++ b/packages/client/modules/teamDashboard/components/ProviderRow/GcalProviderRow.tsx @@ -1,16 +1,16 @@ -import React from 'react' import graphql from 'babel-plugin-relay/macro' +import React from 'react' +import {useFragment} from 'react-relay' +import {GcalProviderRow_viewer$key} from '../../../../__generated__/GcalProviderRow_viewer.graphql' +import GcalConfigMenu from '../../../../components/GcalConfigMenu' import GcalProviderLogo from '../../../../components/GcalProviderLogo' +import useAtmosphere from '../../../../hooks/useAtmosphere' import {MenuPosition} from '../../../../hooks/useCoords' import useMenu from '../../../../hooks/useMenu' import useMutationProps from '../../../../hooks/useMutationProps' import {Providers} from '../../../../types/constEnums' -import ProviderRow from './ProviderRow' -import GcalConfigMenu from '../../../../components/GcalConfigMenu' -import {useFragment} from 'react-relay' -import useAtmosphere from '../../../../hooks/useAtmosphere' -import {GcalProviderRow_viewer$key} from '../../../../__generated__/GcalProviderRow_viewer.graphql' import GcalClientManager from '../../../../utils/GcalClientManager' +import ProviderRow from './ProviderRow' type Props = { teamId: string diff --git a/packages/client/modules/teamDashboard/components/ProviderRow/GitHubProviderRow.tsx b/packages/client/modules/teamDashboard/components/ProviderRow/GitHubProviderRow.tsx index fbb70f01cc2..9fcb4f755b9 100644 --- a/packages/client/modules/teamDashboard/components/ProviderRow/GitHubProviderRow.tsx +++ b/packages/client/modules/teamDashboard/components/ProviderRow/GitHubProviderRow.tsx @@ -1,6 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {GitHubProviderRow_viewer$key} from '../../../../__generated__/GitHubProviderRow_viewer.graphql' import GitHubConfigMenu from '../../../../components/GitHubConfigMenu' import GitHubProviderLogo from '../../../../components/GitHubProviderLogo' import useAtmosphere from '../../../../hooks/useAtmosphere' @@ -9,7 +10,6 @@ import useMenu from '../../../../hooks/useMenu' import useMutationProps, {MenuMutationProps} from '../../../../hooks/useMutationProps' import {Providers} from '../../../../types/constEnums' import GitHubClientManager from '../../../../utils/GitHubClientManager' -import {GitHubProviderRow_viewer$key} from '../../../../__generated__/GitHubProviderRow_viewer.graphql' import ProviderRow from './ProviderRow' interface Props { diff --git a/packages/client/modules/teamDashboard/components/ProviderRow/GitLabProviderRow.tsx b/packages/client/modules/teamDashboard/components/ProviderRow/GitLabProviderRow.tsx index 7750f4b48c7..187e453ac1e 100644 --- a/packages/client/modules/teamDashboard/components/ProviderRow/GitLabProviderRow.tsx +++ b/packages/client/modules/teamDashboard/components/ProviderRow/GitLabProviderRow.tsx @@ -1,13 +1,13 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {GitLabProviderRow_viewer$key} from '../../../../__generated__/GitLabProviderRow_viewer.graphql' import GitLabProviderLogo from '../../../../components/GitLabProviderLogo' import useAtmosphere from '../../../../hooks/useAtmosphere' import {MenuPosition} from '../../../../hooks/useCoords' import useMenu from '../../../../hooks/useMenu' import useMutationProps from '../../../../hooks/useMutationProps' import GitLabClientManager from '../../../../utils/GitLabClientManager' -import {GitLabProviderRow_viewer$key} from '../../../../__generated__/GitLabProviderRow_viewer.graphql' import GitLabConfigMenu from './GitLabConfigMenu' import ProviderRow from './ProviderRow' diff --git a/packages/client/modules/teamDashboard/components/ProviderRow/JiraServerProviderRow.tsx b/packages/client/modules/teamDashboard/components/ProviderRow/JiraServerProviderRow.tsx index 4c231bbae2c..c7ec67958d9 100644 --- a/packages/client/modules/teamDashboard/components/ProviderRow/JiraServerProviderRow.tsx +++ b/packages/client/modules/teamDashboard/components/ProviderRow/JiraServerProviderRow.tsx @@ -8,9 +8,9 @@ import useAtmosphere from '../../../../hooks/useAtmosphere' import {MenuPosition} from '../../../../hooks/useCoords' import useMenu from '../../../../hooks/useMenu' import useMutationProps, {MenuMutationProps} from '../../../../hooks/useMutationProps' -import SendClientSideEvent from '../../../../utils/SendClientSideEvent' import {ExternalLinks, Providers} from '../../../../types/constEnums' import JiraServerClientManager from '../../../../utils/JiraServerClientManager' +import SendClientSideEvent from '../../../../utils/SendClientSideEvent' import ProviderRowContactUs from './ProviderRowContactUs' interface Props { diff --git a/packages/client/modules/teamDashboard/components/ProviderRow/MSTeamsPanel.tsx b/packages/client/modules/teamDashboard/components/ProviderRow/MSTeamsPanel.tsx index 9f42ae9afee..4b4ea36591d 100644 --- a/packages/client/modules/teamDashboard/components/ProviderRow/MSTeamsPanel.tsx +++ b/packages/client/modules/teamDashboard/components/ProviderRow/MSTeamsPanel.tsx @@ -2,11 +2,12 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React, {FormEvent} from 'react' import {useFragment} from 'react-relay' +import {MSTeamsPanel_viewer$key} from '~/__generated__/MSTeamsPanel_viewer.graphql' import {MenuPosition} from '~/hooks/useCoords' import useForm from '~/hooks/useForm' import useTooltip from '~/hooks/useTooltip' import linkify from '~/utils/linkify' -import {MSTeamsPanel_viewer$key} from '~/__generated__/MSTeamsPanel_viewer.graphql' +import {AddIntegrationProviderMutation as TAddIntegrationProviderMutation} from '../../../../__generated__/AddIntegrationProviderMutation.graphql' import FlatButton from '../../../../components/FlatButton' import BasicInput from '../../../../components/InputField/BasicInput' import LabelHeading from '../../../../components/LabelHeading/LabelHeading' @@ -19,7 +20,6 @@ import UpdateIntegrationProviderMutation from '../../../../mutations/UpdateInteg import {PALETTE} from '../../../../styles/paletteV3' import {Layout} from '../../../../types/constEnums' import Legitity from '../../../../validation/Legitity' -import {AddIntegrationProviderMutation as TAddIntegrationProviderMutation} from '../../../../__generated__/AddIntegrationProviderMutation.graphql' interface Props { viewerRef: MSTeamsPanel_viewer$key diff --git a/packages/client/modules/teamDashboard/components/ProviderRow/MattermostPanel.tsx b/packages/client/modules/teamDashboard/components/ProviderRow/MattermostPanel.tsx index d8f0a8147c6..fb67dfbb884 100644 --- a/packages/client/modules/teamDashboard/components/ProviderRow/MattermostPanel.tsx +++ b/packages/client/modules/teamDashboard/components/ProviderRow/MattermostPanel.tsx @@ -3,11 +3,12 @@ import {Info as InfoIcon} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React, {FormEvent} from 'react' import {useFragment} from 'react-relay' +import {MattermostPanel_viewer$key} from '~/__generated__/MattermostPanel_viewer.graphql' import {MenuPosition} from '~/hooks/useCoords' import useForm from '~/hooks/useForm' import useTooltip from '~/hooks/useTooltip' import linkify from '~/utils/linkify' -import {MattermostPanel_viewer$key} from '~/__generated__/MattermostPanel_viewer.graphql' +import {AddIntegrationProviderMutation as TAddIntegrationProviderMutation} from '../../../../__generated__/AddIntegrationProviderMutation.graphql' import FlatButton from '../../../../components/FlatButton' import BasicInput from '../../../../components/InputField/BasicInput' import LabelHeading from '../../../../components/LabelHeading/LabelHeading' @@ -20,7 +21,6 @@ import UpdateIntegrationProviderMutation from '../../../../mutations/UpdateInteg import {PALETTE} from '../../../../styles/paletteV3' import {Layout} from '../../../../types/constEnums' import Legitity from '../../../../validation/Legitity' -import {AddIntegrationProviderMutation as TAddIntegrationProviderMutation} from '../../../../__generated__/AddIntegrationProviderMutation.graphql' interface Props { viewerRef: MattermostPanel_viewer$key diff --git a/packages/client/modules/teamDashboard/components/ProviderRow/SlackChannelPicker.tsx b/packages/client/modules/teamDashboard/components/ProviderRow/SlackChannelPicker.tsx index 793b7dee707..9b25abbe96b 100644 --- a/packages/client/modules/teamDashboard/components/ProviderRow/SlackChannelPicker.tsx +++ b/packages/client/modules/teamDashboard/components/ProviderRow/SlackChannelPicker.tsx @@ -8,8 +8,8 @@ import useAtmosphere from '../../../../hooks/useAtmosphere' import {MenuPosition} from '../../../../hooks/useCoords' import useMenu from '../../../../hooks/useMenu' import useMutationProps from '../../../../hooks/useMutationProps' -import lazyPreload from '../../../../utils/lazyPreload' import SlackClientManager from '../../../../utils/SlackClientManager' +import lazyPreload from '../../../../utils/lazyPreload' interface Props { isTokenValid: boolean diff --git a/packages/client/modules/teamDashboard/components/ProviderRow/SlackNotificationList.tsx b/packages/client/modules/teamDashboard/components/ProviderRow/SlackNotificationList.tsx index 399d34aa072..f6029e9502b 100644 --- a/packages/client/modules/teamDashboard/components/ProviderRow/SlackNotificationList.tsx +++ b/packages/client/modules/teamDashboard/components/ProviderRow/SlackNotificationList.tsx @@ -3,6 +3,10 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import SetDefaultSlackChannelMutation from '~/mutations/SetDefaultSlackChannelMutation' +import { + SlackNotificationEventEnum, + SlackNotificationList_viewer$key +} from '../../../../__generated__/SlackNotificationList_viewer.graphql' import LabelHeading from '../../../../components/LabelHeading/LabelHeading' import {SlackChannelDropdownOnClick} from '../../../../components/SlackChannelDropdown' import StyledError from '../../../../components/StyledError' @@ -13,10 +17,6 @@ import useSlackChannels from '../../../../hooks/useSlackChannels' import SetSlackNotificationMutation from '../../../../mutations/SetSlackNotificationMutation' import {PALETTE} from '../../../../styles/paletteV3' import {Layout} from '../../../../types/constEnums' -import { - SlackNotificationEventEnum, - SlackNotificationList_viewer$key -} from '../../../../__generated__/SlackNotificationList_viewer.graphql' import SlackChannelPicker from './SlackChannelPicker' import SlackNotificationRow from './SlackNotificationRow' diff --git a/packages/client/modules/teamDashboard/components/ProviderRow/SlackNotificationRow.tsx b/packages/client/modules/teamDashboard/components/ProviderRow/SlackNotificationRow.tsx index 52e5393c417..8c832e697bd 100644 --- a/packages/client/modules/teamDashboard/components/ProviderRow/SlackNotificationRow.tsx +++ b/packages/client/modules/teamDashboard/components/ProviderRow/SlackNotificationRow.tsx @@ -2,16 +2,16 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import { + SlackNotificationEventEnum, + SlackNotificationRow_viewer$key +} from '../../../../__generated__/SlackNotificationRow_viewer.graphql' import StyledError from '../../../../components/StyledError' import Toggle from '../../../../components/Toggle/Toggle' import useAtmosphere from '../../../../hooks/useAtmosphere' import useMutationProps from '../../../../hooks/useMutationProps' import SetSlackNotificationMutation from '../../../../mutations/SetSlackNotificationMutation' import {MeetingLabels} from '../../../../types/constEnums' -import { - SlackNotificationEventEnum, - SlackNotificationRow_viewer$key -} from '../../../../__generated__/SlackNotificationRow_viewer.graphql' interface Props { event: SlackNotificationEventEnum diff --git a/packages/client/modules/teamDashboard/components/ProviderRow/SlackProviderRow.tsx b/packages/client/modules/teamDashboard/components/ProviderRow/SlackProviderRow.tsx index 5f8ae1def86..f11a91bb864 100644 --- a/packages/client/modules/teamDashboard/components/ProviderRow/SlackProviderRow.tsx +++ b/packages/client/modules/teamDashboard/components/ProviderRow/SlackProviderRow.tsx @@ -1,6 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {SlackProviderRow_viewer$key} from '../../../../__generated__/SlackProviderRow_viewer.graphql' import SlackConfigMenu from '../../../../components/SlackConfigMenu' import SlackProviderLogo from '../../../../components/SlackProviderLogo' import useAtmosphere from '../../../../hooks/useAtmosphere' @@ -9,7 +10,6 @@ import useMenu from '../../../../hooks/useMenu' import useMutationProps, {MenuMutationProps} from '../../../../hooks/useMutationProps' import {Providers} from '../../../../types/constEnums' import SlackClientManager from '../../../../utils/SlackClientManager' -import {SlackProviderRow_viewer$key} from '../../../../__generated__/SlackProviderRow_viewer.graphql' import ProviderRow from './ProviderRow' import SlackNotificationList from './SlackNotificationList' diff --git a/packages/client/modules/teamDashboard/components/RemoveTeamMemberModal/RemoveTeamMemberModal.tsx b/packages/client/modules/teamDashboard/components/RemoveTeamMemberModal/RemoveTeamMemberModal.tsx index cd339f21f81..fb7a5c6a8bb 100644 --- a/packages/client/modules/teamDashboard/components/RemoveTeamMemberModal/RemoveTeamMemberModal.tsx +++ b/packages/client/modules/teamDashboard/components/RemoveTeamMemberModal/RemoveTeamMemberModal.tsx @@ -3,13 +3,13 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import useAtmosphere from '~/hooks/useAtmosphere' +import {RemoveTeamMemberModal_teamMember$key} from '../../../../__generated__/RemoveTeamMemberModal_teamMember.graphql' import DialogContainer from '../../../../components/DialogContainer' import DialogContent from '../../../../components/DialogContent' import DialogTitle from '../../../../components/DialogTitle' import IconLabel from '../../../../components/IconLabel' import PrimaryButton from '../../../../components/PrimaryButton' import RemoveTeamMemberMutation from '../../../../mutations/RemoveTeamMemberMutation' -import {RemoveTeamMemberModal_teamMember$key} from '../../../../__generated__/RemoveTeamMemberModal_teamMember.graphql' const StyledDialogContainer = styled(DialogContainer)({ width: 320 diff --git a/packages/client/modules/teamDashboard/components/TaskColumn/ArchiveAllDoneTasksModal.tsx b/packages/client/modules/teamDashboard/components/TaskColumn/ArchiveAllDoneTasksModal.tsx index cc5880c7322..ebaf8d161ea 100644 --- a/packages/client/modules/teamDashboard/components/TaskColumn/ArchiveAllDoneTasksModal.tsx +++ b/packages/client/modules/teamDashboard/components/TaskColumn/ArchiveAllDoneTasksModal.tsx @@ -1,10 +1,10 @@ +import {Close} from '@mui/icons-material' import React from 'react' +import DialogTitle from '../../../../components/DialogTitle' +import FlatButton from '../../../../components/FlatButton' import useAtmosphere from '../../../../hooks/useAtmosphere' import useMutationProps from '../../../../hooks/useMutationProps' import BatchArchiveTasksMutation from '../../../../mutations/BatchArchiveTasksMutation' -import {Close} from '@mui/icons-material' -import FlatButton from '../../../../components/FlatButton' -import DialogTitle from '../../../../components/DialogTitle' type Props = { taskIds: string[] diff --git a/packages/client/modules/teamDashboard/components/TaskColumn/TaskColumn.tsx b/packages/client/modules/teamDashboard/components/TaskColumn/TaskColumn.tsx index e52ec7dddb3..5ab592b4081 100644 --- a/packages/client/modules/teamDashboard/components/TaskColumn/TaskColumn.tsx +++ b/packages/client/modules/teamDashboard/components/TaskColumn/TaskColumn.tsx @@ -5,15 +5,15 @@ import {Droppable, DroppableProvided, DroppableStateSnapshot} from 'react-beauti import {useFragment} from 'react-relay' import {TaskColumn_teams$key} from '~/__generated__/TaskColumn_teams.graphql' import {AreaEnum, TaskStatusEnum} from '~/__generated__/UpdateTaskMutation.graphql' +import {TaskColumn_tasks$key} from '../../../../__generated__/TaskColumn_tasks.graphql' +import useModal from '../../../../hooks/useModal' import {PALETTE} from '../../../../styles/paletteV3' import {BezierCurve, DroppableType} from '../../../../types/constEnums' import {DONE, TEAM_DASH, USER_DASH} from '../../../../utils/constants' import {taskStatusLabels} from '../../../../utils/taskStatus' -import {TaskColumn_tasks$key} from '../../../../__generated__/TaskColumn_tasks.graphql' +import ArchiveAllDoneTasksModal from './ArchiveAllDoneTasksModal' import TaskColumnAddTask from './TaskColumnAddTask' import TaskColumnInner from './TaskColumnInner' -import useModal from '../../../../hooks/useModal' -import ArchiveAllDoneTasksModal from './ArchiveAllDoneTasksModal' const Column = styled('div')<{isDragging: boolean}>(({isDragging}) => ({ background: isDragging ? PALETTE.SLATE_300 : undefined, diff --git a/packages/client/modules/teamDashboard/components/TaskColumn/TaskColumnAddTask.tsx b/packages/client/modules/teamDashboard/components/TaskColumn/TaskColumnAddTask.tsx index 58b3f8768c8..d58e99dc84c 100644 --- a/packages/client/modules/teamDashboard/components/TaskColumn/TaskColumnAddTask.tsx +++ b/packages/client/modules/teamDashboard/components/TaskColumn/TaskColumnAddTask.tsx @@ -3,6 +3,7 @@ import React from 'react' import {useFragment} from 'react-relay' import {TaskColumnAddTask_teams$key} from '~/__generated__/TaskColumnAddTask_teams.graphql' import {AreaEnum, TaskStatusEnum} from '~/__generated__/UpdateTaskMutation.graphql' +import {TaskColumnAddTask_tasks$key} from '../../../../__generated__/TaskColumnAddTask_tasks.graphql' import AddTaskButton from '../../../../components/AddTaskButton/AddTaskButton' import useAtmosphere from '../../../../hooks/useAtmosphere' import CreateTaskMutation from '../../../../mutations/CreateTaskMutation' @@ -10,7 +11,6 @@ import dndNoise from '../../../../utils/dndNoise' import getNextSortOrder from '../../../../utils/getNextSortOrder' import fromTeamMemberId from '../../../../utils/relay/fromTeamMemberId' import {taskStatusLabels} from '../../../../utils/taskStatus' -import {TaskColumnAddTask_tasks$key} from '../../../../__generated__/TaskColumnAddTask_tasks.graphql' import TaskColumnAddTaskSelectTeam from './TaskColumnAddTaskSelectTeam' interface Props { diff --git a/packages/client/modules/teamDashboard/components/Team/Team.tsx b/packages/client/modules/teamDashboard/components/Team/Team.tsx index b552e9dcaab..0051f53821a 100644 --- a/packages/client/modules/teamDashboard/components/Team/Team.tsx +++ b/packages/client/modules/teamDashboard/components/Team/Team.tsx @@ -4,11 +4,11 @@ import graphql from 'babel-plugin-relay/macro' import React, {lazy, ReactNode, Suspense} from 'react' import {useFragment} from 'react-relay' import {Layout} from '~/types/constEnums' +import {Team_team$key} from '../../../../__generated__/Team_team.graphql' import DashContent from '../../../../components/Dashboard/DashContent' import FlatButton from '../../../../components/FlatButton' import useRouter from '../../../../hooks/useRouter' import {PALETTE} from '../../../../styles/paletteV3' -import {Team_team$key} from '../../../../__generated__/Team_team.graphql' import EditableTeamName from '../EditTeamName/EditableTeamName' // import DebugButton from '../../../userDashboard/components/UserDashMain/DebugButton' diff --git a/packages/client/modules/teamDashboard/components/TeamArchive/TeamArchive.tsx b/packages/client/modules/teamDashboard/components/TeamArchive/TeamArchive.tsx index dd5c27b76fe..3f3f190f8af 100644 --- a/packages/client/modules/teamDashboard/components/TeamArchive/TeamArchive.tsx +++ b/packages/client/modules/teamDashboard/components/TeamArchive/TeamArchive.tsx @@ -11,16 +11,16 @@ import { InfiniteLoaderProps } from 'react-virtualized' import {GridCellRenderer, GridCoreProps} from 'react-virtualized/dist/es/Grid' +import {TeamArchive_team$key} from '~/__generated__/TeamArchive_team.graphql' import extractTextFromDraftString from '~/utils/draftjs/extractTextFromDraftString' import getSafeRegex from '~/utils/getSafeRegex' import toTeamMemberId from '~/utils/relay/toTeamMemberId' -import {TeamArchive_team$key} from '~/__generated__/TeamArchive_team.graphql' -import NullableTask from '../../../../components/NullableTask/NullableTask' -import {PALETTE} from '../../../../styles/paletteV3' -import {Card, Layout, MathEnum} from '../../../../types/constEnums' import {TeamArchiveArchivedTasksQuery} from '../../../../__generated__/TeamArchiveArchivedTasksQuery.graphql' import {TeamArchiveQuery} from '../../../../__generated__/TeamArchiveQuery.graphql' import {TeamArchive_query$key} from '../../../../__generated__/TeamArchive_query.graphql' +import NullableTask from '../../../../components/NullableTask/NullableTask' +import {PALETTE} from '../../../../styles/paletteV3' +import {Card, Layout, MathEnum} from '../../../../types/constEnums' import UserTasksHeader from '../../../userDashboard/components/UserTasksHeader/UserTasksHeader' import getRallyLink from '../../../userDashboard/helpers/getRallyLink' import TeamArchiveHeader from '../TeamArchiveHeader/TeamArchiveHeader' diff --git a/packages/client/modules/teamDashboard/components/TeamDashActivityTab/TeamDashActivityTab.tsx b/packages/client/modules/teamDashboard/components/TeamDashActivityTab/TeamDashActivityTab.tsx index 7f5963a3a04..1698bc099a5 100644 --- a/packages/client/modules/teamDashboard/components/TeamDashActivityTab/TeamDashActivityTab.tsx +++ b/packages/client/modules/teamDashboard/components/TeamDashActivityTab/TeamDashActivityTab.tsx @@ -2,10 +2,10 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import {TeamDashActivityTab_team$key} from '~/__generated__/TeamDashActivityTab_team.graphql' -import useTransition from '../../../../hooks/useTransition' -import MeetingCard from '../../../../components/MeetingCard' import DemoMeetingCard from '../../../../components/DemoMeetingCard' +import MeetingCard from '../../../../components/MeetingCard' import TutorialMeetingCard from '../../../../components/TutorialMeetingCard' +import useTransition from '../../../../hooks/useTransition' import TeamDashInsights from '../TeamDashInsights/TeamDashInsights' interface Props { diff --git a/packages/client/modules/teamDashboard/components/TeamDashHeader/TeamDashHeader.tsx b/packages/client/modules/teamDashboard/components/TeamDashHeader/TeamDashHeader.tsx index 86274843a65..d4b427dcffd 100644 --- a/packages/client/modules/teamDashboard/components/TeamDashHeader/TeamDashHeader.tsx +++ b/packages/client/modules/teamDashboard/components/TeamDashHeader/TeamDashHeader.tsx @@ -8,6 +8,7 @@ import {NavLink} from 'react-router-dom' import DashboardAvatars from '~/components/DashboardAvatars/DashboardAvatars' import AgendaToggle from '~/modules/teamDashboard/components/AgendaToggle/AgendaToggle' import makeMinWidthMediaQuery from '~/utils/makeMinWidthMediaQuery' +import {TeamDashHeader_team$key} from '../../../../__generated__/TeamDashHeader_team.graphql' import DashSectionHeader from '../../../../components/Dashboard/DashSectionHeader' import InviteTeamMemberAvatar from '../../../../components/InviteTeamMemberAvatar' import Tab from '../../../../components/Tab/Tab' @@ -15,7 +16,6 @@ import Tabs from '../../../../components/Tabs/Tabs' import useRouter from '../../../../hooks/useRouter' import {PALETTE} from '../../../../styles/paletteV3' import {Breakpoint} from '../../../../types/constEnums' -import {TeamDashHeader_team$key} from '../../../../__generated__/TeamDashHeader_team.graphql' const desktopBreakpoint = makeMinWidthMediaQuery(Breakpoint.SIDEBAR_LEFT) diff --git a/packages/client/modules/teamDashboard/components/TeamDashInsights/TeamDashInsights.tsx b/packages/client/modules/teamDashboard/components/TeamDashInsights/TeamDashInsights.tsx index 219fbe54e83..b44166bfa8d 100644 --- a/packages/client/modules/teamDashboard/components/TeamDashInsights/TeamDashInsights.tsx +++ b/packages/client/modules/teamDashboard/components/TeamDashInsights/TeamDashInsights.tsx @@ -2,8 +2,8 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import {TeamDashInsights_insights$key} from '~/__generated__/TeamDashInsights_insights.graphql' -import MostUsedEmojisCard from './MostUsedEmojisCard' import MeetingEngagementCard from './MeetingEngagementCard' +import MostUsedEmojisCard from './MostUsedEmojisCard' import TopRetroTemplatesCard from './TopRetroTemplatesCard' interface Props { diff --git a/packages/client/modules/teamDashboard/components/TeamDashInsights/TeamInsightsCard.tsx b/packages/client/modules/teamDashboard/components/TeamDashInsights/TeamInsightsCard.tsx index c4ffa985305..9d66fbc0fd2 100644 --- a/packages/client/modules/teamDashboard/components/TeamDashInsights/TeamInsightsCard.tsx +++ b/packages/client/modules/teamDashboard/components/TeamDashInsights/TeamInsightsCard.tsx @@ -1,15 +1,14 @@ +import {Info as InfoIcon, ThumbDown, ThumbUp} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' +import clsx from 'clsx' import React, {ReactNode, useState} from 'react' import {useFragment} from 'react-relay' -import Tooltip from '../../../../components/Tooltip' -import {Info as InfoIcon} from '@mui/icons-material' -import {ThumbUp, ThumbDown} from '@mui/icons-material' +import {TeamInsightsCard_insights$key} from '../../../../__generated__/TeamInsightsCard_insights.graphql' import FlatButton from '../../../../components/FlatButton' -import SendClientSideEvent from '../../../../utils/SendClientSideEvent' +import Tooltip from '../../../../components/Tooltip' import useAtmosphere from '../../../../hooks/useAtmosphere' -import {TeamInsightsCard_insights$key} from '../../../../__generated__/TeamInsightsCard_insights.graphql' import TeamInsightsId from '../../../../shared/gqlIds/TeamInsightsId' -import clsx from 'clsx' +import SendClientSideEvent from '../../../../utils/SendClientSideEvent' interface Props { title: string diff --git a/packages/client/modules/teamDashboard/components/TeamDashInsights/TopRetroTemplatesCard.tsx b/packages/client/modules/teamDashboard/components/TeamDashInsights/TopRetroTemplatesCard.tsx index aaf9bbd3e64..70b2522ada1 100644 --- a/packages/client/modules/teamDashboard/components/TeamDashInsights/TopRetroTemplatesCard.tsx +++ b/packages/client/modules/teamDashboard/components/TeamDashInsights/TopRetroTemplatesCard.tsx @@ -3,8 +3,8 @@ import React from 'react' import {useFragment} from 'react-relay' import {TopRetroTemplatesCard_insights$key} from '~/__generated__/TopRetroTemplatesCard_insights.graphql' import Tooltip from '../../../../components/Tooltip' -import TeamInsightsCard from './TeamInsightsCard' import plural from '../../../../utils/plural' +import TeamInsightsCard from './TeamInsightsCard' interface Props { teamInsightsRef: TopRetroTemplatesCard_insights$key diff --git a/packages/client/modules/teamDashboard/components/TeamDashMain/TeamDashMain.tsx b/packages/client/modules/teamDashboard/components/TeamDashMain/TeamDashMain.tsx index 9d1cb8125de..49165b16447 100644 --- a/packages/client/modules/teamDashboard/components/TeamDashMain/TeamDashMain.tsx +++ b/packages/client/modules/teamDashboard/components/TeamDashMain/TeamDashMain.tsx @@ -2,16 +2,16 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {PreloadedQuery, usePreloadedQuery} from 'react-relay' +import {Route, Switch} from 'react-router-dom' import {TeamDashMainQuery} from '~/__generated__/TeamDashMainQuery.graphql' import StartMeetingFAB from '../../../../components/StartMeetingFAB' import useDocumentTitle from '../../../../hooks/useDocumentTitle' +import getTeamIdFromPathname from '../../../../utils/getTeamIdFromPathname' import TeamTasksHeaderContainer from '../../containers/TeamTasksHeader/TeamTasksHeaderContainer' -import TeamDrawer from './TeamDrawer' -import TeamDashTasksTab from '../TeamDashTasksTab/TeamDashTasksTab' import TeamDashActivityTab from '../TeamDashActivityTab/TeamDashActivityTab' import TeamDashIntegrationsTab from '../TeamDashIntegrationsTab/TeamDashIntegrationsTab' -import {Route, Switch} from 'react-router-dom' -import getTeamIdFromPathname from '../../../../utils/getTeamIdFromPathname' +import TeamDashTasksTab from '../TeamDashTasksTab/TeamDashTasksTab' +import TeamDrawer from './TeamDrawer' const AbsoluteFab = styled(StartMeetingFAB)({ position: 'absolute' diff --git a/packages/client/modules/teamDashboard/components/TeamDashMain/TeamDrawer.tsx b/packages/client/modules/teamDashboard/components/TeamDashMain/TeamDrawer.tsx index 185b8a86c8d..629d63eb193 100644 --- a/packages/client/modules/teamDashboard/components/TeamDashMain/TeamDrawer.tsx +++ b/packages/client/modules/teamDashboard/components/TeamDashMain/TeamDrawer.tsx @@ -2,9 +2,9 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React, {useRef} from 'react' import {useFragment} from 'react-relay' -import LabelHeading from '~/components/LabelHeading/LabelHeading' import {TeamDrawer_viewer$key} from '~/__generated__/TeamDrawer_viewer.graphql' import {TeamDrawer as TeamDrawerType} from '~/__generated__/ToggleTeamDrawerMutation.graphql' +import LabelHeading from '~/components/LabelHeading/LabelHeading' import MassInvitationTokenLinkRoot from '../../../../components/MassInvitationTokenLinkRoot' import ResponsiveDashSidebar from '../../../../components/ResponsiveDashSidebar' import useAtmosphere from '../../../../hooks/useAtmosphere' diff --git a/packages/client/modules/teamDashboard/components/TeamDashMainRoot.tsx b/packages/client/modules/teamDashboard/components/TeamDashMainRoot.tsx index bdf90931725..e689777851d 100644 --- a/packages/client/modules/teamDashboard/components/TeamDashMainRoot.tsx +++ b/packages/client/modules/teamDashboard/components/TeamDashMainRoot.tsx @@ -1,12 +1,12 @@ import React, {Suspense} from 'react' -import useQueryLoaderNow from '../../../hooks/useQueryLoaderNow' -import useRouter from '../../../hooks/useRouter' +import setPreferredTeamId from '~/utils/relay/setPreferredTeamId' import teamDashMainQuery, { TeamDashMainQuery } from '../../../__generated__/TeamDashMainQuery.graphql' -import TeamDashMain from './TeamDashMain/TeamDashMain' -import setPreferredTeamId from '~/utils/relay/setPreferredTeamId' import useAtmosphere from '../../../hooks/useAtmosphere' +import useQueryLoaderNow from '../../../hooks/useQueryLoaderNow' +import useRouter from '../../../hooks/useRouter' +import TeamDashMain from './TeamDashMain/TeamDashMain' const TeamDashMainRoot = () => { const {match} = useRouter<{teamId: string}>() diff --git a/packages/client/modules/teamDashboard/components/TeamDashTasksTab/TeamDashTasksTab.tsx b/packages/client/modules/teamDashboard/components/TeamDashTasksTab/TeamDashTasksTab.tsx index beecd407edd..0b10307db31 100644 --- a/packages/client/modules/teamDashboard/components/TeamDashTasksTab/TeamDashTasksTab.tsx +++ b/packages/client/modules/teamDashboard/components/TeamDashTasksTab/TeamDashTasksTab.tsx @@ -2,14 +2,14 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import {TeamDashTasksTab_viewer$key} from '~/__generated__/TeamDashTasksTab_viewer.graphql' -import TeamColumnsContainer from '../../containers/TeamColumns/TeamColumnsContainer' import DashFilterToggle from '~/components/DashFilterToggle/DashFilterToggle' import DashNavControl from '../../../../components/DashNavControl/DashNavControl' -import useRouter from '../../../../hooks/useRouter' -import useMenu from '../../../../hooks/useMenu' +import DashSectionHeader from '../../../../components/Dashboard/DashSectionHeader' import {MenuPosition} from '../../../../hooks/useCoords' +import useMenu from '../../../../hooks/useMenu' +import useRouter from '../../../../hooks/useRouter' import lazyPreload from '../../../../utils/lazyPreload' -import DashSectionHeader from '../../../../components/Dashboard/DashSectionHeader' +import TeamColumnsContainer from '../../containers/TeamColumns/TeamColumnsContainer' const TeamDashTeamMemberMenu = lazyPreload( () => diff --git a/packages/client/modules/teamDashboard/components/TeamRoot.tsx b/packages/client/modules/teamDashboard/components/TeamRoot.tsx index 91f30abec73..4a76301379b 100644 --- a/packages/client/modules/teamDashboard/components/TeamRoot.tsx +++ b/packages/client/modules/teamDashboard/components/TeamRoot.tsx @@ -1,9 +1,9 @@ import React, {Suspense} from 'react' -import useQueryLoaderNow from '../../../hooks/useQueryLoaderNow' -import useRouter from '../../../hooks/useRouter' import teamContainerQuery, { TeamContainerQuery } from '../../../__generated__/TeamContainerQuery.graphql' +import useQueryLoaderNow from '../../../hooks/useQueryLoaderNow' +import useRouter from '../../../hooks/useRouter' import TeamContainer from '../containers/Team/TeamContainer' const TeamRoot = () => { diff --git a/packages/client/modules/teamDashboard/components/TeamSettings/TeamSettings.tsx b/packages/client/modules/teamDashboard/components/TeamSettings/TeamSettings.tsx index 62ffb8f934f..e59561f09fc 100644 --- a/packages/client/modules/teamDashboard/components/TeamSettings/TeamSettings.tsx +++ b/packages/client/modules/teamDashboard/components/TeamSettings/TeamSettings.tsx @@ -2,6 +2,7 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {PreloadedQuery, usePreloadedQuery} from 'react-relay' +import {TeamSettingsQuery} from '../../../../__generated__/TeamSettingsQuery.graphql' import Panel from '../../../../components/Panel/Panel' import PrimaryButton from '../../../../components/PrimaryButton' import Row from '../../../../components/Row/Row' @@ -9,7 +10,6 @@ import useDocumentTitle from '../../../../hooks/useDocumentTitle' import useRouter from '../../../../hooks/useRouter' import {PALETTE} from '../../../../styles/paletteV3' import {Layout, TierLabel} from '../../../../types/constEnums' -import {TeamSettingsQuery} from '../../../../__generated__/TeamSettingsQuery.graphql' import ArchiveTeam from '../ArchiveTeam/ArchiveTeam' const TeamSettingsLayout = styled('div')({ diff --git a/packages/client/modules/teamDashboard/components/TeamSettingsRoot.tsx b/packages/client/modules/teamDashboard/components/TeamSettingsRoot.tsx index 99442780b81..4e5150bd2b2 100644 --- a/packages/client/modules/teamDashboard/components/TeamSettingsRoot.tsx +++ b/packages/client/modules/teamDashboard/components/TeamSettingsRoot.tsx @@ -1,10 +1,10 @@ import React, {Suspense} from 'react' -import useQueryLoaderNow from '../../../hooks/useQueryLoaderNow' -import {LoaderSize} from '../../../types/constEnums' -import {Loader} from '../../../utils/relay/renderLoader' import teamSettingsQuery, { TeamSettingsQuery } from '../../../__generated__/TeamSettingsQuery.graphql' +import useQueryLoaderNow from '../../../hooks/useQueryLoaderNow' +import {LoaderSize} from '../../../types/constEnums' +import {Loader} from '../../../utils/relay/renderLoader' import TeamSettings from './TeamSettings/TeamSettings' interface Props { diff --git a/packages/client/modules/teamDashboard/components/UnpaidTeamModal/UnpaidTeamModal.tsx b/packages/client/modules/teamDashboard/components/UnpaidTeamModal/UnpaidTeamModal.tsx index 0017042dde4..bff4ca38f97 100644 --- a/packages/client/modules/teamDashboard/components/UnpaidTeamModal/UnpaidTeamModal.tsx +++ b/packages/client/modules/teamDashboard/components/UnpaidTeamModal/UnpaidTeamModal.tsx @@ -1,7 +1,9 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' +import {UpgradeCTALocationEnumType} from 'parabol-server/graphql/types/UpgradeCTALocationEnum' import React, {useEffect} from 'react' import {PreloadedQuery, usePreloadedQuery} from 'react-relay' +import {UnpaidTeamModalQuery} from '../../../../__generated__/UnpaidTeamModalQuery.graphql' import DashModal from '../../../../components/Dashboard/DashModal' import DialogContent from '../../../../components/DialogContent' import DialogTitle from '../../../../components/DialogTitle' @@ -9,11 +11,9 @@ import IconLabel from '../../../../components/IconLabel' import PrimaryButton from '../../../../components/PrimaryButton' import useAtmosphere from '../../../../hooks/useAtmosphere' import useRouter from '../../../../hooks/useRouter' -import SendClientSideEvent from '../../../../utils/SendClientSideEvent' import {PALETTE} from '../../../../styles/paletteV3' import {ExternalLinks, Threshold} from '../../../../types/constEnums' -import {UpgradeCTALocationEnumType} from 'parabol-server/graphql/types/UpgradeCTALocationEnum' -import {UnpaidTeamModalQuery} from '../../../../__generated__/UnpaidTeamModalQuery.graphql' +import SendClientSideEvent from '../../../../utils/SendClientSideEvent' const StyledButton = styled(PrimaryButton)({ margin: '1.5rem auto 0' diff --git a/packages/client/modules/teamDashboard/containers/Team/TeamContainer.tsx b/packages/client/modules/teamDashboard/containers/Team/TeamContainer.tsx index 49bc74e5923..de50dd49dcf 100644 --- a/packages/client/modules/teamDashboard/containers/Team/TeamContainer.tsx +++ b/packages/client/modules/teamDashboard/containers/Team/TeamContainer.tsx @@ -4,8 +4,8 @@ import {PreloadedQuery, usePreloadedQuery} from 'react-relay' import {Route} from 'react-router' import {matchPath, Switch} from 'react-router-dom' import ErrorBoundary from '~/components/ErrorBoundary' -import useRouter from '../../../../hooks/useRouter' import {TeamContainerQuery} from '../../../../__generated__/TeamContainerQuery.graphql' +import useRouter from '../../../../hooks/useRouter' import Team from '../../components/Team/Team' const TeamDashMain = lazy( diff --git a/packages/client/modules/teamDashboard/containers/TeamColumns/TeamColumnsContainer.tsx b/packages/client/modules/teamDashboard/containers/TeamColumns/TeamColumnsContainer.tsx index 05543bb0b0b..72ff4bc1337 100644 --- a/packages/client/modules/teamDashboard/containers/TeamColumns/TeamColumnsContainer.tsx +++ b/packages/client/modules/teamDashboard/containers/TeamColumns/TeamColumnsContainer.tsx @@ -2,10 +2,10 @@ import graphql from 'babel-plugin-relay/macro' import React, {useMemo} from 'react' import {useFragment} from 'react-relay' import getSafeRegex from '~/utils/getSafeRegex' +import {TeamColumnsContainer_viewer$key} from '../../../../__generated__/TeamColumnsContainer_viewer.graphql' import TaskColumns from '../../../../components/TaskColumns/TaskColumns' import useAtmosphere from '../../../../hooks/useAtmosphere' import toTeamMemberId from '../../../../utils/relay/toTeamMemberId' -import {TeamColumnsContainer_viewer$key} from '../../../../__generated__/TeamColumnsContainer_viewer.graphql' interface Props { viewer: TeamColumnsContainer_viewer$key diff --git a/packages/client/modules/teamDashboard/containers/TeamIntegrationsRoot/TeamIntegrationsRoot.tsx b/packages/client/modules/teamDashboard/containers/TeamIntegrationsRoot/TeamIntegrationsRoot.tsx index 89739d6e260..27f62051f16 100644 --- a/packages/client/modules/teamDashboard/containers/TeamIntegrationsRoot/TeamIntegrationsRoot.tsx +++ b/packages/client/modules/teamDashboard/containers/TeamIntegrationsRoot/TeamIntegrationsRoot.tsx @@ -1,8 +1,8 @@ import React, {Suspense} from 'react' -import {useQueryLoaderNowWithRetry} from '../../../../hooks/useQueryLoaderNow' import providerListQuery, { ProviderListQuery } from '../../../../__generated__/ProviderListQuery.graphql' +import {useQueryLoaderNowWithRetry} from '../../../../hooks/useQueryLoaderNow' import ProviderList from '../../components/ProviderList/ProviderList' interface Props { diff --git a/packages/client/modules/teamDashboard/containers/TeamTasksHeader/TeamTasksHeaderContainer.tsx b/packages/client/modules/teamDashboard/containers/TeamTasksHeader/TeamTasksHeaderContainer.tsx index c20d68e87e9..bf71e5944e9 100644 --- a/packages/client/modules/teamDashboard/containers/TeamTasksHeader/TeamTasksHeaderContainer.tsx +++ b/packages/client/modules/teamDashboard/containers/TeamTasksHeader/TeamTasksHeaderContainer.tsx @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import React, {useEffect} from 'react' import {useFragment} from 'react-relay' -import filterTeamMember from '~/utils/relay/filterTeamMember' import {TeamTasksHeaderContainer_team$key} from '~/__generated__/TeamTasksHeaderContainer_team.graphql' +import filterTeamMember from '~/utils/relay/filterTeamMember' import useAtmosphere from '../../../../hooks/useAtmosphere' import TeamTasksHeader from '../../components/TeamDashHeader/TeamDashHeader' diff --git a/packages/client/modules/teamDashboard/containers/UnpaidTeamModal/UnpaidTeamModalRoot.tsx b/packages/client/modules/teamDashboard/containers/UnpaidTeamModal/UnpaidTeamModalRoot.tsx index c0604bb530f..c7abd8412ad 100644 --- a/packages/client/modules/teamDashboard/containers/UnpaidTeamModal/UnpaidTeamModalRoot.tsx +++ b/packages/client/modules/teamDashboard/containers/UnpaidTeamModal/UnpaidTeamModalRoot.tsx @@ -1,9 +1,9 @@ import React, {Suspense} from 'react' -import useQueryLoaderNow from '../../../../hooks/useQueryLoaderNow' -import {Loader} from '../../../../utils/relay/renderLoader' import unpaidTeamModalQuery, { UnpaidTeamModalQuery } from '../../../../__generated__/UnpaidTeamModalQuery.graphql' +import useQueryLoaderNow from '../../../../hooks/useQueryLoaderNow' +import {Loader} from '../../../../utils/relay/renderLoader' import UnpaidTeamModal from '../../components/UnpaidTeamModal/UnpaidTeamModal' interface Props { diff --git a/packages/client/modules/userDashboard/components/CreditCardModal/CreditCardForm.tsx b/packages/client/modules/userDashboard/components/CreditCardModal/CreditCardForm.tsx index d9670495c89..05f9f708770 100644 --- a/packages/client/modules/userDashboard/components/CreditCardModal/CreditCardForm.tsx +++ b/packages/client/modules/userDashboard/components/CreditCardModal/CreditCardForm.tsx @@ -5,10 +5,10 @@ import PrimaryButton from '../../../../components/PrimaryButton' import UpgradeCreditCardFormField from '../../../../components/UpgradeCreditCardFormField' import UpgradeCreditCardNumberFormField from '../../../../components/UpgradeCreditCardNumberFormField' import useAtmosphere from '../../../../hooks/useAtmosphere' +import useClientSideTrack from '../../../../hooks/useClientSideTrack' import useForm from '../../../../hooks/useForm' import useMutationProps from '../../../../hooks/useMutationProps' import useScript from '../../../../hooks/useScript' -import useClientSideTrack from '../../../../hooks/useClientSideTrack' import OldUpdateCreditCardMutation from '../../../../mutations/OldUpdateCreditCardMutation' import OldUpgradeToTeamTierMutation from '../../../../mutations/OldUpgradeToTeamTierMutation' import {CompletedHandler} from '../../../../types/relayMutations' diff --git a/packages/client/modules/userDashboard/components/GcalModal/DateTimePickers.tsx b/packages/client/modules/userDashboard/components/GcalModal/DateTimePickers.tsx index a080b21e446..4348f8099bb 100644 --- a/packages/client/modules/userDashboard/components/GcalModal/DateTimePickers.tsx +++ b/packages/client/modules/userDashboard/components/GcalModal/DateTimePickers.tsx @@ -1,8 +1,8 @@ -import React from 'react' -import {Dayjs} from 'dayjs' -import {LocalizationProvider} from '@mui/x-date-pickers/LocalizationProvider' -import {AdapterDayjs} from '@mui/x-date-pickers/AdapterDayjs' import {DatePicker, TimePicker} from '@mui/x-date-pickers' +import {AdapterDayjs} from '@mui/x-date-pickers/AdapterDayjs' +import {LocalizationProvider} from '@mui/x-date-pickers/LocalizationProvider' +import {Dayjs} from 'dayjs' +import React from 'react' import {PALETTE} from '../../../../styles/paletteV3' const customStyles = { diff --git a/packages/client/modules/userDashboard/components/GcalModal/GcalModal.tsx b/packages/client/modules/userDashboard/components/GcalModal/GcalModal.tsx index 40c3c047ffc..21b77a164ab 100644 --- a/packages/client/modules/userDashboard/components/GcalModal/GcalModal.tsx +++ b/packages/client/modules/userDashboard/components/GcalModal/GcalModal.tsx @@ -1,27 +1,27 @@ import styled from '@emotion/styled' +import {Close} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import dayjs from 'dayjs' import React, {useEffect, useState} from 'react' +import {useFragment} from 'react-relay' +import {GcalModal_team$key} from '../../../../__generated__/GcalModal_team.graphql' +import {CreateGcalEventInput} from '../../../../__generated__/StartRetrospectiveMutation.graphql' +import {GcalVideoTypeEnum} from '../../../../__generated__/StartTeamPromptMutation.graphql' +import Checkbox from '../../../../components/Checkbox' +import DialogContainer from '../../../../components/DialogContainer' import DialogContent from '../../../../components/DialogContent' import DialogTitle from '../../../../components/DialogTitle' -import {DialogActions} from '../../../../ui/Dialog/DialogActions' +import BasicTextArea from '../../../../components/InputField/BasicTextArea' +import PlainButton from '../../../../components/PlainButton/PlainButton' import PrimaryButton from '../../../../components/PrimaryButton' -import {PALETTE} from '../../../../styles/paletteV3' -import DateTimePickers from './DateTimePickers' -import Checkbox from '../../../../components/Checkbox' +import StyledError from '../../../../components/StyledError' import useForm from '../../../../hooks/useForm' -import Legitity from '../../../../validation/Legitity' -import {CreateGcalEventInput} from '../../../../__generated__/StartRetrospectiveMutation.graphql' -import {GcalModal_team$key} from '../../../../__generated__/GcalModal_team.graphql' -import BasicTextArea from '../../../../components/InputField/BasicTextArea' +import {PALETTE} from '../../../../styles/paletteV3' +import {DialogActions} from '../../../../ui/Dialog/DialogActions' import parseEmailAddressList from '../../../../utils/parseEmailAddressList' -import {useFragment} from 'react-relay' -import StyledError from '../../../../components/StyledError' -import DialogContainer from '../../../../components/DialogContainer' -import {Close} from '@mui/icons-material' -import PlainButton from '../../../../components/PlainButton/PlainButton' +import Legitity from '../../../../validation/Legitity' +import DateTimePickers from './DateTimePickers' import VideoConferencing from './VideoConferencing' -import {GcalVideoTypeEnum} from '../../../../__generated__/StartTeamPromptMutation.graphql' const Wrapper = styled('div')({ display: 'flex', diff --git a/packages/client/modules/userDashboard/components/GcalModal/GcalSettings.tsx b/packages/client/modules/userDashboard/components/GcalModal/GcalSettings.tsx index de4c3c70be1..ce464d188e3 100644 --- a/packages/client/modules/userDashboard/components/GcalModal/GcalSettings.tsx +++ b/packages/client/modules/userDashboard/components/GcalModal/GcalSettings.tsx @@ -2,15 +2,15 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import dayjs from 'dayjs' import React, {useEffect, useState} from 'react' -import DateTimePickers from './DateTimePickers' -import Checkbox from '../../../../components/Checkbox' +import {useFragment} from 'react-relay' import {GcalModal_team$key} from '../../../../__generated__/GcalModal_team.graphql' +import {GcalVideoTypeEnum} from '../../../../__generated__/StartTeamPromptMutation.graphql' +import Checkbox from '../../../../components/Checkbox' import BasicTextArea from '../../../../components/InputField/BasicTextArea' -import parseEmailAddressList from '../../../../utils/parseEmailAddressList' -import {useFragment} from 'react-relay' import StyledError from '../../../../components/StyledError' +import parseEmailAddressList from '../../../../utils/parseEmailAddressList' +import DateTimePickers from './DateTimePickers' import VideoConferencing from './VideoConferencing' -import {GcalVideoTypeEnum} from '../../../../__generated__/StartTeamPromptMutation.graphql' const ErrorMessage = styled(StyledError)({ textAlign: 'left', diff --git a/packages/client/modules/userDashboard/components/GcalModal/VideoConferencing.tsx b/packages/client/modules/userDashboard/components/GcalModal/VideoConferencing.tsx index 2c86796ee9f..f941de9d740 100644 --- a/packages/client/modules/userDashboard/components/GcalModal/VideoConferencing.tsx +++ b/packages/client/modules/userDashboard/components/GcalModal/VideoConferencing.tsx @@ -1,14 +1,14 @@ -import ArrowDropDownIcon from '@mui/icons-material/ArrowDropDown' import {Close} from '@mui/icons-material' +import ArrowDropDownIcon from '@mui/icons-material/ArrowDropDown' import React from 'react' +import {GcalVideoTypeEnum} from '../../../../__generated__/StartTeamPromptMutation.graphql' +import GoogleMeetProviderLogo from '../../../../components/GoogleMeetProviderLogo' +import RaisedButton from '../../../../components/RaisedButton' +import ZoomProviderLogo from '../../../../components/ZoomProviderLogo' import {MenuPosition} from '../../../../hooks/useCoords' import useMenu from '../../../../hooks/useMenu' -import VideoConferencingMenu from './VideoConferencingMenu' -import RaisedButton from '../../../../components/RaisedButton' import {Elevation} from '../../../../styles/elevation' -import GoogleMeetProviderLogo from '../../../../components/GoogleMeetProviderLogo' -import ZoomProviderLogo from '../../../../components/ZoomProviderLogo' -import {GcalVideoTypeEnum} from '../../../../__generated__/StartTeamPromptMutation.graphql' +import VideoConferencingMenu from './VideoConferencingMenu' type Props = { videoType: GcalVideoTypeEnum | null diff --git a/packages/client/modules/userDashboard/components/GcalModal/VideoConferencingMenu.tsx b/packages/client/modules/userDashboard/components/GcalModal/VideoConferencingMenu.tsx index 403ecc966c2..8f6f67e68bb 100644 --- a/packages/client/modules/userDashboard/components/GcalModal/VideoConferencingMenu.tsx +++ b/packages/client/modules/userDashboard/components/GcalModal/VideoConferencingMenu.tsx @@ -1,10 +1,10 @@ import React from 'react' +import {GcalVideoTypeEnum} from '../../../../__generated__/StartTeamPromptMutation.graphql' +import GoogleMeetProviderLogo from '../../../../components/GoogleMeetProviderLogo' import Menu from '../../../../components/Menu' import MenuItem from '../../../../components/MenuItem' -import {MenuProps} from '../../../../hooks/useMenu' -import GoogleMeetProviderLogo from '../../../../components/GoogleMeetProviderLogo' import ZoomProviderLogo from '../../../../components/ZoomProviderLogo' -import {GcalVideoTypeEnum} from '../../../../__generated__/StartTeamPromptMutation.graphql' +import {MenuProps} from '../../../../hooks/useMenu' type Props = { menuProps: MenuProps diff --git a/packages/client/modules/userDashboard/components/OrgAuthentication/OrgAuthentication.tsx b/packages/client/modules/userDashboard/components/OrgAuthentication/OrgAuthentication.tsx index b357811a1e1..3a71858359a 100644 --- a/packages/client/modules/userDashboard/components/OrgAuthentication/OrgAuthentication.tsx +++ b/packages/client/modules/userDashboard/components/OrgAuthentication/OrgAuthentication.tsx @@ -1,11 +1,11 @@ -import graphql from 'babel-plugin-relay/macro' import styled from '@emotion/styled' -import {ElementWidth} from '../../../../types/constEnums' +import graphql from 'babel-plugin-relay/macro' import React from 'react' import {PreloadedQuery, usePreloadedQuery} from 'react-relay' import {OrgAuthenticationQuery} from '../../../../__generated__/OrgAuthenticationQuery.graphql' import DialogTitle from '../../../../components/DialogTitle' import Panel from '../../../../components/Panel/Panel' +import {ElementWidth} from '../../../../types/constEnums' import OrgAuthenticationMetadata from './OrgAuthenticationMetadata' import OrgAuthenticationSSOFrame from './OrgAuthenticationSSOFrame' import OrgAuthenticationSignOnUrl from './OrgAuthenticationSignOnUrl' diff --git a/packages/client/modules/userDashboard/components/OrgBilling/BillingForm.tsx b/packages/client/modules/userDashboard/components/OrgBilling/BillingForm.tsx index c7e12b65530..a70094f3c44 100644 --- a/packages/client/modules/userDashboard/components/OrgBilling/BillingForm.tsx +++ b/packages/client/modules/userDashboard/components/OrgBilling/BillingForm.tsx @@ -1,22 +1,22 @@ -import React, {useState} from 'react' import styled from '@emotion/styled' import { - CardNumberElement, - CardExpiryElement, CardCvcElement, - useStripe, - useElements + CardExpiryElement, + CardNumberElement, + useElements, + useStripe } from '@stripe/react-stripe-js' +import {StripeElementChangeEvent} from '@stripe/stripe-js' +import React, {useState} from 'react' +import {CreateStripeSubscriptionMutation$data} from '../../../../__generated__/CreateStripeSubscriptionMutation.graphql' +import Ellipsis from '../../../../components/Ellipsis/Ellipsis' import PrimaryButton from '../../../../components/PrimaryButton' -import {PALETTE} from '../../../../styles/paletteV3' +import StyledError from '../../../../components/StyledError' import useAtmosphere from '../../../../hooks/useAtmosphere' import useMutationProps from '../../../../hooks/useMutationProps' -import StyledError from '../../../../components/StyledError' -import SendClientSideEvent from '../../../../utils/SendClientSideEvent' -import {StripeElementChangeEvent} from '@stripe/stripe-js' import CreateStripeSubscriptionMutation from '../../../../mutations/CreateStripeSubscriptionMutation' -import {CreateStripeSubscriptionMutation$data} from '../../../../__generated__/CreateStripeSubscriptionMutation.graphql' -import Ellipsis from '../../../../components/Ellipsis/Ellipsis' +import {PALETTE} from '../../../../styles/paletteV3' +import SendClientSideEvent from '../../../../utils/SendClientSideEvent' const ButtonBlock = styled('div')({ display: 'flex', diff --git a/packages/client/modules/userDashboard/components/OrgBilling/BillingLeader.tsx b/packages/client/modules/userDashboard/components/OrgBilling/BillingLeader.tsx index 79b5c4d6d86..1e36d1519c8 100644 --- a/packages/client/modules/userDashboard/components/OrgBilling/BillingLeader.tsx +++ b/packages/client/modules/userDashboard/components/OrgBilling/BillingLeader.tsx @@ -1,27 +1,27 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' -import Avatar from '../../../../components/Avatar/Avatar' import React from 'react' +import {useFragment} from 'react-relay' import {BillingLeader_orgUser$key} from '../../../../__generated__/BillingLeader_orgUser.graphql' import {BillingLeader_organization$key} from '../../../../__generated__/BillingLeader_organization.graphql' +import Avatar from '../../../../components/Avatar/Avatar' +import BillingLeaderMenu from '../../../../components/BillingLeaderMenu' +import FlatButton from '../../../../components/FlatButton' +import IconLabel from '../../../../components/IconLabel' import Row from '../../../../components/Row/Row' -import {ElementWidth} from '../../../../types/constEnums' -import RowInfoHeading from '../../../../components/Row/RowInfoHeading' -import RowInfoHeader from '../../../../components/Row/RowInfoHeader' import RowActions from '../../../../components/Row/RowActions' -import FlatButton from '../../../../components/FlatButton' import RowInfo from '../../../../components/Row/RowInfo' -import {useFragment} from 'react-relay' -import IconLabel from '../../../../components/IconLabel' -import lazyPreload from '../../../../utils/lazyPreload' -import useMenu from '../../../../hooks/useMenu' -import BillingLeaderMenu from '../../../../components/BillingLeaderMenu' +import RowInfoHeader from '../../../../components/Row/RowInfoHeader' +import RowInfoHeading from '../../../../components/Row/RowInfoHeading' +import BaseTag from '../../../../components/Tag/BaseTag' import {MenuPosition} from '../../../../hooks/useCoords' +import useMenu from '../../../../hooks/useMenu' +import useModal from '../../../../hooks/useModal' import useTooltip from '../../../../hooks/useTooltip' +import {ElementWidth} from '../../../../types/constEnums' +import lazyPreload from '../../../../utils/lazyPreload' import LeaveOrgModal from '../LeaveOrgModal/LeaveOrgModal' -import useModal from '../../../../hooks/useModal' import RemoveFromOrgModal from '../RemoveFromOrgModal/RemoveFromOrgModal' -import BaseTag from '../../../../components/Tag/BaseTag' const StyledRow = styled(Row)<{isFirstRow: boolean}>(({isFirstRow}) => ({ padding: '12px 16px', diff --git a/packages/client/modules/userDashboard/components/OrgBilling/BillingLeaders.tsx b/packages/client/modules/userDashboard/components/OrgBilling/BillingLeaders.tsx index 193c1e74ed2..935b199cf86 100644 --- a/packages/client/modules/userDashboard/components/OrgBilling/BillingLeaders.tsx +++ b/packages/client/modules/userDashboard/components/OrgBilling/BillingLeaders.tsx @@ -1,19 +1,19 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React, {useState} from 'react' -import BillingLeader from './BillingLeader' +import {useFragment} from 'react-relay' +import {BillingLeaders_organization$key} from '../../../../__generated__/BillingLeaders_organization.graphql' +import FlatButton from '../../../../components/FlatButton' +import IconLabel from '../../../../components/IconLabel' import Panel from '../../../../components/Panel/Panel' import Row from '../../../../components/Row/Row' +import RowInfo from '../../../../components/Row/RowInfo' +import RowInfoHeader from '../../../../components/Row/RowInfoHeader' +import RowInfoHeading from '../../../../components/Row/RowInfoHeading' import {PALETTE} from '../../../../styles/paletteV3' import {ElementWidth} from '../../../../types/constEnums' -import RowInfoHeading from '../../../../components/Row/RowInfoHeading' -import RowInfoHeader from '../../../../components/Row/RowInfoHeader' -import FlatButton from '../../../../components/FlatButton' -import RowInfo from '../../../../components/Row/RowInfo' -import {useFragment} from 'react-relay' -import {BillingLeaders_organization$key} from '../../../../__generated__/BillingLeaders_organization.graphql' -import IconLabel from '../../../../components/IconLabel' import plural from '../../../../utils/plural' +import BillingLeader from './BillingLeader' import NewBillingLeaderInput from './NewBillingLeaderInput' const StyledPanel = styled(Panel)({ diff --git a/packages/client/modules/userDashboard/components/OrgBilling/DowngradeModal.tsx b/packages/client/modules/userDashboard/components/OrgBilling/DowngradeModal.tsx index 93020f9a2a3..3f00b0790a7 100644 --- a/packages/client/modules/userDashboard/components/OrgBilling/DowngradeModal.tsx +++ b/packages/client/modules/userDashboard/components/OrgBilling/DowngradeModal.tsx @@ -1,26 +1,25 @@ import styled from '@emotion/styled' -import {Error as ErrorIcon} from '@mui/icons-material' -import {Close} from '@mui/icons-material' +import {Close, Error as ErrorIcon} from '@mui/icons-material' import {Checkbox} from '@mui/material' +import graphql from 'babel-plugin-relay/macro' import React, {useState} from 'react' +import {useFragment} from 'react-relay' +import {ReadableReasonToDowngradeEnum} from '../../../../../server/graphql/types/ReasonToDowngrade' +import {DowngradeModal_organization$key} from '../../../../__generated__/DowngradeModal_organization.graphql' import DialogContainer from '../../../../components/DialogContainer' import DialogContent from '../../../../components/DialogContent' import DialogTitle from '../../../../components/DialogTitle' import PlainButton from '../../../../components/PlainButton/PlainButton' import useAtmosphere from '../../../../hooks/useAtmosphere' +import useMutationProps from '../../../../hooks/useMutationProps' +import DowngradeToStarterMutation from '../../../../mutations/DowngradeToStarterMutation' import {PALETTE} from '../../../../styles/paletteV3' +import SendClientSideEvent from '../../../../utils/SendClientSideEvent' import { + TeamBenefits, readableReasonsToDowngrade, - reasonsToDowngradeLookup, - TeamBenefits + reasonsToDowngradeLookup } from '../../../../utils/constants' -import DowngradeToStarterMutation from '../../../../mutations/DowngradeToStarterMutation' -import {useFragment} from 'react-relay' -import graphql from 'babel-plugin-relay/macro' -import useMutationProps from '../../../../hooks/useMutationProps' -import SendClientSideEvent from '../../../../utils/SendClientSideEvent' -import {DowngradeModal_organization$key} from '../../../../__generated__/DowngradeModal_organization.graphql' -import {ReadableReasonToDowngradeEnum} from '../../../../../server/graphql/types/ReasonToDowngrade' const StyledDialogContainer = styled(DialogContainer)({ padding: 8 diff --git a/packages/client/modules/userDashboard/components/OrgBilling/NewBillingLeaderInput.tsx b/packages/client/modules/userDashboard/components/OrgBilling/NewBillingLeaderInput.tsx index 42dfb47317b..0d7bf3a8acc 100644 --- a/packages/client/modules/userDashboard/components/OrgBilling/NewBillingLeaderInput.tsx +++ b/packages/client/modules/userDashboard/components/OrgBilling/NewBillingLeaderInput.tsx @@ -3,15 +3,15 @@ import {Person} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React, {useEffect, useRef} from 'react' import {useFragment} from 'react-relay' +import {NewBillingLeaderInput_organization$key} from '~/__generated__/NewBillingLeaderInput_organization.graphql' import {MenuPosition} from '~/hooks/useCoords' import useMenu from '~/hooks/useMenu' import {PALETTE} from '~/styles/paletteV3' -import {NewBillingLeaderInput_organization$key} from '~/__generated__/NewBillingLeaderInput_organization.graphql' import StyledError from '../../../../components/StyledError' import useForm from '../../../../hooks/useForm' import {PortalStatus} from '../../../../hooks/usePortal' -import NewBillingLeaderMenu from './NewBillingLeaderMenu' import {ElementWidth} from '../../../../types/constEnums' +import NewBillingLeaderMenu from './NewBillingLeaderMenu' const StyledIcon = styled(Person)({ color: PALETTE.SKY_500, diff --git a/packages/client/modules/userDashboard/components/OrgBilling/NewBillingLeaderMenu.tsx b/packages/client/modules/userDashboard/components/OrgBilling/NewBillingLeaderMenu.tsx index db19ca6093e..44c3f2b95b1 100644 --- a/packages/client/modules/userDashboard/components/OrgBilling/NewBillingLeaderMenu.tsx +++ b/packages/client/modules/userDashboard/components/OrgBilling/NewBillingLeaderMenu.tsx @@ -1,21 +1,21 @@ +import graphql from 'babel-plugin-relay/macro' import React, {forwardRef, useMemo} from 'react' -import Menu from '../../../../components/Menu' -import MenuItem from '../../../../components/MenuItem' -import MenuItemLabel from '../../../../components/MenuItemLabel' -import {MenuProps} from '../../../../hooks/useMenu' import {useFragment} from 'react-relay' -import graphql from 'babel-plugin-relay/macro' import { NewBillingLeaderMenu_organization$data, NewBillingLeaderMenu_organization$key } from '~/__generated__/NewBillingLeaderMenu_organization.graphql' import Avatar from '../../../../components/Avatar/Avatar' -import TypeAheadLabel from '../../../../components/TypeAheadLabel' -import useFilteredItems from '../../../../hooks/useFilteredItems' import {EmptyDropdownMenuItemLabel} from '../../../../components/EmptyDropdownMenuItemLabel' -import SetOrgUserRoleMutation from '../../../../mutations/SetOrgUserRoleMutation' +import Menu from '../../../../components/Menu' +import MenuItem from '../../../../components/MenuItem' +import MenuItemLabel from '../../../../components/MenuItemLabel' +import TypeAheadLabel from '../../../../components/TypeAheadLabel' import useAtmosphere from '../../../../hooks/useAtmosphere' +import useFilteredItems from '../../../../hooks/useFilteredItems' +import {MenuProps} from '../../../../hooks/useMenu' import useMutationProps from '../../../../hooks/useMutationProps' +import SetOrgUserRoleMutation from '../../../../mutations/SetOrgUserRoleMutation' interface Props { menuProps: MenuProps diff --git a/packages/client/modules/userDashboard/components/OrgBilling/OrgBillingDangerZone.tsx b/packages/client/modules/userDashboard/components/OrgBilling/OrgBillingDangerZone.tsx index 998048c07d5..4a8eafe5035 100644 --- a/packages/client/modules/userDashboard/components/OrgBilling/OrgBillingDangerZone.tsx +++ b/packages/client/modules/userDashboard/components/OrgBilling/OrgBillingDangerZone.tsx @@ -3,8 +3,8 @@ import {Email as EmailIcon} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' -import ArchiveOrganization from '~/modules/teamDashboard/components/ArchiveTeam/ArchiveOrganization' import {OrgBillingDangerZone_organization$key} from '~/__generated__/OrgBillingDangerZone_organization.graphql' +import ArchiveOrganization from '~/modules/teamDashboard/components/ArchiveTeam/ArchiveOrganization' import Panel from '../../../../components/Panel/Panel' import {PALETTE} from '../../../../styles/paletteV3' import {ElementWidth, Layout} from '../../../../types/constEnums' diff --git a/packages/client/modules/userDashboard/components/OrgBilling/OrgBillingInvoices.tsx b/packages/client/modules/userDashboard/components/OrgBilling/OrgBillingInvoices.tsx index bacc91f9508..cc13cdee052 100644 --- a/packages/client/modules/userDashboard/components/OrgBilling/OrgBillingInvoices.tsx +++ b/packages/client/modules/userDashboard/components/OrgBilling/OrgBillingInvoices.tsx @@ -3,10 +3,10 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {usePaginationFragment} from 'react-relay' import {OrgBillingInvoices_query$key} from '~/__generated__/OrgBillingInvoices_query.graphql' +import {OrgBillingInvoicesPaginationQuery} from '../../../../__generated__/OrgBillingInvoicesPaginationQuery.graphql' import Panel from '../../../../components/Panel/Panel' import SecondaryButton from '../../../../components/SecondaryButton' import {ElementWidth, Layout} from '../../../../types/constEnums' -import {OrgBillingInvoicesPaginationQuery} from '../../../../__generated__/OrgBillingInvoicesPaginationQuery.graphql' import InvoiceRow from '../InvoiceRow/InvoiceRow' const StyledPanel = styled(Panel)<{isWide: boolean}>(({isWide}) => ({ diff --git a/packages/client/modules/userDashboard/components/OrgBilling/OrgDetails.tsx b/packages/client/modules/userDashboard/components/OrgBilling/OrgDetails.tsx index 6fea1869a96..c584d13b5b2 100644 --- a/packages/client/modules/userDashboard/components/OrgBilling/OrgDetails.tsx +++ b/packages/client/modules/userDashboard/components/OrgBilling/OrgDetails.tsx @@ -1,15 +1,15 @@ import graphql from 'babel-plugin-relay/macro' import React, {Suspense} from 'react' import {useFragment} from 'react-relay' +import {OrgDetails_organization$key} from '../../../../__generated__/OrgDetails_organization.graphql' +import Avatar from '../../../../components/Avatar/Avatar' +import EditableAvatar from '../../../../components/EditableAvatar/EditableAvatar' +import EditableOrgName from '../../../../components/EditableOrgName' import OrgAvatarInput from '../../../../components/OrgAvatarInput' import useModal from '../../../../hooks/useModal' -import {OrgDetails_organization$key} from '../../../../__generated__/OrgDetails_organization.graphql' -import OrgBillingDangerZone from './OrgBillingDangerZone' import defaultOrgAvatar from '../../../../styles/theme/images/avatar-organization.svg' -import EditableOrgName from '../../../../components/EditableOrgName' import OrganizationDetails from '../Organization/OrganizationDetails' -import Avatar from '../../../../components/Avatar/Avatar' -import EditableAvatar from '../../../../components/EditableAvatar/EditableAvatar' +import OrgBillingDangerZone from './OrgBillingDangerZone' type Props = { organizationRef: OrgDetails_organization$key diff --git a/packages/client/modules/userDashboard/components/OrgBilling/OrgPlan.tsx b/packages/client/modules/userDashboard/components/OrgBilling/OrgPlan.tsx index aa6101a8847..af763e72a3c 100644 --- a/packages/client/modules/userDashboard/components/OrgBilling/OrgPlan.tsx +++ b/packages/client/modules/userDashboard/components/OrgBilling/OrgPlan.tsx @@ -1,13 +1,13 @@ -import React, {useState} from 'react' +import styled from '@emotion/styled' import {Info} from '@mui/icons-material' -import {Elevation} from '../../../../styles/elevation' -import BaseButton from '../../../../components/BaseButton' -import {Radius} from '../../../../types/constEnums' -import {PALETTE} from '../../../../styles/paletteV3' +import React, {useState} from 'react' import {TierEnum} from '../../../../__generated__/OrganizationSubscription.graphql' -import styled from '@emotion/styled' -import useTooltip from '../../../../hooks/useTooltip' +import BaseButton from '../../../../components/BaseButton' import {MenuPosition} from '../../../../hooks/useCoords' +import useTooltip from '../../../../hooks/useTooltip' +import {Elevation} from '../../../../styles/elevation' +import {PALETTE} from '../../../../styles/paletteV3' +import {Radius} from '../../../../types/constEnums' const PlanTitle = styled('h6')({ color: PALETTE.SLATE_700, diff --git a/packages/client/modules/userDashboard/components/OrgBilling/OrgPlanDrawer.tsx b/packages/client/modules/userDashboard/components/OrgBilling/OrgPlanDrawer.tsx index 7b8ef509728..39766aa6e5e 100644 --- a/packages/client/modules/userDashboard/components/OrgBilling/OrgPlanDrawer.tsx +++ b/packages/client/modules/userDashboard/components/OrgBilling/OrgPlanDrawer.tsx @@ -1,20 +1,20 @@ -import React from 'react' import styled from '@emotion/styled' +import {Close} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' +import React from 'react' import {commitLocalUpdate, useFragment} from 'react-relay' import {OrgPlanDrawer_organization$key} from '../../../../__generated__/OrgPlanDrawer_organization.graphql' -import ResponsiveDashSidebar from '../../../../components/ResponsiveDashSidebar' -import {Close} from '@mui/icons-material' -import {PALETTE} from '../../../../styles/paletteV3' -import {BezierCurve, Breakpoint, DiscussionThreadEnum, ZIndex} from '../../../../types/constEnums' +import Confetti from '../../../../components/Confetti' import LabelHeading from '../../../../components/LabelHeading/LabelHeading' -import {desktopSidebarShadow} from '../../../../styles/elevation' -import useBreakpoint from '../../../../hooks/useBreakpoint' import PlainButton from '../../../../components/PlainButton/PlainButton' +import ResponsiveDashSidebar from '../../../../components/ResponsiveDashSidebar' import useAtmosphere from '../../../../hooks/useAtmosphere' +import useBreakpoint from '../../../../hooks/useBreakpoint' +import {desktopSidebarShadow} from '../../../../styles/elevation' +import {PALETTE} from '../../../../styles/paletteV3' import {ICON_SIZE} from '../../../../styles/typographyV2' +import {BezierCurve, Breakpoint, DiscussionThreadEnum, ZIndex} from '../../../../types/constEnums' import OrgPlanDrawerContent from './OrgPlanDrawerContent' -import Confetti from '../../../../components/Confetti' const DrawerHeader = styled('div')({ alignItems: 'center', diff --git a/packages/client/modules/userDashboard/components/OrgBilling/OrgPlanDrawerContent.tsx b/packages/client/modules/userDashboard/components/OrgBilling/OrgPlanDrawerContent.tsx index d545d2b2dc5..dfd3bbe1089 100644 --- a/packages/client/modules/userDashboard/components/OrgBilling/OrgPlanDrawerContent.tsx +++ b/packages/client/modules/userDashboard/components/OrgBilling/OrgPlanDrawerContent.tsx @@ -1,9 +1,9 @@ -import React from 'react' import styled from '@emotion/styled' +import React from 'react' +import {TierEnum} from '../../../../__generated__/DowngradeToStarterMutation.graphql' import {PALETTE} from '../../../../styles/paletteV3' import {EnterpriseBenefits, TeamBenefits} from '../../../../utils/constants' import {upperFirst} from '../../../../utils/upperFirst' -import {TierEnum} from '../../../../__generated__/DowngradeToStarterMutation.graphql' const List = styled('div')({ display: 'flex', diff --git a/packages/client/modules/userDashboard/components/OrgBilling/OrgPlans.tsx b/packages/client/modules/userDashboard/components/OrgBilling/OrgPlans.tsx index 2b419f3ea4d..42f3fbfb619 100644 --- a/packages/client/modules/userDashboard/components/OrgBilling/OrgPlans.tsx +++ b/packages/client/modules/userDashboard/components/OrgBilling/OrgPlans.tsx @@ -2,21 +2,21 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' -import Panel from '../../../../components/Panel/Panel' -import Row from '../../../../components/Row/Row' +import useBreakpoint from '~/hooks/useBreakpoint' +import {Breakpoint} from '~/types/constEnums' import {OrgPlans_organization$key} from '../../../../__generated__/OrgPlans_organization.graphql' -import {ElementWidth} from '../../../../types/constEnums' import {TierEnum} from '../../../../__generated__/OrganizationSubscription.graphql' -import OrgStats from './OrgStats' +import LimitExceededWarning from '../../../../components/LimitExceededWarning' +import Panel from '../../../../components/Panel/Panel' +import Row from '../../../../components/Row/Row' +import useAtmosphere from '../../../../hooks/useAtmosphere' import useModal from '../../../../hooks/useModal' -import DowngradeModal from './DowngradeModal' -import {EnterpriseBenefits, StarterBenefits, TeamBenefits} from '../../../../utils/constants' +import {ElementWidth} from '../../../../types/constEnums' import SendClientSideEvent from '../../../../utils/SendClientSideEvent' -import useAtmosphere from '../../../../hooks/useAtmosphere' -import LimitExceededWarning from '../../../../components/LimitExceededWarning' -import {Breakpoint} from '~/types/constEnums' -import useBreakpoint from '~/hooks/useBreakpoint' +import {EnterpriseBenefits, StarterBenefits, TeamBenefits} from '../../../../utils/constants' +import DowngradeModal from './DowngradeModal' import OrgPlan from './OrgPlan' +import OrgStats from './OrgStats' const StyledPanel = styled(Panel)({ maxWidth: ElementWidth.PANEL_WIDTH, diff --git a/packages/client/modules/userDashboard/components/OrgBilling/OrgPlansAndBilling.tsx b/packages/client/modules/userDashboard/components/OrgBilling/OrgPlansAndBilling.tsx index dab1cf3309e..bb00f1fecae 100644 --- a/packages/client/modules/userDashboard/components/OrgBilling/OrgPlansAndBilling.tsx +++ b/packages/client/modules/userDashboard/components/OrgBilling/OrgPlansAndBilling.tsx @@ -1,17 +1,17 @@ import graphql from 'babel-plugin-relay/macro' import React, {Suspense, useState} from 'react' import {PreloadedQuery, useFragment, usePreloadedQuery, useRefetchableFragment} from 'react-relay' -import {OrgPlansAndBilling_organization$key} from '../../../../__generated__/OrgPlansAndBilling_organization.graphql' -import PaymentDetails from './PaymentDetails' -import BillingLeaders from './BillingLeaders' -import OrgPlans from './OrgPlans' -import OrgPlansAndBillingHeading from './OrgPlansAndBillingHeading' -import OrgPlanDrawer from './OrgPlanDrawer' -import OrgBillingInvoices from './OrgBillingInvoices' import {OrgPlansAndBillingQuery} from '../../../../__generated__/OrgPlansAndBillingQuery.graphql' import {OrgPlansAndBillingRefetchQuery} from '../../../../__generated__/OrgPlansAndBillingRefetchQuery.graphql' +import {OrgPlansAndBilling_organization$key} from '../../../../__generated__/OrgPlansAndBilling_organization.graphql' import {OrgPlansAndBilling_query$key} from '../../../../__generated__/OrgPlansAndBilling_query.graphql' +import BillingLeaders from './BillingLeaders' import OrgBillingCreditCardInfo from './OrgBillingCreditCardInfo' +import OrgBillingInvoices from './OrgBillingInvoices' +import OrgPlanDrawer from './OrgPlanDrawer' +import OrgPlans from './OrgPlans' +import OrgPlansAndBillingHeading from './OrgPlansAndBillingHeading' +import PaymentDetails from './PaymentDetails' type Props = { organizationRef: OrgPlansAndBilling_organization$key diff --git a/packages/client/modules/userDashboard/components/OrgBilling/OrgPlansAndBillingHeading.tsx b/packages/client/modules/userDashboard/components/OrgBilling/OrgPlansAndBillingHeading.tsx index 04bec647405..c2f874e8e62 100644 --- a/packages/client/modules/userDashboard/components/OrgBilling/OrgPlansAndBillingHeading.tsx +++ b/packages/client/modules/userDashboard/components/OrgBilling/OrgPlansAndBillingHeading.tsx @@ -3,12 +3,12 @@ import {Article} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {commitLocalUpdate, useFragment} from 'react-relay' +import {OrgPlansAndBillingHeading_organization$key} from '../../../../__generated__/OrgPlansAndBillingHeading_organization.graphql' import PlainButton from '../../../../components/PlainButton/PlainButton' import useAtmosphere from '../../../../hooks/useAtmosphere' import {PALETTE} from '../../../../styles/paletteV3' import {ElementWidth} from '../../../../types/constEnums' import {upperFirst} from '../../../../utils/upperFirst' -import {OrgPlansAndBillingHeading_organization$key} from '../../../../__generated__/OrgPlansAndBillingHeading_organization.graphql' const Wrapper = styled('div')({ alignItems: 'center', diff --git a/packages/client/modules/userDashboard/components/OrgBilling/OrgPlansAndBillingRoot.tsx b/packages/client/modules/userDashboard/components/OrgBilling/OrgPlansAndBillingRoot.tsx index 8c3c14768f1..a3ef216c0ac 100644 --- a/packages/client/modules/userDashboard/components/OrgBilling/OrgPlansAndBillingRoot.tsx +++ b/packages/client/modules/userDashboard/components/OrgBilling/OrgPlansAndBillingRoot.tsx @@ -1,11 +1,11 @@ import graphql from 'babel-plugin-relay/macro' import React, {Suspense} from 'react' import {useFragment} from 'react-relay' -import useQueryLoaderNow from '../../../../hooks/useQueryLoaderNow' import orgPlansAndBillingQuery, { OrgPlansAndBillingQuery } from '../../../../__generated__/OrgPlansAndBillingQuery.graphql' import {OrgPlansAndBillingRoot_organization$key} from '../../../../__generated__/OrgPlansAndBillingRoot_organization.graphql' +import useQueryLoaderNow from '../../../../hooks/useQueryLoaderNow' import OrgPlansAndBilling from './OrgPlansAndBilling' interface Props { diff --git a/packages/client/modules/userDashboard/components/OrgBilling/OrgStats.tsx b/packages/client/modules/userDashboard/components/OrgBilling/OrgStats.tsx index ce3f65d979a..2daf9322716 100644 --- a/packages/client/modules/userDashboard/components/OrgBilling/OrgStats.tsx +++ b/packages/client/modules/userDashboard/components/OrgBilling/OrgStats.tsx @@ -3,11 +3,11 @@ import {Info} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' +import {OrgStats_organization$key} from '../../../../__generated__/OrgStats_organization.graphql' import {tooltipTextLookup} from '../../../../components/InsightsDomainPanel' import {MenuPosition} from '../../../../hooks/useCoords' import useTooltip from '../../../../hooks/useTooltip' import {PALETTE} from '../../../../styles/paletteV3' -import {OrgStats_organization$key} from '../../../../__generated__/OrgStats_organization.graphql' const StatBlocks = styled('div')({ display: 'flex', diff --git a/packages/client/modules/userDashboard/components/OrgBilling/Organization.tsx b/packages/client/modules/userDashboard/components/OrgBilling/Organization.tsx index ceab6eb6e09..56da27a707a 100644 --- a/packages/client/modules/userDashboard/components/OrgBilling/Organization.tsx +++ b/packages/client/modules/userDashboard/components/OrgBilling/Organization.tsx @@ -2,6 +2,7 @@ import graphql from 'babel-plugin-relay/macro' import React, {lazy} from 'react' import {PreloadedQuery, usePreloadedQuery} from 'react-relay' import {Redirect, Route, Switch, useRouteMatch} from 'react-router' +import {OrganizationQuery} from '../../../../__generated__/OrganizationQuery.graphql' import { AUTHENTICATION_PAGE, BILLING_PAGE, @@ -9,9 +10,8 @@ import { ORG_SETTINGS_PAGE, TEAMS_PAGE } from '../../../../utils/constants' -import {OrganizationQuery} from '../../../../__generated__/OrganizationQuery.graphql' -import OrgNav from '../Organization/OrgNav' import OrgTeams from '../OrgTeams/OrgTeams' +import OrgNav from '../Organization/OrgNav' const OrgPlansAndBillingRoot = lazy( () => import(/* webpackChunkName: 'OrgBillingRoot' */ './OrgPlansAndBillingRoot') diff --git a/packages/client/modules/userDashboard/components/OrgBilling/PaymentDetails.tsx b/packages/client/modules/userDashboard/components/OrgBilling/PaymentDetails.tsx index 068e34d98cf..643649acff4 100644 --- a/packages/client/modules/userDashboard/components/OrgBilling/PaymentDetails.tsx +++ b/packages/client/modules/userDashboard/components/OrgBilling/PaymentDetails.tsx @@ -1,18 +1,18 @@ import styled from '@emotion/styled' -import {PaymentDetails_organization$key} from '../../../../__generated__/PaymentDetails_organization.graphql' -import graphql from 'babel-plugin-relay/macro' -import {useFragment} from 'react-relay' import {Divider} from '@mui/material' import {Elements} from '@stripe/react-stripe-js' import {loadStripe} from '@stripe/stripe-js' +import graphql from 'babel-plugin-relay/macro' import React, {useRef} from 'react' +import {useFragment} from 'react-relay' +import {PaymentDetails_organization$key} from '../../../../__generated__/PaymentDetails_organization.graphql' import Panel from '../../../../components/Panel/Panel' import Row from '../../../../components/Row/Row' +import useScrollIntoView from '../../../../hooks/useScrollIntoVIew' import {PALETTE} from '../../../../styles/paletteV3' import {ElementWidth} from '../../../../types/constEnums' -import BillingForm from './BillingForm' import {MONTHLY_PRICE} from '../../../../utils/constants' -import useScrollIntoView from '../../../../hooks/useScrollIntoVIew' +import BillingForm from './BillingForm' const StyledPanel = styled(Panel)({ maxWidth: ElementWidth.PANEL_WIDTH diff --git a/packages/client/modules/userDashboard/components/OrgBilling/UpdatePayment.tsx b/packages/client/modules/userDashboard/components/OrgBilling/UpdatePayment.tsx index 80bd46bb6f5..be005030d6c 100644 --- a/packages/client/modules/userDashboard/components/OrgBilling/UpdatePayment.tsx +++ b/packages/client/modules/userDashboard/components/OrgBilling/UpdatePayment.tsx @@ -6,16 +6,16 @@ import { useElements, useStripe } from '@stripe/react-stripe-js' +import {StripeElementChangeEvent} from '@stripe/stripe-js' import React, {useState} from 'react' +import {UpdateCreditCardMutation$data} from '../../../../__generated__/UpdateCreditCardMutation.graphql' import PrimaryButton from '../../../../components/PrimaryButton' import SecondaryButton from '../../../../components/SecondaryButton' -import {PALETTE} from '../../../../styles/paletteV3' -import UpdateCreditCardMutation from '../../../../mutations/UpdateCreditCardMutation' +import StyledError from '../../../../components/StyledError' import useAtmosphere from '../../../../hooks/useAtmosphere' import useMutationProps from '../../../../hooks/useMutationProps' -import StyledError from '../../../../components/StyledError' -import {UpdateCreditCardMutation$data} from '../../../../__generated__/UpdateCreditCardMutation.graphql' -import {StripeElementChangeEvent} from '@stripe/stripe-js' +import UpdateCreditCardMutation from '../../../../mutations/UpdateCreditCardMutation' +import {PALETTE} from '../../../../styles/paletteV3' const UpgradeButton = styled(PrimaryButton)<{disabled: boolean}>(({disabled}) => ({ background: disabled ? PALETTE.SLATE_200 : PALETTE.SKY_500, diff --git a/packages/client/modules/userDashboard/components/OrgTeamMembers/OrgTeamMemberMenu.tsx b/packages/client/modules/userDashboard/components/OrgTeamMembers/OrgTeamMemberMenu.tsx index 7526eb55775..7c9731c18af 100644 --- a/packages/client/modules/userDashboard/components/OrgTeamMembers/OrgTeamMemberMenu.tsx +++ b/packages/client/modules/userDashboard/components/OrgTeamMembers/OrgTeamMemberMenu.tsx @@ -1,13 +1,13 @@ import styled from '@emotion/styled' -import React from 'react' import graphql from 'babel-plugin-relay/macro' -import useAtmosphere from '~/hooks/useAtmosphere' +import React from 'react' import {useFragment} from 'react-relay' -import {MenuProps} from '../../../../hooks/useMenu' +import useAtmosphere from '~/hooks/useAtmosphere' +import {OrgTeamMemberMenu_teamMember$key} from '../../../../__generated__/OrgTeamMemberMenu_teamMember.graphql' import Menu from '../../../../components/Menu' import MenuItem from '../../../../components/MenuItem' import MenuItemLabel from '../../../../components/MenuItemLabel' -import {OrgTeamMemberMenu_teamMember$key} from '../../../../__generated__/OrgTeamMemberMenu_teamMember.graphql' +import {MenuProps} from '../../../../hooks/useMenu' interface OrgTeamMemberMenuProps { isLead: boolean diff --git a/packages/client/modules/userDashboard/components/OrgTeamMembers/OrgTeamMembers.tsx b/packages/client/modules/userDashboard/components/OrgTeamMembers/OrgTeamMembers.tsx index 602a4b48ee5..76781ca966c 100644 --- a/packages/client/modules/userDashboard/components/OrgTeamMembers/OrgTeamMembers.tsx +++ b/packages/client/modules/userDashboard/components/OrgTeamMembers/OrgTeamMembers.tsx @@ -1,17 +1,17 @@ -import React from 'react' -import graphql from 'babel-plugin-relay/macro' import {ArrowBack} from '@mui/icons-material' +import graphql from 'babel-plugin-relay/macro' +import React from 'react' import {PreloadedQuery, usePreloadedQuery} from 'react-relay' -import {OrgTeamMembersQuery} from '../../../../__generated__/OrgTeamMembersQuery.graphql' -import {OrgTeamMembersRow} from './OrgTeamMembersRow' -import {Button} from '../../../../ui/Button/Button' import {Link} from 'react-router-dom' -import {ORGANIZATIONS} from '../../../../utils/constants' +import {OrgTeamMembersQuery} from '../../../../__generated__/OrgTeamMembersQuery.graphql' +import DeleteTeamDialog from '../../../../components/DeleteTeamDialog' import {MenuPosition} from '../../../../hooks/useCoords' import useMenu from '../../../../hooks/useMenu' -import {OrgTeamMembersMenu} from './OrgTeamMembersMenu' +import {Button} from '../../../../ui/Button/Button' import {useDialogState} from '../../../../ui/Dialog/useDialogState' -import DeleteTeamDialog from '../../../../components/DeleteTeamDialog' +import {ORGANIZATIONS} from '../../../../utils/constants' +import {OrgTeamMembersMenu} from './OrgTeamMembersMenu' +import {OrgTeamMembersRow} from './OrgTeamMembersRow' interface Props { queryRef: PreloadedQuery diff --git a/packages/client/modules/userDashboard/components/OrgTeamMembers/OrgTeamMembersMenu.tsx b/packages/client/modules/userDashboard/components/OrgTeamMembers/OrgTeamMembersMenu.tsx index bc53031bfc8..80a22e31ee2 100644 --- a/packages/client/modules/userDashboard/components/OrgTeamMembers/OrgTeamMembersMenu.tsx +++ b/packages/client/modules/userDashboard/components/OrgTeamMembers/OrgTeamMembersMenu.tsx @@ -1,7 +1,7 @@ import React from 'react' -import {MenuProps} from '../../../../hooks/useMenu' import Menu from '../../../../components/Menu' import MenuItem from '../../../../components/MenuItem' +import {MenuProps} from '../../../../hooks/useMenu' interface OrgTeamMembersMenuProps { menuProps: MenuProps diff --git a/packages/client/modules/userDashboard/components/OrgTeamMembers/OrgTeamMembersRoot.tsx b/packages/client/modules/userDashboard/components/OrgTeamMembers/OrgTeamMembersRoot.tsx index c0c959d084c..ec85d790003 100644 --- a/packages/client/modules/userDashboard/components/OrgTeamMembers/OrgTeamMembersRoot.tsx +++ b/packages/client/modules/userDashboard/components/OrgTeamMembers/OrgTeamMembersRoot.tsx @@ -1,10 +1,10 @@ import React, {Suspense} from 'react' import orgTeamMembersQuery, {OrgTeamMembersQuery} from '~/__generated__/OrgTeamMembersQuery.graphql' import useQueryLoaderNow from '../../../../hooks/useQueryLoaderNow' +import useRouter from '../../../../hooks/useRouter' import {LoaderSize} from '../../../../types/constEnums' import {Loader} from '../../../../utils/relay/renderLoader' import {OrgTeamMembers} from './OrgTeamMembers' -import useRouter from '../../../../hooks/useRouter' const OrgTeamMembersRoot = () => { const {match} = useRouter<{teamId: string}>() diff --git a/packages/client/modules/userDashboard/components/OrgTeamMembers/OrgTeamMembersRow.tsx b/packages/client/modules/userDashboard/components/OrgTeamMembers/OrgTeamMembersRow.tsx index 02b643f744f..817cb594dcf 100644 --- a/packages/client/modules/userDashboard/components/OrgTeamMembers/OrgTeamMembersRow.tsx +++ b/packages/client/modules/userDashboard/components/OrgTeamMembers/OrgTeamMembersRow.tsx @@ -1,19 +1,19 @@ -import React from 'react' +import {MoreVert} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' +import React from 'react' import {useFragment} from 'react-relay' import {OrgTeamMembersRow_teamMember$key} from '../../../../__generated__/OrgTeamMembersRow_teamMember.graphql' +import useAtmosphere from '../../../../hooks/useAtmosphere' +import {MenuPosition} from '../../../../hooks/useCoords' +import useMenu from '../../../../hooks/useMenu' +import useModal from '../../../../hooks/useModal' import {Avatar} from '../../../../ui/Avatar/Avatar' import {AvatarFallback} from '../../../../ui/Avatar/AvatarFallback' import {AvatarImage} from '../../../../ui/Avatar/AvatarImage' import {Button} from '../../../../ui/Button/Button' -import {MoreVert} from '@mui/icons-material' -import {OrgTeamMemberMenu} from './OrgTeamMemberMenu' -import {MenuPosition} from '../../../../hooks/useCoords' -import useMenu from '../../../../hooks/useMenu' import PromoteTeamMemberModal from '../../../teamDashboard/components/PromoteTeamMemberModal/PromoteTeamMemberModal' import RemoveTeamMemberModal from '../../../teamDashboard/components/RemoveTeamMemberModal/RemoveTeamMemberModal' -import useModal from '../../../../hooks/useModal' -import useAtmosphere from '../../../../hooks/useAtmosphere' +import {OrgTeamMemberMenu} from './OrgTeamMemberMenu' type Props = { teamMemberRef: OrgTeamMembersRow_teamMember$key diff --git a/packages/client/modules/userDashboard/components/OrgTeams/OrgTeams.tsx b/packages/client/modules/userDashboard/components/OrgTeams/OrgTeams.tsx index 3f544d7dd27..6bcd5cda9ad 100644 --- a/packages/client/modules/userDashboard/components/OrgTeams/OrgTeams.tsx +++ b/packages/client/modules/userDashboard/components/OrgTeams/OrgTeams.tsx @@ -1,12 +1,12 @@ -import React from 'react' import graphql from 'babel-plugin-relay/macro' +import React from 'react' import {useFragment} from 'react-relay' -import OrgTeamsRow from './OrgTeamsRow' import {OrgTeams_organization$key} from '../../../../__generated__/OrgTeams_organization.graphql' import AddTeamDialogRoot from '../../../../components/AddTeamDialogRoot' import {Button} from '../../../../ui/Button/Button' import {useDialogState} from '../../../../ui/Dialog/useDialogState' import plural from '../../../../utils/plural' +import OrgTeamsRow from './OrgTeamsRow' type Props = { organizationRef: OrgTeams_organization$key diff --git a/packages/client/modules/userDashboard/components/OrgTeams/OrgTeamsRow.tsx b/packages/client/modules/userDashboard/components/OrgTeams/OrgTeamsRow.tsx index d6da2e5e6c6..e2ea7697f82 100644 --- a/packages/client/modules/userDashboard/components/OrgTeams/OrgTeamsRow.tsx +++ b/packages/client/modules/userDashboard/components/OrgTeams/OrgTeamsRow.tsx @@ -1,11 +1,11 @@ -import React from 'react' -import {Link} from 'react-router-dom' +import {ChevronRight} from '@mui/icons-material' import graphql from 'babel-plugin-relay/macro' +import React from 'react' import {useFragment} from 'react-relay' -import {ChevronRight} from '@mui/icons-material' +import {Link} from 'react-router-dom' -import plural from '../../../../utils/plural' import {OrgTeamsRow_team$key} from '../../../../__generated__/OrgTeamsRow_team.graphql' +import plural from '../../../../utils/plural' type Props = { teamRef: OrgTeamsRow_team$key diff --git a/packages/client/modules/userDashboard/components/OrgUserRow/OrgMemberRow.tsx b/packages/client/modules/userDashboard/components/OrgUserRow/OrgMemberRow.tsx index 8a15e046096..50716d6a942 100644 --- a/packages/client/modules/userDashboard/components/OrgUserRow/OrgMemberRow.tsx +++ b/packages/client/modules/userDashboard/components/OrgUserRow/OrgMemberRow.tsx @@ -3,6 +3,14 @@ import graphql from 'babel-plugin-relay/macro' import React, {forwardRef, Ref} from 'react' import {useFragment} from 'react-relay' import useAtmosphere from '~/hooks/useAtmosphere' +import { + OrgMemberRow_organization$data, + OrgMemberRow_organization$key +} from '../../../../__generated__/OrgMemberRow_organization.graphql' +import { + OrgMemberRow_organizationUser$data, + OrgMemberRow_organizationUser$key +} from '../../../../__generated__/OrgMemberRow_organizationUser.graphql' import Avatar from '../../../../components/Avatar/Avatar' import FlatButton, {FlatButtonProps} from '../../../../components/FlatButton' import IconLabel from '../../../../components/IconLabel' @@ -12,6 +20,7 @@ import RowInfo from '../../../../components/Row/RowInfo' import RowInfoHeader from '../../../../components/Row/RowInfoHeader' import RowInfoHeading from '../../../../components/Row/RowInfoHeading' import RowInfoLink from '../../../../components/Row/RowInfoLink' +import BaseTag from '../../../../components/Tag/BaseTag' import EmphasisTag from '../../../../components/Tag/EmphasisTag' import InactiveTag from '../../../../components/Tag/InactiveTag' import RoleTag from '../../../../components/Tag/RoleTag' @@ -22,15 +31,6 @@ import defaultUserAvatar from '../../../../styles/theme/images/avatar-user.svg' import {Breakpoint} from '../../../../types/constEnums' import lazyPreload from '../../../../utils/lazyPreload' import withMutationProps, {WithMutationProps} from '../../../../utils/relay/withMutationProps' -import { - OrgMemberRow_organization$key, - OrgMemberRow_organization$data -} from '../../../../__generated__/OrgMemberRow_organization.graphql' -import { - OrgMemberRow_organizationUser$key, - OrgMemberRow_organizationUser$data -} from '../../../../__generated__/OrgMemberRow_organizationUser.graphql' -import BaseTag from '../../../../components/Tag/BaseTag' const AvatarBlock = styled('div')({ display: 'none', diff --git a/packages/client/modules/userDashboard/components/Organization/OrgNav.tsx b/packages/client/modules/userDashboard/components/Organization/OrgNav.tsx index 2d92fae6d53..ab2ebbbe9ab 100644 --- a/packages/client/modules/userDashboard/components/Organization/OrgNav.tsx +++ b/packages/client/modules/userDashboard/components/Organization/OrgNav.tsx @@ -4,9 +4,9 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {useFragment} from 'react-relay' import {useHistory} from 'react-router' +import {OrgNav_organization$key} from '../../../../__generated__/OrgNav_organization.graphql' import {PALETTE} from '../../../../styles/paletteV3' import {ElementWidth} from '../../../../types/constEnums' -import {OrgNav_organization$key} from '../../../../__generated__/OrgNav_organization.graphql' const Wrapper = styled('div')({ display: 'flex', diff --git a/packages/client/modules/userDashboard/components/Organizations/Organizations.tsx b/packages/client/modules/userDashboard/components/Organizations/Organizations.tsx index a324f885835..a652e9aab41 100644 --- a/packages/client/modules/userDashboard/components/Organizations/Organizations.tsx +++ b/packages/client/modules/userDashboard/components/Organizations/Organizations.tsx @@ -1,12 +1,12 @@ import graphql from 'babel-plugin-relay/macro' import React from 'react' import {PreloadedQuery, usePreloadedQuery} from 'react-relay' +import {OrganizationsQuery} from '../../../../__generated__/OrganizationsQuery.graphql' import LinkButton from '../../../../components/LinkButton' import Panel from '../../../../components/Panel/Panel' import SettingsWrapper from '../../../../components/Settings/SettingsWrapper' import useDocumentTitle from '../../../../hooks/useDocumentTitle' import useRouter from '../../../../hooks/useRouter' -import {OrganizationsQuery} from '../../../../__generated__/OrganizationsQuery.graphql' import EmptyOrgsCallOut from '../EmptyOrgsCallOut/EmptyOrgsCallOut' import OrganizationRow from '../OrganizationRow/OrganizationRow' import UserSettingsWrapper from '../UserSettingsWrapper/UserSettingsWrapper' diff --git a/packages/client/modules/userDashboard/components/UserProfile.tsx b/packages/client/modules/userDashboard/components/UserProfile.tsx index 0a7e0d7b96d..e1252b7e82f 100644 --- a/packages/client/modules/userDashboard/components/UserProfile.tsx +++ b/packages/client/modules/userDashboard/components/UserProfile.tsx @@ -2,6 +2,7 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React from 'react' import {PreloadedQuery, usePreloadedQuery} from 'react-relay' +import {UserProfileQuery} from '../../../__generated__/UserProfileQuery.graphql' import DeleteAccount from '../../../components/DeleteAccount' import EmailNotifications from '../../../components/EmailNotifications' import Panel from '../../../components/Panel/Panel' @@ -9,7 +10,6 @@ import PasswordResetLink from '../../../components/PasswordResetLink' import useDocumentTitle from '../../../hooks/useDocumentTitle' import {PALETTE} from '../../../styles/paletteV3' import {AuthIdentityTypeEnum, Layout} from '../../../types/constEnums' -import {UserProfileQuery} from '../../../__generated__/UserProfileQuery.graphql' import UserSettingsForm from './UserSettingsForm/UserSettingsForm' import UserSettingsWrapper from './UserSettingsWrapper/UserSettingsWrapper' diff --git a/packages/client/modules/userDashboard/components/UserProfileRoot.tsx b/packages/client/modules/userDashboard/components/UserProfileRoot.tsx index a02029a13e9..3a473107b08 100644 --- a/packages/client/modules/userDashboard/components/UserProfileRoot.tsx +++ b/packages/client/modules/userDashboard/components/UserProfileRoot.tsx @@ -1,9 +1,9 @@ import React, {Suspense} from 'react' import {RouteComponentProps, withRouter} from 'react-router-dom' +import userProfileQuery, {UserProfileQuery} from '../../../__generated__/UserProfileQuery.graphql' import useQueryLoaderNow from '../../../hooks/useQueryLoaderNow' import useSubscription from '../../../hooks/useSubscription' import NotificationSubscription from '../../../subscriptions/NotificationSubscription' -import userProfileQuery, {UserProfileQuery} from '../../../__generated__/UserProfileQuery.graphql' import UserProfile from './UserProfile' interface Props extends RouteComponentProps<{teamId: string}> {} diff --git a/packages/client/modules/userDashboard/components/UserSettingsForm/UserSettingsForm.tsx b/packages/client/modules/userDashboard/components/UserSettingsForm/UserSettingsForm.tsx index 639240d0a41..518e4fac31b 100644 --- a/packages/client/modules/userDashboard/components/UserSettingsForm/UserSettingsForm.tsx +++ b/packages/client/modules/userDashboard/components/UserSettingsForm/UserSettingsForm.tsx @@ -1,5 +1,6 @@ import styled from '@emotion/styled' import React, {lazy} from 'react' +import {UserProfileQuery} from '../../../../__generated__/UserProfileQuery.graphql' import EditableAvatar from '../../../../components/EditableAvatar/EditableAvatar' import FieldLabel from '../../../../components/FieldLabel/FieldLabel' import BasicInput from '../../../../components/InputField/BasicInput' @@ -13,7 +14,6 @@ import defaultUserAvatar from '../../../../styles/theme/images/avatar-user.svg' import {Breakpoint, Layout} from '../../../../types/constEnums' import withForm, {WithFormProps} from '../../../../utils/relay/withForm' import Legitity from '../../../../validation/Legitity' -import {UserProfileQuery} from '../../../../__generated__/UserProfileQuery.graphql' import NotificationErrorMessage from '../../../notifications/components/NotificationErrorMessage' const SettingsForm = styled('form')({ diff --git a/packages/client/modules/userDashboard/components/UserTasksHeader/UserTasksHeader.tsx b/packages/client/modules/userDashboard/components/UserTasksHeader/UserTasksHeader.tsx index e4a1db28093..b5825124913 100644 --- a/packages/client/modules/userDashboard/components/UserTasksHeader/UserTasksHeader.tsx +++ b/packages/client/modules/userDashboard/components/UserTasksHeader/UserTasksHeader.tsx @@ -2,6 +2,10 @@ import styled from '@emotion/styled' import graphql from 'babel-plugin-relay/macro' import React, {useMemo, useRef} from 'react' import {useFragment} from 'react-relay' +import { + UserTasksHeader_viewer$data, + UserTasksHeader_viewer$key +} from '~/__generated__/UserTasksHeader_viewer.graphql' import Checkbox from '~/components/Checkbox' import LinkButton from '~/components/LinkButton' import useRouter from '~/hooks/useRouter' @@ -11,13 +15,9 @@ import {Breakpoint, FilterLabels} from '~/types/constEnums' import constructFilterQueryParamURL from '~/utils/constructFilterQueryParamURL' import makeMinWidthMediaQuery from '~/utils/makeMinWidthMediaQuery' import {useQueryParameterParser} from '~/utils/useQueryParameterParser' -import { - UserTasksHeader_viewer$data, - UserTasksHeader_viewer$key -} from '~/__generated__/UserTasksHeader_viewer.graphql' +import DashFilterToggle from '../../../../components/DashFilterToggle/DashFilterToggle' import DashSectionControls from '../../../../components/Dashboard/DashSectionControls' import DashSectionHeader from '../../../../components/Dashboard/DashSectionHeader' -import DashFilterToggle from '../../../../components/DashFilterToggle/DashFilterToggle' import useAtmosphere from '../../../../hooks/useAtmosphere' import {MenuPosition} from '../../../../hooks/useCoords' import useMenu from '../../../../hooks/useMenu' diff --git a/packages/client/modules/userDashboard/containers/OrgBilling/OrgBillingRoot.tsx b/packages/client/modules/userDashboard/containers/OrgBilling/OrgBillingRoot.tsx index 37dda9781cd..893d4082eaa 100644 --- a/packages/client/modules/userDashboard/containers/OrgBilling/OrgBillingRoot.tsx +++ b/packages/client/modules/userDashboard/containers/OrgBilling/OrgBillingRoot.tsx @@ -1,9 +1,9 @@ import graphql from 'babel-plugin-relay/macro' import React, {Suspense} from 'react' import {useFragment} from 'react-relay' -import useQueryLoaderNow from '../../../../hooks/useQueryLoaderNow' import orgBillingQuery, {OrgBillingQuery} from '../../../../__generated__/OrgBillingQuery.graphql' import {OrgBillingRoot_organization$key} from '../../../../__generated__/OrgBillingRoot_organization.graphql' +import useQueryLoaderNow from '../../../../hooks/useQueryLoaderNow' import OrgBilling from '../../components/OrgBilling/OrgBilling' interface Props { diff --git a/packages/client/modules/userDashboard/containers/Organization/OrganizationRoot.tsx b/packages/client/modules/userDashboard/containers/Organization/OrganizationRoot.tsx index 28f34aa970b..994ee399c4e 100644 --- a/packages/client/modules/userDashboard/containers/Organization/OrganizationRoot.tsx +++ b/packages/client/modules/userDashboard/containers/Organization/OrganizationRoot.tsx @@ -1,10 +1,10 @@ import React, {Suspense} from 'react' import {RouteComponentProps} from 'react-router' -import useQueryLoaderNow from '../../../../hooks/useQueryLoaderNow' -import {Loader} from '../../../../utils/relay/renderLoader' import organizationQuery, { OrganizationQuery } from '../../../../__generated__/OrganizationQuery.graphql' +import useQueryLoaderNow from '../../../../hooks/useQueryLoaderNow' +import {Loader} from '../../../../utils/relay/renderLoader' import Organization from '../../components/OrgBilling/Organization' interface Props extends RouteComponentProps<{orgId: string}> {} diff --git a/packages/client/modules/userDashboard/containers/Organizations/OrganizationsRoot.tsx b/packages/client/modules/userDashboard/containers/Organizations/OrganizationsRoot.tsx index 15dc366b6cb..614fa4d17cb 100644 --- a/packages/client/modules/userDashboard/containers/Organizations/OrganizationsRoot.tsx +++ b/packages/client/modules/userDashboard/containers/Organizations/OrganizationsRoot.tsx @@ -1,10 +1,10 @@ import React, {Suspense} from 'react' -import useQueryLoaderNow from '../../../../hooks/useQueryLoaderNow' -import {LoaderSize} from '../../../../types/constEnums' -import {Loader} from '../../../../utils/relay/renderLoader' import organizationsQuery, { OrganizationsQuery } from '../../../../__generated__/OrganizationsQuery.graphql' +import useQueryLoaderNow from '../../../../hooks/useQueryLoaderNow' +import {LoaderSize} from '../../../../types/constEnums' +import {Loader} from '../../../../utils/relay/renderLoader' import Organizations from '../../components/Organizations/Organizations' const OrganizationsRoot = () => { diff --git a/packages/client/modules/userDashboard/containers/UserColumns/UserColumnsContainer.tsx b/packages/client/modules/userDashboard/containers/UserColumns/UserColumnsContainer.tsx index 72aebf89936..807d484a5ca 100644 --- a/packages/client/modules/userDashboard/containers/UserColumns/UserColumnsContainer.tsx +++ b/packages/client/modules/userDashboard/containers/UserColumns/UserColumnsContainer.tsx @@ -3,9 +3,9 @@ import React, {useMemo} from 'react' import {useFragment} from 'react-relay' import toTeamMemberId from '~/utils/relay/toTeamMemberId' import {useQueryParameterParser} from '~/utils/useQueryParameterParser' +import {UserColumnsContainer_viewer$key} from '../../../../__generated__/UserColumnsContainer_viewer.graphql' import TaskColumns from '../../../../components/TaskColumns/TaskColumns' import getSafeRegex from '../../../../utils/getSafeRegex' -import {UserColumnsContainer_viewer$key} from '../../../../__generated__/UserColumnsContainer_viewer.graphql' interface Props { viewerRef: UserColumnsContainer_viewer$key diff --git a/packages/client/mutations/AcceptTeamInvitationMutation.ts b/packages/client/mutations/AcceptTeamInvitationMutation.ts index fc92e2fa0e3..d34825bfd41 100644 --- a/packages/client/mutations/AcceptTeamInvitationMutation.ts +++ b/packages/client/mutations/AcceptTeamInvitationMutation.ts @@ -1,8 +1,10 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {InvitationTokenError, LOCKED_MESSAGE} from '~/types/constEnums' import {AcceptTeamInvitationMutation_notification$data} from '~/__generated__/AcceptTeamInvitationMutation_notification.graphql' +import {InvitationTokenError, LOCKED_MESSAGE} from '~/types/constEnums' import Atmosphere from '../Atmosphere' +import {AcceptTeamInvitationMutation as TAcceptTeamInvitationMutation} from '../__generated__/AcceptTeamInvitationMutation.graphql' +import {AcceptTeamInvitationMutation_team$data} from '../__generated__/AcceptTeamInvitationMutation_team.graphql' import { HistoryMaybeLocalHandler, OnNextHandler, @@ -11,8 +13,6 @@ import { } from '../types/relayMutations' import fromTeamMemberId from '../utils/relay/fromTeamMemberId' import getGraphQLError from '../utils/relay/getGraphQLError' -import {AcceptTeamInvitationMutation as TAcceptTeamInvitationMutation} from '../__generated__/AcceptTeamInvitationMutation.graphql' -import {AcceptTeamInvitationMutation_team$data} from '../__generated__/AcceptTeamInvitationMutation_team.graphql' import handleAddOrganization from './handlers/handleAddOrganization' import handleAddTeamMembers from './handlers/handleAddTeamMembers' import handleAddTeams from './handlers/handleAddTeams' diff --git a/packages/client/mutations/AddAgendaItemMutation.ts b/packages/client/mutations/AddAgendaItemMutation.ts index 13cc776b0a6..22d6d480c1e 100644 --- a/packages/client/mutations/AddAgendaItemMutation.ts +++ b/packages/client/mutations/AddAgendaItemMutation.ts @@ -1,10 +1,10 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' +import {AddAgendaItemMutation as TAddAgendaItemMutation} from '../__generated__/AddAgendaItemMutation.graphql' +import {AddAgendaItemMutation_team$data} from '../__generated__/AddAgendaItemMutation_team.graphql' import {SharedUpdater, StandardMutation} from '../types/relayMutations' import clientTempId from '../utils/relay/clientTempId' import createProxyRecord from '../utils/relay/createProxyRecord' -import {AddAgendaItemMutation as TAddAgendaItemMutation} from '../__generated__/AddAgendaItemMutation.graphql' -import {AddAgendaItemMutation_team$data} from '../__generated__/AddAgendaItemMutation_team.graphql' import handleAddAgendaItems from './handlers/handleAddAgendaItems' graphql` fragment AddAgendaItemMutation_team on AddAgendaItemPayload { diff --git a/packages/client/mutations/AddAtlassianAuthMutation.ts b/packages/client/mutations/AddAtlassianAuthMutation.ts index 358b7441f75..16a1ddfe904 100644 --- a/packages/client/mutations/AddAtlassianAuthMutation.ts +++ b/packages/client/mutations/AddAtlassianAuthMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {AddAtlassianAuthMutation as TAddAtlassianAuthMutation} from '../__generated__/AddAtlassianAuthMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment AddAtlassianAuthMutation_team on AddAtlassianAuthPayload { diff --git a/packages/client/mutations/AddCommentMutation.ts b/packages/client/mutations/AddCommentMutation.ts index 0547a88de2d..b55d6f1a0bb 100644 --- a/packages/client/mutations/AddCommentMutation.ts +++ b/packages/client/mutations/AddCommentMutation.ts @@ -1,11 +1,11 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' +import {AddCommentMutation_meeting$data} from '~/__generated__/AddCommentMutation_meeting.graphql' import makeEmptyStr from '~/utils/draftjs/makeEmptyStr' import addNodeToArray from '~/utils/relay/addNodeToArray' import createProxyRecord from '~/utils/relay/createProxyRecord' -import {AddCommentMutation_meeting$data} from '~/__generated__/AddCommentMutation_meeting.graphql' -import {SharedUpdater, StandardMutation} from '../types/relayMutations' import {AddCommentMutation as TAddCommentMutation} from '../__generated__/AddCommentMutation.graphql' +import {SharedUpdater, StandardMutation} from '../types/relayMutations' import getDiscussionThreadConn from './connections/getDiscussionThreadConn' import safePutNodeInConn from './handlers/safePutNodeInConn' diff --git a/packages/client/mutations/AddGitHubAuthMutation.ts b/packages/client/mutations/AddGitHubAuthMutation.ts index 3b3cf2cde77..8045830f6fa 100644 --- a/packages/client/mutations/AddGitHubAuthMutation.ts +++ b/packages/client/mutations/AddGitHubAuthMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {AddGitHubAuthMutation as TAddGitHubAuthMutation} from '../__generated__/AddGitHubAuthMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment AddGitHubAuthMutation_team on AddGitHubAuthPayload { diff --git a/packages/client/mutations/AddIntegrationProviderMutation.ts b/packages/client/mutations/AddIntegrationProviderMutation.ts index 07f401e4766..3e4d831de08 100644 --- a/packages/client/mutations/AddIntegrationProviderMutation.ts +++ b/packages/client/mutations/AddIntegrationProviderMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {AddIntegrationProviderMutation as TAddIntegrationProviderMutation} from '../__generated__/AddIntegrationProviderMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment AddIntegrationProviderMutation_team on AddIntegrationProviderSuccess { diff --git a/packages/client/mutations/AddOrgMutation.ts b/packages/client/mutations/AddOrgMutation.ts index af80c053890..2b19332a808 100644 --- a/packages/client/mutations/AddOrgMutation.ts +++ b/packages/client/mutations/AddOrgMutation.ts @@ -1,5 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' +import {AddOrgMutation as TAddOrgMutation} from '../__generated__/AddOrgMutation.graphql' +import {AddOrgMutation_notification$data} from '../__generated__/AddOrgMutation_notification.graphql' +import {AddOrgMutation_organization$data} from '../__generated__/AddOrgMutation_organization.graphql' import { HistoryLocalHandler, OnNextHandler, @@ -7,9 +10,6 @@ import { StandardMutation } from '../types/relayMutations' import getGraphQLError from '../utils/relay/getGraphQLError' -import {AddOrgMutation as TAddOrgMutation} from '../__generated__/AddOrgMutation.graphql' -import {AddOrgMutation_notification$data} from '../__generated__/AddOrgMutation_notification.graphql' -import {AddOrgMutation_organization$data} from '../__generated__/AddOrgMutation_organization.graphql' import handleAddOrganization from './handlers/handleAddOrganization' import handleAddTeams from './handlers/handleAddTeams' import handleRemoveSuggestedActions from './handlers/handleRemoveSuggestedActions' diff --git a/packages/client/mutations/AddPokerTemplateDimensionMutation.ts b/packages/client/mutations/AddPokerTemplateDimensionMutation.ts index 6f71fee7fae..5eb276afcd2 100644 --- a/packages/client/mutations/AddPokerTemplateDimensionMutation.ts +++ b/packages/client/mutations/AddPokerTemplateDimensionMutation.ts @@ -1,10 +1,10 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import {SprintPokerDefaults} from '~/types/constEnums' -import {BaseLocalHandlers, SharedUpdater, StandardMutation} from '../types/relayMutations' -import createProxyRecord from '../utils/relay/createProxyRecord' import {AddPokerTemplateDimensionMutation as TAddPokerTemplateDimensionMutation} from '../__generated__/AddPokerTemplateDimensionMutation.graphql' import {AddPokerTemplateDimensionMutation_dimension$data} from '../__generated__/AddPokerTemplateDimensionMutation_dimension.graphql' +import {BaseLocalHandlers, SharedUpdater, StandardMutation} from '../types/relayMutations' +import createProxyRecord from '../utils/relay/createProxyRecord' import handleAddPokerTemplateDimension from './handlers/handleAddPokerTemplateDimension' interface Handlers extends BaseLocalHandlers { diff --git a/packages/client/mutations/AddPokerTemplateMutation.ts b/packages/client/mutations/AddPokerTemplateMutation.ts index 170c6c297c1..698dd1d14d2 100644 --- a/packages/client/mutations/AddPokerTemplateMutation.ts +++ b/packages/client/mutations/AddPokerTemplateMutation.ts @@ -1,11 +1,11 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import {SprintPokerDefaults} from '~/types/constEnums' +import {AddPokerTemplateMutation as TAddPokerTemplateMutation} from '../__generated__/AddPokerTemplateMutation.graphql' +import {AddPokerTemplateMutation_team$data} from '../__generated__/AddPokerTemplateMutation_team.graphql' import {SharedUpdater, StandardMutation} from '../types/relayMutations' import createProxyRecord from '../utils/relay/createProxyRecord' import {setActiveTemplateInRelayStore} from '../utils/relay/setActiveTemplate' -import {AddPokerTemplateMutation as TAddPokerTemplateMutation} from '../__generated__/AddPokerTemplateMutation.graphql' -import {AddPokerTemplateMutation_team$data} from '../__generated__/AddPokerTemplateMutation_team.graphql' import handleAddMeetingTemplate from './handlers/handleAddMeetingTemplate' graphql` diff --git a/packages/client/mutations/AddPokerTemplateScaleMutation.ts b/packages/client/mutations/AddPokerTemplateScaleMutation.ts index 38f14db5187..c45932bc919 100644 --- a/packages/client/mutations/AddPokerTemplateScaleMutation.ts +++ b/packages/client/mutations/AddPokerTemplateScaleMutation.ts @@ -1,11 +1,11 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' +import {AddPokerTemplateScaleMutation as TAddPokerTemplateScaleMutation} from '../__generated__/AddPokerTemplateScaleMutation.graphql' +import {AddPokerTemplateScaleMutation_scale$data} from '../__generated__/AddPokerTemplateScaleMutation_scale.graphql' import {PALETTE} from '../styles/paletteV3' import {PokerCards} from '../types/constEnums' import {SharedUpdater, StandardMutation} from '../types/relayMutations' import createProxyRecord from '../utils/relay/createProxyRecord' -import {AddPokerTemplateScaleMutation as TAddPokerTemplateScaleMutation} from '../__generated__/AddPokerTemplateScaleMutation.graphql' -import {AddPokerTemplateScaleMutation_scale$data} from '../__generated__/AddPokerTemplateScaleMutation_scale.graphql' import handleAddPokerTemplateScale from './handlers/handleAddPokerTemplateScale' graphql` diff --git a/packages/client/mutations/AddPokerTemplateScaleValueMutation.ts b/packages/client/mutations/AddPokerTemplateScaleValueMutation.ts index ca999c5d874..74c291f2748 100644 --- a/packages/client/mutations/AddPokerTemplateScaleValueMutation.ts +++ b/packages/client/mutations/AddPokerTemplateScaleValueMutation.ts @@ -1,10 +1,10 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' +import {AddPokerTemplateScaleValueMutation as TAddPokerTemplateScaleValueMutation} from '../__generated__/AddPokerTemplateScaleValueMutation.graphql' import {StandardMutation} from '../types/relayMutations' import dndNoise from '../utils/dndNoise' import addNodeToArray from '../utils/relay/addNodeToArray' import createProxyRecord from '../utils/relay/createProxyRecord' -import {AddPokerTemplateScaleValueMutation as TAddPokerTemplateScaleValueMutation} from '../__generated__/AddPokerTemplateScaleValueMutation.graphql' graphql` fragment AddPokerTemplateScaleValueMutation_scale on AddPokerTemplateScaleValuePayload { diff --git a/packages/client/mutations/AddReactjiToReactableMutation.ts b/packages/client/mutations/AddReactjiToReactableMutation.ts index 51ee83cfe0c..37fca00f436 100644 --- a/packages/client/mutations/AddReactjiToReactableMutation.ts +++ b/packages/client/mutations/AddReactjiToReactableMutation.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import createProxyRecord from '~/utils/relay/createProxyRecord' -import {StandardMutation} from '../types/relayMutations' import {AddReactjiToReactableMutation as TAddReactjiToReactableMutation} from '../__generated__/AddReactjiToReactableMutation.graphql' +import {StandardMutation} from '../types/relayMutations' import SendClientSideEvent from '../utils/SendClientSideEvent' graphql` diff --git a/packages/client/mutations/AddReflectTemplateMutation.ts b/packages/client/mutations/AddReflectTemplateMutation.ts index dc1fc0eb0a0..19d73535764 100644 --- a/packages/client/mutations/AddReflectTemplateMutation.ts +++ b/packages/client/mutations/AddReflectTemplateMutation.ts @@ -1,10 +1,10 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' +import {AddReflectTemplateMutation as TAddReflectTemplateMutation} from '../__generated__/AddReflectTemplateMutation.graphql' +import {AddReflectTemplateMutation_team$data} from '../__generated__/AddReflectTemplateMutation_team.graphql' import {SharedUpdater, StandardMutation} from '../types/relayMutations' import createProxyRecord from '../utils/relay/createProxyRecord' import {setActiveTemplateInRelayStore} from '../utils/relay/setActiveTemplate' -import {AddReflectTemplateMutation as TAddReflectTemplateMutation} from '../__generated__/AddReflectTemplateMutation.graphql' -import {AddReflectTemplateMutation_team$data} from '../__generated__/AddReflectTemplateMutation_team.graphql' import handleAddMeetingTemplate from './handlers/handleAddMeetingTemplate' graphql` diff --git a/packages/client/mutations/AddReflectTemplatePromptMutation.ts b/packages/client/mutations/AddReflectTemplatePromptMutation.ts index b7025a5055e..9daa5ec6a5f 100644 --- a/packages/client/mutations/AddReflectTemplatePromptMutation.ts +++ b/packages/client/mutations/AddReflectTemplatePromptMutation.ts @@ -1,9 +1,9 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {BaseLocalHandlers, SharedUpdater, StandardMutation} from '../types/relayMutations' -import createProxyRecord from '../utils/relay/createProxyRecord' import {AddReflectTemplatePromptMutation as TAddReflectTemplatePromptMutation} from '../__generated__/AddReflectTemplatePromptMutation.graphql' import {AddReflectTemplatePromptMutation_team$data} from '../__generated__/AddReflectTemplatePromptMutation_team.graphql' +import {BaseLocalHandlers, SharedUpdater, StandardMutation} from '../types/relayMutations' +import createProxyRecord from '../utils/relay/createProxyRecord' import handleAddReflectTemplatePrompt from './handlers/handleAddReflectTemplatePrompt' interface Handlers extends BaseLocalHandlers { diff --git a/packages/client/mutations/AddSlackAuthMutation.ts b/packages/client/mutations/AddSlackAuthMutation.ts index 005cbf6b8ae..dd05181eb5a 100644 --- a/packages/client/mutations/AddSlackAuthMutation.ts +++ b/packages/client/mutations/AddSlackAuthMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {AddSlackAuthMutation as TAddSlackAuthMutation} from '../__generated__/AddSlackAuthMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment AddSlackAuthMutation_team on AddSlackAuthPayload { diff --git a/packages/client/mutations/AddTeamMemberIntegrationAuthMutation.ts b/packages/client/mutations/AddTeamMemberIntegrationAuthMutation.ts index 056fd3a5242..fbf0847e219 100644 --- a/packages/client/mutations/AddTeamMemberIntegrationAuthMutation.ts +++ b/packages/client/mutations/AddTeamMemberIntegrationAuthMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {AddTeamMemberIntegrationAuthMutation as TAddTeamMemberIntegrationAuthMutation} from '../__generated__/AddTeamMemberIntegrationAuthMutation.graphql' +import {StandardMutation} from '../types/relayMutations' const mutation = graphql` mutation AddTeamMemberIntegrationAuthMutation( diff --git a/packages/client/mutations/AddTeamMutation.ts b/packages/client/mutations/AddTeamMutation.ts index a9d1a627da5..56578a67f61 100644 --- a/packages/client/mutations/AddTeamMutation.ts +++ b/packages/client/mutations/AddTeamMutation.ts @@ -1,5 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' +import {AddTeamMutation as TAddTeamMutation} from '../__generated__/AddTeamMutation.graphql' +import {AddTeamMutation_notification$data} from '../__generated__/AddTeamMutation_notification.graphql' +import {AddTeamMutation_team$data} from '../__generated__/AddTeamMutation_team.graphql' import { HistoryLocalHandler, OnNextHandler, @@ -8,9 +11,6 @@ import { StandardMutation } from '../types/relayMutations' import getGraphQLError from '../utils/relay/getGraphQLError' -import {AddTeamMutation as TAddTeamMutation} from '../__generated__/AddTeamMutation.graphql' -import {AddTeamMutation_notification$data} from '../__generated__/AddTeamMutation_notification.graphql' -import {AddTeamMutation_team$data} from '../__generated__/AddTeamMutation_team.graphql' import handleAddTeams from './handlers/handleAddTeams' import handleRemoveSuggestedActions from './handlers/handleRemoveSuggestedActions' diff --git a/packages/client/mutations/AddTranscriptionBotMutation.ts b/packages/client/mutations/AddTranscriptionBotMutation.ts index 3b5db21542a..873161adc59 100644 --- a/packages/client/mutations/AddTranscriptionBotMutation.ts +++ b/packages/client/mutations/AddTranscriptionBotMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {AddTranscriptionBotMutation as TAddTranscriptionBotMutation} from '../__generated__/AddTranscriptionBotMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment AddTranscriptionBotMutation_meeting on AddTranscriptionBotSuccess { diff --git a/packages/client/mutations/ArchiveOrganizationMutation.ts b/packages/client/mutations/ArchiveOrganizationMutation.ts index c8cce46b029..55342e88b5b 100644 --- a/packages/client/mutations/ArchiveOrganizationMutation.ts +++ b/packages/client/mutations/ArchiveOrganizationMutation.ts @@ -1,5 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' +import {ArchiveOrganizationMutation as TArchiveOrganizationMutation} from '../__generated__/ArchiveOrganizationMutation.graphql' +import {ArchiveOrganizationMutation_organization$data} from '../__generated__/ArchiveOrganizationMutation_organization.graphql' import { HistoryLocalHandler, OnNextHandler, @@ -10,8 +12,6 @@ import { import onMeetingRoute from '../utils/onMeetingRoute' import onTeamRoute from '../utils/onTeamRoute' import safeRemoveNodeFromArray from '../utils/relay/safeRemoveNodeFromArray' -import {ArchiveOrganizationMutation as TArchiveOrganizationMutation} from '../__generated__/ArchiveOrganizationMutation.graphql' -import {ArchiveOrganizationMutation_organization$data} from '../__generated__/ArchiveOrganizationMutation_organization.graphql' import handleRemoveSuggestedActions from './handlers/handleRemoveSuggestedActions' graphql` diff --git a/packages/client/mutations/ArchiveTeamMutation.ts b/packages/client/mutations/ArchiveTeamMutation.ts index 218fdd0c7c1..c06eae11d37 100644 --- a/packages/client/mutations/ArchiveTeamMutation.ts +++ b/packages/client/mutations/ArchiveTeamMutation.ts @@ -1,5 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' +import {ArchiveTeamMutation as TArchiveTeamMutation} from '../__generated__/ArchiveTeamMutation.graphql' +import {ArchiveTeamMutation_team$data} from '../__generated__/ArchiveTeamMutation_team.graphql' import { HistoryLocalHandler, OnNextHandler, @@ -10,12 +12,10 @@ import { import onMeetingRoute from '../utils/onMeetingRoute' import onTeamRoute from '../utils/onTeamRoute' import safeRemoveNodeFromArray from '../utils/relay/safeRemoveNodeFromArray' -import {ArchiveTeamMutation as TArchiveTeamMutation} from '../__generated__/ArchiveTeamMutation.graphql' -import {ArchiveTeamMutation_team$data} from '../__generated__/ArchiveTeamMutation_team.graphql' +import SetNotificationStatusMutation from './SetNotificationStatusMutation' import handleAddNotifications from './handlers/handleAddNotifications' import handleRemoveReflectTemplate from './handlers/handleRemoveReflectTemplate' import handleRemoveSuggestedActions from './handlers/handleRemoveSuggestedActions' -import SetNotificationStatusMutation from './SetNotificationStatusMutation' graphql` fragment ArchiveTeamMutation_team on ArchiveTeamPayload { diff --git a/packages/client/mutations/ArchiveTimelineEventMutation.ts b/packages/client/mutations/ArchiveTimelineEventMutation.ts index d71bc8df62a..274f9805140 100644 --- a/packages/client/mutations/ArchiveTimelineEventMutation.ts +++ b/packages/client/mutations/ArchiveTimelineEventMutation.ts @@ -1,10 +1,10 @@ +import {ArchiveTimelineEventMutation_notification$data} from '__generated__/ArchiveTimelineEventMutation_notification.graphql' import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import {RecordSourceSelectorProxy} from 'relay-runtime' -import {ArchiveTimelineEventMutation_notification$data} from '__generated__/ArchiveTimelineEventMutation_notification.graphql' import safeRemoveNodeFromConn from '~/utils/relay/safeRemoveNodeFromConn' -import {SharedUpdater, SimpleMutation} from '../types/relayMutations' import {ArchiveTimelineEventMutation as TArchiveTimelineEventMutation} from '../__generated__/ArchiveTimelineEventMutation.graphql' +import {SharedUpdater, SimpleMutation} from '../types/relayMutations' import getUserTimelineEventsConn from './connections/getUserTimelineEventsConn' graphql` diff --git a/packages/client/mutations/AutogroupMutation.ts b/packages/client/mutations/AutogroupMutation.ts index 18bbdf2a3ba..3a66969a2e1 100644 --- a/packages/client/mutations/AutogroupMutation.ts +++ b/packages/client/mutations/AutogroupMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {AutogroupMutation as TAutogroupMutation} from '../__generated__/AutogroupMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment AutogroupMutation_meeting on AutogroupSuccess { diff --git a/packages/client/mutations/BatchArchiveTasksMutation.ts b/packages/client/mutations/BatchArchiveTasksMutation.ts index c7c9c8d7095..4963f72303f 100644 --- a/packages/client/mutations/BatchArchiveTasksMutation.ts +++ b/packages/client/mutations/BatchArchiveTasksMutation.ts @@ -1,12 +1,12 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {SharedUpdater, StandardMutation} from '../types/relayMutations' +import {BatchArchiveTasksMutation_tasks$data} from '~/__generated__/BatchArchiveTasksMutation_tasks.graphql' import ITask from '../../server/database/types/Task' import {BatchArchiveTasksMutation as TBatchArchiveTasksMutation} from '../__generated__/BatchArchiveTasksMutation.graphql' -import {BatchArchiveTasksMutation_tasks$data} from '~/__generated__/BatchArchiveTasksMutation_tasks.graphql' +import {SharedUpdater, StandardMutation} from '../types/relayMutations' import getTagsFromEntityMap from '../utils/draftjs/getTagsFromEntityMap' -import handleUpsertTasks from './handlers/handleUpsertTasks' import handleRemoveTasks from './handlers/handleRemoveTasks' +import handleUpsertTasks from './handlers/handleUpsertTasks' graphql` fragment BatchArchiveTasksMutation_tasks on BatchArchiveTasksSuccess { diff --git a/packages/client/mutations/ChangeTaskTeamMutation.ts b/packages/client/mutations/ChangeTaskTeamMutation.ts index 156a7f498cc..0e873a41947 100644 --- a/packages/client/mutations/ChangeTaskTeamMutation.ts +++ b/packages/client/mutations/ChangeTaskTeamMutation.ts @@ -1,11 +1,11 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import {ChangeTaskTeamMutation_task$data} from '~/__generated__/ChangeTaskTeamMutation_task.graphql' +import {ChangeTaskTeamMutation as TChangeTaskTeamMutation} from '../__generated__/ChangeTaskTeamMutation.graphql' import {SharedUpdater, StandardMutation} from '../types/relayMutations' import getBaseRecord from '../utils/relay/getBaseRecord' import safeRemoveNodeFromUnknownConn from '../utils/relay/safeRemoveNodeFromUnknownConn' import updateProxyRecord from '../utils/relay/updateProxyRecord' -import {ChangeTaskTeamMutation as TChangeTaskTeamMutation} from '../__generated__/ChangeTaskTeamMutation.graphql' import handleUpsertTasks from './handlers/handleUpsertTasks' graphql` diff --git a/packages/client/mutations/CreateImposterTokenMutation.ts b/packages/client/mutations/CreateImposterTokenMutation.ts index dda11a6d1a1..adf70b0d252 100644 --- a/packages/client/mutations/CreateImposterTokenMutation.ts +++ b/packages/client/mutations/CreateImposterTokenMutation.ts @@ -2,9 +2,9 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import {LocalStorageKey} from '~/types/constEnums' import Atmosphere from '../Atmosphere' +import {CreateImposterTokenMutation as ICreateImposterTokenMutation} from '../__generated__/CreateImposterTokenMutation.graphql' import {SimpleMutation} from '../types/relayMutations' import getGraphQLError from '../utils/relay/getGraphQLError' -import {CreateImposterTokenMutation as ICreateImposterTokenMutation} from '../__generated__/CreateImposterTokenMutation.graphql' graphql` fragment CreateImposterTokenMutation_agendaItem on CreateImposterTokenPayload { diff --git a/packages/client/mutations/CreateMassInvitationMutation.ts b/packages/client/mutations/CreateMassInvitationMutation.ts index dc188b7d857..999a0a6490d 100644 --- a/packages/client/mutations/CreateMassInvitationMutation.ts +++ b/packages/client/mutations/CreateMassInvitationMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {CreateMassInvitationMutation as TCreateMassInvitationMutation} from '../__generated__/CreateMassInvitationMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment CreateMassInvitationMutation_team on CreateMassInvitationSuccess { diff --git a/packages/client/mutations/CreateOAuth1AuthorizeUrlMutation.ts b/packages/client/mutations/CreateOAuth1AuthorizeUrlMutation.ts index 9fbaf3d6e16..be15c2c2b7e 100644 --- a/packages/client/mutations/CreateOAuth1AuthorizeUrlMutation.ts +++ b/packages/client/mutations/CreateOAuth1AuthorizeUrlMutation.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import Atmosphere from '../Atmosphere' -import {OptionalHandlers, StandardMutation} from '../types/relayMutations' import {CreateOAuth1AuthorizeUrlMutation as TCreateOAuth1AuthorizeUrlMutation} from '../__generated__/CreateOAuth1AuthorizeUrlMutation.graphql' +import {OptionalHandlers, StandardMutation} from '../types/relayMutations' const mutation = graphql` mutation CreateOAuth1AuthorizeUrlMutation($providerId: ID!, $teamId: ID!) { diff --git a/packages/client/mutations/CreatePollMutation.ts b/packages/client/mutations/CreatePollMutation.ts index 2d165d50e3c..58418a91d4a 100644 --- a/packages/client/mutations/CreatePollMutation.ts +++ b/packages/client/mutations/CreatePollMutation.ts @@ -1,9 +1,9 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import {CreatePollMutation_meeting$data} from '~/__generated__/CreatePollMutation_meeting.graphql' -import {LocalHandlers, SharedUpdater, StandardMutation} from '../types/relayMutations' import {CreatePollMutation as TCreatePollMutation} from '../__generated__/CreatePollMutation.graphql' import {ThreadedPollBase_poll$data} from '../__generated__/ThreadedPollBase_poll.graphql' +import {LocalHandlers, SharedUpdater, StandardMutation} from '../types/relayMutations' import getDiscussionThreadConn from './connections/getDiscussionThreadConn' import safePutNodeInConn from './handlers/safePutNodeInConn' diff --git a/packages/client/mutations/CreateReflectionMutation.ts b/packages/client/mutations/CreateReflectionMutation.ts index 03956f301f1..f4974284134 100644 --- a/packages/client/mutations/CreateReflectionMutation.ts +++ b/packages/client/mutations/CreateReflectionMutation.ts @@ -5,13 +5,13 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import {CreateReflectionMutation_meeting$data} from '~/__generated__/CreateReflectionMutation_meeting.graphql' +import {CreateReflectionMutation as TCreateReflectionMutation} from '../__generated__/CreateReflectionMutation.graphql' import {SharedUpdater, StandardMutation} from '../types/relayMutations' +import SendClientSideEvent from '../utils/SendClientSideEvent' import makeEmptyStr from '../utils/draftjs/makeEmptyStr' import clientTempId from '../utils/relay/clientTempId' import createProxyRecord from '../utils/relay/createProxyRecord' -import {CreateReflectionMutation as TCreateReflectionMutation} from '../__generated__/CreateReflectionMutation.graphql' import handleAddReflectionGroups from './handlers/handleAddReflectionGroups' -import SendClientSideEvent from '../utils/SendClientSideEvent' graphql` fragment CreateReflectionMutation_meeting on CreateReflectionPayload { diff --git a/packages/client/mutations/CreateStripeSubscriptionMutation.ts b/packages/client/mutations/CreateStripeSubscriptionMutation.ts index 2868c24173a..09064ae2665 100644 --- a/packages/client/mutations/CreateStripeSubscriptionMutation.ts +++ b/packages/client/mutations/CreateStripeSubscriptionMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {CreateStripeSubscriptionMutation as TCreateStripeSubscriptionMutation} from '../__generated__/CreateStripeSubscriptionMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment CreateStripeSubscriptionMutation_organization on CreateStripeSubscriptionSuccess { diff --git a/packages/client/mutations/CreateTaskIntegrationMutation.ts b/packages/client/mutations/CreateTaskIntegrationMutation.ts index 411ef942c1c..d87e8d15b2f 100644 --- a/packages/client/mutations/CreateTaskIntegrationMutation.ts +++ b/packages/client/mutations/CreateTaskIntegrationMutation.ts @@ -3,12 +3,12 @@ import {stateToHTML} from 'draft-js-export-html' import {commitMutation} from 'react-relay' import {RecordSourceSelectorProxy} from 'relay-runtime' import JiraProjectId from '~/shared/gqlIds/JiraProjectId' +import {CreateTaskIntegrationMutation as TCreateTaskIntegrationMutation} from '../__generated__/CreateTaskIntegrationMutation.graphql' import {StandardMutation} from '../types/relayMutations' +import SendClientSideEvent from '../utils/SendClientSideEvent' import splitDraftContent from '../utils/draftjs/splitDraftContent' import getMeetingPathParams from '../utils/meetings/getMeetingPathParams' import createProxyRecord from '../utils/relay/createProxyRecord' -import {CreateTaskIntegrationMutation as TCreateTaskIntegrationMutation} from '../__generated__/CreateTaskIntegrationMutation.graphql' -import SendClientSideEvent from '../utils/SendClientSideEvent' graphql` fragment CreateTaskIntegrationMutation_task on CreateTaskIntegrationPayload { diff --git a/packages/client/mutations/CreateTaskMutation.ts b/packages/client/mutations/CreateTaskMutation.ts index 256efc3f5f8..0ff880cdf4d 100644 --- a/packages/client/mutations/CreateTaskMutation.ts +++ b/packages/client/mutations/CreateTaskMutation.ts @@ -3,6 +3,9 @@ import {commitMutation} from 'react-relay' import AzureDevOpsProjectId from '~/shared/gqlIds/AzureDevOpsProjectId' import extractTextFromDraftString from '~/utils/draftjs/extractTextFromDraftString' import Atmosphere from '../Atmosphere' +import {CreateTaskMutation as TCreateTaskMutation} from '../__generated__/CreateTaskMutation.graphql' +import {CreateTaskMutation_notification$data} from '../__generated__/CreateTaskMutation_notification.graphql' +import {CreateTaskMutation_task$data} from '../__generated__/CreateTaskMutation_task.graphql' import GitHubIssueId from '../shared/gqlIds/GitHubIssueId' import JiraProjectId from '../shared/gqlIds/JiraProjectId' import { @@ -16,9 +19,6 @@ import makeEmptyStr from '../utils/draftjs/makeEmptyStr' import clientTempId from '../utils/relay/clientTempId' import createProxyRecord from '../utils/relay/createProxyRecord' import getOptimisticTaskEditor from '../utils/relay/getOptimisticTaskEditor' -import {CreateTaskMutation as TCreateTaskMutation} from '../__generated__/CreateTaskMutation.graphql' -import {CreateTaskMutation_notification$data} from '../__generated__/CreateTaskMutation_notification.graphql' -import {CreateTaskMutation_task$data} from '../__generated__/CreateTaskMutation_task.graphql' import handleAddNotifications from './handlers/handleAddNotifications' import handleAzureCreateIssue from './handlers/handleAzureCreateIssue' import handleEditTask from './handlers/handleEditTask' diff --git a/packages/client/mutations/DeleteCommentMutation.ts b/packages/client/mutations/DeleteCommentMutation.ts index e85b917f1fa..4eaee0f1d9a 100644 --- a/packages/client/mutations/DeleteCommentMutation.ts +++ b/packages/client/mutations/DeleteCommentMutation.ts @@ -1,12 +1,12 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import {RecordProxy, RecordSourceSelectorProxy} from 'relay-runtime' +import {DeleteCommentMutation_meeting$data} from '~/__generated__/DeleteCommentMutation_meeting.graphql' import convertToTaskContent from '~/utils/draftjs/convertToTaskContent' import safeRemoveNodeFromArray from '~/utils/relay/safeRemoveNodeFromArray' import safeRemoveNodeFromConn from '~/utils/relay/safeRemoveNodeFromConn' -import {DeleteCommentMutation_meeting$data} from '~/__generated__/DeleteCommentMutation_meeting.graphql' -import {SharedUpdater, SimpleMutation} from '../types/relayMutations' import {DeleteCommentMutation as TDeleteCommentMutation} from '../__generated__/DeleteCommentMutation.graphql' +import {SharedUpdater, SimpleMutation} from '../types/relayMutations' import getDiscussionThreadConn from './connections/getDiscussionThreadConn' graphql` diff --git a/packages/client/mutations/DeleteUserMutation.ts b/packages/client/mutations/DeleteUserMutation.ts index 54ac02647ee..58add7a7157 100644 --- a/packages/client/mutations/DeleteUserMutation.ts +++ b/packages/client/mutations/DeleteUserMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {SimpleMutation} from '../types/relayMutations' import {DeleteUserMutation as TDeleteUserMutation} from '../__generated__/DeleteUserMutation.graphql' +import {SimpleMutation} from '../types/relayMutations' const mutation = graphql` mutation DeleteUserMutation($userId: ID!, $reason: String) { diff --git a/packages/client/mutations/DenyPushInvitationMutation.ts b/packages/client/mutations/DenyPushInvitationMutation.ts index 4430f779e66..13dd77f70b9 100644 --- a/packages/client/mutations/DenyPushInvitationMutation.ts +++ b/packages/client/mutations/DenyPushInvitationMutation.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {OnNextHandler, SimpleMutation} from '../types/relayMutations' import {DenyPushInvitationMutation as TDenyPushInvitationMutation} from '../__generated__/DenyPushInvitationMutation.graphql' import {DenyPushInvitationMutation_team$data} from '../__generated__/DenyPushInvitationMutation_team.graphql' +import {OnNextHandler, SimpleMutation} from '../types/relayMutations' graphql` fragment DenyPushInvitationMutation_team on DenyPushInvitationPayload { diff --git a/packages/client/mutations/DismissNewFeatureMutation.ts b/packages/client/mutations/DismissNewFeatureMutation.ts index 184981c43db..4059256c690 100644 --- a/packages/client/mutations/DismissNewFeatureMutation.ts +++ b/packages/client/mutations/DismissNewFeatureMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {DismissNewFeatureMutation as TDismissNewFeatureMutation} from '../__generated__/DismissNewFeatureMutation.graphql' +import {StandardMutation} from '../types/relayMutations' const mutation = graphql` mutation DismissNewFeatureMutation { diff --git a/packages/client/mutations/DismissSuggestedActionMutation.ts b/packages/client/mutations/DismissSuggestedActionMutation.ts index 9c05f1465f2..fb95e4ed36d 100644 --- a/packages/client/mutations/DismissSuggestedActionMutation.ts +++ b/packages/client/mutations/DismissSuggestedActionMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {DismissSuggestedActionMutation as TDismissSuggestedActionMutation} from '../__generated__/DismissSuggestedActionMutation.graphql' +import {StandardMutation} from '../types/relayMutations' import handleRemoveSuggestedActions from './handlers/handleRemoveSuggestedActions' const mutation = graphql` diff --git a/packages/client/mutations/DowngradeToStarterMutation.ts b/packages/client/mutations/DowngradeToStarterMutation.ts index b20a89ecf53..10e19e8ce7f 100644 --- a/packages/client/mutations/DowngradeToStarterMutation.ts +++ b/packages/client/mutations/DowngradeToStarterMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {DowngradeToStarterMutation as TDowngradeToStarterMutation} from '../__generated__/DowngradeToStarterMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment DowngradeToStarterMutation_organization on DowngradeToStarterPayload { diff --git a/packages/client/mutations/DragDiscussionTopicMutation.ts b/packages/client/mutations/DragDiscussionTopicMutation.ts index c9692e16203..e4423f36414 100644 --- a/packages/client/mutations/DragDiscussionTopicMutation.ts +++ b/packages/client/mutations/DragDiscussionTopicMutation.ts @@ -1,9 +1,9 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import {DragDiscussionTopicMutation_meeting$data} from '~/__generated__/DragDiscussionTopicMutation_meeting.graphql' +import {DragDiscussionTopicMutation as IDragDiscussionTopicMutation} from '../__generated__/DragDiscussionTopicMutation.graphql' import {SharedUpdater, SimpleMutation} from '../types/relayMutations' import {DISCUSS} from '../utils/constants' -import {DragDiscussionTopicMutation as IDragDiscussionTopicMutation} from '../__generated__/DragDiscussionTopicMutation.graphql' import handleUpdateStageSort from './handlers/handleUpdateStageSort' graphql` diff --git a/packages/client/mutations/DragEstimatingTaskMutation.ts b/packages/client/mutations/DragEstimatingTaskMutation.ts index 5b11756552a..fd9403da94b 100644 --- a/packages/client/mutations/DragEstimatingTaskMutation.ts +++ b/packages/client/mutations/DragEstimatingTaskMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {SimpleMutation} from '../types/relayMutations' import {DragEstimatingTaskMutation as IDragEstimatingTaskMutation} from '../__generated__/DragEstimatingTaskMutation.graphql' +import {SimpleMutation} from '../types/relayMutations' graphql` fragment DragEstimatingTaskMutation_meeting on DragEstimatingTaskSuccess { diff --git a/packages/client/mutations/EditCommentingMutation.ts b/packages/client/mutations/EditCommentingMutation.ts index b1145ffe8d5..058d1b0258c 100644 --- a/packages/client/mutations/EditCommentingMutation.ts +++ b/packages/client/mutations/EditCommentingMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {EditCommentingMutation as TEditCommentingMutation} from '../__generated__/EditCommentingMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment EditCommentingMutation_meeting on EditCommentingSuccess { diff --git a/packages/client/mutations/EditReflectionMutation.ts b/packages/client/mutations/EditReflectionMutation.ts index bc454756ba7..867989bdd7b 100644 --- a/packages/client/mutations/EditReflectionMutation.ts +++ b/packages/client/mutations/EditReflectionMutation.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import {EditReflectionMutation_meeting$data} from '~/__generated__/EditReflectionMutation_meeting.graphql' -import {SharedUpdater, SimpleMutation} from '../types/relayMutations' import {EditReflectionMutation as TEditReflectionMutation} from '../__generated__/EditReflectionMutation.graphql' +import {SharedUpdater, SimpleMutation} from '../types/relayMutations' import handleEditReflection from './handlers/handleEditReflection' graphql` diff --git a/packages/client/mutations/EditTaskMutation.ts b/packages/client/mutations/EditTaskMutation.ts index 5f9ee7b5278..3cab5e4f868 100644 --- a/packages/client/mutations/EditTaskMutation.ts +++ b/packages/client/mutations/EditTaskMutation.ts @@ -1,10 +1,10 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' +import {EditTaskMutation as TEditTaskMutation} from '../__generated__/EditTaskMutation.graphql' +import {EditTaskMutation_task$data} from '../__generated__/EditTaskMutation_task.graphql' import {SharedUpdater, SimpleMutation} from '../types/relayMutations' import getOptimisticTaskEditor from '../utils/relay/getOptimisticTaskEditor' import isTempId from '../utils/relay/isTempId' -import {EditTaskMutation as TEditTaskMutation} from '../__generated__/EditTaskMutation.graphql' -import {EditTaskMutation_task$data} from '../__generated__/EditTaskMutation_task.graphql' import handleEditTask from './handlers/handleEditTask' graphql` diff --git a/packages/client/mutations/EmailPasswordResetMutation.ts b/packages/client/mutations/EmailPasswordResetMutation.ts index 27d26cebe80..22277029f73 100644 --- a/packages/client/mutations/EmailPasswordResetMutation.ts +++ b/packages/client/mutations/EmailPasswordResetMutation.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' +import {EmailPasswordResetMutation as TEmailPasswordResetMutation} from '../__generated__/EmailPasswordResetMutation.graphql' import {AuthenticationError} from '../types/constEnums' import {LocalHandlers, StandardMutation} from '../types/relayMutations' -import {EmailPasswordResetMutation as TEmailPasswordResetMutation} from '../__generated__/EmailPasswordResetMutation.graphql' export enum ForgotPasswordResType { GOOGLE = 'goog', diff --git a/packages/client/mutations/EndCheckInMutation.ts b/packages/client/mutations/EndCheckInMutation.ts index 9b96beb70ec..656c1427468 100644 --- a/packages/client/mutations/EndCheckInMutation.ts +++ b/packages/client/mutations/EndCheckInMutation.ts @@ -1,9 +1,10 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import {RecordProxy} from 'relay-runtime' -import onMeetingRoute from '~/utils/onMeetingRoute' import {EndCheckInMutation_notification$data} from '~/__generated__/EndCheckInMutation_notification.graphql' import {EndCheckInMutation_team$data} from '~/__generated__/EndCheckInMutation_team.graphql' +import onMeetingRoute from '~/utils/onMeetingRoute' +import {EndCheckInMutation as TEndCheckInMutation} from '../__generated__/EndCheckInMutation.graphql' import { HistoryMaybeLocalHandler, OnNextHandler, @@ -11,7 +12,6 @@ import { SharedUpdater, StandardMutation } from '../types/relayMutations' -import {EndCheckInMutation as TEndCheckInMutation} from '../__generated__/EndCheckInMutation.graphql' import handleAddTimelineEvent from './handlers/handleAddTimelineEvent' import handleRemoveSuggestedActions from './handlers/handleRemoveSuggestedActions' import handleRemoveTasks from './handlers/handleRemoveTasks' diff --git a/packages/client/mutations/EndRetrospectiveMutation.ts b/packages/client/mutations/EndRetrospectiveMutation.ts index afd7feafdc8..5d27418cdd1 100644 --- a/packages/client/mutations/EndRetrospectiveMutation.ts +++ b/packages/client/mutations/EndRetrospectiveMutation.ts @@ -1,9 +1,10 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import {RecordProxy} from 'relay-runtime' -import onMeetingRoute from '~/utils/onMeetingRoute' import {EndRetrospectiveMutation_notification$data} from '~/__generated__/EndRetrospectiveMutation_notification.graphql' import {EndRetrospectiveMutation_team$data} from '~/__generated__/EndRetrospectiveMutation_team.graphql' +import onMeetingRoute from '~/utils/onMeetingRoute' +import {EndRetrospectiveMutation as TEndRetrospectiveMutation} from '../__generated__/EndRetrospectiveMutation.graphql' import {RetroDemo} from '../types/constEnums' import { HistoryMaybeLocalHandler, @@ -12,7 +13,6 @@ import { SharedUpdater, StandardMutation } from '../types/relayMutations' -import {EndRetrospectiveMutation as TEndRetrospectiveMutation} from '../__generated__/EndRetrospectiveMutation.graphql' import handleAddTimelineEvent from './handlers/handleAddTimelineEvent' import handleRemoveSuggestedActions from './handlers/handleRemoveSuggestedActions' import popEndMeetingToast from './toasts/popEndMeetingToast' diff --git a/packages/client/mutations/EndSprintPokerMutation.ts b/packages/client/mutations/EndSprintPokerMutation.ts index 3e132fd6273..74effc113a0 100644 --- a/packages/client/mutations/EndSprintPokerMutation.ts +++ b/packages/client/mutations/EndSprintPokerMutation.ts @@ -1,7 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import onMeetingRoute from '~/utils/onMeetingRoute' import {EndSprintPokerMutation_team$data} from '~/__generated__/EndSprintPokerMutation_team.graphql' +import onMeetingRoute from '~/utils/onMeetingRoute' +import {EndSprintPokerMutation as TEndSprintPokerMutation} from '../__generated__/EndSprintPokerMutation.graphql' import { HistoryMaybeLocalHandler, OnNextHandler, @@ -9,7 +10,6 @@ import { SharedUpdater, StandardMutation } from '../types/relayMutations' -import {EndSprintPokerMutation as TEndSprintPokerMutation} from '../__generated__/EndSprintPokerMutation.graphql' import handleRemoveTasks from './handlers/handleRemoveTasks' import popEndMeetingToast from './toasts/popEndMeetingToast' diff --git a/packages/client/mutations/EndTeamPromptMutation.ts b/packages/client/mutations/EndTeamPromptMutation.ts index c1b294a5f03..3b6597bd55e 100644 --- a/packages/client/mutations/EndTeamPromptMutation.ts +++ b/packages/client/mutations/EndTeamPromptMutation.ts @@ -1,8 +1,9 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import {RecordProxy} from 'relay-runtime' -import onMeetingRoute from '~/utils/onMeetingRoute' import {EndTeamPromptMutation_team$data} from '~/__generated__/EndTeamPromptMutation_team.graphql' +import onMeetingRoute from '~/utils/onMeetingRoute' +import {EndTeamPromptMutation as TEndTeamPromptMutation} from '../__generated__/EndTeamPromptMutation.graphql' import { HistoryMaybeLocalHandler, OnNextHandler, @@ -10,7 +11,6 @@ import { SharedUpdater, StandardMutation } from '../types/relayMutations' -import {EndTeamPromptMutation as TEndTeamPromptMutation} from '../__generated__/EndTeamPromptMutation.graphql' import handleAddTimelineEvent from './handlers/handleAddTimelineEvent' graphql` diff --git a/packages/client/mutations/FlagReadyToAdvanceMutation.ts b/packages/client/mutations/FlagReadyToAdvanceMutation.ts index 2b9fba68fcf..ed609eeb501 100644 --- a/packages/client/mutations/FlagReadyToAdvanceMutation.ts +++ b/packages/client/mutations/FlagReadyToAdvanceMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {SimpleMutation} from '../types/relayMutations' import {FlagReadyToAdvanceMutation as TFlagReadyToAdvanceMutation} from '../__generated__/FlagReadyToAdvanceMutation.graphql' +import {SimpleMutation} from '../types/relayMutations' graphql` fragment FlagReadyToAdvanceMutation_meeting on FlagReadyToAdvanceSuccess { diff --git a/packages/client/mutations/GetTemplateSuggestionMutation.ts b/packages/client/mutations/GetTemplateSuggestionMutation.ts index eda5c1812ff..fc1cfe1bd9e 100644 --- a/packages/client/mutations/GetTemplateSuggestionMutation.ts +++ b/packages/client/mutations/GetTemplateSuggestionMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {GetTemplateSuggestionMutation as TGetTemplateSuggestionMutation} from '../__generated__/GetTemplateSuggestionMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment GetTemplateSuggestionMutation_viewer on GetTemplateSuggestionSuccess { diff --git a/packages/client/mutations/InvalidateSessionsMutation.ts b/packages/client/mutations/InvalidateSessionsMutation.ts index 975ef83253b..e3f9809c8e5 100644 --- a/packages/client/mutations/InvalidateSessionsMutation.ts +++ b/packages/client/mutations/InvalidateSessionsMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {InvalidateSessionsMutation as TInvalidateSessionsMutation} from '../__generated__/InvalidateSessionsMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment InvalidateSessionsMutation_notification on InvalidateSessionsPayload { diff --git a/packages/client/mutations/InviteToTeamMutation.ts b/packages/client/mutations/InviteToTeamMutation.ts index eca0fc3187e..f662151ca52 100644 --- a/packages/client/mutations/InviteToTeamMutation.ts +++ b/packages/client/mutations/InviteToTeamMutation.ts @@ -1,6 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import {matchPath} from 'react-router' +import {InviteToTeamMutation as TInviteToTeamMutation} from '../__generated__/InviteToTeamMutation.graphql' +import {InviteToTeamMutation_notification$data} from '../__generated__/InviteToTeamMutation_notification.graphql' import { LocalHandlers, OnNextHandler, @@ -8,8 +10,6 @@ import { SharedUpdater, StandardMutation } from '../types/relayMutations' -import {InviteToTeamMutation as TInviteToTeamMutation} from '../__generated__/InviteToTeamMutation.graphql' -import {InviteToTeamMutation_notification$data} from '../__generated__/InviteToTeamMutation_notification.graphql' import AcceptTeamInvitationMutation from './AcceptTeamInvitationMutation' import handleAddNotifications from './handlers/handleAddNotifications' import handleRemoveSuggestedActions from './handlers/handleRemoveSuggestedActions' diff --git a/packages/client/mutations/JoinMeetingMutation.ts b/packages/client/mutations/JoinMeetingMutation.ts index e50db516eb1..66a2caff22e 100644 --- a/packages/client/mutations/JoinMeetingMutation.ts +++ b/packages/client/mutations/JoinMeetingMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {JoinMeetingMutation as TJoinMeetingMutation} from '../__generated__/JoinMeetingMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment JoinMeetingMutation_meeting on JoinMeetingSuccess { diff --git a/packages/client/mutations/LoginWithGoogleMutation.ts b/packages/client/mutations/LoginWithGoogleMutation.ts index e020f7d72a9..b64e6b5ee5e 100644 --- a/packages/client/mutations/LoginWithGoogleMutation.ts +++ b/packages/client/mutations/LoginWithGoogleMutation.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import {handleSuccessfulLogin} from '~/utils/handleSuccessfulLogin' -import {HistoryLocalHandler, StandardMutation} from '../types/relayMutations' import {LoginWithGoogleMutation as TLoginWithGoogleMutation} from '../__generated__/LoginWithGoogleMutation.graphql' +import {HistoryLocalHandler, StandardMutation} from '../types/relayMutations' import {handleAcceptTeamInvitationErrors} from './AcceptTeamInvitationMutation' import handleAuthenticationRedirect from './handlers/handleAuthenticationRedirect' diff --git a/packages/client/mutations/LoginWithMicrosoftMutation.ts b/packages/client/mutations/LoginWithMicrosoftMutation.ts index 696d7fe0dfc..7293cffa73e 100644 --- a/packages/client/mutations/LoginWithMicrosoftMutation.ts +++ b/packages/client/mutations/LoginWithMicrosoftMutation.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import {handleSuccessfulLogin} from '~/utils/handleSuccessfulLogin' -import {HistoryLocalHandler, StandardMutation} from '../types/relayMutations' import {LoginWithMicrosoftMutation as TLoginWithMicrosoftMutation} from '../__generated__/LoginWithMicrosoftMutation.graphql' +import {HistoryLocalHandler, StandardMutation} from '../types/relayMutations' import {handleAcceptTeamInvitationErrors} from './AcceptTeamInvitationMutation' import handleAuthenticationRedirect from './handlers/handleAuthenticationRedirect' diff --git a/packages/client/mutations/LoginWithPasswordMutation.ts b/packages/client/mutations/LoginWithPasswordMutation.ts index 9efdfa4283e..af89a6cd827 100644 --- a/packages/client/mutations/LoginWithPasswordMutation.ts +++ b/packages/client/mutations/LoginWithPasswordMutation.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import {handleSuccessfulLogin} from '~/utils/handleSuccessfulLogin' -import {HistoryLocalHandler, StandardMutation} from '../types/relayMutations' import {LoginWithPasswordMutation as TLoginWithPasswordMutation} from '../__generated__/LoginWithPasswordMutation.graphql' +import {HistoryLocalHandler, StandardMutation} from '../types/relayMutations' import {handleAcceptTeamInvitationErrors} from './AcceptTeamInvitationMutation' import handleAuthenticationRedirect from './handlers/handleAuthenticationRedirect' diff --git a/packages/client/mutations/MovePokerTemplateDimensionMutation.ts b/packages/client/mutations/MovePokerTemplateDimensionMutation.ts index e29fddca74c..3e20d7d7e75 100644 --- a/packages/client/mutations/MovePokerTemplateDimensionMutation.ts +++ b/packages/client/mutations/MovePokerTemplateDimensionMutation.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import {MovePokerTemplateDimensionMutation as TMovePokerTemplateDimensionMutation} from '~/__generated__/MovePokerTemplateDimensionMutation.graphql' -import {SharedUpdater, StandardMutation} from '../types/relayMutations' import {MovePokerTemplateDimensionMutation_team$data} from '../__generated__/MovePokerTemplateDimensionMutation_team.graphql' +import {SharedUpdater, StandardMutation} from '../types/relayMutations' import handleMovePokerTemplateDimension from './handlers/handleMovePokerTemplateDimension' graphql` diff --git a/packages/client/mutations/MovePokerTemplateScaleValueMutation.ts b/packages/client/mutations/MovePokerTemplateScaleValueMutation.ts index 25ba330b30b..44951285b9a 100644 --- a/packages/client/mutations/MovePokerTemplateScaleValueMutation.ts +++ b/packages/client/mutations/MovePokerTemplateScaleValueMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {MovePokerTemplateScaleValueMutation as TMovePokerTemplateScaleValueMutation} from '../__generated__/MovePokerTemplateScaleValueMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment MovePokerTemplateScaleValueMutation_team on MovePokerTemplateScaleValueSuccess { diff --git a/packages/client/mutations/MoveReflectTemplatePromptMutation.ts b/packages/client/mutations/MoveReflectTemplatePromptMutation.ts index 8a5c288b64c..531d10357dc 100644 --- a/packages/client/mutations/MoveReflectTemplatePromptMutation.ts +++ b/packages/client/mutations/MoveReflectTemplatePromptMutation.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import {MoveReflectTemplatePromptMutation as TMoveReflectTemplatePromptMutation} from '~/__generated__/MoveReflectTemplatePromptMutation.graphql' -import {SharedUpdater, StandardMutation} from '../types/relayMutations' import {MoveReflectTemplatePromptMutation_team$data} from '../__generated__/MoveReflectTemplatePromptMutation_team.graphql' +import {SharedUpdater, StandardMutation} from '../types/relayMutations' import handleMoveTemplatePrompt from './handlers/handleMoveTemplatePrompt' interface Context { templateId: string diff --git a/packages/client/mutations/NavigateMeetingMutation.ts b/packages/client/mutations/NavigateMeetingMutation.ts index bad2b92505b..fff2549f231 100644 --- a/packages/client/mutations/NavigateMeetingMutation.ts +++ b/packages/client/mutations/NavigateMeetingMutation.ts @@ -6,6 +6,7 @@ import { } from '~/__generated__/NavigateMeetingMutation_meeting.graphql' import {NavigateMeetingMutation_team$data} from '~/__generated__/NavigateMeetingMutation_team.graphql' import {ReflectionGroup_reflectionGroup$data} from '~/__generated__/ReflectionGroup_reflectionGroup.graphql' +import {NavigateMeetingMutation as TNavigateMeetingMutation} from '../__generated__/NavigateMeetingMutation.graphql' import {SharedUpdater, SimpleMutation} from '../types/relayMutations' import {REFLECT, VOTE} from '../utils/constants' import isInterruptingChickenPhase from '../utils/isInterruptingChickenPhase' @@ -13,7 +14,6 @@ import getBaseRecord from '../utils/relay/getBaseRecord' import safeProxy from '../utils/relay/safeProxy' import {setLocalStageAndPhase} from '../utils/relay/updateLocalStage' import {isViewerTypingInComment, isViewerTypingInTask} from '../utils/viewerTypingUtils' -import {NavigateMeetingMutation as TNavigateMeetingMutation} from '../__generated__/NavigateMeetingMutation.graphql' import handleRemoveReflectionGroups from './handlers/handleRemoveReflectionGroups' graphql` diff --git a/packages/client/mutations/OldUpdateCreditCardMutation.ts b/packages/client/mutations/OldUpdateCreditCardMutation.ts index 6abc853dd5a..724321c1530 100644 --- a/packages/client/mutations/OldUpdateCreditCardMutation.ts +++ b/packages/client/mutations/OldUpdateCreditCardMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {OldUpdateCreditCardMutation as TOldUpdateCreditCardMutation} from '../__generated__/OldUpdateCreditCardMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment OldUpdateCreditCardMutation_organization on OldUpdateCreditCardPayload { diff --git a/packages/client/mutations/OldUpgradeToTeamTierMutation.ts b/packages/client/mutations/OldUpgradeToTeamTierMutation.ts index 6b2e6e3a2d7..0dbbdbb2e51 100644 --- a/packages/client/mutations/OldUpgradeToTeamTierMutation.ts +++ b/packages/client/mutations/OldUpgradeToTeamTierMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {OldUpgradeToTeamTierMutation as TOldUpgradeToTeamTierMutation} from '../__generated__/OldUpgradeToTeamTierMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment OldUpgradeToTeamTierMutation_organization on OldUpgradeToTeamTierPayload { diff --git a/packages/client/mutations/PayLaterMutation.ts b/packages/client/mutations/PayLaterMutation.ts index af3ced5ad59..5da2758c95a 100644 --- a/packages/client/mutations/PayLaterMutation.ts +++ b/packages/client/mutations/PayLaterMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'relay-runtime' -import {SimpleMutation} from '../types/relayMutations' import {PayLaterMutation as TPayLaterMutation} from '../__generated__/PayLaterMutation.graphql' +import {SimpleMutation} from '../types/relayMutations' graphql` fragment PayLaterMutation_organization on PayLaterPayload { diff --git a/packages/client/mutations/PersistGitHubSearchQueryMutation.ts b/packages/client/mutations/PersistGitHubSearchQueryMutation.ts index fa6c6338a29..f95b4000b63 100644 --- a/packages/client/mutations/PersistGitHubSearchQueryMutation.ts +++ b/packages/client/mutations/PersistGitHubSearchQueryMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {SimpleMutation} from '../types/relayMutations' import {PersistGitHubSearchQueryMutation as TPersistGitHubSearchQueryMutation} from '../__generated__/PersistGitHubSearchQueryMutation.graphql' +import {SimpleMutation} from '../types/relayMutations' graphql` fragment PersistGitHubSearchQueryMutation_notification on PersistGitHubSearchQuerySuccess { diff --git a/packages/client/mutations/PersistJiraSearchQueryMutation.ts b/packages/client/mutations/PersistJiraSearchQueryMutation.ts index 64a87afa577..c4331cf7e94 100644 --- a/packages/client/mutations/PersistJiraSearchQueryMutation.ts +++ b/packages/client/mutations/PersistJiraSearchQueryMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {SimpleMutation} from '../types/relayMutations' import {PersistJiraSearchQueryMutation as TPersistJiraSearchQueryMutation} from '../__generated__/PersistJiraSearchQueryMutation.graphql' +import {SimpleMutation} from '../types/relayMutations' graphql` fragment PersistJiraSearchQueryMutation_notification on PersistJiraSearchQuerySuccess { diff --git a/packages/client/mutations/PersistJiraServerSearchQueryMutation.ts b/packages/client/mutations/PersistJiraServerSearchQueryMutation.ts index e6676d8b867..cc4012b61aa 100644 --- a/packages/client/mutations/PersistJiraServerSearchQueryMutation.ts +++ b/packages/client/mutations/PersistJiraServerSearchQueryMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {SimpleMutation} from '../types/relayMutations' import {PersistJiraServerSearchQueryMutation as TPersistJiraServerSearchQueryMutation} from '../__generated__/PersistJiraServerSearchQueryMutation.graphql' +import {SimpleMutation} from '../types/relayMutations' graphql` fragment PersistJiraServerSearchQueryMutation_notification on PersistIntegrationSearchQuerySuccess { diff --git a/packages/client/mutations/PokerAnnounceDeckHoverMutation.ts b/packages/client/mutations/PokerAnnounceDeckHoverMutation.ts index 0ac6e368f97..cfb6aa2cdfe 100644 --- a/packages/client/mutations/PokerAnnounceDeckHoverMutation.ts +++ b/packages/client/mutations/PokerAnnounceDeckHoverMutation.ts @@ -1,11 +1,11 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import {RecordProxy} from 'relay-runtime' -import {SharedUpdater, SimpleMutation} from '../types/relayMutations' -import createProxyRecord from '../utils/relay/createProxyRecord' import {PokerAnnounceDeckHoverMutation as TPokerAnnounceDeckHoverMutation} from '../__generated__/PokerAnnounceDeckHoverMutation.graphql' import {PokerAnnounceDeckHoverMutation_meeting$data} from '../__generated__/PokerAnnounceDeckHoverMutation_meeting.graphql' import {PokerMeeting_meeting$data} from '../__generated__/PokerMeeting_meeting.graphql' +import {SharedUpdater, SimpleMutation} from '../types/relayMutations' +import createProxyRecord from '../utils/relay/createProxyRecord' // asking for the correct hoveringUsers array would be fine, except we know a user can existing in exactly 1 hoveringUsers array at a time // which means we have to iterate over each stage & remove it from all others (because mouseEnter/mouseLeave are not always reliable) diff --git a/packages/client/mutations/PokerResetDimensionMutation.ts b/packages/client/mutations/PokerResetDimensionMutation.ts index 1a0c238dabb..1939a0dd0f0 100644 --- a/packages/client/mutations/PokerResetDimensionMutation.ts +++ b/packages/client/mutations/PokerResetDimensionMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {PokerResetDimensionMutation as TPokerResetDimensionMutation} from '../__generated__/PokerResetDimensionMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment PokerResetDimensionMutation_meeting on PokerResetDimensionSuccess { diff --git a/packages/client/mutations/PromoteNewMeetingFacilitatorMutation.ts b/packages/client/mutations/PromoteNewMeetingFacilitatorMutation.ts index b632f194b99..085309e7859 100644 --- a/packages/client/mutations/PromoteNewMeetingFacilitatorMutation.ts +++ b/packages/client/mutations/PromoteNewMeetingFacilitatorMutation.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {OnNextHandler, SimpleMutation} from '../types/relayMutations' import {PromoteNewMeetingFacilitatorMutation as TPromoteNewMeetingFacilitatorMutation} from '../__generated__/PromoteNewMeetingFacilitatorMutation.graphql' import {PromoteNewMeetingFacilitatorMutation_meeting$data} from '../__generated__/PromoteNewMeetingFacilitatorMutation_meeting.graphql' +import {OnNextHandler, SimpleMutation} from '../types/relayMutations' graphql` fragment PromoteNewMeetingFacilitatorMutation_meeting on PromoteNewMeetingFacilitatorPayload { diff --git a/packages/client/mutations/PromoteToTeamLeadMutation.ts b/packages/client/mutations/PromoteToTeamLeadMutation.ts index af3325b1808..fba4d965c6e 100644 --- a/packages/client/mutations/PromoteToTeamLeadMutation.ts +++ b/packages/client/mutations/PromoteToTeamLeadMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {PromoteToTeamLeadMutation as TPromoteToTeamLeadMutation} from '../__generated__/PromoteToTeamLeadMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment PromoteToTeamLeadMutation_team on PromoteToTeamLeadPayload { team { diff --git a/packages/client/mutations/PushInvitationMutation.ts b/packages/client/mutations/PushInvitationMutation.ts index af7252d1625..b4dc41146e7 100644 --- a/packages/client/mutations/PushInvitationMutation.ts +++ b/packages/client/mutations/PushInvitationMutation.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {OnNextHandler, StandardMutation} from '../types/relayMutations' import {PushInvitationMutation as TPushInvitationMutation} from '../__generated__/PushInvitationMutation.graphql' import {PushInvitationMutation_team$data} from '../__generated__/PushInvitationMutation_team.graphql' +import {OnNextHandler, StandardMutation} from '../types/relayMutations' import DenyPushInvitationMutation from './DenyPushInvitationMutation' import InviteToTeamMutation from './InviteToTeamMutation' diff --git a/packages/client/mutations/ReflectTemplatePromptUpdateDescriptionMutation.ts b/packages/client/mutations/ReflectTemplatePromptUpdateDescriptionMutation.ts index e4126838116..166f1202558 100644 --- a/packages/client/mutations/ReflectTemplatePromptUpdateDescriptionMutation.ts +++ b/packages/client/mutations/ReflectTemplatePromptUpdateDescriptionMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {ReflectTemplatePromptUpdateDescriptionMutation as TReflectTemplatePromptUpdateDescriptionMutation} from '../__generated__/ReflectTemplatePromptUpdateDescriptionMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment ReflectTemplatePromptUpdateDescriptionMutation_team on ReflectTemplatePromptUpdateDescriptionPayload { diff --git a/packages/client/mutations/ReflectTemplatePromptUpdateGroupColorMutation.ts b/packages/client/mutations/ReflectTemplatePromptUpdateGroupColorMutation.ts index abab45f0b58..254f8f6facf 100644 --- a/packages/client/mutations/ReflectTemplatePromptUpdateGroupColorMutation.ts +++ b/packages/client/mutations/ReflectTemplatePromptUpdateGroupColorMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {SimpleMutation} from '../types/relayMutations' import {ReflectTemplatePromptUpdateGroupColorMutation as TReflectTemplatePromptUpdateGroupColorMutation} from '../__generated__/ReflectTemplatePromptUpdateGroupColorMutation.graphql' +import {SimpleMutation} from '../types/relayMutations' graphql` fragment ReflectTemplatePromptUpdateGroupColorMutation_team on ReflectTemplatePromptUpdateGroupColorPayload { diff --git a/packages/client/mutations/RemoveAgendaItemMutation.ts b/packages/client/mutations/RemoveAgendaItemMutation.ts index f698ac1200f..865e63319b9 100644 --- a/packages/client/mutations/RemoveAgendaItemMutation.ts +++ b/packages/client/mutations/RemoveAgendaItemMutation.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {SharedUpdater, StandardMutation} from '../types/relayMutations' import {RemoveAgendaItemMutation as TRemoveAgendaItemMutation} from '../__generated__/RemoveAgendaItemMutation.graphql' import {RemoveAgendaItemMutation_team$data} from '../__generated__/RemoveAgendaItemMutation_team.graphql' +import {SharedUpdater, StandardMutation} from '../types/relayMutations' import handleRemoveAgendaItems from './handlers/handleRemoveAgendaItems' graphql` fragment RemoveAgendaItemMutation_team on RemoveAgendaItemPayload { diff --git a/packages/client/mutations/RemoveAtlassianAuthMutation.ts b/packages/client/mutations/RemoveAtlassianAuthMutation.ts index 576a6425624..1a69d58234b 100644 --- a/packages/client/mutations/RemoveAtlassianAuthMutation.ts +++ b/packages/client/mutations/RemoveAtlassianAuthMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {RemoveAtlassianAuthMutation as TRemoveAtlassianAuthMutation} from '../__generated__/RemoveAtlassianAuthMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment RemoveAtlassianAuthMutation_team on RemoveAtlassianAuthPayload { diff --git a/packages/client/mutations/RemoveGitHubAuthMutation.ts b/packages/client/mutations/RemoveGitHubAuthMutation.ts index 1f212137fba..4e0a50c48ae 100644 --- a/packages/client/mutations/RemoveGitHubAuthMutation.ts +++ b/packages/client/mutations/RemoveGitHubAuthMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {RemoveGitHubAuthMutation as TRemoveGitHubAuthMutation} from '../__generated__/RemoveGitHubAuthMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment RemoveGitHubAuthMutation_team on RemoveGitHubAuthPayload { diff --git a/packages/client/mutations/RemoveIntegrationProviderMutation.ts b/packages/client/mutations/RemoveIntegrationProviderMutation.ts index b807ac2d615..26acc7035fe 100644 --- a/packages/client/mutations/RemoveIntegrationProviderMutation.ts +++ b/packages/client/mutations/RemoveIntegrationProviderMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {RemoveIntegrationProviderMutation as TRemoveIntegrationProviderMutation} from '../__generated__/RemoveIntegrationProviderMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment RemoveIntegrationProviderMutation_team on RemoveIntegrationProviderSuccess { diff --git a/packages/client/mutations/RemoveJiraServerSearchQueryMutation.ts b/packages/client/mutations/RemoveJiraServerSearchQueryMutation.ts index 6fe116b185c..14284935dcb 100644 --- a/packages/client/mutations/RemoveJiraServerSearchQueryMutation.ts +++ b/packages/client/mutations/RemoveJiraServerSearchQueryMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {SimpleMutation} from '../types/relayMutations' import {RemoveJiraServerSearchQueryMutation as TRemoveJiraServerSearchQueryMutation} from '../__generated__/RemoveJiraServerSearchQueryMutation.graphql' +import {SimpleMutation} from '../types/relayMutations' graphql` fragment RemoveJiraServerSearchQueryMutation_notification on RemoveIntegrationSearchQuerySuccess { diff --git a/packages/client/mutations/RemoveOrgUserMutation.ts b/packages/client/mutations/RemoveOrgUserMutation.ts index b16f85fb91e..13e86325497 100644 --- a/packages/client/mutations/RemoveOrgUserMutation.ts +++ b/packages/client/mutations/RemoveOrgUserMutation.ts @@ -2,6 +2,9 @@ import graphql from 'babel-plugin-relay/macro' import {commitLocalUpdate, commitMutation} from 'react-relay' import {RemoveOrgUserMutation as TRemoveOrgUserMutation} from '~/__generated__/RemoveOrgUserMutation.graphql' import {RemoveOrgUserMutation_team$data} from '~/__generated__/RemoveOrgUserMutation_team.graphql' +import {RemoveOrgUserMutation_notification$data} from '../__generated__/RemoveOrgUserMutation_notification.graphql' +import {RemoveOrgUserMutation_organization$data} from '../__generated__/RemoveOrgUserMutation_organization.graphql' +import {RemoveOrgUserMutation_task$data} from '../__generated__/RemoveOrgUserMutation_task.graphql' import { HistoryLocalHandler, OnNextHandler, @@ -14,12 +17,9 @@ import onExOrgRoute from '../utils/onExOrgRoute' import onMeetingRoute from '../utils/onMeetingRoute' import onTeamRoute from '../utils/onTeamRoute' import {setLocalStageAndPhase} from '../utils/relay/updateLocalStage' -import {RemoveOrgUserMutation_notification$data} from '../__generated__/RemoveOrgUserMutation_notification.graphql' -import {RemoveOrgUserMutation_organization$data} from '../__generated__/RemoveOrgUserMutation_organization.graphql' -import {RemoveOrgUserMutation_task$data} from '../__generated__/RemoveOrgUserMutation_task.graphql' import handleAddNotifications from './handlers/handleAddNotifications' -import handleRemoveOrganization from './handlers/handleRemoveOrganization' import handleRemoveOrgMembers from './handlers/handleRemoveOrgMembers' +import handleRemoveOrganization from './handlers/handleRemoveOrganization' import handleRemoveTasks from './handlers/handleRemoveTasks' import handleRemoveTeamMembers from './handlers/handleRemoveTeamMembers' import handleRemoveTeams from './handlers/handleRemoveTeams' diff --git a/packages/client/mutations/RemovePokerTemplateDimensionMutation.ts b/packages/client/mutations/RemovePokerTemplateDimensionMutation.ts index cf95494111d..8b6117f7fb5 100644 --- a/packages/client/mutations/RemovePokerTemplateDimensionMutation.ts +++ b/packages/client/mutations/RemovePokerTemplateDimensionMutation.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {SharedUpdater, StandardMutation} from '../types/relayMutations' import {RemovePokerTemplateDimensionMutation as IRemovePokerTemplateDimensionMutation} from '../__generated__/RemovePokerTemplateDimensionMutation.graphql' import {RemovePokerTemplateDimensionMutation_team$data} from '../__generated__/RemovePokerTemplateDimensionMutation_team.graphql' +import {SharedUpdater, StandardMutation} from '../types/relayMutations' import handleRemovePokerTemplateDimension from './handlers/handleRemovePokerTemplateDimension' graphql` diff --git a/packages/client/mutations/RemovePokerTemplateMutation.ts b/packages/client/mutations/RemovePokerTemplateMutation.ts index 44f3bfdeda5..978c8bafaf6 100644 --- a/packages/client/mutations/RemovePokerTemplateMutation.ts +++ b/packages/client/mutations/RemovePokerTemplateMutation.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {SharedUpdater, StandardMutation} from '../types/relayMutations' import {RemovePokerTemplateMutation as TRemovePokerTemplateMutation} from '../__generated__/RemovePokerTemplateMutation.graphql' import {RemovePokerTemplateMutation_team$data} from '../__generated__/RemovePokerTemplateMutation_team.graphql' +import {SharedUpdater, StandardMutation} from '../types/relayMutations' import handleRemovePokerTemplate from './handlers/handleRemovePokerTemplate' graphql` diff --git a/packages/client/mutations/RemovePokerTemplateScaleMutation.ts b/packages/client/mutations/RemovePokerTemplateScaleMutation.ts index c88546ca0aa..fd17762e834 100644 --- a/packages/client/mutations/RemovePokerTemplateScaleMutation.ts +++ b/packages/client/mutations/RemovePokerTemplateScaleMutation.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {SharedUpdater, StandardMutation} from '../types/relayMutations' import {RemovePokerTemplateScaleMutation as IRemovePokerTemplateScaleMutation} from '../__generated__/RemovePokerTemplateScaleMutation.graphql' import {RemovePokerTemplateScaleMutation_scale$data} from '../__generated__/RemovePokerTemplateScaleMutation_scale.graphql' +import {SharedUpdater, StandardMutation} from '../types/relayMutations' import handleRemovePokerTemplateScale from './handlers/handleRemovePokerTemplateScale' graphql` diff --git a/packages/client/mutations/RemovePokerTemplateScaleValueMutation.ts b/packages/client/mutations/RemovePokerTemplateScaleValueMutation.ts index 94469cd3338..c99b6514b73 100644 --- a/packages/client/mutations/RemovePokerTemplateScaleValueMutation.ts +++ b/packages/client/mutations/RemovePokerTemplateScaleValueMutation.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import safeRemoveNodeFromArray from '~/utils/relay/safeRemoveNodeFromArray' -import {StandardMutation} from '../types/relayMutations' import {RemovePokerTemplateScaleValueMutation as IRemovePokerTemplateScaleValueMutation} from '../__generated__/RemovePokerTemplateScaleValueMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment RemovePokerTemplateScaleValueMutation_scale on RemovePokerTemplateScaleValuePayload { diff --git a/packages/client/mutations/RemoveReflectTemplateMutation.ts b/packages/client/mutations/RemoveReflectTemplateMutation.ts index ba887c5b66a..f82e6b3e99e 100644 --- a/packages/client/mutations/RemoveReflectTemplateMutation.ts +++ b/packages/client/mutations/RemoveReflectTemplateMutation.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {SharedUpdater, StandardMutation} from '../types/relayMutations' import {RemoveReflectTemplateMutation as TRemoveReflectTemplateMutation} from '../__generated__/RemoveReflectTemplateMutation.graphql' import {RemoveReflectTemplateMutation_team$data} from '../__generated__/RemoveReflectTemplateMutation_team.graphql' +import {SharedUpdater, StandardMutation} from '../types/relayMutations' import handleRemoveReflectTemplate from './handlers/handleRemoveReflectTemplate' graphql` diff --git a/packages/client/mutations/RemoveReflectTemplatePromptMutation.ts b/packages/client/mutations/RemoveReflectTemplatePromptMutation.ts index 393fed94e54..d822dc855e5 100644 --- a/packages/client/mutations/RemoveReflectTemplatePromptMutation.ts +++ b/packages/client/mutations/RemoveReflectTemplatePromptMutation.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {SharedUpdater, StandardMutation} from '../types/relayMutations' import {RemoveReflectTemplatePromptMutation as TRemoveReflectTemplatePromptMutation} from '../__generated__/RemoveReflectTemplatePromptMutation.graphql' import {RemoveReflectTemplatePromptMutation_team$data} from '../__generated__/RemoveReflectTemplatePromptMutation_team.graphql' +import {SharedUpdater, StandardMutation} from '../types/relayMutations' import handleRemoveReflectTemplatePrompt from './handlers/handleRemoveReflectTemplatePrompt' graphql` diff --git a/packages/client/mutations/RemoveReflectionMutation.ts b/packages/client/mutations/RemoveReflectionMutation.ts index f3ec9118b47..23c09faa733 100644 --- a/packages/client/mutations/RemoveReflectionMutation.ts +++ b/packages/client/mutations/RemoveReflectionMutation.ts @@ -6,9 +6,9 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import {RecordSourceSelectorProxy} from 'relay-runtime' import {RemoveReflectionMutation_meeting$data} from '~/__generated__/RemoveReflectionMutation_meeting.graphql' +import {RemoveReflectionMutation as TRemoveReflectionMutation} from '../__generated__/RemoveReflectionMutation.graphql' import {BaseLocalHandlers, SharedUpdater, StandardMutation} from '../types/relayMutations' import safeRemoveNodeFromArray from '../utils/relay/safeRemoveNodeFromArray' -import {RemoveReflectionMutation as TRemoveReflectionMutation} from '../__generated__/RemoveReflectionMutation.graphql' import handleRemoveReflectionGroups from './handlers/handleRemoveReflectionGroups' graphql` diff --git a/packages/client/mutations/RemoveSlackAuthMutation.ts b/packages/client/mutations/RemoveSlackAuthMutation.ts index 5f72fb137e0..59f94e9e45a 100644 --- a/packages/client/mutations/RemoveSlackAuthMutation.ts +++ b/packages/client/mutations/RemoveSlackAuthMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {RemoveSlackAuthMutation as TRemoveSlackAuthMutation} from '../__generated__/RemoveSlackAuthMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment RemoveSlackAuthMutation_team on RemoveSlackAuthPayload { diff --git a/packages/client/mutations/RemoveTeamMemberIntegrationAuthMutation.ts b/packages/client/mutations/RemoveTeamMemberIntegrationAuthMutation.ts index 669209b41e2..fcec82fdcfc 100644 --- a/packages/client/mutations/RemoveTeamMemberIntegrationAuthMutation.ts +++ b/packages/client/mutations/RemoveTeamMemberIntegrationAuthMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {RemoveTeamMemberIntegrationAuthMutation as TRemoveTeamMemberIntegrationAuthMutation} from '../__generated__/RemoveTeamMemberIntegrationAuthMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment RemoveTeamMemberIntegrationAuthMutation_team on RemoveTeamMemberIntegrationAuthSuccess { diff --git a/packages/client/mutations/RemoveTeamMemberMutation.ts b/packages/client/mutations/RemoveTeamMemberMutation.ts index f2a7362cae0..1acfef0e19f 100644 --- a/packages/client/mutations/RemoveTeamMemberMutation.ts +++ b/packages/client/mutations/RemoveTeamMemberMutation.ts @@ -1,5 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' +import {RemoveTeamMemberMutation as TRemoveTeamMemberMutation} from '../__generated__/RemoveTeamMemberMutation.graphql' +import {RemoveTeamMemberMutation_task$data} from '../__generated__/RemoveTeamMemberMutation_task.graphql' +import {RemoveTeamMemberMutation_team$data} from '../__generated__/RemoveTeamMemberMutation_team.graphql' import { OnNextHandler, OnNextHistoryContext, @@ -8,15 +11,12 @@ import { } from '../types/relayMutations' import onMeetingRoute from '../utils/onMeetingRoute' import onTeamRoute from '../utils/onTeamRoute' -import {RemoveTeamMemberMutation as TRemoveTeamMemberMutation} from '../__generated__/RemoveTeamMemberMutation.graphql' -import {RemoveTeamMemberMutation_task$data} from '../__generated__/RemoveTeamMemberMutation_task.graphql' -import {RemoveTeamMemberMutation_team$data} from '../__generated__/RemoveTeamMemberMutation_team.graphql' +import SetNotificationStatusMutation from './SetNotificationStatusMutation' import handleAddNotifications from './handlers/handleAddNotifications' import handleRemoveTasks from './handlers/handleRemoveTasks' import handleRemoveTeamMembers from './handlers/handleRemoveTeamMembers' import handleRemoveTeams from './handlers/handleRemoveTeams' import handleUpsertTasks from './handlers/handleUpsertTasks' -import SetNotificationStatusMutation from './SetNotificationStatusMutation' graphql` fragment RemoveTeamMemberMutation_task on RemoveTeamMemberPayload { diff --git a/packages/client/mutations/RenameMeetingMutation.ts b/packages/client/mutations/RenameMeetingMutation.ts index f52e2231200..24497489eea 100644 --- a/packages/client/mutations/RenameMeetingMutation.ts +++ b/packages/client/mutations/RenameMeetingMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {RenameMeetingMutation as TRenameMeetingMutation} from '../__generated__/RenameMeetingMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment RenameMeetingMutation_team on RenameMeetingSuccess { diff --git a/packages/client/mutations/RequestToJoinDomainMutation.ts b/packages/client/mutations/RequestToJoinDomainMutation.ts index c0397785779..98fdc28ce47 100644 --- a/packages/client/mutations/RequestToJoinDomainMutation.ts +++ b/packages/client/mutations/RequestToJoinDomainMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {SimpleMutation} from '../types/relayMutations' import {RequestToJoinDomainMutation as TRequestToJoinDomainMutation} from '../__generated__/RequestToJoinDomainMutation.graphql' +import {SimpleMutation} from '../types/relayMutations' import promptToJoinOrgSuccessToast from './toasts/promptToJoinOrgSuccessToast' const mutation = graphql` diff --git a/packages/client/mutations/ResetPasswordMutation.ts b/packages/client/mutations/ResetPasswordMutation.ts index 4d61a5a25dc..4035b67f172 100644 --- a/packages/client/mutations/ResetPasswordMutation.ts +++ b/packages/client/mutations/ResetPasswordMutation.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import getValidRedirectParam from '~/utils/getValidRedirectParam' -import {HistoryLocalHandler, StandardMutation} from '../types/relayMutations' import {ResetPasswordMutation as TResetPasswordMutation} from '../__generated__/ResetPasswordMutation.graphql' +import {HistoryLocalHandler, StandardMutation} from '../types/relayMutations' const mutation = graphql` mutation ResetPasswordMutation($newPassword: String!, $token: ID!) { diff --git a/packages/client/mutations/ResetReflectionGroupsMutation.ts b/packages/client/mutations/ResetReflectionGroupsMutation.ts index eb91e7998fb..66cc437e32e 100644 --- a/packages/client/mutations/ResetReflectionGroupsMutation.ts +++ b/packages/client/mutations/ResetReflectionGroupsMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {ResetReflectionGroupsMutation as TResetReflectionGroupsMutation} from '../__generated__/ResetReflectionGroupsMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment ResetReflectionGroupsMutation_meeting on ResetReflectionGroupsSuccess { diff --git a/packages/client/mutations/ResetRetroMeetingToGroupStageMutation.ts b/packages/client/mutations/ResetRetroMeetingToGroupStageMutation.ts index 82625860e53..d547f4df8fb 100644 --- a/packages/client/mutations/ResetRetroMeetingToGroupStageMutation.ts +++ b/packages/client/mutations/ResetRetroMeetingToGroupStageMutation.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import Atmosphere from '~/Atmosphere' -import {SharedUpdater, SimpleMutation} from '../types/relayMutations' import {ResetRetroMeetingToGroupStageMutation as TResetRetroMeetingToGroupStageMutation} from '../__generated__/ResetRetroMeetingToGroupStageMutation.graphql' +import {SharedUpdater, SimpleMutation} from '../types/relayMutations' import getDiscussionThreadConn from './connections/getDiscussionThreadConn' graphql` diff --git a/packages/client/mutations/RevealTeamHealthVotesMutation.ts b/packages/client/mutations/RevealTeamHealthVotesMutation.ts index 5e39040b186..7e553f6bd75 100644 --- a/packages/client/mutations/RevealTeamHealthVotesMutation.ts +++ b/packages/client/mutations/RevealTeamHealthVotesMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {RevealTeamHealthVotesMutation as TRevealTeamHealthVotesMutation} from '../__generated__/RevealTeamHealthVotesMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment RevealTeamHealthVotesMutation_meeting on RevealTeamHealthVotesSuccess { diff --git a/packages/client/mutations/SelectTemplateMutation.ts b/packages/client/mutations/SelectTemplateMutation.ts index 6b151a1e670..b81021c7ec9 100644 --- a/packages/client/mutations/SelectTemplateMutation.ts +++ b/packages/client/mutations/SelectTemplateMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {SelectTemplateMutation as TSelectTemplateMutation} from '../__generated__/SelectTemplateMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment SelectTemplateMutation_team on SelectTemplatePayload { diff --git a/packages/client/mutations/SetDefaultSlackChannelMutation.ts b/packages/client/mutations/SetDefaultSlackChannelMutation.ts index 2d22c0823eb..7e216fdd129 100644 --- a/packages/client/mutations/SetDefaultSlackChannelMutation.ts +++ b/packages/client/mutations/SetDefaultSlackChannelMutation.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import toTeamMemberId from '~/utils/relay/toTeamMemberId' -import {StandardMutation} from '../types/relayMutations' import {SetDefaultSlackChannelMutation as TSetDefaultSlackChannelMutation} from '../__generated__/SetDefaultSlackChannelMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment SetDefaultSlackChannelMutation_team on SetDefaultSlackChannelSuccess { diff --git a/packages/client/mutations/SetMeetingSettingsMutation.ts b/packages/client/mutations/SetMeetingSettingsMutation.ts index caa0bf0430e..222b65f08bd 100644 --- a/packages/client/mutations/SetMeetingSettingsMutation.ts +++ b/packages/client/mutations/SetMeetingSettingsMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {SetMeetingSettingsMutation as TSetMeetingSettingsMutation} from '../__generated__/SetMeetingSettingsMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment SetMeetingSettingsMutation_team on SetMeetingSettingsPayload { diff --git a/packages/client/mutations/SetOrgUserRoleMutation.ts b/packages/client/mutations/SetOrgUserRoleMutation.ts index c0ed2771a85..9dd46ffe948 100644 --- a/packages/client/mutations/SetOrgUserRoleMutation.ts +++ b/packages/client/mutations/SetOrgUserRoleMutation.ts @@ -1,13 +1,13 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' +import {SetOrgUserRoleMutation as TSetOrgUserRoleMutation} from '../__generated__/SetOrgUserRoleMutation.graphql' +import {SetOrgUserRoleMutation_organization$data} from '../__generated__/SetOrgUserRoleMutation_organization.graphql' import { OnNextHandler, OnNextHistoryContext, SharedUpdater, StandardMutation } from '../types/relayMutations' -import {SetOrgUserRoleMutation as TSetOrgUserRoleMutation} from '../__generated__/SetOrgUserRoleMutation.graphql' -import {SetOrgUserRoleMutation_organization$data} from '../__generated__/SetOrgUserRoleMutation_organization.graphql' import handleAddNotifications from './handlers/handleAddNotifications' import handleAddOrganization from './handlers/handleAddOrganization' diff --git a/packages/client/mutations/SetPhaseFocusMutation.ts b/packages/client/mutations/SetPhaseFocusMutation.ts index d12333f0ec8..ab03ac82965 100644 --- a/packages/client/mutations/SetPhaseFocusMutation.ts +++ b/packages/client/mutations/SetPhaseFocusMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {SetPhaseFocusMutation as TSetPhaseFocusMutation} from '../__generated__/SetPhaseFocusMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment SetPhaseFocusMutation_meeting on SetPhaseFocusPayload { diff --git a/packages/client/mutations/SetPokerSpectateMutation.ts b/packages/client/mutations/SetPokerSpectateMutation.ts index bd1a40aa536..41efac4cc1d 100644 --- a/packages/client/mutations/SetPokerSpectateMutation.ts +++ b/packages/client/mutations/SetPokerSpectateMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {SetPokerSpectateMutation as TSetPokerSpectateMutation} from '../__generated__/SetPokerSpectateMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment SetPokerSpectateMutation_team on SetPokerSpectateSuccess { diff --git a/packages/client/mutations/SetSlackNotificationMutation.ts b/packages/client/mutations/SetSlackNotificationMutation.ts index fb0c5e734ca..436d5492586 100644 --- a/packages/client/mutations/SetSlackNotificationMutation.ts +++ b/packages/client/mutations/SetSlackNotificationMutation.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' +import {SetSlackNotificationMutation as TSetSlackNotificationMutation} from '../__generated__/SetSlackNotificationMutation.graphql' import {StandardMutation} from '../types/relayMutations' import toTeamMemberId from '../utils/relay/toTeamMemberId' -import {SetSlackNotificationMutation as TSetSlackNotificationMutation} from '../__generated__/SetSlackNotificationMutation.graphql' graphql` fragment SetSlackNotificationMutation_team on SetSlackNotificationPayload { diff --git a/packages/client/mutations/SetStageTimerMutation.ts b/packages/client/mutations/SetStageTimerMutation.ts index 655e904d210..470c5753049 100644 --- a/packages/client/mutations/SetStageTimerMutation.ts +++ b/packages/client/mutations/SetStageTimerMutation.ts @@ -1,9 +1,9 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import {SetStageTimerMutation_meeting$data} from '~/__generated__/SetStageTimerMutation_meeting.graphql' +import {SetStageTimerMutation as _SetStageTimerMutation} from '../__generated__/SetStageTimerMutation.graphql' import {RelayDateHack, SharedUpdater, StandardMutation} from '../types/relayMutations' import LocalTimeHandler from '../utils/relay/LocalTimeHandler' -import {SetStageTimerMutation as _SetStageTimerMutation} from '../__generated__/SetStageTimerMutation.graphql' graphql` fragment SetStageTimerMutation_meeting on SetStageTimerPayload { diff --git a/packages/client/mutations/SetTaskEstimateMutation.ts b/packages/client/mutations/SetTaskEstimateMutation.ts index 70279ab322e..952dd6797d7 100644 --- a/packages/client/mutations/SetTaskEstimateMutation.ts +++ b/packages/client/mutations/SetTaskEstimateMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {BaseLocalHandlers, StandardMutation} from '../types/relayMutations' import {SetTaskEstimateMutation as TSetTaskEstimateMutation} from '../__generated__/SetTaskEstimateMutation.graphql' +import {BaseLocalHandlers, StandardMutation} from '../types/relayMutations' graphql` fragment SetTaskEstimateMutation_meeting on SetTaskEstimateSuccess { diff --git a/packages/client/mutations/SetTaskHighlightMutation.ts b/packages/client/mutations/SetTaskHighlightMutation.ts index eb3c79f19c5..61cd296ce34 100644 --- a/packages/client/mutations/SetTaskHighlightMutation.ts +++ b/packages/client/mutations/SetTaskHighlightMutation.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import Atmosphere from '../Atmosphere' -import {SimpleMutation} from '../types/relayMutations' import {SetTaskHighlightMutation as TSetTaskHighlightMutation} from '../__generated__/SetTaskHighlightMutation.graphql' +import {SimpleMutation} from '../types/relayMutations' graphql` fragment SetTaskHighlightMutation_meeting on SetTaskHighlightSuccess { diff --git a/packages/client/mutations/SetTeamHealthVoteMutation.ts b/packages/client/mutations/SetTeamHealthVoteMutation.ts index c9bc5e419bb..b580c5e5cba 100644 --- a/packages/client/mutations/SetTeamHealthVoteMutation.ts +++ b/packages/client/mutations/SetTeamHealthVoteMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {SetTeamHealthVoteMutation as TSetTeamHealthVoteMutation} from '../__generated__/SetTeamHealthVoteMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment SetTeamHealthVoteMutation_meeting on SetTeamHealthVoteSuccess { diff --git a/packages/client/mutations/SignUpWithPasswordMutation.ts b/packages/client/mutations/SignUpWithPasswordMutation.ts index 307b71acaa1..427839cb2ef 100644 --- a/packages/client/mutations/SignUpWithPasswordMutation.ts +++ b/packages/client/mutations/SignUpWithPasswordMutation.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import {handleSuccessfulLogin} from '~/utils/handleSuccessfulLogin' -import {HistoryLocalHandler, StandardMutation} from '../types/relayMutations' import {SignUpWithPasswordMutation as TSignUpWithPasswordMutation} from '../__generated__/SignUpWithPasswordMutation.graphql' +import {HistoryLocalHandler, StandardMutation} from '../types/relayMutations' import {handleAcceptTeamInvitationErrors} from './AcceptTeamInvitationMutation' import handleAuthenticationRedirect from './handlers/handleAuthenticationRedirect' diff --git a/packages/client/mutations/StartCheckInMutation.ts b/packages/client/mutations/StartCheckInMutation.ts index 337b72bb0b3..bb0347404e7 100644 --- a/packages/client/mutations/StartCheckInMutation.ts +++ b/packages/client/mutations/StartCheckInMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {HistoryLocalHandler, StandardMutation} from '../types/relayMutations' import {StartCheckInMutation as TStartCheckInMutation} from '../__generated__/StartCheckInMutation.graphql' +import {HistoryLocalHandler, StandardMutation} from '../types/relayMutations' graphql` fragment StartCheckInMutation_team on StartCheckInSuccess { diff --git a/packages/client/mutations/StartDraggingReflectionMutation.ts b/packages/client/mutations/StartDraggingReflectionMutation.ts index 970fb7477b6..c9934d253ab 100644 --- a/packages/client/mutations/StartDraggingReflectionMutation.ts +++ b/packages/client/mutations/StartDraggingReflectionMutation.ts @@ -4,9 +4,9 @@ import {matchPath} from 'react-router-dom' import {Disposable, RecordSourceProxy} from 'relay-runtime' import {StartDraggingReflectionMutation_meeting$data} from '~/__generated__/StartDraggingReflectionMutation_meeting.graphql' import Atmosphere from '../Atmosphere' +import {StartDraggingReflectionMutation as TStartDraggingReflectionMutation} from '../__generated__/StartDraggingReflectionMutation.graphql' import {ClientRetroReflection} from '../types/clientSchema' import {LocalHandlers, SharedUpdater} from '../types/relayMutations' -import {StartDraggingReflectionMutation as TStartDraggingReflectionMutation} from '../__generated__/StartDraggingReflectionMutation.graphql' graphql` fragment StartDraggingReflectionMutation_meeting on StartDraggingReflectionPayload { diff --git a/packages/client/mutations/StartSprintPokerMutation.ts b/packages/client/mutations/StartSprintPokerMutation.ts index d38ea338e2f..e078757582f 100644 --- a/packages/client/mutations/StartSprintPokerMutation.ts +++ b/packages/client/mutations/StartSprintPokerMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {HistoryLocalHandler, StandardMutation} from '../types/relayMutations' import {StartSprintPokerMutation as TStartSprintPokerMutation} from '../__generated__/StartSprintPokerMutation.graphql' +import {HistoryLocalHandler, StandardMutation} from '../types/relayMutations' graphql` fragment StartSprintPokerMutation_team on StartSprintPokerSuccess { diff --git a/packages/client/mutations/StartTeamPromptMutation.ts b/packages/client/mutations/StartTeamPromptMutation.ts index fb9a702af72..bc8821c3bd7 100644 --- a/packages/client/mutations/StartTeamPromptMutation.ts +++ b/packages/client/mutations/StartTeamPromptMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {HistoryLocalHandler, StandardMutation} from '../types/relayMutations' import {StartTeamPromptMutation as TStartTeamPromptMutation} from '../__generated__/StartTeamPromptMutation.graphql' +import {HistoryLocalHandler, StandardMutation} from '../types/relayMutations' graphql` fragment StartTeamPromptMutation_team on StartTeamPromptSuccess { diff --git a/packages/client/mutations/ToggleSummaryEmailMutation.ts b/packages/client/mutations/ToggleSummaryEmailMutation.ts index 6aac88ca70a..be0917cad79 100644 --- a/packages/client/mutations/ToggleSummaryEmailMutation.ts +++ b/packages/client/mutations/ToggleSummaryEmailMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {ToggleSummaryEmailMutation as TToggleSummaryEmailMutation} from '../__generated__/ToggleSummaryEmailMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment ToggleSummaryEmailMutation_team on ToggleSummaryEmailSuccess { diff --git a/packages/client/mutations/ToggleTeamDrawerMutation.ts b/packages/client/mutations/ToggleTeamDrawerMutation.ts index a1aa0d2779f..4fd322f18f1 100644 --- a/packages/client/mutations/ToggleTeamDrawerMutation.ts +++ b/packages/client/mutations/ToggleTeamDrawerMutation.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' +import {ToggleTeamDrawerMutation as TToggleTeamDrawerMutation} from '../__generated__/ToggleTeamDrawerMutation.graphql' import {StandardMutation} from '../types/relayMutations' import toTeamMemberId from '../utils/relay/toTeamMemberId' -import {ToggleTeamDrawerMutation as TToggleTeamDrawerMutation} from '../__generated__/ToggleTeamDrawerMutation.graphql' graphql` fragment ToggleTeamDrawerMutation_teamMember on ToggleTeamDrawerSuccess { diff --git a/packages/client/mutations/UpdateAgendaItemMutation.ts b/packages/client/mutations/UpdateAgendaItemMutation.ts index 25baf6f926d..b5844c1d871 100644 --- a/packages/client/mutations/UpdateAgendaItemMutation.ts +++ b/packages/client/mutations/UpdateAgendaItemMutation.ts @@ -4,9 +4,9 @@ import {RecordProxy, RecordSourceSelectorProxy} from 'relay-runtime' import {ActionMeeting_meeting$data} from '~/__generated__/ActionMeeting_meeting.graphql' import {AgendaItem_agendaItem$data} from '~/__generated__/AgendaItem_agendaItem.graphql' import {UpdateAgendaItemMutation_team$data} from '~/__generated__/UpdateAgendaItemMutation_team.graphql' +import {UpdateAgendaItemMutation as TUpdateAgendaItemMutation} from '../__generated__/UpdateAgendaItemMutation.graphql' import {SharedUpdater, StandardMutation} from '../types/relayMutations' import updateProxyRecord from '../utils/relay/updateProxyRecord' -import {UpdateAgendaItemMutation as TUpdateAgendaItemMutation} from '../__generated__/UpdateAgendaItemMutation.graphql' import handleUpdateAgendaItems from './handlers/handleUpdateAgendaItems' graphql` diff --git a/packages/client/mutations/UpdateAutoJoinMutation.ts b/packages/client/mutations/UpdateAutoJoinMutation.ts index 766a53baff0..a3567bb9c0e 100644 --- a/packages/client/mutations/UpdateAutoJoinMutation.ts +++ b/packages/client/mutations/UpdateAutoJoinMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {UpdateAutoJoinMutation as TUpdateAutoJoinMutation} from '../__generated__/UpdateAutoJoinMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment UpdateAutoJoinMutation_team on UpdateAutoJoinSuccess { diff --git a/packages/client/mutations/UpdateAzureDevOpsDimensionFieldMutation.ts b/packages/client/mutations/UpdateAzureDevOpsDimensionFieldMutation.ts index a75a0b25bc1..62c2c611aaa 100644 --- a/packages/client/mutations/UpdateAzureDevOpsDimensionFieldMutation.ts +++ b/packages/client/mutations/UpdateAzureDevOpsDimensionFieldMutation.ts @@ -1,11 +1,11 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {DiscriminateProxy} from '../types/generics' -import {StandardMutation} from '../types/relayMutations' -import createProxyRecord from '../utils/relay/createProxyRecord' import {AzureDevOpsFieldMenu_stage$data} from '../__generated__/AzureDevOpsFieldMenu_stage.graphql' import {PokerMeeting_meeting$data} from '../__generated__/PokerMeeting_meeting.graphql' import {UpdateAzureDevOpsDimensionFieldMutation as TUpdateAzureDevOpsDimensionFieldMutation} from '../__generated__/UpdateAzureDevOpsDimensionFieldMutation.graphql' +import {DiscriminateProxy} from '../types/generics' +import {StandardMutation} from '../types/relayMutations' +import createProxyRecord from '../utils/relay/createProxyRecord' graphql` fragment UpdateAzureDevOpsDimensionFieldMutation_team on UpdateAzureDevOpsDimensionFieldSuccess { diff --git a/packages/client/mutations/UpdateCommentContentMutation.ts b/packages/client/mutations/UpdateCommentContentMutation.ts index 91377ca137b..d9148ea499c 100644 --- a/packages/client/mutations/UpdateCommentContentMutation.ts +++ b/packages/client/mutations/UpdateCommentContentMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {UpdateCommentContentMutation as TUpdateCommentContentMutation} from '../__generated__/UpdateCommentContentMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment UpdateCommentContentMutation_meeting on UpdateCommentContentSuccess { diff --git a/packages/client/mutations/UpdateCreditCardMutation.ts b/packages/client/mutations/UpdateCreditCardMutation.ts index 0aaff96d7cc..fedd416029a 100644 --- a/packages/client/mutations/UpdateCreditCardMutation.ts +++ b/packages/client/mutations/UpdateCreditCardMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {UpdateCreditCardMutation as TUpdateCreditCardMutation} from '../__generated__/UpdateCreditCardMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment UpdateCreditCardMutation_organization on UpdateCreditCardSuccess { diff --git a/packages/client/mutations/UpdateFeatureFlagMutation.ts b/packages/client/mutations/UpdateFeatureFlagMutation.ts index da6932b518e..cdb49794937 100644 --- a/packages/client/mutations/UpdateFeatureFlagMutation.ts +++ b/packages/client/mutations/UpdateFeatureFlagMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {UpdateFeatureFlagMutation as TUpdateFeatureFlagMutation} from '../__generated__/UpdateFeatureFlagMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment UpdateFeatureFlagMutation_notification on UpdateFeatureFlagPayload { diff --git a/packages/client/mutations/UpdateGitHubDimensionFieldMutation.ts b/packages/client/mutations/UpdateGitHubDimensionFieldMutation.ts index c618dd95366..9429f5dfba2 100644 --- a/packages/client/mutations/UpdateGitHubDimensionFieldMutation.ts +++ b/packages/client/mutations/UpdateGitHubDimensionFieldMutation.ts @@ -1,10 +1,10 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' +import {GitHubFieldMenu_stage$data} from '../__generated__/GitHubFieldMenu_stage.graphql' +import {UpdateGitHubDimensionFieldMutation as TUpdateGitHubDimensionFieldMutation} from '../__generated__/UpdateGitHubDimensionFieldMutation.graphql' import {DiscriminateProxy} from '../types/generics' import {StandardMutation} from '../types/relayMutations' import createProxyRecord from '../utils/relay/createProxyRecord' -import {GitHubFieldMenu_stage$data} from '../__generated__/GitHubFieldMenu_stage.graphql' -import {UpdateGitHubDimensionFieldMutation as TUpdateGitHubDimensionFieldMutation} from '../__generated__/UpdateGitHubDimensionFieldMutation.graphql' graphql` fragment UpdateGitHubDimensionFieldMutation_team on UpdateGitHubDimensionFieldSuccess { diff --git a/packages/client/mutations/UpdateGitLabDimensionFieldMutation.ts b/packages/client/mutations/UpdateGitLabDimensionFieldMutation.ts index 39828951845..19bcc503009 100644 --- a/packages/client/mutations/UpdateGitLabDimensionFieldMutation.ts +++ b/packages/client/mutations/UpdateGitLabDimensionFieldMutation.ts @@ -1,10 +1,10 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' +import {GitLabFieldMenu_stage$data} from '../__generated__/GitLabFieldMenu_stage.graphql' +import {UpdateGitLabDimensionFieldMutation as TUpdateGitLabDimensionFieldMutation} from '../__generated__/UpdateGitLabDimensionFieldMutation.graphql' import {DiscriminateProxy} from '../types/generics' import {StandardMutation} from '../types/relayMutations' import createProxyRecord from '../utils/relay/createProxyRecord' -import {GitLabFieldMenu_stage$data} from '../__generated__/GitLabFieldMenu_stage.graphql' -import {UpdateGitLabDimensionFieldMutation as TUpdateGitLabDimensionFieldMutation} from '../__generated__/UpdateGitLabDimensionFieldMutation.graphql' graphql` fragment UpdateGitLabDimensionFieldMutation_team on UpdateGitLabDimensionFieldSuccess { diff --git a/packages/client/mutations/UpdateIntegrationProviderMutation.ts b/packages/client/mutations/UpdateIntegrationProviderMutation.ts index f019089fcaf..31ca200844c 100644 --- a/packages/client/mutations/UpdateIntegrationProviderMutation.ts +++ b/packages/client/mutations/UpdateIntegrationProviderMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {UpdateIntegrationProviderMutation as TUpdateIntegrationProviderMutation} from '../__generated__/UpdateIntegrationProviderMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment UpdateIntegrationProviderMutation_team on UpdateIntegrationProviderSuccess { diff --git a/packages/client/mutations/UpdateJiraDimensionFieldMutation.ts b/packages/client/mutations/UpdateJiraDimensionFieldMutation.ts index b8cac7d804c..8eb2e1942ad 100644 --- a/packages/client/mutations/UpdateJiraDimensionFieldMutation.ts +++ b/packages/client/mutations/UpdateJiraDimensionFieldMutation.ts @@ -1,11 +1,11 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {DiscriminateProxy} from '../types/generics' -import {StandardMutation} from '../types/relayMutations' -import createProxyRecord from '../utils/relay/createProxyRecord' import {JiraFieldMenu_stage$data} from '../__generated__/JiraFieldMenu_stage.graphql' import {PokerMeeting_meeting$data} from '../__generated__/PokerMeeting_meeting.graphql' import {UpdateJiraDimensionFieldMutation as TUpdateJiraDimensionFieldMutation} from '../__generated__/UpdateJiraDimensionFieldMutation.graphql' +import {DiscriminateProxy} from '../types/generics' +import {StandardMutation} from '../types/relayMutations' +import createProxyRecord from '../utils/relay/createProxyRecord' graphql` fragment UpdateJiraDimensionFieldMutation_team on UpdateDimensionFieldSuccess { diff --git a/packages/client/mutations/UpdateJiraServerDimensionFieldMutation.ts b/packages/client/mutations/UpdateJiraServerDimensionFieldMutation.ts index 0367c606cfe..e8f34c1b20e 100644 --- a/packages/client/mutations/UpdateJiraServerDimensionFieldMutation.ts +++ b/packages/client/mutations/UpdateJiraServerDimensionFieldMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {UpdateJiraServerDimensionFieldMutation as TUpdateJiraServerDimensionFieldMutation} from '../__generated__/UpdateJiraServerDimensionFieldMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment UpdateJiraServerDimensionFieldMutation_team on UpdateDimensionFieldSuccess { diff --git a/packages/client/mutations/UpdateMeetingPromptMutation.ts b/packages/client/mutations/UpdateMeetingPromptMutation.ts index 357a3f76acb..4b991a81cd8 100644 --- a/packages/client/mutations/UpdateMeetingPromptMutation.ts +++ b/packages/client/mutations/UpdateMeetingPromptMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {UpdateMeetingPromptMutation as TUpdateMeetingPromptMutation} from '../__generated__/UpdateMeetingPromptMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment UpdateMeetingPromptMutation_meeting on UpdateMeetingPromptSuccess { diff --git a/packages/client/mutations/UpdateMeetingTemplateMutation.ts b/packages/client/mutations/UpdateMeetingTemplateMutation.ts index c4dd1d6951b..af1dcb1c5ae 100644 --- a/packages/client/mutations/UpdateMeetingTemplateMutation.ts +++ b/packages/client/mutations/UpdateMeetingTemplateMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {UpdateMeetingTemplateMutation as TUpdateMeetingTemplateMutation} from '../__generated__/UpdateMeetingTemplateMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment UpdateMeetingTemplateMutation_meeting on UpdateMeetingTemplateSuccess { diff --git a/packages/client/mutations/UpdateNewCheckInQuestionMutation.ts b/packages/client/mutations/UpdateNewCheckInQuestionMutation.ts index c7dc80a21e9..3fea65edfa8 100644 --- a/packages/client/mutations/UpdateNewCheckInQuestionMutation.ts +++ b/packages/client/mutations/UpdateNewCheckInQuestionMutation.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import {RecordProxy} from 'relay-runtime' -import {StandardMutation} from '../types/relayMutations' import {UpdateNewCheckInQuestionMutation as TUpdateNewCheckInQuestionMutation} from '../__generated__/UpdateNewCheckInQuestionMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment UpdateNewCheckInQuestionMutation_meeting on UpdateNewCheckInQuestionPayload { meeting { diff --git a/packages/client/mutations/UpdateOrgMutation.ts b/packages/client/mutations/UpdateOrgMutation.ts index abedff72678..de261d1ffd1 100644 --- a/packages/client/mutations/UpdateOrgMutation.ts +++ b/packages/client/mutations/UpdateOrgMutation.ts @@ -2,8 +2,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import {Disposable} from 'relay-runtime' import Atmosphere from '../Atmosphere' -import {LocalHandlers} from '../types/relayMutations' import {UpdateOrgMutation as TUpdateOrgMutation} from '../__generated__/UpdateOrgMutation.graphql' +import {LocalHandlers} from '../types/relayMutations' graphql` fragment UpdateOrgMutation_organization on UpdateOrgPayload { organization { diff --git a/packages/client/mutations/UpdatePokerScopeMutation.ts b/packages/client/mutations/UpdatePokerScopeMutation.ts index 0fdc0774c64..6f641fdcaa3 100644 --- a/packages/client/mutations/UpdatePokerScopeMutation.ts +++ b/packages/client/mutations/UpdatePokerScopeMutation.ts @@ -3,17 +3,17 @@ import {stateToHTML} from 'draft-js-export-html' import {commitMutation} from 'react-relay' import GitLabIssueId from '~/shared/gqlIds/GitLabIssueId' //import AzureDevOpsIssueId from '~/shared/gqlIds/AzureDevOpsIssueId' +import {UpdatePokerScopeMutation as TUpdatePokerScopeMutation} from '../__generated__/UpdatePokerScopeMutation.graphql' import GitHubIssueId from '../shared/gqlIds/GitHubIssueId' import JiraIssueId from '../shared/gqlIds/JiraIssueId' import {PALETTE} from '../styles/paletteV3' import {BaseLocalHandlers, StandardMutation} from '../types/relayMutations' +import SendClientSideEvent from '../utils/SendClientSideEvent' import convertToTaskContent from '../utils/draftjs/convertToTaskContent' import splitDraftContent from '../utils/draftjs/splitDraftContent' import getSearchQueryFromMeeting from '../utils/getSearchQueryFromMeeting' import clientTempId from '../utils/relay/clientTempId' import createProxyRecord from '../utils/relay/createProxyRecord' -import {UpdatePokerScopeMutation as TUpdatePokerScopeMutation} from '../__generated__/UpdatePokerScopeMutation.graphql' -import SendClientSideEvent from '../utils/SendClientSideEvent' graphql` fragment UpdatePokerScopeMutation_meeting on UpdatePokerScopeSuccess { diff --git a/packages/client/mutations/UpdatePokerTemplateDimensionScaleMutation.ts b/packages/client/mutations/UpdatePokerTemplateDimensionScaleMutation.ts index 80cdf5cf9c7..f7b1318bffc 100644 --- a/packages/client/mutations/UpdatePokerTemplateDimensionScaleMutation.ts +++ b/packages/client/mutations/UpdatePokerTemplateDimensionScaleMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {UpdatePokerTemplateDimensionScaleMutation as TUpdatePokerTemplateDimensionScaleMutation} from '../__generated__/UpdatePokerTemplateDimensionScaleMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment UpdatePokerTemplateDimensionScaleMutation_dimension on UpdatePokerTemplateDimensionScalePayload { diff --git a/packages/client/mutations/UpdatePokerTemplateScaleValueMutation.ts b/packages/client/mutations/UpdatePokerTemplateScaleValueMutation.ts index b2bbbc0e407..9051af89991 100644 --- a/packages/client/mutations/UpdatePokerTemplateScaleValueMutation.ts +++ b/packages/client/mutations/UpdatePokerTemplateScaleValueMutation.ts @@ -3,8 +3,8 @@ import {commitMutation} from 'react-relay' import addNodeToArray from '~/utils/relay/addNodeToArray' import createProxyRecord from '~/utils/relay/createProxyRecord' import safeRemoveNodeFromArray from '~/utils/relay/safeRemoveNodeFromArray' -import {StandardMutation} from '../types/relayMutations' import {UpdatePokerTemplateScaleValueMutation as TUpdatePokerTemplateScaleValueMutation} from '../__generated__/UpdatePokerTemplateScaleValueMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment UpdatePokerTemplateScaleValueMutation_scale on UpdatePokerTemplateScaleValuePayload { diff --git a/packages/client/mutations/UpdatePokerTemplateScopeMutation.ts b/packages/client/mutations/UpdatePokerTemplateScopeMutation.ts index 7eb68b44312..2210146aaa8 100644 --- a/packages/client/mutations/UpdatePokerTemplateScopeMutation.ts +++ b/packages/client/mutations/UpdatePokerTemplateScopeMutation.ts @@ -1,6 +1,11 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import {ConnectionHandler, RecordProxy, RecordSourceSelectorProxy} from 'relay-runtime' +import {UpdatePokerTemplateScopeMutation as TUpdateTemplateScopeMutation} from '../__generated__/UpdatePokerTemplateScopeMutation.graphql' +import { + SharingScopeEnum, + UpdatePokerTemplateScopeMutation_organization$data +} from '../__generated__/UpdatePokerTemplateScopeMutation_organization.graphql' import {SharedUpdater, StandardMutation} from '../types/relayMutations' import addNodeToArray from '../utils/relay/addNodeToArray' import getBaseRecord from '../utils/relay/getBaseRecord' @@ -8,11 +13,6 @@ import getCachedRecord from '../utils/relay/getCachedRecord' import getNodeById from '../utils/relay/getNodeById' import {insertEdgeAfter} from '../utils/relay/insertEdge' import safeRemoveNodeFromArray from '../utils/relay/safeRemoveNodeFromArray' -import {UpdatePokerTemplateScopeMutation as TUpdateTemplateScopeMutation} from '../__generated__/UpdatePokerTemplateScopeMutation.graphql' -import { - SharingScopeEnum, - UpdatePokerTemplateScopeMutation_organization$data -} from '../__generated__/UpdatePokerTemplateScopeMutation_organization.graphql' graphql` fragment UpdatePokerTemplateScopeMutation_organization on UpdateTemplateScopeSuccess { diff --git a/packages/client/mutations/UpdateRecurrenceSettingsMutation.ts b/packages/client/mutations/UpdateRecurrenceSettingsMutation.ts index ebb091d94c6..af0168c01ea 100644 --- a/packages/client/mutations/UpdateRecurrenceSettingsMutation.ts +++ b/packages/client/mutations/UpdateRecurrenceSettingsMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {UpdateRecurrenceSettingsMutation as TUpdateRecurrenceSettingsMutation} from '../__generated__/UpdateRecurrenceSettingsMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment UpdateRecurrenceSettingsMutation_team on UpdateRecurrenceSettingsSuccess { diff --git a/packages/client/mutations/UpdateReflectTemplateScopeMutation.ts b/packages/client/mutations/UpdateReflectTemplateScopeMutation.ts index 677ef02327b..7e547ad17d3 100644 --- a/packages/client/mutations/UpdateReflectTemplateScopeMutation.ts +++ b/packages/client/mutations/UpdateReflectTemplateScopeMutation.ts @@ -1,6 +1,11 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import {ConnectionHandler, RecordProxy, RecordSourceSelectorProxy} from 'relay-runtime' +import {UpdateReflectTemplateScopeMutation as TUpdateTemplateScopeMutation} from '../__generated__/UpdateReflectTemplateScopeMutation.graphql' +import { + SharingScopeEnum, + UpdateReflectTemplateScopeMutation_organization$data +} from '../__generated__/UpdateReflectTemplateScopeMutation_organization.graphql' import {SharedUpdater, StandardMutation} from '../types/relayMutations' import addNodeToArray from '../utils/relay/addNodeToArray' import getBaseRecord from '../utils/relay/getBaseRecord' @@ -9,11 +14,6 @@ import getNodeById from '../utils/relay/getNodeById' import {insertEdgeAfter} from '../utils/relay/insertEdge' import safeRemoveNodeFromArray from '../utils/relay/safeRemoveNodeFromArray' import safeRemoveNodeFromConn from '../utils/relay/safeRemoveNodeFromConn' -import {UpdateReflectTemplateScopeMutation as TUpdateTemplateScopeMutation} from '../__generated__/UpdateReflectTemplateScopeMutation.graphql' -import { - SharingScopeEnum, - UpdateReflectTemplateScopeMutation_organization$data -} from '../__generated__/UpdateReflectTemplateScopeMutation_organization.graphql' import getReflectTemplateOrgConn from './connections/getReflectTemplateOrgConn' graphql` diff --git a/packages/client/mutations/UpdateReflectionContentMutation.ts b/packages/client/mutations/UpdateReflectionContentMutation.ts index baaed306e67..6905ae3ca67 100644 --- a/packages/client/mutations/UpdateReflectionContentMutation.ts +++ b/packages/client/mutations/UpdateReflectionContentMutation.ts @@ -4,9 +4,9 @@ */ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' +import {UpdateReflectionContentMutation as TUpdateReflectionContentMutation} from '../__generated__/UpdateReflectionContentMutation.graphql' import {StandardMutation} from '../types/relayMutations' import updateProxyRecord from '../utils/relay/updateProxyRecord' -import {UpdateReflectionContentMutation as TUpdateReflectionContentMutation} from '../__generated__/UpdateReflectionContentMutation.graphql' graphql` fragment UpdateReflectionContentMutation_meeting on UpdateReflectionContentPayload { diff --git a/packages/client/mutations/UpdateReflectionGroupTitleMutation.ts b/packages/client/mutations/UpdateReflectionGroupTitleMutation.ts index fa773ae7f39..c126140ff5c 100644 --- a/packages/client/mutations/UpdateReflectionGroupTitleMutation.ts +++ b/packages/client/mutations/UpdateReflectionGroupTitleMutation.ts @@ -4,9 +4,9 @@ */ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' +import {UpdateReflectionGroupTitleMutation as TUpdateReflectionGroupTitleMutation} from '../__generated__/UpdateReflectionGroupTitleMutation.graphql' import {StandardMutation} from '../types/relayMutations' import updateProxyRecord from '../utils/relay/updateProxyRecord' -import {UpdateReflectionGroupTitleMutation as TUpdateReflectionGroupTitleMutation} from '../__generated__/UpdateReflectionGroupTitleMutation.graphql' graphql` fragment UpdateReflectionGroupTitleMutation_meeting on UpdateReflectionGroupTitlePayload { diff --git a/packages/client/mutations/UpdateRetroMaxVotesMutation.ts b/packages/client/mutations/UpdateRetroMaxVotesMutation.ts index 53581c252f7..f54961aa5ea 100644 --- a/packages/client/mutations/UpdateRetroMaxVotesMutation.ts +++ b/packages/client/mutations/UpdateRetroMaxVotesMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {UpdateRetroMaxVotesMutation as TUpdateRetroMaxVotesMutation} from '../__generated__/UpdateRetroMaxVotesMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment UpdateRetroMaxVotesMutation_meeting on UpdateRetroMaxVotesSuccess { diff --git a/packages/client/mutations/UpdateTaskDueDateMutation.ts b/packages/client/mutations/UpdateTaskDueDateMutation.ts index d86181b26f8..db2a85246cd 100644 --- a/packages/client/mutations/UpdateTaskDueDateMutation.ts +++ b/packages/client/mutations/UpdateTaskDueDateMutation.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' +import {UpdateTaskDueDateMutation as TUpdateTaskDueDateMutation} from '../__generated__/UpdateTaskDueDateMutation.graphql' import {WithFieldsAsType} from '../types/generics' import {StandardMutation} from '../types/relayMutations' -import {UpdateTaskDueDateMutation as TUpdateTaskDueDateMutation} from '../__generated__/UpdateTaskDueDateMutation.graphql' graphql` fragment UpdateTaskDueDateMutation_task on UpdateTaskDueDatePayload { task { diff --git a/packages/client/mutations/UpdateTaskMutation.ts b/packages/client/mutations/UpdateTaskMutation.ts index da27db53267..d66706865bd 100644 --- a/packages/client/mutations/UpdateTaskMutation.ts +++ b/packages/client/mutations/UpdateTaskMutation.ts @@ -1,6 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import ITask from '../../server/database/types/Task' +import {UpdateTaskMutation as TUpdateTaskMutation} from '../__generated__/UpdateTaskMutation.graphql' +import {UpdateTaskMutation_task$data} from '../__generated__/UpdateTaskMutation_task.graphql' import { OnNextHandler, OnNextHistoryContext, @@ -11,8 +13,6 @@ import { import extractTextFromDraftString from '../utils/draftjs/extractTextFromDraftString' import getTagsFromEntityMap from '../utils/draftjs/getTagsFromEntityMap' import updateProxyRecord from '../utils/relay/updateProxyRecord' -import {UpdateTaskMutation as TUpdateTaskMutation} from '../__generated__/UpdateTaskMutation.graphql' -import {UpdateTaskMutation_task$data} from '../__generated__/UpdateTaskMutation_task.graphql' import handleAddNotifications from './handlers/handleAddNotifications' import handleRemoveTasks from './handlers/handleRemoveTasks' import handleUpsertTasks from './handlers/handleUpsertTasks' diff --git a/packages/client/mutations/UpdateTeamNameMutation.ts b/packages/client/mutations/UpdateTeamNameMutation.ts index e6f35e64fa8..5e5647e7b6d 100644 --- a/packages/client/mutations/UpdateTeamNameMutation.ts +++ b/packages/client/mutations/UpdateTeamNameMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {UpdateTeamNameMutation as TUpdateTeamNameMutation} from '../__generated__/UpdateTeamNameMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment UpdateTeamNameMutation_team on UpdateTeamNamePayload { team { diff --git a/packages/client/mutations/UpdateTemplateCategoryMutation.ts b/packages/client/mutations/UpdateTemplateCategoryMutation.ts index 5f1ffeca163..b60539161db 100644 --- a/packages/client/mutations/UpdateTemplateCategoryMutation.ts +++ b/packages/client/mutations/UpdateTemplateCategoryMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' +import {useMutation} from 'react-relay' import {UpdateTemplateCategoryMutation as TUpdateTemplateCategoryMutation} from '../__generated__/UpdateTemplateCategoryMutation.graphql' import useAtmosphere from '../hooks/useAtmosphere' -import {useMutation} from 'react-relay' graphql` fragment UpdateTemplateCategoryMutation_team on UpdateTemplateCategorySuccess { diff --git a/packages/client/mutations/UpdateUserProfileMutation.ts b/packages/client/mutations/UpdateUserProfileMutation.ts index 94713656ea0..19ad11c7e9e 100644 --- a/packages/client/mutations/UpdateUserProfileMutation.ts +++ b/packages/client/mutations/UpdateUserProfileMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import {StandardMutation} from '../types/relayMutations' import {UpdateUserProfileMutation as TUpdateUserProfileMutation} from '../__generated__/UpdateUserProfileMutation.graphql' +import {StandardMutation} from '../types/relayMutations' graphql` fragment UpdateUserProfileMutation_team on UpdateUserProfilePayload { diff --git a/packages/client/mutations/UploadOrgImageMutation.ts b/packages/client/mutations/UploadOrgImageMutation.ts index b6933a2011d..8cea80903bc 100644 --- a/packages/client/mutations/UploadOrgImageMutation.ts +++ b/packages/client/mutations/UploadOrgImageMutation.ts @@ -2,8 +2,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import {UploadableMap} from 'relay-runtime' import Atmosphere from '../Atmosphere' -import {BaseLocalHandlers} from '../types/relayMutations' import {UploadOrgImageMutation as TUploadOrgImageMutation} from '../__generated__/UploadOrgImageMutation.graphql' +import {BaseLocalHandlers} from '../types/relayMutations' const mutation = graphql` mutation UploadOrgImageMutation($file: File!, $orgId: ID!) { diff --git a/packages/client/mutations/UploadUserImageMutation.ts b/packages/client/mutations/UploadUserImageMutation.ts index 47472de1ac1..b4f99663692 100644 --- a/packages/client/mutations/UploadUserImageMutation.ts +++ b/packages/client/mutations/UploadUserImageMutation.ts @@ -2,8 +2,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import {UploadableMap} from 'relay-runtime' import Atmosphere from '../Atmosphere' -import {BaseLocalHandlers} from '../types/relayMutations' import {UploadUserImageMutation as TUploadUserImageMutation} from '../__generated__/UploadUserImageMutation.graphql' +import {BaseLocalHandlers} from '../types/relayMutations' const mutation = graphql` mutation UploadUserImageMutation($file: File!) { uploadUserImage(file: $file) { diff --git a/packages/client/mutations/UpsertTeamPromptResponseMutation.ts b/packages/client/mutations/UpsertTeamPromptResponseMutation.ts index 46e757d24a1..6abc25f0660 100644 --- a/packages/client/mutations/UpsertTeamPromptResponseMutation.ts +++ b/packages/client/mutations/UpsertTeamPromptResponseMutation.ts @@ -1,9 +1,9 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' -import clientTempId from '~/utils/relay/clientTempId' import {UpsertTeamPromptResponseMutation_meeting$data} from '~/__generated__/UpsertTeamPromptResponseMutation_meeting.graphql' -import {LocalHandlers, SharedUpdater, StandardMutation} from '../types/relayMutations' +import clientTempId from '~/utils/relay/clientTempId' import {UpsertTeamPromptResponseMutation as TUpsertTeamPromptResponseMutation} from '../__generated__/UpsertTeamPromptResponseMutation.graphql' +import {LocalHandlers, SharedUpdater, StandardMutation} from '../types/relayMutations' import SendClientSideEvent from '../utils/SendClientSideEvent' graphql` diff --git a/packages/client/mutations/VerifyEmailMutation.ts b/packages/client/mutations/VerifyEmailMutation.ts index 1e62d1eeb56..4c8e45c56b2 100644 --- a/packages/client/mutations/VerifyEmailMutation.ts +++ b/packages/client/mutations/VerifyEmailMutation.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' import {handleSuccessfulLogin} from '~/utils/handleSuccessfulLogin' -import {HistoryLocalHandler, StandardMutation} from '../types/relayMutations' import {VerifyEmailMutation as TSignUpWithPasswordMutation} from '../__generated__/VerifyEmailMutation.graphql' +import {HistoryLocalHandler, StandardMutation} from '../types/relayMutations' import handleAuthenticationRedirect from './handlers/handleAuthenticationRedirect' const mutation = graphql` diff --git a/packages/client/mutations/VoteForPokerStoryMutation.ts b/packages/client/mutations/VoteForPokerStoryMutation.ts index 46e50e9f855..7de326578aa 100644 --- a/packages/client/mutations/VoteForPokerStoryMutation.ts +++ b/packages/client/mutations/VoteForPokerStoryMutation.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' +import {VoteForPokerStoryMutation as TVoteForPokerStoryMutation} from '../__generated__/VoteForPokerStoryMutation.graphql' import {StandardMutation} from '../types/relayMutations' import createProxyRecord from '../utils/relay/createProxyRecord' -import {VoteForPokerStoryMutation as TVoteForPokerStoryMutation} from '../__generated__/VoteForPokerStoryMutation.graphql' graphql` fragment VoteForPokerStoryMutation_meeting on VoteForPokerStorySuccess { diff --git a/packages/client/mutations/VoteForReflectionGroupMutation.ts b/packages/client/mutations/VoteForReflectionGroupMutation.ts index cc8fa18e466..c1fb252dac6 100644 --- a/packages/client/mutations/VoteForReflectionGroupMutation.ts +++ b/packages/client/mutations/VoteForReflectionGroupMutation.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {commitMutation} from 'react-relay' +import {VoteForReflectionGroupMutation as TVoteForReflectionGroupMutation} from '../__generated__/VoteForReflectionGroupMutation.graphql' import {BaseLocalHandlers, StandardMutation} from '../types/relayMutations' import toTeamMemberId from '../utils/relay/toTeamMemberId' -import {VoteForReflectionGroupMutation as TVoteForReflectionGroupMutation} from '../__generated__/VoteForReflectionGroupMutation.graphql' graphql` fragment VoteForReflectionGroupMutation_meeting on VoteForReflectionGroupPayload { diff --git a/packages/client/mutations/handlers/handleAuthenticationRedirect.ts b/packages/client/mutations/handlers/handleAuthenticationRedirect.ts index aa826aa1527..b053f82e39b 100644 --- a/packages/client/mutations/handlers/handleAuthenticationRedirect.ts +++ b/packages/client/mutations/handlers/handleAuthenticationRedirect.ts @@ -1,7 +1,7 @@ import {AcceptTeamInvitationMutationReply$data} from '~/__generated__/AcceptTeamInvitationMutationReply.graphql' import {OnNextHandler, OnNextHistoryContext} from '../../types/relayMutations' -import getValidRedirectParam from '../../utils/getValidRedirectParam' import SendClientSideEvent from '../../utils/SendClientSideEvent' +import getValidRedirectParam from '../../utils/getValidRedirectParam' interface OnNextMeetingId extends OnNextHistoryContext { meetingId?: string | null diff --git a/packages/client/mutations/handlers/handleAzureCreateIssue.ts b/packages/client/mutations/handlers/handleAzureCreateIssue.ts index da956a0f372..76de16b0d9b 100644 --- a/packages/client/mutations/handlers/handleAzureCreateIssue.ts +++ b/packages/client/mutations/handlers/handleAzureCreateIssue.ts @@ -1,7 +1,7 @@ import {ConnectionHandler, RecordProxy, RecordSourceSelectorProxy} from 'relay-runtime' import SearchQueryId from '~/shared/gqlIds/SearchQueryId' -import toTeamMemberId from '../../utils/relay/toTeamMemberId' import {CreateTaskMutation} from '../../__generated__/CreateTaskMutation.graphql' +import toTeamMemberId from '../../utils/relay/toTeamMemberId' import getAzureWorkItemsConn from '../connections/getAzureWorkItemsConn' const handleAzureCreateIssue = ( diff --git a/packages/client/mutations/handlers/handleGitHubCreateIssue.ts b/packages/client/mutations/handlers/handleGitHubCreateIssue.ts index f8e303d82e7..6b7798b5e98 100644 --- a/packages/client/mutations/handlers/handleGitHubCreateIssue.ts +++ b/packages/client/mutations/handlers/handleGitHubCreateIssue.ts @@ -1,7 +1,7 @@ import {ConnectionHandler, RecordProxy, RecordSourceSelectorProxy} from 'relay-runtime' +import {CreateTaskMutation} from '../../__generated__/CreateTaskMutation.graphql' import SearchQueryId from '../../shared/gqlIds/SearchQueryId' import toTeamMemberId from '../../utils/relay/toTeamMemberId' -import {CreateTaskMutation} from '../../__generated__/CreateTaskMutation.graphql' import getGitHubIssuesConn from '../connections/getGitHubIssuesConn' const handleGitHubCreateIssue = ( diff --git a/packages/client/mutations/handlers/handleGitLabCreateIssue.ts b/packages/client/mutations/handlers/handleGitLabCreateIssue.ts index de102c4ddb0..52be3940f9f 100644 --- a/packages/client/mutations/handlers/handleGitLabCreateIssue.ts +++ b/packages/client/mutations/handlers/handleGitLabCreateIssue.ts @@ -1,8 +1,8 @@ import {ConnectionHandler, RecordProxy, RecordSourceSelectorProxy} from 'relay-runtime' import {gitlabIssueArgs} from '~/components/GitLabScopingSearchResultsRoot' import SearchQueryId from '~/shared/gqlIds/SearchQueryId' -import toTeamMemberId from '../../utils/relay/toTeamMemberId' import {CreateTaskMutation} from '../../__generated__/CreateTaskMutation.graphql' +import toTeamMemberId from '../../utils/relay/toTeamMemberId' import getGitLabProjectsIssuesConn from '../connections/getGitLabProjectsIssuesConn' const handleGitLabCreateIssue = ( diff --git a/packages/client/mutations/handlers/handleRemoveTasks.ts b/packages/client/mutations/handlers/handleRemoveTasks.ts index fb8846bc7ee..3c517948455 100644 --- a/packages/client/mutations/handlers/handleRemoveTasks.ts +++ b/packages/client/mutations/handlers/handleRemoveTasks.ts @@ -1,6 +1,6 @@ import {RecordSourceSelectorProxy} from 'relay-runtime' -import getDiscussionThreadConn from '~/mutations/connections/getDiscussionThreadConn' import {handleRemoveReply} from '~/mutations/DeleteCommentMutation' +import getDiscussionThreadConn from '~/mutations/connections/getDiscussionThreadConn' import {parseQueryParams} from '~/utils/useQueryParameterParser' import ITask from '../../../server/database/types/Task' import IUser from '../../../server/database/types/User' diff --git a/packages/client/mutations/toasts/mapDiscussionMentionedToToast.ts b/packages/client/mutations/toasts/mapDiscussionMentionedToToast.ts index c5c34b12f88..2bcb384b748 100644 --- a/packages/client/mutations/toasts/mapDiscussionMentionedToToast.ts +++ b/packages/client/mutations/toasts/mapDiscussionMentionedToToast.ts @@ -1,11 +1,11 @@ import graphql from 'babel-plugin-relay/macro' +import {mapDiscussionMentionedToToast_notification$data} from '../../__generated__/mapDiscussionMentionedToToast_notification.graphql' import {Snack} from '../../components/Snackbar' import {OnNextHistoryContext} from '../../types/relayMutations' +import findStageById from '../../utils/meetings/findStageById' import fromStageIdToUrl from '../../utils/meetings/fromStageIdToUrl' -import {mapDiscussionMentionedToToast_notification$data} from '../../__generated__/mapDiscussionMentionedToToast_notification.graphql' -import makeNotificationToastKey from './makeNotificationToastKey' import getMeetingPathParams from '../../utils/meetings/getMeetingPathParams' -import findStageById from '../../utils/meetings/findStageById' +import makeNotificationToastKey from './makeNotificationToastKey' graphql` fragment mapDiscussionMentionedToToast_notification on NotifyDiscussionMentioned { diff --git a/packages/client/mutations/toasts/mapKudosReceivedToToast.ts b/packages/client/mutations/toasts/mapKudosReceivedToToast.ts index 6a625382649..d8876a5cfe8 100644 --- a/packages/client/mutations/toasts/mapKudosReceivedToToast.ts +++ b/packages/client/mutations/toasts/mapKudosReceivedToToast.ts @@ -1,9 +1,9 @@ import graphql from 'babel-plugin-relay/macro' -import {Snack} from '../../components/Snackbar' import {mapKudosReceivedToToast_notification$data} from '../../__generated__/mapKudosReceivedToToast_notification.graphql' -import makeNotificationToastKey from './makeNotificationToastKey' +import {Snack} from '../../components/Snackbar' import {OnNextHistoryContext} from '../../types/relayMutations' import SendClientSideEvent from '../../utils/SendClientSideEvent' +import makeNotificationToastKey from './makeNotificationToastKey' graphql` fragment mapKudosReceivedToToast_notification on NotifyKudosReceived { diff --git a/packages/client/mutations/toasts/mapMentionedToToast.ts b/packages/client/mutations/toasts/mapMentionedToToast.ts index e748ffda0c8..3962f9adf6d 100644 --- a/packages/client/mutations/toasts/mapMentionedToToast.ts +++ b/packages/client/mutations/toasts/mapMentionedToToast.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' +import {mapMentionedToToast_notification$data} from '../../__generated__/mapMentionedToToast_notification.graphql' import {Snack} from '../../components/Snackbar' import {OnNextHistoryContext} from '../../types/relayMutations' -import {mapMentionedToToast_notification$data} from '../../__generated__/mapMentionedToToast_notification.graphql' import SendClientSideEvent from '../../utils/SendClientSideEvent' import makeNotificationToastKey from './makeNotificationToastKey' diff --git a/packages/client/mutations/toasts/mapPromptToJoinOrgToToast.ts b/packages/client/mutations/toasts/mapPromptToJoinOrgToToast.ts index 30d18d6cf98..a26b19ebd82 100644 --- a/packages/client/mutations/toasts/mapPromptToJoinOrgToToast.ts +++ b/packages/client/mutations/toasts/mapPromptToJoinOrgToToast.ts @@ -1,10 +1,10 @@ import graphql from 'babel-plugin-relay/macro' +import {mapPromptToJoinOrgToToast_notification$data} from '../../__generated__/mapPromptToJoinOrgToToast_notification.graphql' import {Snack} from '../../components/Snackbar' import {OnNextHistoryContext} from '../../types/relayMutations' -import {mapPromptToJoinOrgToToast_notification$data} from '../../__generated__/mapPromptToJoinOrgToToast_notification.graphql' import SendClientSideEvent from '../../utils/SendClientSideEvent' -import makeNotificationToastKey from './makeNotificationToastKey' import RequestToJoinDomainMutation from '../RequestToJoinDomainMutation' +import makeNotificationToastKey from './makeNotificationToastKey' graphql` fragment mapPromptToJoinOrgToToast_notification on NotifyPromptToJoinOrg { diff --git a/packages/client/mutations/toasts/mapRequestToJoinOrgToToast.ts b/packages/client/mutations/toasts/mapRequestToJoinOrgToToast.ts index c0cc0aead4b..8474e4e8af4 100644 --- a/packages/client/mutations/toasts/mapRequestToJoinOrgToToast.ts +++ b/packages/client/mutations/toasts/mapRequestToJoinOrgToToast.ts @@ -1,9 +1,9 @@ import graphql from 'babel-plugin-relay/macro' -import {Snack} from '../../components/Snackbar' import {mapRequestToJoinOrgToToast_notification$data} from '../../__generated__/mapRequestToJoinOrgToToast_notification.graphql' -import makeNotificationToastKey from './makeNotificationToastKey' +import {Snack} from '../../components/Snackbar' import {OnNextHistoryContext} from '../../types/relayMutations' import SendClientSideEvent from '../../utils/SendClientSideEvent' +import makeNotificationToastKey from './makeNotificationToastKey' graphql` fragment mapRequestToJoinOrgToToast_notification on NotifyRequestToJoinOrg { diff --git a/packages/client/mutations/toasts/mapResponseMentionedToToast.ts b/packages/client/mutations/toasts/mapResponseMentionedToToast.ts index b9d2e5cecd1..ccf6199d1ef 100644 --- a/packages/client/mutations/toasts/mapResponseMentionedToToast.ts +++ b/packages/client/mutations/toasts/mapResponseMentionedToToast.ts @@ -1,9 +1,9 @@ import graphql from 'babel-plugin-relay/macro' +import {mapResponseMentionedToToast_notification$data} from '../../__generated__/mapResponseMentionedToToast_notification.graphql' import {Snack} from '../../components/Snackbar' import {OnNextHistoryContext} from '../../types/relayMutations' -import {mapResponseMentionedToToast_notification$data} from '../../__generated__/mapResponseMentionedToToast_notification.graphql' -import makeNotificationToastKey from './makeNotificationToastKey' import SendClientSideEvent from '../../utils/SendClientSideEvent' +import makeNotificationToastKey from './makeNotificationToastKey' graphql` fragment mapResponseMentionedToToast_notification on NotifyResponseMentioned { diff --git a/packages/client/mutations/toasts/mapResponseRepliedToToast.ts b/packages/client/mutations/toasts/mapResponseRepliedToToast.ts index 8eeb5a01cae..c682d08ff5d 100644 --- a/packages/client/mutations/toasts/mapResponseRepliedToToast.ts +++ b/packages/client/mutations/toasts/mapResponseRepliedToToast.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' +import {mapResponseRepliedToToast_notification$data} from '../../__generated__/mapResponseRepliedToToast_notification.graphql' import {Snack} from '../../components/Snackbar' import {OnNextHistoryContext} from '../../types/relayMutations' -import {mapResponseRepliedToToast_notification$data} from '../../__generated__/mapResponseRepliedToToast_notification.graphql' import makeNotificationToastKey from './makeNotificationToastKey' graphql` diff --git a/packages/client/mutations/toasts/mapTeamsLimitExceededToToast.ts b/packages/client/mutations/toasts/mapTeamsLimitExceededToToast.ts index 28aa4d5d319..9166fa9be3e 100644 --- a/packages/client/mutations/toasts/mapTeamsLimitExceededToToast.ts +++ b/packages/client/mutations/toasts/mapTeamsLimitExceededToToast.ts @@ -1,10 +1,10 @@ import graphql from 'babel-plugin-relay/macro' +import {mapTeamsLimitExceededToToast_notification$data} from '../../__generated__/mapTeamsLimitExceededToToast_notification.graphql' import {Snack} from '../../components/Snackbar' +import {Threshold} from '../../types/constEnums' import {OnNextHistoryContext} from '../../types/relayMutations' -import {mapTeamsLimitExceededToToast_notification$data} from '../../__generated__/mapTeamsLimitExceededToToast_notification.graphql' import SendClientSideEvent from '../../utils/SendClientSideEvent' import makeNotificationToastKey from './makeNotificationToastKey' -import {Threshold} from '../../types/constEnums' graphql` fragment mapTeamsLimitExceededToToast_notification on NotifyTeamsLimitExceeded { diff --git a/packages/client/mutations/toasts/mapTeamsLimitReminderToToast.ts b/packages/client/mutations/toasts/mapTeamsLimitReminderToToast.ts index 4413aac1422..38a168518a7 100644 --- a/packages/client/mutations/toasts/mapTeamsLimitReminderToToast.ts +++ b/packages/client/mutations/toasts/mapTeamsLimitReminderToToast.ts @@ -1,10 +1,10 @@ import graphql from 'babel-plugin-relay/macro' +import {mapTeamsLimitReminderToToast_notification$data} from '../../__generated__/mapTeamsLimitReminderToToast_notification.graphql' import {Snack} from '../../components/Snackbar' import {Threshold} from '../../types/constEnums' import {OnNextHistoryContext} from '../../types/relayMutations' -import makeDateString from '../../utils/makeDateString' -import {mapTeamsLimitReminderToToast_notification$data} from '../../__generated__/mapTeamsLimitReminderToToast_notification.graphql' import SendClientSideEvent from '../../utils/SendClientSideEvent' +import makeDateString from '../../utils/makeDateString' import makeNotificationToastKey from './makeNotificationToastKey' graphql` diff --git a/packages/client/mutations/toasts/popInvolvementToast.ts b/packages/client/mutations/toasts/popInvolvementToast.ts index 2fe2547f8fd..afa92e3acf3 100644 --- a/packages/client/mutations/toasts/popInvolvementToast.ts +++ b/packages/client/mutations/toasts/popInvolvementToast.ts @@ -1,7 +1,7 @@ import {matchPath} from 'react-router-dom' +import {TaskInvolves_notification$data} from '../../__generated__/TaskInvolves_notification.graphql' import {OnNextHandler, OnNextHistoryContext} from '../../types/relayMutations' import {MENTIONEE} from '../../utils/constants' -import {TaskInvolves_notification$data} from '../../__generated__/TaskInvolves_notification.graphql' const popInvolvementToast: OnNextHandler = ( notification, diff --git a/packages/client/mutations/toasts/popNotificationToast.ts b/packages/client/mutations/toasts/popNotificationToast.ts index 8db3441c8e1..9668d92814d 100644 --- a/packages/client/mutations/toasts/popNotificationToast.ts +++ b/packages/client/mutations/toasts/popNotificationToast.ts @@ -1,20 +1,20 @@ import graphql from 'babel-plugin-relay/macro' -import {Snack} from '../../components/Snackbar' -import {OnNextHandler, OnNextHistoryContext} from '../../types/relayMutations' import { NotificationEnum, popNotificationToast_notification$data } from '../../__generated__/popNotificationToast_notification.graphql' +import {Snack} from '../../components/Snackbar' +import {OnNextHandler, OnNextHistoryContext} from '../../types/relayMutations' import SetNotificationStatusMutation from '../SetNotificationStatusMutation' import mapDiscussionMentionedToToast from './mapDiscussionMentionedToToast' -import mapResponseMentionedToToast from './mapResponseMentionedToToast' +import mapKudosReceivedToToast from './mapKudosReceivedToToast' import mapMentionedToToast from './mapMentionedToToast' +import mapPromptToJoinOrgToToast from './mapPromptToJoinOrgToToast' +import mapRequestToJoinOrgToToast from './mapRequestToJoinOrgToToast' +import mapResponseMentionedToToast from './mapResponseMentionedToToast' import mapResponseRepliedToToast from './mapResponseRepliedToToast' import mapTeamsLimitExceededToToast from './mapTeamsLimitExceededToToast' import mapTeamsLimitReminderToToast from './mapTeamsLimitReminderToToast' -import mapPromptToJoinOrgToToast from './mapPromptToJoinOrgToToast' -import mapRequestToJoinOrgToToast from './mapRequestToJoinOrgToToast' -import mapKudosReceivedToToast from './mapKudosReceivedToToast' const typePicker: Partial< Record Snack | null> diff --git a/packages/client/mutations/toasts/updateNotificationToast.ts b/packages/client/mutations/toasts/updateNotificationToast.ts index 62b90b6f328..41fca219089 100644 --- a/packages/client/mutations/toasts/updateNotificationToast.ts +++ b/packages/client/mutations/toasts/updateNotificationToast.ts @@ -1,6 +1,6 @@ import graphql from 'babel-plugin-relay/macro' -import {OnNextHandler, OnNextHistoryContext} from '../../types/relayMutations' import {updateNotificationToast_notification$data} from '../../__generated__/updateNotificationToast_notification.graphql' +import {OnNextHandler, OnNextHistoryContext} from '../../types/relayMutations' import makeNotificationToastKey from './makeNotificationToastKey' graphql` diff --git a/packages/client/mutations/useAcceptRequestToJoinDomainMutation.ts b/packages/client/mutations/useAcceptRequestToJoinDomainMutation.ts index b44b0dc64cc..f87398a7c34 100644 --- a/packages/client/mutations/useAcceptRequestToJoinDomainMutation.ts +++ b/packages/client/mutations/useAcceptRequestToJoinDomainMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {useMutation, UseMutationConfig} from 'react-relay' -import useAtmosphere from '../hooks/useAtmosphere' import {useAcceptRequestToJoinDomainMutation as TAcceptRequestToJoinDomainMutation} from '../__generated__/useAcceptRequestToJoinDomainMutation.graphql' +import useAtmosphere from '../hooks/useAtmosphere' import SendClientSideEvent from '../utils/SendClientSideEvent' graphql` diff --git a/packages/client/mutations/useShareTopicMutation.ts b/packages/client/mutations/useShareTopicMutation.ts index fd7b36a201a..d41f44ef6f4 100644 --- a/packages/client/mutations/useShareTopicMutation.ts +++ b/packages/client/mutations/useShareTopicMutation.ts @@ -1,7 +1,7 @@ import graphql from 'babel-plugin-relay/macro' import {useMutation, UseMutationConfig} from 'react-relay' -import useAtmosphere from '../hooks/useAtmosphere' import {useShareTopicMutation as TAcceptRequestToJoinDomainMutation} from '../__generated__/useShareTopicMutation.graphql' +import useAtmosphere from '../hooks/useAtmosphere' graphql` fragment useShareTopicMutation_meeting on ShareTopicSuccess { diff --git a/packages/client/subscriptions/MeetingSubscription.ts b/packages/client/subscriptions/MeetingSubscription.ts index d6f30e0a0f1..5b9ad76bf15 100644 --- a/packages/client/subscriptions/MeetingSubscription.ts +++ b/packages/client/subscriptions/MeetingSubscription.ts @@ -1,14 +1,14 @@ import graphql from 'babel-plugin-relay/macro' import {RouterProps} from 'react-router' import {requestSubscription} from 'relay-runtime' +import { + MeetingSubscription$variables, + MeetingSubscription as TMeetingSubscription +} from '~/__generated__/MeetingSubscription.graphql' import {addCommentMeetingUpdater} from '~/mutations/AddCommentMutation' import {createPollMeetingUpdater} from '~/mutations/CreatePollMutation' import {deleteCommentMeetingUpdater} from '~/mutations/DeleteCommentMutation' import {upsertTeamPromptResponseUpdater} from '~/mutations/UpsertTeamPromptResponseMutation' -import { - MeetingSubscription as TMeetingSubscription, - MeetingSubscription$variables -} from '~/__generated__/MeetingSubscription.graphql' import Atmosphere from '../Atmosphere' import {createReflectionMeetingUpdater} from '../mutations/CreateReflectionMutation' import {dragDiscussionTopicMeetingUpdater} from '../mutations/DragDiscussionTopicMutation' diff --git a/packages/client/subscriptions/OrganizationSubscription.ts b/packages/client/subscriptions/OrganizationSubscription.ts index e2453c22589..5efdb9825b6 100644 --- a/packages/client/subscriptions/OrganizationSubscription.ts +++ b/packages/client/subscriptions/OrganizationSubscription.ts @@ -1,14 +1,14 @@ import graphql from 'babel-plugin-relay/macro' import {RouterProps} from 'react-router' import {requestSubscription} from 'relay-runtime' +import { + OrganizationSubscription$variables, + OrganizationSubscription as TOrganizationSubscription +} from '~/__generated__/OrganizationSubscription.graphql' import { archiveOrganizationOrganizationOnNext, archiveOrganizationOrganizationUpdater } from '~/mutations/ArchiveOrganizationMutation' -import { - OrganizationSubscription as TOrganizationSubscription, - OrganizationSubscription$variables -} from '~/__generated__/OrganizationSubscription.graphql' import Atmosphere from '../Atmosphere' import {addOrgMutationOrganizationUpdater} from '../mutations/AddOrgMutation' import { @@ -20,9 +20,9 @@ import { setOrgUserRoleAddedOrganizationUpdater } from '../mutations/SetOrgUserRoleMutation' import {updateTemplateScopeOrganizationUpdater} from '../mutations/UpdateReflectTemplateScopeMutation' +import upgradeToTeamTierSuccessUpdater from '../mutations/handlers/upgradeToTeamTierSuccessUpdater' import subscriptionOnNext from './subscriptionOnNext' import subscriptionUpdater from './subscriptionUpdater' -import upgradeToTeamTierSuccessUpdater from '../mutations/handlers/upgradeToTeamTierSuccessUpdater' const subscription = graphql` subscription OrganizationSubscription { diff --git a/packages/client/subscriptions/TeamSubscription.ts b/packages/client/subscriptions/TeamSubscription.ts index 10e14740d4c..ec2ff7aa1e6 100644 --- a/packages/client/subscriptions/TeamSubscription.ts +++ b/packages/client/subscriptions/TeamSubscription.ts @@ -17,9 +17,12 @@ import { acceptTeamInvitationTeamUpdater } from '../mutations/AcceptTeamInvitationMutation' import {addAgendaItemUpdater} from '../mutations/AddAgendaItemMutation' +import {addPokerTemplateTeamUpdater} from '../mutations/AddPokerTemplateMutation' +import {addReflectTemplateTeamUpdater} from '../mutations/AddReflectTemplateMutation' import {addReflectTemplatePromptTeamUpdater} from '../mutations/AddReflectTemplatePromptMutation' import {addTeamTeamUpdater} from '../mutations/AddTeamMutation' import {archiveTeamTeamOnNext, archiveTeamTeamUpdater} from '../mutations/ArchiveTeamMutation' +import {batchArchiveTasksTaskUpdater} from '../mutations/BatchArchiveTasksMutation' import {denyPushInvitationTeamOnNext} from '../mutations/DenyPushInvitationMutation' import { endSprintPokerTeamOnNext, @@ -38,9 +41,6 @@ import { import {updateAgendaItemUpdater} from '../mutations/UpdateAgendaItemMutation' import subscriptionOnNext from './subscriptionOnNext' import subscriptionUpdater from './subscriptionUpdater' -import {batchArchiveTasksTaskUpdater} from '../mutations/BatchArchiveTasksMutation' -import {addReflectTemplateTeamUpdater} from '../mutations/AddReflectTemplateMutation' -import {addPokerTemplateTeamUpdater} from '../mutations/AddPokerTemplateMutation' const subscription = graphql` subscription TeamSubscription { diff --git a/packages/client/ui/AlertDialog/AlertDialogAction.tsx b/packages/client/ui/AlertDialog/AlertDialogAction.tsx index 75b93fb02a9..59f4f9d0e76 100644 --- a/packages/client/ui/AlertDialog/AlertDialogAction.tsx +++ b/packages/client/ui/AlertDialog/AlertDialogAction.tsx @@ -1,6 +1,6 @@ -import * as React from 'react' import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog' import clsx from 'clsx' +import * as React from 'react' const AlertDialogAction = React.forwardRef< HTMLButtonElement, diff --git a/packages/client/ui/AlertDialog/AlertDialogCancel.tsx b/packages/client/ui/AlertDialog/AlertDialogCancel.tsx index 201ca648679..e6dad77019d 100644 --- a/packages/client/ui/AlertDialog/AlertDialogCancel.tsx +++ b/packages/client/ui/AlertDialog/AlertDialogCancel.tsx @@ -1,6 +1,6 @@ -import * as React from 'react' import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog' import clsx from 'clsx' +import * as React from 'react' const AlertDialogCancel = React.forwardRef< HTMLButtonElement, diff --git a/packages/client/ui/AlertDialog/AlertDialogDescription.tsx b/packages/client/ui/AlertDialog/AlertDialogDescription.tsx index 7c940b02fec..ea8bfaa59b0 100644 --- a/packages/client/ui/AlertDialog/AlertDialogDescription.tsx +++ b/packages/client/ui/AlertDialog/AlertDialogDescription.tsx @@ -1,6 +1,6 @@ -import * as React from 'react' import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog' import clsx from 'clsx' +import * as React from 'react' const AlertDialogDescription = React.forwardRef< HTMLParagraphElement, diff --git a/packages/client/ui/AlertDialog/AlertDialogFooter.tsx b/packages/client/ui/AlertDialog/AlertDialogFooter.tsx index 0148d9a8c39..86e208f97cb 100644 --- a/packages/client/ui/AlertDialog/AlertDialogFooter.tsx +++ b/packages/client/ui/AlertDialog/AlertDialogFooter.tsx @@ -1,5 +1,5 @@ -import * as React from 'react' import clsx from 'clsx' +import * as React from 'react' const AlertDialogFooter = ({className, ...props}: React.HTMLAttributes) => (
) => (
diff --git a/packages/client/ui/AlertDialog/AlertDialogOverlay.tsx b/packages/client/ui/AlertDialog/AlertDialogOverlay.tsx index e867c7ed363..4d528210517 100644 --- a/packages/client/ui/AlertDialog/AlertDialogOverlay.tsx +++ b/packages/client/ui/AlertDialog/AlertDialogOverlay.tsx @@ -1,6 +1,6 @@ -import * as React from 'react' import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog' import clsx from 'clsx' +import * as React from 'react' export const AlertDialogOverlay = React.forwardRef< HTMLDivElement, diff --git a/packages/client/ui/AlertDialog/AlertDialogTitle.tsx b/packages/client/ui/AlertDialog/AlertDialogTitle.tsx index c7c14e011c5..cd4c9a9b0a8 100644 --- a/packages/client/ui/AlertDialog/AlertDialogTitle.tsx +++ b/packages/client/ui/AlertDialog/AlertDialogTitle.tsx @@ -1,6 +1,6 @@ -import * as React from 'react' import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog' import clsx from 'clsx' +import * as React from 'react' const AlertDialogTitle = React.forwardRef< HTMLHeadingElement, diff --git a/packages/client/ui/Avatar/Avatar.tsx b/packages/client/ui/Avatar/Avatar.tsx index 23bbecd22a6..a54be1d76b0 100644 --- a/packages/client/ui/Avatar/Avatar.tsx +++ b/packages/client/ui/Avatar/Avatar.tsx @@ -1,6 +1,6 @@ -import React from 'react' import * as AvatarPrimitive from '@radix-ui/react-avatar' import clsx from 'clsx' +import React from 'react' export const Avatar = React.forwardRef< HTMLSpanElement, diff --git a/packages/client/ui/Avatar/AvatarFallback.tsx b/packages/client/ui/Avatar/AvatarFallback.tsx index 482648102a8..ac2676858d4 100644 --- a/packages/client/ui/Avatar/AvatarFallback.tsx +++ b/packages/client/ui/Avatar/AvatarFallback.tsx @@ -1,6 +1,6 @@ -import React from 'react' import * as AvatarPrimitive from '@radix-ui/react-avatar' import clsx from 'clsx' +import React from 'react' export const AvatarFallback = React.forwardRef< HTMLSpanElement, diff --git a/packages/client/ui/Avatar/AvatarImage.tsx b/packages/client/ui/Avatar/AvatarImage.tsx index 66f41abad5d..19a90bc1f90 100644 --- a/packages/client/ui/Avatar/AvatarImage.tsx +++ b/packages/client/ui/Avatar/AvatarImage.tsx @@ -1,6 +1,6 @@ -import React from 'react' import * as AvatarPrimitive from '@radix-ui/react-avatar' import clsx from 'clsx' +import React from 'react' export const AvatarImage = React.forwardRef< HTMLImageElement, diff --git a/packages/client/ui/Button/Button.tsx b/packages/client/ui/Button/Button.tsx index 90554dc662e..e214959b5c7 100644 --- a/packages/client/ui/Button/Button.tsx +++ b/packages/client/ui/Button/Button.tsx @@ -1,6 +1,6 @@ -import React from 'react' import {Slot} from '@radix-ui/react-slot' import clsx from 'clsx' +import React from 'react' type Variant = 'primary' | 'secondary' | 'destructive' | 'ghost' | 'link' | 'outline' type Size = 'sm' | 'md' | 'lg' | 'default' diff --git a/packages/client/ui/Chip/Chip.tsx b/packages/client/ui/Chip/Chip.tsx index c24ccad0d69..bfa9da0bc61 100644 --- a/packages/client/ui/Chip/Chip.tsx +++ b/packages/client/ui/Chip/Chip.tsx @@ -1,5 +1,5 @@ -import React from 'react' import {Close} from '@mui/icons-material' +import React from 'react' import {twMerge} from 'tailwind-merge' interface Props { diff --git a/packages/client/ui/Dialog/Dialog.tsx b/packages/client/ui/Dialog/Dialog.tsx index 00bffaab0af..633e5e7c74f 100644 --- a/packages/client/ui/Dialog/Dialog.tsx +++ b/packages/client/ui/Dialog/Dialog.tsx @@ -1,5 +1,5 @@ -import * as React from 'react' import * as RadixDialog from '@radix-ui/react-dialog' +import * as React from 'react' interface DialogProps extends React.ComponentPropsWithoutRef { isOpen: boolean diff --git a/packages/client/ui/Dialog/DialogClose.tsx b/packages/client/ui/Dialog/DialogClose.tsx index 83318e88fa8..8bae02bfc67 100644 --- a/packages/client/ui/Dialog/DialogClose.tsx +++ b/packages/client/ui/Dialog/DialogClose.tsx @@ -1,6 +1,6 @@ -import React from 'react' import {Close} from '@mui/icons-material' import * as RadixDialog from '@radix-ui/react-dialog' +import React from 'react' import {twMerge} from 'tailwind-merge' export const DialogClose = React.forwardRef< diff --git a/packages/client/ui/Dialog/DialogContent.tsx b/packages/client/ui/Dialog/DialogContent.tsx index 16ef6ab553e..5453413e534 100644 --- a/packages/client/ui/Dialog/DialogContent.tsx +++ b/packages/client/ui/Dialog/DialogContent.tsx @@ -1,8 +1,8 @@ -import * as React from 'react' import * as RadixDialog from '@radix-ui/react-dialog' +import * as React from 'react' import {twMerge} from 'tailwind-merge' -import {DialogOverlay} from './DialogOverlay' import {DialogClose} from './DialogClose' +import {DialogOverlay} from './DialogOverlay' export const DialogContent = React.forwardRef< HTMLDivElement, diff --git a/packages/client/ui/Dialog/DialogDescription.tsx b/packages/client/ui/Dialog/DialogDescription.tsx index 1420013ed2f..ce44221669d 100644 --- a/packages/client/ui/Dialog/DialogDescription.tsx +++ b/packages/client/ui/Dialog/DialogDescription.tsx @@ -1,5 +1,5 @@ -import React from 'react' import * as RadixDialog from '@radix-ui/react-dialog' +import React from 'react' import {twMerge} from 'tailwind-merge' export const DialogDescription = React.forwardRef< diff --git a/packages/client/ui/Dialog/DialogOverlay.tsx b/packages/client/ui/Dialog/DialogOverlay.tsx index bfafa2578e9..031db3627d5 100644 --- a/packages/client/ui/Dialog/DialogOverlay.tsx +++ b/packages/client/ui/Dialog/DialogOverlay.tsx @@ -1,5 +1,5 @@ -import * as React from 'react' import * as RadixDialog from '@radix-ui/react-dialog' +import * as React from 'react' import {twMerge} from 'tailwind-merge' export const DialogOverlay = React.forwardRef< diff --git a/packages/client/ui/Dialog/DialogTitle.tsx b/packages/client/ui/Dialog/DialogTitle.tsx index c35a6165cac..ecd9e9ba621 100644 --- a/packages/client/ui/Dialog/DialogTitle.tsx +++ b/packages/client/ui/Dialog/DialogTitle.tsx @@ -1,5 +1,5 @@ -import React from 'react' import * as RadixDialog from '@radix-ui/react-dialog' +import React from 'react' import {twMerge} from 'tailwind-merge' export const DialogTitle = React.forwardRef< diff --git a/packages/client/ui/Select/SelectContent.tsx b/packages/client/ui/Select/SelectContent.tsx index bfe3b247b03..3d58796aa2f 100644 --- a/packages/client/ui/Select/SelectContent.tsx +++ b/packages/client/ui/Select/SelectContent.tsx @@ -1,5 +1,5 @@ -import * as React from 'react' import * as RadixSelect from '@radix-ui/react-select' +import * as React from 'react' import {twMerge} from 'tailwind-merge' export const SelectContent = React.forwardRef< diff --git a/packages/client/ui/Select/SelectItem.tsx b/packages/client/ui/Select/SelectItem.tsx index d36b21a108b..c836364266b 100644 --- a/packages/client/ui/Select/SelectItem.tsx +++ b/packages/client/ui/Select/SelectItem.tsx @@ -1,6 +1,6 @@ -import * as React from 'react' -import * as RadixSelect from '@radix-ui/react-select' import {Check} from '@mui/icons-material' +import * as RadixSelect from '@radix-ui/react-select' +import * as React from 'react' import {twMerge} from 'tailwind-merge' interface SelectItemProps extends React.ComponentPropsWithoutRef { diff --git a/packages/client/ui/Select/SelectTrigger.tsx b/packages/client/ui/Select/SelectTrigger.tsx index 63fd744086e..5f8b32fe013 100644 --- a/packages/client/ui/Select/SelectTrigger.tsx +++ b/packages/client/ui/Select/SelectTrigger.tsx @@ -1,6 +1,6 @@ -import * as React from 'react' -import * as RadixSelect from '@radix-ui/react-select' import {KeyboardArrowDown} from '@mui/icons-material' +import * as RadixSelect from '@radix-ui/react-select' +import * as React from 'react' import {twMerge} from 'tailwind-merge' import {Loader} from '../../utils/relay/renderLoader' diff --git a/packages/client/utils/GcalClientManager.ts b/packages/client/utils/GcalClientManager.ts index f35760b850d..f8588255344 100644 --- a/packages/client/utils/GcalClientManager.ts +++ b/packages/client/utils/GcalClientManager.ts @@ -1,8 +1,8 @@ +import Atmosphere from '../Atmosphere' import {MenuMutationProps} from '../hooks/useMutationProps' import AddTeamMemberIntegrationAuthMutation from '../mutations/AddTeamMemberIntegrationAuthMutation' import getOAuthPopupFeatures from './getOAuthPopupFeatures' import makeHref from './makeHref' -import Atmosphere from '../Atmosphere' class GcalClientManager { static SCOPES = 'https://www.googleapis.com/auth/calendar.events' diff --git a/packages/client/utils/SendClientSideEvent.ts b/packages/client/utils/SendClientSideEvent.ts index 7995473b1fd..d0fc5301c0d 100644 --- a/packages/client/utils/SendClientSideEvent.ts +++ b/packages/client/utils/SendClientSideEvent.ts @@ -1,5 +1,5 @@ -import Atmosphere from '../Atmosphere' import * as amplitude from '@amplitude/analytics-browser' +import Atmosphere from '../Atmosphere' const SendClientSideEvent = ( atmosphere: Atmosphere, diff --git a/packages/client/utils/date/relativeDate.ts b/packages/client/utils/date/relativeDate.ts index 659f0af9380..155c121012c 100644 --- a/packages/client/utils/date/relativeDate.ts +++ b/packages/client/utils/date/relativeDate.ts @@ -3,8 +3,8 @@ // capitalized J in just now // set my own defaults -import plural from '../plural' import humanizeDuration from 'humanize-duration' +import plural from '../plural' const SECOND = 1000 const MIN = SECOND * 60 diff --git a/packages/client/utils/getTeamHealthVoteColor.ts b/packages/client/utils/getTeamHealthVoteColor.ts index ad347969a8d..fd660535aba 100644 --- a/packages/client/utils/getTeamHealthVoteColor.ts +++ b/packages/client/utils/getTeamHealthVoteColor.ts @@ -1,5 +1,5 @@ -import blendColors from './blendColors' import {PALETTE} from '../styles/paletteV3' +import blendColors from './blendColors' function getTeamHealthVoteColor(allVotes: readonly number[], vote: number) { const minVote = Math.min(...allVotes) diff --git a/packages/client/utils/handleSuccessfulLogin.ts b/packages/client/utils/handleSuccessfulLogin.ts index 7fc42f3b26e..1c17d50b719 100644 --- a/packages/client/utils/handleSuccessfulLogin.ts +++ b/packages/client/utils/handleSuccessfulLogin.ts @@ -1,7 +1,7 @@ +import ReactGA from 'react-ga4' import {LocalStorageKey} from '~/types/constEnums' -import safeIdentify from './safeIdentify' import {handleSuccessfulLogin_UserLogInPayload$data} from '../__generated__/handleSuccessfulLogin_UserLogInPayload.graphql' -import ReactGA from 'react-ga4' +import safeIdentify from './safeIdentify' import graphql from 'babel-plugin-relay/macro' graphql` diff --git a/packages/client/utils/relay/setActiveTemplate.ts b/packages/client/utils/relay/setActiveTemplate.ts index 8fd4231d171..45a577a0403 100644 --- a/packages/client/utils/relay/setActiveTemplate.ts +++ b/packages/client/utils/relay/setActiveTemplate.ts @@ -32,4 +32,4 @@ const setActiveTemplate = ( }) } -export {setActiveTemplateInRelayStore, setActiveTemplate} +export {setActiveTemplate, setActiveTemplateInRelayStore} diff --git a/packages/client/utils/useTemplateDescription.ts b/packages/client/utils/useTemplateDescription.ts index 302dfaaabfe..6f17000e918 100644 --- a/packages/client/utils/useTemplateDescription.ts +++ b/packages/client/utils/useTemplateDescription.ts @@ -1,8 +1,8 @@ import graphql from 'babel-plugin-relay/macro' import {readInlineData} from 'react-relay' +import {TierEnum} from '../__generated__/OrganizationSubscription.graphql' import {useTemplateDescription_template$key} from '../__generated__/useTemplateDescription_template.graphql' import {useTemplateDescription_viewer$key} from '../__generated__/useTemplateDescription_viewer.graphql' -import {TierEnum} from '../__generated__/OrganizationSubscription.graphql' import relativeDate from './date/relativeDate' const useTemplateDescription = (