Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Dschoordsch committed Apr 15, 2024
1 parent abaa30b commit 521638b
Show file tree
Hide file tree
Showing 739 changed files with 1,535 additions and 1,537 deletions.
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
"singleQuote": false
}
}
]
],
"plugins": ["prettier-plugin-organize-imports", "prettier-plugin-tailwindcss"]
}
2 changes: 1 addition & 1 deletion packages/client/components/ActionMeeting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion packages/client/components/ActionMeetingAgendaItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion packages/client/components/ActionMeetingFirstCall.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {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'
import MeetingFacilitationHint from '../modules/meeting/components/MeetingFacilitationHint/MeetingFacilitationHint'
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'
Expand Down
2 changes: 1 addition & 1 deletion packages/client/components/ActionMeetingLastCall.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand Down
8 changes: 4 additions & 4 deletions packages/client/components/ActionMeetingSidebar.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
2 changes: 1 addition & 1 deletion packages/client/components/ActionMeetingUpdates.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion packages/client/components/ActionMeetingUpdatesPrompt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
2 changes: 1 addition & 1 deletion packages/client/components/ActivityLibrary/AISearch.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react'
import clsx from 'clsx'
import React from 'react'

interface DetailsBadgeProps {
className?: string
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/client/components/ActivityLibrary/ActivityGrid.tsx
Original file line number Diff line number Diff line change
@@ -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[]
Expand Down
12 changes: 6 additions & 6 deletions packages/client/components/ActivityLibrary/ActivityLibrary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
Original file line number Diff line number Diff line change
@@ -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')
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading

0 comments on commit 521638b

Please sign in to comment.