π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
chore: added optional tooltip to dropdowns (#3462)
Aaryan Khandelwaleae32593cbf0
diff --git a/web/components/dashboard/widgets/issues-by-priority.tsx b/web/components/dashboard/widgets/issues-by-priority.tsxindex 6b85050441..45b71466d1 100644--- a/web/components/dashboard/widgets/issues-by-priority.tsx+++ b/web/components/dashboard/widgets/issues-by-priority.tsx@@ -128,7 +128,7 @@ export const IssuesByPriorityWidget: React.FC<WidgetProps> = observer((props) =>};return (- <div className="bg-custom-background-100 rounded-xl border-[0.5px] border-custom-border-200 w-full py-6 hover:shadow-custom-shadow-4xl duration-300 overflow-hidden min-h-96">+ <div className="bg-custom-background-100 rounded-xl border-[0.5px] border-custom-border-200 w-full py-6 hover:shadow-custom-shadow-4xl duration-300 overflow-hidden min-h-96 flex flex-col"><div className="flex items-start justify-between gap-2 pl-7 pr-6"><div><Linkdiff --git a/web/components/dashboard/widgets/issues-by-state-group.tsx b/web/components/dashboard/widgets/issues-by-state-group.tsxindex 1f649813b6..f8cd2d50a0 100644--- a/web/components/dashboard/widgets/issues-by-state-group.tsx+++ b/web/components/dashboard/widgets/issues-by-state-group.tsx@@ -127,7 +127,7 @@ export const IssuesByStateGroupWidget: React.FC<WidgetProps> = observer((props)};return (- <div className="bg-custom-background-100 rounded-xl border-[0.5px] border-custom-border-200 w-full py-6 hover:shadow-custom-shadow-4xl duration-300 overflow-hidden min-h-96">+ <div className="bg-custom-background-100 rounded-xl border-[0.5px] border-custom-border-200 w-full py-6 hover:shadow-custom-shadow-4xl duration-300 overflow-hidden min-h-96 flex flex-col"><div className="flex items-start justify-between gap-2 pl-7 pr-6"><div><Linkdiff --git a/web/components/dropdowns/cycle.tsx b/web/components/dropdowns/cycle.tsxindex 5645132c4d..51c84098a3 100644--- a/web/components/dropdowns/cycle.tsx+++ b/web/components/dropdowns/cycle.tsx@@ -8,7 +8,7 @@ import { useApplication, useCycle } from "hooks/store";import { useDropdownKeyDown } from "hooks/use-dropdown-key-down";import useOutsideClickDetector from "hooks/use-outside-click-detector";// icons-import { ContrastIcon } from "@plane/ui";+import { ContrastIcon, Tooltip } from "@plane/ui";// helpersimport { cn } from "helpers/common.helper";// types@@ -32,6 +32,7 @@ type ButtonProps = {dropdownArrow: boolean;dropdownArrowClassName: string;placeholder: string;+ tooltip: boolean;};type DropdownOptions =@@ -51,21 +52,24 @@ const BorderButton = (props: ButtonProps) => {hideIcon = false,hideText = false,placeholder,+ tooltip,} = props;return (- <div- className={cn(- "h-full flex items-center gap-1.5 border-[0.5px] border-custom-border-300 hover:bg-custom-background-80 rounded text-xs px-2 py-0.5",- className- )}- >- {!hideIcon && <ContrastIcon className="h-3 w-3 flex-shrink-0" />}{" "}- {!hideText && <span className="flex-grow truncate">{cycle?.name ?? placeholder}</span>}- {dropdownArrow && (- <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />- )}- </div>+ <Tooltip tooltipHeading="Cycle" tooltipContent={cycle?.name ?? placeholder} disabled={!tooltip}>+ <div+ className={cn(+ "h-full flex items-center gap-1.5 border-[0.5px] border-custom-border-300 hover:bg-custom-background-80 rounded text-xs px-2 py-0.5",+ className+ )}+ >+ {!hideIcon && <ContrastIcon className="h-3 w-3 flex-shrink-0" />}{" "}+ {!hideText && <span className="flex-grow truncate">{cycle?.name ?? placeholder}</span>}+ {dropdownArrow && (+ <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />+ )}+ </div>+ </Tooltip>);};@@ -78,18 +82,24 @@ const BackgroundButton = (props: ButtonProps) => {hideIcon = false,hideText = false,placeholder,+ tooltip,} = props;return (- <div- className={cn("h-full flex items-center gap-1.5 rounded text-xs px-2 py-0.5 bg-custom-background-80", className)}- >- {!hideIcon && <ContrastIcon className="h-3 w-3 flex-shrink-0" />}- {!hideText && <span className="flex-grow truncate">{cycle?.name ?? placeholder}</span>}- {dropdownArrow && (- <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />- )}- </div>+ <Tooltip tooltipHeading="Cycle" tooltipContent={cycle?.name ?? placeholder} disabled={!tooltip}>+ <div+ className={cn(+ "h-full flex items-center gap-1.5 rounded text-xs px-2 py-0.5 bg-custom-background-80",+ className+ )}+ >+ {!hideIcon && <ContrastIcon className="h-3 w-3 flex-shrink-0" />}+ {!hideText && <span className="flex-grow truncate">{cycle?.name ?? placeholder}</span>}+ {dropdownArrow && (+ <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />+ )}+ </div>+ </Tooltip>);};@@ -102,21 +112,24 @@ const TransparentButton = (props: ButtonProps) => {hideIcon = false,hideText = false,placeholder,+ tooltip,} = props;return (- <div- className={cn(- "h-full flex items-center gap-1.5 rounded text-xs px-2 py-0.5 hover:bg-custom-background-80",- className- )}- >- {!hideIcon && <ContrastIcon className="h-3 w-3 flex-shrink-0" />}- {!hideText && <span className="flex-grow truncate">{cycle?.name ?? placeholder}</span>}- {dropdownArrow && (- <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />- )}- </div>+ <Tooltip tooltipHeading="Cycle" tooltipContent={cycle?.name ?? placeholder} disabled={!tooltip}>+ <div+ className={cn(+ "h-full flex items-center gap-1.5 rounded text-xs px-2 py-0.5 hover:bg-custom-background-80",+ className+ )}+ >+ {!hideIcon && <ContrastIcon className="h-3 w-3 flex-shrink-0" />}+ {!hideText && <span className="flex-grow truncate">{cycle?.name ?? placeholder}</span>}+ {dropdownArrow && (+ <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />+ )}+ </div>+ </Tooltip>);};@@ -135,8 +148,9 @@ export const CycleDropdown: React.FC<Props> = observer((props) => {placeholder = "Cycle",placement,projectId,- value,tabIndex,+ tooltip = false,+ value,} = props;// statesconst [query, setQuery] = useState("");@@ -254,6 +268,7 @@ export const CycleDropdown: React.FC<Props> = observer((props) => {dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}placeholder={placeholder}+ tooltip={tooltip}/>) : buttonVariant === "border-without-text" ? (<BorderButton@@ -264,6 +279,7 @@ export const CycleDropdown: React.FC<Props> = observer((props) => {hideIcon={hideIcon}hideTextplaceholder={placeholder}+ tooltip={tooltip}/>) : buttonVariant === "background-with-text" ? (<BackgroundButton@@ -273,6 +289,7 @@ export const CycleDropdown: React.FC<Props> = observer((props) => {dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}placeholder={placeholder}+ tooltip={tooltip}/>) : buttonVariant === "background-without-text" ? (<BackgroundButton@@ -283,6 +300,7 @@ export const CycleDropdown: React.FC<Props> = observer((props) => {hideIcon={hideIcon}hideTextplaceholder={placeholder}+ tooltip={tooltip}/>) : buttonVariant === "transparent-with-text" ? (<TransparentButton@@ -292,6 +310,7 @@ export const CycleDropdown: React.FC<Props> = observer((props) => {dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}placeholder={placeholder}+ tooltip={tooltip}/>) : buttonVariant === "transparent-without-text" ? (<TransparentButton@@ -302,6 +321,7 @@ export const CycleDropdown: React.FC<Props> = observer((props) => {hideIcon={hideIcon}hideTextplaceholder={placeholder}+ tooltip={tooltip}/>) : null}</button>diff --git a/web/components/dropdowns/date.tsx b/web/components/dropdowns/date.tsxindex e128c6ad39..3cbf3449ad 100644--- a/web/components/dropdowns/date.tsx+++ b/web/components/dropdowns/date.tsx@@ -6,6 +6,8 @@ import { CalendarDays, X } from "lucide-react";// hooksimport { useDropdownKeyDown } from "hooks/use-dropdown-key-down";import useOutsideClickDetector from "hooks/use-outside-click-detector";+// ui+import { Tooltip } from "@plane/ui";// helpersimport { renderFormattedDate } from "helpers/date-time.helper";import { cn } from "helpers/common.helper";@@ -33,6 +35,7 @@ type ButtonProps = {hideText?: boolean;onClear: () => void;placeholder: string;+ tooltip: boolean;};const BorderButton = (props: ButtonProps) => {@@ -46,27 +49,34 @@ const BorderButton = (props: ButtonProps) => {hideText = false,onClear,placeholder,+ tooltip,} = props;return (- <div- className={cn(- "h-full flex items-center gap-1.5 border-[0.5px] border-custom-border-300 hover:bg-custom-background-80 rounded text-xs px-2 py-0.5",- className- )}+ <Tooltip+ tooltipHeading={placeholder}+ tooltipContent={date ? renderFormattedDate(date) : "None"}+ disabled={!tooltip}>- {!hideIcon && icon}- {!hideText && <span className="flex-grow truncate">{date ? renderFormattedDate(date) : placeholder}</span>}- {isClearable && (- <X- className={cn("h-2 w-2 flex-shrink-0", clearIconClassName)}- onClick={(e) => {- e.stopPropagation();- onClear();- }}- />- )}- </div>+ <div+ className={cn(+ "h-full flex items-center gap-1.5 border-[0.5px] border-custom-border-300 hover:bg-custom-background-80 rounded text-xs px-2 py-0.5",+ className+ )}+ >+ {!hideIcon && icon}+ {!hideText && <span className="flex-grow truncate">{date ? renderFormattedDate(date) : placeholder}</span>}+ {isClearable && (+ <X+ className={cn("h-2 w-2 flex-shrink-0", clearIconClassName)}+ onClick={(e) => {+ e.stopPropagation();+ onClear();+ }}+ />+ )}+ </div>+ </Tooltip>);};@@ -81,24 +91,34 @@ const BackgroundButton = (props: ButtonProps) => {hideText = false,onClear,placeholder,+ tooltip,} = props;return (- <div- className={cn("h-full flex items-center gap-1.5 rounded text-xs px-2 py-0.5 bg-custom-background-80", className)}+ <Tooltip+ tooltipHeading={placeholder}+ tooltipContent={date ? renderFormattedDate(date) : "None"}+ disabled={!tooltip}>- {!hideIcon && icon}- {!hideText && <span className="flex-grow truncate">{date ? renderFormattedDate(date) : placeholder}</span>}- {isClearable && (- <X- className={cn("h-2 w-2 flex-shrink-0", clearIconClassName)}- onClick={(e) => {- e.stopPropagation();- onClear();- }}- />- )}- </div>+ <div+ className={cn(+ "h-full flex items-center gap-1.5 rounded text-xs px-2 py-0.5 bg-custom-background-80",+ className+ )}+ >+ {!hideIcon && icon}+ {!hideText && <span className="flex-grow truncate">{date ? renderFormattedDate(date) : placeholder}</span>}+ {isClearable && (+ <X+ className={cn("h-2 w-2 flex-shrink-0", clearIconClassName)}+ onClick={(e) => {+ e.stopPropagation();+ onClear();+ }}+ />+ )}+ </div>+ </Tooltip>);};@@ -113,27 +133,34 @@ const TransparentButton = (props: ButtonProps) => {hideText = false,onClear,placeholder,+ tooltip,} = props;return (- <div- className={cn(- "h-full flex items-center gap-1.5 rounded text-xs px-2 py-0.5 hover:bg-custom-background-80",- className- )}+ <Tooltip+ tooltipHeading={placeholder}+ tooltipContent={date ? renderFormattedDate(date) : "None"}+ disabled={!tooltip}>- {!hideIcon && icon}- {!hideText && <span className="flex-grow truncate">{date ? renderFormattedDate(date) : placeholder}</span>}- {isClearable && (- <X- className={cn("h-2 w-2 flex-shrink-0", clearIconClassName)}- onClick={(e) => {- e.stopPropagation();- onClear();- }}- />- )}- </div>+ <div+ className={cn(+ "h-full flex items-center gap-1.5 rounded text-xs px-2 py-0.5 hover:bg-custom-background-80",+ className+ )}+ >+ {!hideIcon && icon}+ {!hideText && <span className="flex-grow truncate">{date ? renderFormattedDate(date) : placeholder}</span>}+ {isClearable && (+ <X+ className={cn("h-2 w-2 flex-shrink-0", clearIconClassName)}+ onClick={(e) => {+ e.stopPropagation();+ onClear();+ }}+ />+ )}+ </div>+ </Tooltip>);};@@ -144,6 +171,7 @@ export const DateDropdown: React.FC<Props> = (props) => {buttonVariant,className = "",clearIconClassName = "",+ closeOnSelect = true,disabled = false,hideIcon = false,icon = <CalendarDays className="h-3 w-3 flex-shrink-0" />,@@ -153,9 +181,9 @@ export const DateDropdown: React.FC<Props> = (props) => {onChange,placeholder = "Date",placement,- value,- closeOnSelect = true,tabIndex,+ tooltip = false,+ value,} = props;const [isOpen, setIsOpen] = useState(false);// refs@@ -218,6 +246,7 @@ export const DateDropdown: React.FC<Props> = (props) => {placeholder={placeholder}isClearable={isClearable && isDateSelected}onClear={() => onChange(null)}+ tooltip={tooltip}/>) : buttonVariant === "border-without-text" ? (<BorderButton@@ -229,6 +258,7 @@ export const DateDropdown: React.FC<Props> = (props) => {placeholder={placeholder}isClearable={isClearable && isDateSelected}onClear={() => onChange(null)}+ tooltip={tooltip}hideText/>) : buttonVariant === "background-with-text" ? (@@ -241,6 +271,7 @@ export const DateDropdown: React.FC<Props> = (props) => {placeholder={placeholder}isClearable={isClearable && isDateSelected}onClear={() => onChange(null)}+ tooltip={tooltip}/>) : buttonVariant === "background-without-text" ? (<BackgroundButton@@ -252,6 +283,7 @@ export const DateDropdown: React.FC<Props> = (props) => {placeholder={placeholder}isClearable={isClearable && isDateSelected}onClear={() => onChange(null)}+ tooltip={tooltip}hideText/>) : buttonVariant === "transparent-with-text" ? (@@ -264,6 +296,7 @@ export const DateDropdown: React.FC<Props> = (props) => {placeholder={placeholder}isClearable={isClearable && isDateSelected}onClear={() => onChange(null)}+ tooltip={tooltip}/>) : buttonVariant === "transparent-without-text" ? (<TransparentButton@@ -275,6 +308,7 @@ export const DateDropdown: React.FC<Props> = (props) => {placeholder={placeholder}isClearable={isClearable && isDateSelected}onClear={() => onChange(null)}+ tooltip={tooltip}hideText/>) : null}diff --git a/web/components/dropdowns/estimate.tsx b/web/components/dropdowns/estimate.tsxindex 5b7a42d716..18144540da 100644--- a/web/components/dropdowns/estimate.tsx+++ b/web/components/dropdowns/estimate.tsx@@ -8,6 +8,8 @@ import sortBy from "lodash/sortBy";import { useApplication, useEstimate } from "hooks/store";import { useDropdownKeyDown } from "hooks/use-dropdown-key-down";import useOutsideClickDetector from "hooks/use-outside-click-detector";+// ui+import { Tooltip } from "@plane/ui";// helpersimport { cn } from "helpers/common.helper";// types@@ -30,6 +32,7 @@ type ButtonProps = {hideIcon?: boolean;hideText?: boolean;placeholder: string;+ tooltip: boolean;};type DropdownOptions =@@ -49,21 +52,30 @@ const BorderButton = (props: ButtonProps) => {hideIcon = false,hideText = false,placeholder,+ tooltip,} = props;return (- <div- className={cn(- "h-full flex items-center gap-1.5 border-[0.5px] border-custom-border-300 hover:bg-custom-background-80 rounded text-xs px-2 py-0.5",- className- )}+ <Tooltip+ tooltipHeading="Estimate"+ tooltipContent={estimatePoint !== null ? estimatePoint : placeholder}+ disabled={!tooltip}>- {!hideIcon && <Triangle className="h-3 w-3 flex-shrink-0" />}- {!hideText && <span className="flex-grow truncate">{estimatePoint !== null ? estimatePoint : placeholder}</span>}- {dropdownArrow && (- <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />- )}- </div>+ <div+ className={cn(+ "h-full flex items-center gap-1.5 border-[0.5px] border-custom-border-300 hover:bg-custom-background-80 rounded text-xs px-2 py-0.5",+ className+ )}+ >+ {!hideIcon && <Triangle className="h-3 w-3 flex-shrink-0" />}+ {!hideText && (+ <span className="flex-grow truncate">{estimatePoint !== null ? estimatePoint : placeholder}</span>+ )}+ {dropdownArrow && (+ <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />+ )}+ </div>+ </Tooltip>);};@@ -76,18 +88,30 @@ const BackgroundButton = (props: ButtonProps) => {hideIcon = false,hideText = false,placeholder,+ tooltip,} = props;return (- <div- className={cn("h-full flex items-center gap-1.5 rounded text-xs px-2 py-0.5 bg-custom-background-80", className)}+ <Tooltip+ tooltipHeading="Estimate"+ tooltipContent={estimatePoint !== null ? estimatePoint : placeholder}+ disabled={!tooltip}>- {!hideIcon && <Triangle className="h-3 w-3 flex-shrink-0" />}- {!hideText && <span className="flex-grow truncate">{estimatePoint !== null ? estimatePoint : placeholder}</span>}- {dropdownArrow && (- <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />- )}- </div>+ <div+ className={cn(+ "h-full flex items-center gap-1.5 rounded text-xs px-2 py-0.5 bg-custom-background-80",+ className+ )}+ >+ {!hideIcon && <Triangle className="h-3 w-3 flex-shrink-0" />}+ {!hideText && (+ <span className="flex-grow truncate">{estimatePoint !== null ? estimatePoint : placeholder}</span>+ )}+ {dropdownArrow && (+ <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />+ )}+ </div>+ </Tooltip>);};@@ -100,21 +124,30 @@ const TransparentButton = (props: ButtonProps) => {hideIcon = false,hideText = false,placeholder,+ tooltip,} = props;return (- <div- className={cn(- "h-full flex items-center gap-1.5 rounded text-xs px-2 py-0.5 hover:bg-custom-background-80",- className- )}+ <Tooltip+ tooltipHeading="Estimate"+ tooltipContent={estimatePoint !== null ? estimatePoint : placeholder}+ disabled={!tooltip}>- {!hideIcon && <Triangle className="h-3 w-3 flex-shrink-0" />}- {!hideText && <span className="flex-grow truncate">{estimatePoint !== null ? estimatePoint : placeholder}</span>}- {dropdownArrow && (- <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />- )}- </div>+ <div+ className={cn(+ "h-full flex items-center gap-1.5 rounded text-xs px-2 py-0.5 hover:bg-custom-background-80",+ className+ )}+ >+ {!hideIcon && <Triangle className="h-3 w-3 flex-shrink-0" />}+ {!hideText && (+ <span className="flex-grow truncate">{estimatePoint !== null ? estimatePoint : placeholder}</span>+ )}+ {dropdownArrow && (+ <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />+ )}+ </div>+ </Tooltip>);};@@ -133,8 +166,9 @@ export const EstimateDropdown: React.FC<Props> = observer((props) => {placeholder = "Estimate",placement,projectId,- value,tabIndex,+ tooltip = false,+ value,} = props;// statesconst [query, setQuery] = useState("");@@ -242,6 +276,7 @@ export const EstimateDropdown: React.FC<Props> = observer((props) => {dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}placeholder={placeholder}+ tooltip={tooltip}/>) : buttonVariant === "border-without-text" ? (<BorderButton@@ -252,6 +287,7 @@ export const EstimateDropdown: React.FC<Props> = observer((props) => {hideIcon={hideIcon}hideTextplaceholder={placeholder}+ tooltip={tooltip}/>) : buttonVariant === "background-with-text" ? (<BackgroundButton@@ -261,6 +297,7 @@ export const EstimateDropdown: React.FC<Props> = observer((props) => {dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}placeholder={placeholder}+ tooltip={tooltip}/>) : buttonVariant === "background-without-text" ? (<BackgroundButton@@ -271,6 +308,7 @@ export const EstimateDropdown: React.FC<Props> = observer((props) => {hideIcon={hideIcon}hideTextplaceholder={placeholder}+ tooltip={tooltip}/>) : buttonVariant === "transparent-with-text" ? (<TransparentButton@@ -280,6 +318,7 @@ export const EstimateDropdown: React.FC<Props> = observer((props) => {dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}placeholder={placeholder}+ tooltip={tooltip}/>) : buttonVariant === "transparent-without-text" ? (<TransparentButton@@ -290,6 +329,7 @@ export const EstimateDropdown: React.FC<Props> = observer((props) => {hideIcon={hideIcon}hideTextplaceholder={placeholder}+ tooltip={tooltip}/>) : null}</button>diff --git a/web/components/dropdowns/member/buttons.tsx b/web/components/dropdowns/member/buttons.tsxindex 3abb9b4cbc..c1ec93c535 100644--- a/web/components/dropdowns/member/buttons.tsx+++ b/web/components/dropdowns/member/buttons.tsx@@ -3,7 +3,7 @@ import { ChevronDown } from "lucide-react";// hooksimport { useMember } from "hooks/store";// ui-import { Avatar, AvatarGroup, UserGroupIcon } from "@plane/ui";+import { Avatar, AvatarGroup, Tooltip, UserGroupIcon } from "@plane/ui";// helpersimport { cn } from "helpers/common.helper";@@ -14,16 +14,17 @@ type ButtonProps = {placeholder: string;hideIcon?: boolean;hideText?: boolean;+ tooltip: boolean;userIds: string | string[] | null;};-const ButtonAvatars = observer(({ userIds }: { userIds: string | string[] | null }) => {+const ButtonAvatars = observer(({ tooltip, userIds }: { tooltip: boolean; userIds: string | string[] | null }) => {const { getUserDetails } = useMember();if (Array.isArray(userIds)) {if (userIds.length > 0)return (- <AvatarGroup size="md">+ <AvatarGroup size="md" showTooltip={!tooltip}>{userIds.map((userId) => {const userDetails = getUserDetails(userId);@@ -35,7 +36,7 @@ const ButtonAvatars = observer(({ userIds }: { userIds: string | string[] | null} else {if (userIds) {const userDetails = getUserDetails(userIds);- return <Avatar src={userDetails?.avatar} name={userDetails?.display_name} size="md" />;+ return <Avatar src={userDetails?.avatar} name={userDetails?.display_name} size="md" showTooltip={!tooltip} />;}}@@ -51,6 +52,7 @@ export const BorderButton = observer((props: ButtonProps) => {hideText = false,placeholder,userIds,+ tooltip,} = props;// store hooksconst { getUserDetails } = useMember();@@ -58,22 +60,28 @@ export const BorderButton = observer((props: ButtonProps) => {const isMultiple = Array.isArray(userIds);return (- <div- className={cn(- "h-full flex items-center gap-1.5 border-[0.5px] border-custom-border-300 hover:bg-custom-background-80 rounded text-xs px-2 py-0.5",- className- )}+ <Tooltip+ tooltipHeading={placeholder}+ tooltipContent={`${userIds?.length ?? 0} assignee${userIds?.length !== 1 ? "s" : ""}`}+ disabled={!tooltip}>- {!hideIcon && <ButtonAvatars userIds={userIds} />}- {!hideText && (- <span className="flex-grow truncate">- {userIds ? (isMultiple ? placeholder : getUserDetails(userIds)?.display_name) : placeholder}- </span>- )}- {dropdownArrow && (- <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />- )}- </div>+ <div+ className={cn(+ "h-full flex items-center gap-1.5 border-[0.5px] border-custom-border-300 hover:bg-custom-background-80 rounded text-xs px-2 py-0.5",+ className+ )}+ >+ {!hideIcon && <ButtonAvatars tooltip={tooltip} userIds={userIds} />}+ {!hideText && (+ <span className="flex-grow truncate">+ {userIds ? (isMultiple ? placeholder : getUserDetails(userIds)?.display_name) : placeholder}+ </span>+ )}+ {dropdownArrow && (+ <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />+ )}+ </div>+ </Tooltip>);});@@ -86,6 +94,7 @@ export const BackgroundButton = observer((props: ButtonProps) => {hideText = false,placeholder,userIds,+ tooltip,} = props;// store hooksconst { getUserDetails } = useMember();@@ -93,19 +102,28 @@ export const BackgroundButton = observer((props: ButtonProps) => {const isMultiple = Array.isArray(userIds);return (- <div- className={cn("h-full flex items-center gap-1.5 rounded text-xs px-2 py-0.5 bg-custom-background-80", className)}+ <Tooltip+ tooltipHeading={placeholder}+ tooltipContent={`${userIds?.length ?? 0} assignee${userIds?.length !== 1 ? "s" : ""}`}+ disabled={!tooltip}>- {!hideIcon && <ButtonAvatars userIds={userIds} />}- {!hideText && (- <span className="flex-grow truncate">- {userIds ? (isMultiple ? placeholder : getUserDetails(userIds)?.display_name) : placeholder}- </span>- )}- {dropdownArrow && (- <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />- )}- </div>+ <div+ className={cn(+ "h-full flex items-center gap-1.5 rounded text-xs px-2 py-0.5 bg-custom-background-80",+ className+ )}+ >+ {!hideIcon && <ButtonAvatars tooltip={tooltip} userIds={userIds} />}+ {!hideText && (+ <span className="flex-grow truncate">+ {userIds ? (isMultiple ? placeholder : getUserDetails(userIds)?.display_name) : placeholder}+ </span>+ )}+ {dropdownArrow && (+ <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />+ )}+ </div>+ </Tooltip>);});@@ -118,6 +136,7 @@ export const TransparentButton = observer((props: ButtonProps) => {hideText = false,placeholder,userIds,+ tooltip,} = props;// store hooksconst { getUserDetails } = useMember();@@ -125,21 +144,27 @@ export const TransparentButton = observer((props: ButtonProps) => {const isMultiple = Array.isArray(userIds);return (- <div- className={cn(- "h-full flex items-center gap-1.5 rounded text-xs px-2 py-0.5 hover:bg-custom-background-80",- className- )}+ <Tooltip+ tooltipHeading={placeholder}+ tooltipContent={`${userIds?.length ?? 0} assignee${userIds?.length !== 1 ? "s" : ""}`}+ disabled={!tooltip}>- {!hideIcon && <ButtonAvatars userIds={userIds} />}- {!hideText && (- <span className="flex-grow truncate">- {userIds ? (isMultiple ? placeholder : getUserDetails(userIds)?.display_name) : placeholder}- </span>- )}- {dropdownArrow && (- <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />- )}- </div>+ <div+ className={cn(+ "h-full flex items-center gap-1.5 rounded text-xs px-2 py-0.5 hover:bg-custom-background-80",+ className+ )}+ >+ {!hideIcon && <ButtonAvatars tooltip={tooltip} userIds={userIds} />}+ {!hideText && (+ <span className="flex-grow truncate">+ {userIds ? (isMultiple ? placeholder : getUserDetails(userIds)?.display_name) : placeholder}+ </span>+ )}+ {dropdownArrow && (+ <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />+ )}+ </div>+ </Tooltip>);});diff --git a/web/components/dropdowns/member/project-member.tsx b/web/components/dropdowns/member/project-member.tsxindex 8393c32f0e..7cd8788412 100644--- a/web/components/dropdowns/member/project-member.tsx+++ b/web/components/dropdowns/member/project-member.tsx@@ -36,8 +36,9 @@ export const ProjectMemberDropdown: React.FC<Props> = observer((props) => {placeholder = "Members",placement,projectId,- value,tabIndex,+ tooltip = false,+ value,} = props;// statesconst [query, setQuery] = useState("");@@ -146,6 +147,7 @@ export const ProjectMemberDropdown: React.FC<Props> = observer((props) => {dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}placeholder={placeholder}+ tooltip={tooltip}/>) : buttonVariant === "border-without-text" ? (<BorderButton@@ -155,6 +157,7 @@ export const ProjectMemberDropdown: React.FC<Props> = observer((props) => {dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}placeholder={placeholder}+ tooltip={tooltip}hideText/>) : buttonVariant === "background-with-text" ? (@@ -165,6 +168,7 @@ export const ProjectMemberDropdown: React.FC<Props> = observer((props) => {dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}placeholder={placeholder}+ tooltip={tooltip}/>) : buttonVariant === "background-without-text" ? (<BackgroundButton@@ -174,6 +178,7 @@ export const ProjectMemberDropdown: React.FC<Props> = observer((props) => {dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}placeholder={placeholder}+ tooltip={tooltip}hideText/>) : buttonVariant === "transparent-with-text" ? (@@ -184,6 +189,7 @@ export const ProjectMemberDropdown: React.FC<Props> = observer((props) => {dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}placeholder={placeholder}+ tooltip={tooltip}/>) : buttonVariant === "transparent-without-text" ? (<TransparentButton@@ -193,6 +199,7 @@ export const ProjectMemberDropdown: React.FC<Props> = observer((props) => {dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}placeholder={placeholder}+ tooltip={tooltip}hideText/>) : null}diff --git a/web/components/dropdowns/member/workspace-member.tsx b/web/components/dropdowns/member/workspace-member.tsxindex 55806c51e1..aaa1d7f7e4 100644--- a/web/components/dropdowns/member/workspace-member.tsx+++ b/web/components/dropdowns/member/workspace-member.tsx@@ -31,8 +31,9 @@ export const WorkspaceMemberDropdown: React.FC<MemberDropdownProps> = observer((onChange,placeholder = "Members",placement,- value,tabIndex,+ tooltip = false,+ value,} = props;// statesconst [query, setQuery] = useState("");@@ -133,6 +134,7 @@ export const WorkspaceMemberDropdown: React.FC<MemberDropdownProps> = observer((dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}placeholder={placeholder}+ tooltip={tooltip}/>) : buttonVariant === "border-without-text" ? (<BorderButton@@ -142,6 +144,7 @@ export const WorkspaceMemberDropdown: React.FC<MemberDropdownProps> = observer((dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}placeholder={placeholder}+ tooltip={tooltip}hideText/>) : buttonVariant === "background-with-text" ? (@@ -152,6 +155,7 @@ export const WorkspaceMemberDropdown: React.FC<MemberDropdownProps> = observer((dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}placeholder={placeholder}+ tooltip={tooltip}/>) : buttonVariant === "background-without-text" ? (<BackgroundButton@@ -161,6 +165,7 @@ export const WorkspaceMemberDropdown: React.FC<MemberDropdownProps> = observer((dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}placeholder={placeholder}+ tooltip={tooltip}hideText/>) : buttonVariant === "transparent-with-text" ? (@@ -171,6 +176,7 @@ export const WorkspaceMemberDropdown: React.FC<MemberDropdownProps> = observer((dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}placeholder={placeholder}+ tooltip={tooltip}/>) : buttonVariant === "transparent-without-text" ? (<TransparentButton@@ -180,6 +186,7 @@ export const WorkspaceMemberDropdown: React.FC<MemberDropdownProps> = observer((dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}placeholder={placeholder}+ tooltip={tooltip}hideText/>) : null}diff --git a/web/components/dropdowns/module.tsx b/web/components/dropdowns/module.tsxindex 3420dfca10..e415558025 100644--- a/web/components/dropdowns/module.tsx+++ b/web/components/dropdowns/module.tsx@@ -8,7 +8,7 @@ import { useApplication, useModule } from "hooks/store";import { useDropdownKeyDown } from "hooks/use-dropdown-key-down";import useOutsideClickDetector from "hooks/use-outside-click-detector";// icons-import { DiceIcon } from "@plane/ui";+import { DiceIcon, Tooltip } from "@plane/ui";// helpersimport { cn } from "helpers/common.helper";// types@@ -40,6 +40,7 @@ type ButtonProps = {hideText?: boolean;module: IModule | null;placeholder: string;+ tooltip: boolean;};const BorderButton = (props: ButtonProps) => {@@ -51,21 +52,24 @@ const BorderButton = (props: ButtonProps) => {hideText = false,module,placeholder,+ tooltip,} = props;return (- <div- className={cn(- "h-full flex items-center gap-1.5 border-[0.5px] border-custom-border-300 hover:bg-custom-background-80 rounded text-xs px-2 py-0.5",- className- )}- >- {!hideIcon && <DiceIcon className="h-3 w-3 flex-shrink-0" />}- {!hideText && <span className="flex-grow truncate">{module?.name ?? placeholder}</span>}- {dropdownArrow && (- <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />- )}- </div>+ <Tooltip tooltipHeading="Module" tooltipContent={module?.name ?? placeholder} disabled={!tooltip}>+ <div+ className={cn(+ "h-full flex items-center gap-1.5 border-[0.5px] border-custom-border-300 hover:bg-custom-background-80 rounded text-xs px-2 py-0.5",+ className+ )}+ >+ {!hideIcon && <DiceIcon className="h-3 w-3 flex-shrink-0" />}+ {!hideText && <span className="flex-grow truncate">{module?.name ?? placeholder}</span>}+ {dropdownArrow && (+ <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />+ )}+ </div>+ </Tooltip>);};@@ -78,18 +82,24 @@ const BackgroundButton = (props: ButtonProps) => {hideText = false,module,placeholder,+ tooltip,} = props;return (- <div- className={cn("h-full flex items-center gap-1.5 rounded text-xs px-2 py-0.5 bg-custom-background-80", className)}- >- {!hideIcon && <DiceIcon className="h-3 w-3 flex-shrink-0" />}- {!hideText && <span className="flex-grow truncate">{module?.name ?? placeholder}</span>}- {dropdownArrow && (- <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />- )}- </div>+ <Tooltip tooltipHeading="Module" tooltipContent={module?.name ?? placeholder} disabled={!tooltip}>+ <div+ className={cn(+ "h-full flex items-center gap-1.5 rounded text-xs px-2 py-0.5 bg-custom-background-80",+ className+ )}+ >+ {!hideIcon && <DiceIcon className="h-3 w-3 flex-shrink-0" />}+ {!hideText && <span className="flex-grow truncate">{module?.name ?? placeholder}</span>}+ {dropdownArrow && (+ <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />+ )}+ </div>+ </Tooltip>);};@@ -102,21 +112,24 @@ const TransparentButton = (props: ButtonProps) => {hideText = false,module,placeholder,+ tooltip,} = props;return (- <div- className={cn(- "h-full flex items-center gap-1.5 rounded text-xs px-2 py-0.5 hover:bg-custom-background-80",- className- )}- >- {!hideIcon && <DiceIcon className="h-3 w-3 flex-shrink-0" />}- {!hideText && <span className="flex-grow truncate">{module?.name ?? placeholder}</span>}- {dropdownArrow && (- <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />- )}- </div>+ <Tooltip tooltipHeading="Module" tooltipContent={module?.name ?? placeholder} disabled={!tooltip}>+ <div+ className={cn(+ "h-full flex items-center gap-1.5 rounded text-xs px-2 py-0.5 hover:bg-custom-background-80",+ className+ )}+ >+ {!hideIcon && <DiceIcon className="h-3 w-3 flex-shrink-0" />}+ {!hideText && <span className="flex-grow truncate">{module?.name ?? placeholder}</span>}+ {dropdownArrow && (+ <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />+ )}+ </div>+ </Tooltip>);};@@ -135,8 +148,9 @@ export const ModuleDropdown: React.FC<Props> = observer((props) => {placeholder = "Module",placement,projectId,- value,tabIndex,+ tooltip = false,+ value,} = props;// statesconst [query, setQuery] = useState("");@@ -253,6 +267,7 @@ export const ModuleDropdown: React.FC<Props> = observer((props) => {dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}placeholder={placeholder}+ tooltip={tooltip}/>) : buttonVariant === "border-without-text" ? (<BorderButton@@ -263,6 +278,7 @@ export const ModuleDropdown: React.FC<Props> = observer((props) => {hideIcon={hideIcon}hideTextplaceholder={placeholder}+ tooltip={tooltip}/>) : buttonVariant === "background-with-text" ? (<BackgroundButton@@ -272,6 +288,7 @@ export const ModuleDropdown: React.FC<Props> = observer((props) => {dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}placeholder={placeholder}+ tooltip={tooltip}/>) : buttonVariant === "background-without-text" ? (<BackgroundButton@@ -282,6 +299,7 @@ export const ModuleDropdown: React.FC<Props> = observer((props) => {hideIcon={hideIcon}hideTextplaceholder={placeholder}+ tooltip={tooltip}/>) : buttonVariant === "transparent-with-text" ? (<TransparentButton@@ -291,6 +309,7 @@ export const ModuleDropdown: React.FC<Props> = observer((props) => {dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}placeholder={placeholder}+ tooltip={tooltip}/>) : buttonVariant === "transparent-without-text" ? (<TransparentButton@@ -301,6 +320,7 @@ export const ModuleDropdown: React.FC<Props> = observer((props) => {hideIcon={hideIcon}hideTextplaceholder={placeholder}+ tooltip={tooltip}/>) : null}</button>diff --git a/web/components/dropdowns/priority.tsx b/web/components/dropdowns/priority.tsxindex fc87559c35..dff1f5aaa4 100644--- a/web/components/dropdowns/priority.tsx+++ b/web/components/dropdowns/priority.tsx@@ -2,11 +2,12 @@ import { Fragment, ReactNode, useRef, useState } from "react";import { Combobox } from "@headlessui/react";import { usePopper } from "react-popper";import { Check, ChevronDown, Search } from "lucide-react";+import { useTheme } from "next-themes";// hooksimport { useDropdownKeyDown } from "hooks/use-dropdown-key-down";import useOutsideClickDetector from "hooks/use-outside-click-detector";// icons-import { PriorityIcon } from "@plane/ui";+import { PriorityIcon, Tooltip } from "@plane/ui";// helpersimport { cn } from "helpers/common.helper";// types@@ -14,7 +15,6 @@ import { TIssuePriorities } from "@plane/types";import { TDropdownProps } from "./types";// constantsimport { ISSUE_PRIORITIES } from "constants/issue";-import { useTheme } from "next-themes";type Props = TDropdownProps & {button?: ReactNode;@@ -33,6 +33,7 @@ type ButtonProps = {hideText?: boolean;highlightUrgent: boolean;priority: TIssuePriorities;+ tooltip: boolean;};const BorderButton = (props: ButtonProps) => {@@ -44,6 +45,7 @@ const BorderButton = (props: ButtonProps) => {hideText = false,highlightUrgent,priority,+ tooltip,} = props;const priorityDetails = ISSUE_PRIORITIES.find((p) => p.key === priority);@@ -57,47 +59,49 @@ const BorderButton = (props: ButtonProps) => {};return (- <div- className={cn(- "h-full flex items-center gap-1.5 border-[0.5px] rounded text-xs px-2 py-0.5",- priorityClasses[priority],- {- // compact the icons if text is hidden- "px-0.5": hideText,- // highlight the whole button if text is hidden and priority is urgent- "bg-red-500 border-red-500": priority === "urgent" && hideText && highlightUrgent,- },- className- )}- >- {!hideIcon && (- <div- className={cn({- // highlight just the icon if text is visible and priority is urgent- "bg-red-500 p-1 rounded": priority === "urgent" && !hideText && highlightUrgent,- })}- >- <PriorityIcon- priority={priority}- size={12}- className={cn("flex-shrink-0", {- // increase the icon size if text is hidden- "h-3.5 w-3.5": hideText,- // centre align the icons if text is hidden- "translate-x-[0.0625rem]": hideText && priority === "high",- "translate-x-0.5": hideText && priority === "medium",- "translate-x-1": hideText && priority === "low",- // highlight the icon if priority is urgent- "text-white": priority === "urgent" && highlightUrgent,+ <Tooltip tooltipHeading="Priority" tooltipContent={priorityDetails?.title ?? "None"} disabled={!tooltip}>+ <div+ className={cn(+ "h-full flex items-center gap-1.5 border-[0.5px] rounded text-xs px-2 py-0.5",+ priorityClasses[priority],+ {+ // compact the icons if text is hidden+ "px-0.5": hideText,+ // highlight the whole button if text is hidden and priority is urgent+ "bg-red-500 border-red-500": priority === "urgent" && hideText && highlightUrgent,+ },+ className+ )}+ >+ {!hideIcon && (+ <div+ className={cn({+ // highlight just the icon if text is visible and priority is urgent+ "bg-red-500 p-1 rounded": priority === "urgent" && !hideText && highlightUrgent,})}- />- </div>- )}- {!hideText && <span className="flex-grow truncate">{priorityDetails?.title}</span>}- {dropdownArrow && (- <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />- )}- </div>+ >+ <PriorityIcon+ priority={priority}+ size={12}+ className={cn("flex-shrink-0", {+ // increase the icon size if text is hidden+ "h-3.5 w-3.5": hideText,+ // centre align the icons if text is hidden+ "translate-x-[0.0625rem]": hideText && priority === "high",+ "translate-x-0.5": hideText && priority === "medium",+ "translate-x-1": hideText && priority === "low",+ // highlight the icon if priority is urgent+ "text-white": priority === "urgent" && highlightUrgent,+ })}+ />+ </div>+ )}+ {!hideText && <span className="flex-grow truncate">{priorityDetails?.title}</span>}+ {dropdownArrow && (+ <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />+ )}+ </div>+ </Tooltip>);};@@ -110,6 +114,7 @@ const BackgroundButton = (props: ButtonProps) => {hideText = false,highlightUrgent,priority,+ tooltip,} = props;const priorityDetails = ISSUE_PRIORITIES.find((p) => p.key === priority);@@ -123,47 +128,49 @@ const BackgroundButton = (props: ButtonProps) => {};return (- <div- className={cn(- "h-full flex items-center gap-1.5 rounded text-xs px-2 py-0.5",- priorityClasses[priority],- {- // compact the icons if text is hidden- "px-0.5": hideText,- // highlight the whole button if text is hidden and priority is urgent- "bg-red-500 border-red-500": priority === "urgent" && hideText && highlightUrgent,- },- className- )}- >- {!hideIcon && (- <div- className={cn({- // highlight just the icon if text is visible and priority is urgent- "bg-red-500 p-1 rounded": priority === "urgent" && !hideText && highlightUrgent,- })}- >- <PriorityIcon- priority={priority}- size={12}- className={cn("flex-shrink-0", {- // increase the icon size if text is hidden- "h-3.5 w-3.5": hideText,- // centre align the icons if text is hidden- "translate-x-[0.0625rem]": hideText && priority === "high",- "translate-x-0.5": hideText && priority === "medium",- "translate-x-1": hideText && priority === "low",- // highlight the icon if priority is urgent- "text-white": priority === "urgent" && highlightUrgent,+ <Tooltip tooltipHeading="Priority" tooltipContent={priorityDetails?.title ?? "None"} disabled={!tooltip}>+ <div+ className={cn(+ "h-full flex items-center gap-1.5 rounded text-xs px-2 py-0.5",+ priorityClasses[priority],+ {+ // compact the icons if text is hidden+ "px-0.5": hideText,+ // highlight the whole button if text is hidden and priority is urgent+ "bg-red-500 border-red-500": priority === "urgent" && hideText && highlightUrgent,+ },+ className+ )}+ >+ {!hideIcon && (+ <div+ className={cn({+ // highlight just the icon if text is visible and priority is urgent+ "bg-red-500 p-1 rounded": priority === "urgent" && !hideText && highlightUrgent,})}- />- </div>- )}- {!hideText && <span className="flex-grow truncate">{priorityDetails?.title}</span>}- {dropdownArrow && (- <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />- )}- </div>+ >+ <PriorityIcon+ priority={priority}+ size={12}+ className={cn("flex-shrink-0", {+ // increase the icon size if text is hidden+ "h-3.5 w-3.5": hideText,+ // centre align the icons if text is hidden+ "translate-x-[0.0625rem]": hideText && priority === "high",+ "translate-x-0.5": hideText && priority === "medium",+ "translate-x-1": hideText && priority === "low",+ // highlight the icon if priority is urgent+ "text-white": priority === "urgent" && highlightUrgent,+ })}+ />+ </div>+ )}+ {!hideText && <span className="flex-grow truncate">{priorityDetails?.title}</span>}+ {dropdownArrow && (+ <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />+ )}+ </div>+ </Tooltip>);};@@ -176,6 +183,7 @@ const TransparentButton = (props: ButtonProps) => {hideText = false,highlightUrgent,priority,+ tooltip,} = props;const priorityDetails = ISSUE_PRIORITIES.find((p) => p.key === priority);@@ -189,47 +197,49 @@ const TransparentButton = (props: ButtonProps) => {};return (- <div- className={cn(- "h-full flex items-center gap-1.5 rounded text-xs px-2 py-0.5 hover:bg-custom-background-80",- priorityClasses[priority],- {- // compact the icons if text is hidden- "px-0.5": hideText,- // highlight the whole button if text is hidden and priority is urgent- "bg-red-500 border-red-500": priority === "urgent" && hideText && highlightUrgent,- },- className- )}- >- {!hideIcon && (- <div- className={cn({- // highlight just the icon if text is visible and priority is urgent- "bg-red-500 p-1 rounded": priority === "urgent" && !hideText && highlightUrgent,- })}- >- <PriorityIcon- priority={priority}- size={12}- className={cn("flex-shrink-0", {- // increase the icon size if text is hidden- "h-3.5 w-3.5": hideText,- // centre align the icons if text is hidden- "translate-x-[0.0625rem]": hideText && priority === "high",- "translate-x-0.5": hideText && priority === "medium",- "translate-x-1": hideText && priority === "low",- // highlight the icon if priority is urgent- "text-white": priority === "urgent" && highlightUrgent,+ <Tooltip tooltipHeading="Priority" tooltipContent={priorityDetails?.title ?? "None"} disabled={!tooltip}>+ <div+ className={cn(+ "h-full flex items-center gap-1.5 rounded text-xs px-2 py-0.5 hover:bg-custom-background-80",+ priorityClasses[priority],+ {+ // compact the icons if text is hidden+ "px-0.5": hideText,+ // highlight the whole button if text is hidden and priority is urgent+ "bg-red-500 border-red-500": priority === "urgent" && hideText && highlightUrgent,+ },+ className+ )}+ >+ {!hideIcon && (+ <div+ className={cn({+ // highlight just the icon if text is visible and priority is urgent+ "bg-red-500 p-1 rounded": priority === "urgent" && !hideText && highlightUrgent,})}- />- </div>- )}- {!hideText && <span className="flex-grow truncate">{priorityDetails?.title}</span>}- {dropdownArrow && (- <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />- )}- </div>+ >+ <PriorityIcon+ priority={priority}+ size={12}+ className={cn("flex-shrink-0", {+ // increase the icon size if text is hidden+ "h-3.5 w-3.5": hideText,+ // centre align the icons if text is hidden+ "translate-x-[0.0625rem]": hideText && priority === "high",+ "translate-x-0.5": hideText && priority === "medium",+ "translate-x-1": hideText && priority === "low",+ // highlight the icon if priority is urgent+ "text-white": priority === "urgent" && highlightUrgent,+ })}+ />+ </div>+ )}+ {!hideText && <span className="flex-grow truncate">{priorityDetails?.title}</span>}+ {dropdownArrow && (+ <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />+ )}+ </div>+ </Tooltip>);};@@ -247,8 +257,9 @@ export const PriorityDropdown: React.FC<Props> = (props) => {highlightUrgent = true,onChange,placement,- value,tabIndex,+ tooltip = false,+ value,} = props;// statesconst [query, setQuery] = useState("");@@ -341,6 +352,7 @@ export const PriorityDropdown: React.FC<Props> = (props) => {dropdownArrow={dropdownArrow && !disabled}dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}+ tooltip={tooltip}/>) : buttonVariant === "border-without-text" ? (<BorderButton@@ -352,6 +364,7 @@ export const PriorityDropdown: React.FC<Props> = (props) => {dropdownArrow={dropdownArrow && !disabled}dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}+ tooltip={tooltip}hideText/>) : buttonVariant === "background-with-text" ? (@@ -364,6 +377,7 @@ export const PriorityDropdown: React.FC<Props> = (props) => {dropdownArrow={dropdownArrow && !disabled}dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}+ tooltip={tooltip}/>) : buttonVariant === "background-without-text" ? (<BackgroundButton@@ -375,6 +389,7 @@ export const PriorityDropdown: React.FC<Props> = (props) => {dropdownArrow={dropdownArrow && !disabled}dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}+ tooltip={tooltip}hideText/>) : buttonVariant === "transparent-with-text" ? (@@ -387,6 +402,7 @@ export const PriorityDropdown: React.FC<Props> = (props) => {dropdownArrow={dropdownArrow && !disabled}dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}+ tooltip={tooltip}/>) : buttonVariant === "transparent-without-text" ? (<TransparentButton@@ -398,6 +414,7 @@ export const PriorityDropdown: React.FC<Props> = (props) => {dropdownArrow={dropdownArrow && !disabled}dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}+ tooltip={tooltip}hideText/>) : null}diff --git a/web/components/dropdowns/project.tsx b/web/components/dropdowns/project.tsxindex bbaf3d43f5..cdbe21b087 100644--- a/web/components/dropdowns/project.tsx+++ b/web/components/dropdowns/project.tsx@@ -7,6 +7,8 @@ import { Check, ChevronDown, Search } from "lucide-react";import { useProject } from "hooks/store";import { useDropdownKeyDown } from "hooks/use-dropdown-key-down";import useOutsideClickDetector from "hooks/use-outside-click-detector";+// ui+import { Tooltip } from "@plane/ui";// helpersimport { cn } from "helpers/common.helper";import { renderEmoji } from "helpers/emoji.helper";@@ -30,6 +32,7 @@ type ButtonProps = {hideText?: boolean;placeholder: string;project: IProject | null;+ tooltip: boolean;};const BorderButton = (props: ButtonProps) => {@@ -41,25 +44,28 @@ const BorderButton = (props: ButtonProps) => {hideText = false,placeholder,project,+ tooltip,} = props;return (- <div- className={cn(- "h-full flex items-center gap-1.5 border-[0.5px] border-custom-border-300 hover:bg-custom-background-80 rounded text-xs px-2 py-0.5",- className- )}- >- {!hideIcon && (- <span className="grid place-items-center flex-shrink-0">- {project?.emoji ? renderEmoji(project?.emoji) : project?.icon_prop ? renderEmoji(project?.icon_prop) : null}- </span>- )}- {!hideText && <span className="flex-grow truncate">{project?.name ?? placeholder}</span>}- {dropdownArrow && (- <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />- )}- </div>+ <Tooltip tooltipHeading="Project" tooltipContent={project?.name ?? placeholder} disabled={!tooltip}>+ <div+ className={cn(+ "h-full flex items-center gap-1.5 border-[0.5px] border-custom-border-300 hover:bg-custom-background-80 rounded text-xs px-2 py-0.5",+ className+ )}+ >+ {!hideIcon && (+ <span className="grid place-items-center flex-shrink-0">+ {project?.emoji ? renderEmoji(project?.emoji) : project?.icon_prop ? renderEmoji(project?.icon_prop) : null}+ </span>+ )}+ {!hideText && <span className="flex-grow truncate">{project?.name ?? placeholder}</span>}+ {dropdownArrow && (+ <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />+ )}+ </div>+ </Tooltip>);};@@ -72,22 +78,28 @@ const BackgroundButton = (props: ButtonProps) => {hideText = false,placeholder,project,+ tooltip,} = props;return (- <div- className={cn("h-full flex items-center gap-1.5 rounded text-xs px-2 py-0.5 bg-custom-background-80", className)}- >- {!hideIcon && (- <span className="grid place-items-center flex-shrink-0">- {project?.emoji ? renderEmoji(project?.emoji) : project?.icon_prop ? renderEmoji(project?.icon_prop) : null}- </span>- )}- {!hideText && <span className="flex-grow truncate">{project?.name ?? placeholder}</span>}- {dropdownArrow && (- <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />- )}- </div>+ <Tooltip tooltipHeading="Project" tooltipContent={project?.name ?? placeholder} disabled={!tooltip}>+ <div+ className={cn(+ "h-full flex items-center gap-1.5 rounded text-xs px-2 py-0.5 bg-custom-background-80",+ className+ )}+ >+ {!hideIcon && (+ <span className="grid place-items-center flex-shrink-0">+ {project?.emoji ? renderEmoji(project?.emoji) : project?.icon_prop ? renderEmoji(project?.icon_prop) : null}+ </span>+ )}+ {!hideText && <span className="flex-grow truncate">{project?.name ?? placeholder}</span>}+ {dropdownArrow && (+ <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />+ )}+ </div>+ </Tooltip>);};@@ -100,25 +112,28 @@ const TransparentButton = (props: ButtonProps) => {hideText = false,placeholder,project,+ tooltip,} = props;return (- <div- className={cn(- "h-full flex items-center gap-1.5 rounded text-xs px-2 py-0.5 hover:bg-custom-background-80",- className- )}- >- {!hideIcon && (- <span className="grid place-items-center flex-shrink-0">- {project?.emoji ? renderEmoji(project?.emoji) : project?.icon_prop ? renderEmoji(project?.icon_prop) : null}- </span>- )}- {!hideText && <span className="flex-grow truncate">{project?.name ?? placeholder}</span>}- {dropdownArrow && (- <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />- )}- </div>+ <Tooltip tooltipHeading="Project" tooltipContent={project?.name ?? placeholder} disabled={!tooltip}>+ <div+ className={cn(+ "h-full flex items-center gap-1.5 rounded text-xs px-2 py-0.5 hover:bg-custom-background-80",+ className+ )}+ >+ {!hideIcon && (+ <span className="grid place-items-center flex-shrink-0">+ {project?.emoji ? renderEmoji(project?.emoji) : project?.icon_prop ? renderEmoji(project?.icon_prop) : null}+ </span>+ )}+ {!hideText && <span className="flex-grow truncate">{project?.name ?? placeholder}</span>}+ {dropdownArrow && (+ <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />+ )}+ </div>+ </Tooltip>);};@@ -136,8 +151,9 @@ export const ProjectDropdown: React.FC<Props> = observer((props) => {onChange,placeholder = "Project",placement,- value,tabIndex,+ tooltip = false,+ value,} = props;// statesconst [query, setQuery] = useState("");@@ -239,6 +255,7 @@ export const ProjectDropdown: React.FC<Props> = observer((props) => {dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}placeholder={placeholder}+ tooltip={tooltip}/>) : buttonVariant === "border-without-text" ? (<BorderButton@@ -249,6 +266,7 @@ export const ProjectDropdown: React.FC<Props> = observer((props) => {hideIcon={hideIcon}hideTextplaceholder={placeholder}+ tooltip={tooltip}/>) : buttonVariant === "background-with-text" ? (<BackgroundButton@@ -258,6 +276,7 @@ export const ProjectDropdown: React.FC<Props> = observer((props) => {dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}placeholder={placeholder}+ tooltip={tooltip}/>) : buttonVariant === "background-without-text" ? (<BackgroundButton@@ -268,6 +287,7 @@ export const ProjectDropdown: React.FC<Props> = observer((props) => {hideIcon={hideIcon}hideTextplaceholder={placeholder}+ tooltip={tooltip}/>) : buttonVariant === "transparent-with-text" ? (<TransparentButton@@ -277,6 +297,7 @@ export const ProjectDropdown: React.FC<Props> = observer((props) => {dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}placeholder={placeholder}+ tooltip={tooltip}/>) : buttonVariant === "transparent-without-text" ? (<TransparentButton@@ -287,6 +308,7 @@ export const ProjectDropdown: React.FC<Props> = observer((props) => {hideIcon={hideIcon}hideTextplaceholder={placeholder}+ tooltip={tooltip}/>) : null}</button>diff --git a/web/components/dropdowns/state.tsx b/web/components/dropdowns/state.tsxindex 37ae8ad725..fb8446d234 100644--- a/web/components/dropdowns/state.tsx+++ b/web/components/dropdowns/state.tsx@@ -8,7 +8,7 @@ import { useApplication, useProjectState } from "hooks/store";import { useDropdownKeyDown } from "hooks/use-dropdown-key-down";import useOutsideClickDetector from "hooks/use-outside-click-detector";// icons-import { StateGroupIcon } from "@plane/ui";+import { StateGroupIcon, Tooltip } from "@plane/ui";// helpersimport { cn } from "helpers/common.helper";// types@@ -31,65 +31,111 @@ type ButtonProps = {hideIcon?: boolean;hideText?: boolean;state: IState | undefined;+ tooltip: boolean;};const BorderButton = (props: ButtonProps) => {- const { className, dropdownArrow, dropdownArrowClassName, hideIcon = false, hideText = false, state } = props;+ const {+ className,+ dropdownArrow,+ dropdownArrowClassName,+ hideIcon = false,+ hideText = false,+ state,+ tooltip,+ } = props;return (- <div- className={cn(- "h-full flex items-center gap-1.5 border-[0.5px] border-custom-border-300 hover:bg-custom-background-80 rounded text-xs px-2 py-0.5",- className- )}- >- {!hideIcon && (- <StateGroupIcon stateGroup={state?.group ?? "backlog"} color={state?.color} className="h-3 w-3 flex-shrink-0" />- )}- {!hideText && <span className="flex-grow truncate">{state?.name ?? "State"}</span>}- {dropdownArrow && (- <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />- )}- </div>+ <Tooltip tooltipHeading="State" tooltipContent={state?.name ?? "State"} disabled={!tooltip}>+ <div+ className={cn(+ "h-full flex items-center gap-1.5 border-[0.5px] border-custom-border-300 hover:bg-custom-background-80 rounded text-xs px-2 py-0.5",+ className+ )}+ >+ {!hideIcon && (+ <StateGroupIcon+ stateGroup={state?.group ?? "backlog"}+ color={state?.color}+ className="h-3 w-3 flex-shrink-0"+ />+ )}+ {!hideText && <span className="flex-grow truncate">{state?.name ?? "State"}</span>}+ {dropdownArrow && (+ <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />+ )}+ </div>+ </Tooltip>);};const BackgroundButton = (props: ButtonProps) => {- const { className, dropdownArrow, dropdownArrowClassName, hideIcon = false, hideText = false, state } = props;+ const {+ className,+ dropdownArrow,+ dropdownArrowClassName,+ hideIcon = false,+ hideText = false,+ state,+ tooltip,+ } = props;return (- <div- className={cn("h-full flex items-center gap-1.5 rounded text-xs px-2 py-0.5 bg-custom-background-80", className)}- >- {!hideIcon && (- <StateGroupIcon stateGroup={state?.group ?? "backlog"} color={state?.color} className="h-3 w-3 flex-shrink-0" />- )}- {!hideText && <span className="flex-grow truncate">{state?.name ?? "State"}</span>}- {dropdownArrow && (- <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />- )}- </div>+ <Tooltip tooltipHeading="State" tooltipContent={state?.name ?? "State"} disabled={!tooltip}>+ <div+ className={cn(+ "h-full flex items-center gap-1.5 rounded text-xs px-2 py-0.5 bg-custom-background-80",+ className+ )}+ >+ {!hideIcon && (+ <StateGroupIcon+ stateGroup={state?.group ?? "backlog"}+ color={state?.color}+ className="h-3 w-3 flex-shrink-0"+ />+ )}+ {!hideText && <span className="flex-grow truncate">{state?.name ?? "State"}</span>}+ {dropdownArrow && (+ <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />+ )}+ </div>+ </Tooltip>);};const TransparentButton = (props: ButtonProps) => {- const { className, dropdownArrow, dropdownArrowClassName, hideIcon = false, hideText = false, state } = props;+ const {+ className,+ dropdownArrow,+ dropdownArrowClassName,+ hideIcon = false,+ hideText = false,+ state,+ tooltip,+ } = props;return (- <div- className={cn(- "h-full flex items-center gap-1.5 rounded text-xs px-2 py-0.5 hover:bg-custom-background-80",- className- )}- >- {!hideIcon && (- <StateGroupIcon stateGroup={state?.group ?? "backlog"} color={state?.color} className="h-3 w-3 flex-shrink-0" />- )}- {!hideText && <span className="flex-grow truncate">{state?.name ?? "State"}</span>}- {dropdownArrow && (- <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />- )}- </div>+ <Tooltip tooltipHeading="State" tooltipContent={state?.name ?? "State"} disabled={!tooltip}>+ <div+ className={cn(+ "h-full flex items-center gap-1.5 rounded text-xs px-2 py-0.5 hover:bg-custom-background-80",+ className+ )}+ >+ {!hideIcon && (+ <StateGroupIcon+ stateGroup={state?.group ?? "backlog"}+ color={state?.color}+ className="h-3 w-3 flex-shrink-0"+ />+ )}+ {!hideText && <span className="flex-grow truncate">{state?.name ?? "State"}</span>}+ {dropdownArrow && (+ <ChevronDown className={cn("h-2.5 w-2.5 flex-shrink-0", dropdownArrowClassName)} aria-hidden="true" />+ )}+ </div>+ </Tooltip>);};@@ -107,8 +153,9 @@ export const StateDropdown: React.FC<Props> = observer((props) => {onChange,placement,projectId,- value,tabIndex,+ tooltip = false,+ value,} = props;// statesconst [query, setQuery] = useState("");@@ -204,6 +251,7 @@ export const StateDropdown: React.FC<Props> = observer((props) => {dropdownArrow={dropdownArrow && !disabled}dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}+ tooltip={tooltip}/>) : buttonVariant === "border-without-text" ? (<BorderButton@@ -212,6 +260,7 @@ export const StateDropdown: React.FC<Props> = observer((props) => {dropdownArrow={dropdownArrow && !disabled}dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}+ tooltip={tooltip}hideText/>) : buttonVariant === "background-with-text" ? (@@ -221,6 +270,7 @@ export const StateDropdown: React.FC<Props> = observer((props) => {dropdownArrow={dropdownArrow && !disabled}dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}+ tooltip={tooltip}/>) : buttonVariant === "background-without-text" ? (<BackgroundButton@@ -229,6 +279,7 @@ export const StateDropdown: React.FC<Props> = observer((props) => {dropdownArrow={dropdownArrow && !disabled}dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}+ tooltip={tooltip}hideText/>) : buttonVariant === "transparent-with-text" ? (@@ -238,6 +289,7 @@ export const StateDropdown: React.FC<Props> = observer((props) => {dropdownArrow={dropdownArrow && !disabled}dropdownArrowClassName={dropdownArrowClassName}hideIcon={hideIcon}+ tooltip={tooltip}/>) : buttonVariant === "transparent-without-text" ? (<TransparentButton@@ -245,6 +297,8 @@ export const StateDropdown: React.FC<Props> = observer((props) => {className={buttonClassName}dropdownArrow={dropdownArrow && !disabled}dropdownArrowClassName={dropdownArrowClassName}+ hideIcon={hideIcon}+ tooltip={tooltip}hideText/>) : null}diff --git a/web/components/dropdowns/types.d.ts b/web/components/dropdowns/types.d.tsindex 5bf3080ea4..f9a0783824 100644--- a/web/components/dropdowns/types.d.ts+++ b/web/components/dropdowns/types.d.ts@@ -18,4 +18,5 @@ export type TDropdownProps = {placeholder?: string;placement?: Placement;tabIndex?: number;+ tooltip?: boolean;};diff --git a/web/components/issues/issue-layouts/properties/all-properties.tsx b/web/components/issues/issue-layouts/properties/all-properties.tsxindex 6dde757032..b7e1fae4ff 100644--- a/web/components/issues/issue-layouts/properties/all-properties.tsx+++ b/web/components/issues/issue-layouts/properties/all-properties.tsx@@ -81,6 +81,7 @@ export const IssueProperties: React.FC<IIssueProperties> = observer((props) => {projectId={issue.project_id}disabled={isReadOnly}buttonVariant="border-with-text"+ tooltip/></div></WithDisplayPropertiesHOC>@@ -94,6 +95,7 @@ export const IssueProperties: React.FC<IIssueProperties> = observer((props) => {disabled={isReadOnly}buttonVariant="border-without-text"buttonClassName="border"+ tooltip/></div></WithDisplayPropertiesHOC>@@ -121,6 +123,7 @@ export const IssueProperties: React.FC<IIssueProperties> = observer((props) => {placeholder="Start date"buttonVariant={issue.start_date ? "border-with-text" : "border-without-text"}disabled={isReadOnly}+ tooltip/></div></WithDisplayPropertiesHOC>@@ -136,6 +139,7 @@ export const IssueProperties: React.FC<IIssueProperties> = observer((props) => {placeholder="Due date"buttonVariant={issue.target_date ? "border-with-text" : "border-without-text"}disabled={isReadOnly}+ tooltip/></div></WithDisplayPropertiesHOC>@@ -151,6 +155,7 @@ export const IssueProperties: React.FC<IIssueProperties> = observer((props) => {multiplebuttonVariant={issue.assignee_ids?.length > 0 ? "transparent-without-text" : "border-without-text"}buttonClassName={issue.assignee_ids?.length > 0 ? "hover:bg-transparent px-0" : ""}+ tooltip/></div></WithDisplayPropertiesHOC>@@ -165,6 +170,7 @@ export const IssueProperties: React.FC<IIssueProperties> = observer((props) => {projectId={issue.project_id}disabled={isReadOnly}buttonVariant="border-with-text"+ tooltip/></div></WithDisplayPropertiesHOC>diff --git a/web/public/empty-state/dashboard/light/overdue-issues.svg b/web/public/empty-state/dashboard/light/overdue-issues.svgindex 504c76498a..1c66ddd0bb 100644--- a/web/public/empty-state/dashboard/light/overdue-issues.svg+++ b/web/public/empty-state/dashboard/light/overdue-issues.svg@@ -1,9 +1,9 @@<svg width="94" height="94" viewBox="0 0 94 94" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="46.7188" cy="46.7188" r="46.7188" fill="#F9F9FB"/>-<path d="M74.5 34.2487V29.9987C74.5 28.4958 73.903 27.0545 72.8403 25.9918C71.7776 24.9291 70.3362 24.332 68.8333 24.332H29.1667C27.6638 24.332 26.2224 24.9291 25.1597 25.9918C24.097 27.0545 23.5 28.4958 23.5 29.9987V69.6654C23.5 71.1683 24.097 72.6096 25.1597 73.6723C26.2224 74.735 27.6638 75.332 29.1667 75.332H39.0833" stroke="#D9D9E0" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>-<path d="M60.332 18.668V30.0013" stroke="#CDCED6" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>-<path d="M37.668 18.668V30.0013" stroke="#CDCED6" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>-<path d="M23.5 41.332H37.6667" stroke="#D9D9E0" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>-<path d="M64.582 62.5846L60.332 59.1846V52.668" stroke="#B9BBC6" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>-<path d="M60.332 75.332C69.7209 75.332 77.332 67.7209 77.332 58.332C77.332 48.9432 69.7209 41.332 60.332 41.332C50.9432 41.332 43.332 48.9432 43.332 58.332C43.332 67.7209 50.9432 75.332 60.332 75.332Z" stroke="#B9BBC6" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>+<path d="M69.625 35.4362V31.7487C69.625 30.4447 69.107 29.1941 68.1849 28.2721C67.2629 27.35 66.0123 26.832 64.7083 26.832H30.2917C28.9877 26.832 27.7371 27.35 26.8151 28.2721C25.893 29.1941 25.375 30.4447 25.375 31.7487V66.1654C25.375 67.4693 25.893 68.7199 26.8151 69.642C27.7371 70.564 28.9877 71.082 30.2917 71.082H38.8958" stroke="#D9D9E0" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>+<path d="M57.332 21.918V31.7513" stroke="#CDCED6" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>+<path d="M37.668 21.918V31.7513" stroke="#CDCED6" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>+<path d="M25.375 41.582H37.6667" stroke="#D9D9E0" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>+<path d="M61.0195 60.0221L57.332 57.0721V51.418" stroke="#B9BBC6" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>+<path d="M57.332 71.082C65.4782 71.082 72.082 64.4782 72.082 56.332C72.082 48.1858 65.4782 41.582 57.332 41.582C49.1858 41.582 42.582 48.1858 42.582 56.332C42.582 64.4782 49.1858 71.082 57.332 71.082Z" stroke="#B9BBC6" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/></svg>