diff --git a/apps/web/core/components/issues/issue-detail/label/select/label-select.tsx b/apps/web/core/components/issues/issue-detail/label/select/label-select.tsx index 1020351691..723ad8ccfb 100644 --- a/apps/web/core/components/issues/issue-detail/label/select/label-select.tsx +++ b/apps/web/core/components/issues/issue-detail/label/select/label-select.tsx @@ -14,7 +14,6 @@ import { getTabIndex } from "@plane/utils"; import { useLabel } from "@/hooks/store/use-label"; import { useUserPermissions } from "@/hooks/store/user"; import { usePlatformOS } from "@/hooks/use-platform-os"; -import { Button } from "@plane/propel/button"; //constants export interface IIssueLabelSelect { workspaceSlug: string; diff --git a/apps/web/ee/components/epics/details/sidebar/properties-tab-root.tsx b/apps/web/ee/components/epics/details/sidebar/properties-tab-root.tsx index 92c37574c9..da344e523b 100644 --- a/apps/web/ee/components/epics/details/sidebar/properties-tab-root.tsx +++ b/apps/web/ee/components/epics/details/sidebar/properties-tab-root.tsx @@ -105,7 +105,7 @@ export const EpicSidebarPropertiesRoot = observer(function EpicSidebarProperties disabled={disabled} buttonVariant="transparent-with-text" className="group w-full grow" - buttonContainerClassName="w-full text-left" + buttonContainerClassName="w-full text-left h-7.5" buttonClassName="text-13" dropdownArrow dropdownArrowClassName="h-3.5 w-3.5 hidden group-hover:inline" @@ -122,7 +122,7 @@ export const EpicSidebarPropertiesRoot = observer(function EpicSidebarProperties multiple buttonVariant={epicDetails?.assignee_ids?.length > 1 ? "transparent-without-text" : "transparent-with-text"} className="group w-full grow" - buttonContainerClassName="w-full text-left" + buttonContainerClassName="w-full text-left h-7.5" buttonClassName={`text-13 justify-between ${epicDetails?.assignee_ids?.length > 0 ? "" : "text-placeholder"}`} hideIcon={epicDetails.assignee_ids?.length === 0} dropdownArrow @@ -135,10 +135,10 @@ export const EpicSidebarPropertiesRoot = observer(function EpicSidebarProperties value={epicDetails?.priority} onChange={(val) => epicOperations.update(workspaceSlug, projectId, epicId, { priority: val })} disabled={disabled} - buttonVariant="border-with-text" - className="w-full grow" - buttonContainerClassName="w-full text-left" - buttonClassName="w-min h-auto whitespace-nowrap" + buttonVariant="transparent-with-text" + className="w-full h-7.5 grow rounded-sm" + buttonContainerClassName="size-full text-left" + buttonClassName="size-full px-2 py-0.5 whitespace-nowrap [&_svg]:size-3.5" /> @@ -149,9 +149,10 @@ export const EpicSidebarPropertiesRoot = observer(function EpicSidebarProperties )} -
+ -
+
>; @@ -208,24 +209,14 @@ export const PropertyValueSelect = observer(function PropertyValueSelect(props:
)} {variant === "update" && ( -
-
- -
-
+ } + label={propertyDetail?.display_name ?? ""} > {CurrentPropertyAttribute} -
-
+ + )} ); diff --git a/apps/web/ee/components/issues/issue-details/sidebar/customer-select.tsx b/apps/web/ee/components/issues/issue-details/sidebar/customer-select.tsx index 12327cb914..292f59345c 100644 --- a/apps/web/ee/components/issues/issue-details/sidebar/customer-select.tsx +++ b/apps/web/ee/components/issues/issue-details/sidebar/customer-select.tsx @@ -1,28 +1,25 @@ -import type { FC } from "react"; -import React from "react"; import { difference } from "lodash-es"; import { observer } from "mobx-react"; import { mutate } from "swr"; -import { PlusIcon } from "lucide-react"; // plane imports import { CUSTOMER_TRACKER_EVENTS } from "@plane/constants"; import { useTranslation } from "@plane/i18n"; -import { Button } from "@plane/propel/button"; -import { CustomersIcon } from "@plane/propel/icons"; import { setToast, TOAST_TYPE } from "@plane/propel/toast"; +import { cn } from "@plane/utils"; // plane web imports import { captureError, captureSuccess } from "@/helpers/event-tracker.helper"; import { CustomerDropDown } from "@/plane-web/components/customers"; import { useCustomers } from "@/plane-web/hooks/store"; -import { IconButton } from "@plane/propel/icon-button"; + type TProps = { + customButtonClassName?: string; workItemId: string; value: string[] | null; workspaceSlug: string; }; export const CustomerSelect = observer(function CustomerSelect(props: TProps) { - const { workItemId, value, workspaceSlug } = props; + const { workItemId, value, workspaceSlug, customButtonClassName } = props; // hooks const { workItems: { addWorkItemsToCustomer, removeWorkItemFromCustomer }, @@ -96,12 +93,15 @@ export const CustomerSelect = observer(function CustomerSelect(props: TProps) { customButton={ } + className="w-full" customButtonClassName="hover:bg-transparent" value={value || []} multiple diff --git a/apps/web/ee/components/issues/issue-details/sidebar/customers-list.tsx b/apps/web/ee/components/issues/issue-details/sidebar/customers-list.tsx index 905a79577d..c4b26a59b9 100644 --- a/apps/web/ee/components/issues/issue-details/sidebar/customers-list.tsx +++ b/apps/web/ee/components/issues/issue-details/sidebar/customers-list.tsx @@ -30,13 +30,20 @@ export const SidebarCustomersList = observer(function SidebarCustomersList(props const customerIds = getWorkItemCustomerIds(workItemId); const isAdmin = allowPermissions([EUserWorkspaceRoles.ADMIN], EUserPermissionsLevel.WORKSPACE); return ( - + {customerIds?.length ? customerIds?.map((id) => ( )) : !isAdmin && {t("customers.dropdown.no_selection")}} - {isAdmin && } + {isAdmin && ( + + )} ); }); diff --git a/packages/i18n/src/locales/en/translations-extended.ts b/packages/i18n/src/locales/en/translations-extended.ts index b145f88cdb..3ab085f258 100644 --- a/packages/i18n/src/locales/en/translations-extended.ts +++ b/packages/i18n/src/locales/en/translations-extended.ts @@ -2349,7 +2349,7 @@ export default { label: "{count, plural, one {Customer} other {Customers}}", open: "Open customer", dropdown: { - placeholder: "Select customer", + placeholder: "Add customer", required: "Please select a customer", no_selection: "No customers", },