Skip to content

Commit

Permalink
fix: increases integration icon visibility (#9164)
Browse files Browse the repository at this point in the history
* increases integration icon visibility
* force commit
* yank comment
  • Loading branch information
ackernaut committed Nov 30, 2023
1 parent 9961e63 commit b9bcd69
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
8 changes: 4 additions & 4 deletions packages/client/components/IconLabel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ import {
MoreVert,
OpenInNew,
PersonPin,
Publish,
RemoveCircle,
Reply,
Search,
SentimentSatisfied,
TaskAlt,
Tune,
UnfoldMore,
WebAsset
WebAsset,
Widgets
} from '@mui/icons-material'
import React, {forwardRef, ReactNode} from 'react'

Expand Down Expand Up @@ -97,9 +97,9 @@ const IconLabel = forwardRef((props: Props, ref: any) => {
arrow_forward: <ArrowForward />,
archive: <Archive />,
close: <Close />,
publish: <Publish />,
tune: <Tune />,
task_alt: <TaskAlt />
task_alt: <TaskAlt />,
widgets: <Widgets />
}[icon]
}
</StyledIcon>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ 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
Expand Down Expand Up @@ -89,6 +90,9 @@ const OutcomeCard = memo((props: Props) => {
graphql`
fragment OutcomeCard_task on Task @argumentDefinitions(meetingId: {type: "ID"}) {
...IntegratedTaskContent_task
editors {
userId
}
id
integration {
__typename
Expand All @@ -110,7 +114,11 @@ const OutcomeCard = memo((props: Props) => {
)
const isPrivate = isTaskPrivate(task.tags)
const isArchived = isTaskArchived(task.tags)
const {integration, status, id: taskId, team, isHighlighted} = task
const {integration, status, id: taskId, team, isHighlighted, editors} = task
const atmosphere = useAtmosphere()
const {viewerId} = atmosphere
const otherEditors = editors.filter((editor) => editor.userId !== viewerId)
const isEditing = editors.length > otherEditors.length
const {addTaskChild, removeTaskChild} = useTaskChildFocus(taskId)
const {id: teamId} = team
const type = integration?.__typename
Expand Down Expand Up @@ -165,7 +173,7 @@ const OutcomeCard = memo((props: Props) => {
<TaskFooter
dataCy={`${dataCy}`}
area={area}
cardIsActive={isTaskFocused || isTaskHovered}
cardIsActive={isTaskFocused || isTaskHovered || isEditing}
editorState={editorState}
isAgenda={isAgenda}
task={task}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const TaskFooterIntegrateToggle = (props: Props) => {
dataCy={`${dataCy}-button`}
>
<IconLabel
icon='publish'
icon='widgets'
onMouseEnter={openTooltip}
onMouseLeave={closeTooltip}
onClick={closeTooltip}
Expand Down

0 comments on commit b9bcd69

Please sign in to comment.