From 2748133bd0c57429c760e8222824cdc12f176df3 Mon Sep 17 00:00:00 2001 From: Ankush Deshmukh Date: Fri, 10 Nov 2023 13:06:23 +0530 Subject: [PATCH 1/8] Fix: Show Priority icon in custom analytics table. (#2744) --- packages/ui/src/icons/priority-icon.tsx | 21 +++++++++++-------- .../analytics/custom-analytics/table.tsx | 1 - web/components/inbox/issue-card.tsx | 8 +++---- .../filters/applied-filters/priority.tsx | 12 +---------- web/components/project/priority-select.tsx | 10 +-------- 5 files changed, 18 insertions(+), 34 deletions(-) diff --git a/packages/ui/src/icons/priority-icon.tsx b/packages/ui/src/icons/priority-icon.tsx index 36c6fa18f..2c2e012e9 100644 --- a/packages/ui/src/icons/priority-icon.tsx +++ b/packages/ui/src/icons/priority-icon.tsx @@ -18,18 +18,21 @@ export const PriorityIcon: React.FC = ({ }) => { if (!className || className === "") className = "h-3.5 w-3.5"; + // Convert to lowercase for string comparison + const lowercasePriority = priority?.toLowerCase(); + return ( <> - {priority === "urgent" ? ( - - ) : priority === "high" ? ( - - ) : priority === "medium" ? ( - - ) : priority === "low" ? ( - + {lowercasePriority === "urgent" ? ( + + ) : lowercasePriority === "high" ? ( + + ) : lowercasePriority === "medium" ? ( + + ) : lowercasePriority === "low" ? ( + ) : ( - + )} ); diff --git a/web/components/analytics/custom-analytics/table.tsx b/web/components/analytics/custom-analytics/table.tsx index 5c7bb1146..1d578b0d8 100644 --- a/web/components/analytics/custom-analytics/table.tsx +++ b/web/components/analytics/custom-analytics/table.tsx @@ -69,7 +69,6 @@ export const AnalyticsTable: React.FC = ({ analytics, barGraphData, param }`} > {params.x_axis === "priority" ? ( - // TODO: incorrect priority icon being rendered ) : ( = (props) => {
diff --git a/web/components/issues/issue-layouts/filters/applied-filters/priority.tsx b/web/components/issues/issue-layouts/filters/applied-filters/priority.tsx index 198589a26..2ea704b84 100644 --- a/web/components/issues/issue-layouts/filters/applied-filters/priority.tsx +++ b/web/components/issues/issue-layouts/filters/applied-filters/priority.tsx @@ -20,17 +20,7 @@ export const AppliedPriorityFilters: React.FC = observer((props) => {
{priority} -
diff --git a/web/components/command-palette/command-modal.tsx b/web/components/command-palette/command-modal.tsx index 3acfb71a6..04625f77a 100644 --- a/web/components/command-palette/command-modal.tsx +++ b/web/components/command-palette/command-modal.tsx @@ -245,7 +245,7 @@ export const CommandModal: React.FC = observer((props) => { leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -259,7 +259,7 @@ export const CommandModal: React.FC = observer((props) => { leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > -
+
{ if (value.toLowerCase().includes(search.toLowerCase())) return 1; diff --git a/web/components/command-palette/shortcuts-modal.tsx b/web/components/command-palette/shortcuts-modal.tsx index 3c7c19969..40317013c 100644 --- a/web/components/command-palette/shortcuts-modal.tsx +++ b/web/components/command-palette/shortcuts-modal.tsx @@ -67,7 +67,7 @@ export const ShortcutsModal: FC = (props) => { leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -81,8 +81,8 @@ export const ShortcutsModal: FC = (props) => { leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - -
+ +
= ({ isOpen, setIsOpen }) => { leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -51,7 +51,7 @@ export const ProductUpdatesModal: React.FC = ({ isOpen, setIsOpen }) => { leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - +
Product Updates diff --git a/web/components/core/filters/date-filter-modal.tsx b/web/components/core/filters/date-filter-modal.tsx index 66c4f4771..0266ae8f4 100644 --- a/web/components/core/filters/date-filter-modal.tsx +++ b/web/components/core/filters/date-filter-modal.tsx @@ -62,7 +62,7 @@ export const DateFilterModal: React.FC = ({ title, handleClose, isOpen, o leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -75,7 +75,7 @@ export const DateFilterModal: React.FC = ({ title, handleClose, isOpen, o leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - +
= ({ title, handleClose, isOpen, o )}
- -
diff --git a/web/components/core/modals/bulk-delete-issues-modal.tsx b/web/components/core/modals/bulk-delete-issues-modal.tsx index c2bc466d5..f1c951385 100644 --- a/web/components/core/modals/bulk-delete-issues-modal.tsx +++ b/web/components/core/modals/bulk-delete-issues-modal.tsx @@ -116,7 +116,7 @@ export const BulkDeleteIssuesModal: React.FC = (props) => { return ( setQuery("")} appear> -
+
= (props) => { leaveTo="opacity-0 scale-95" > -
+
{ @@ -211,10 +211,10 @@ export const BulkDeleteIssuesModal: React.FC = (props) => { {filteredIssues.length > 0 && (
- -
diff --git a/web/components/core/modals/existing-issues-list-modal.tsx b/web/components/core/modals/existing-issues-list-modal.tsx index 663dbfc83..6b11617ad 100644 --- a/web/components/core/modals/existing-issues-list-modal.tsx +++ b/web/components/core/modals/existing-issues-list-modal.tsx @@ -102,7 +102,7 @@ export const ExistingIssuesListModal: React.FC = ({ leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -115,7 +115,7 @@ export const ExistingIssuesListModal: React.FC = ({ leaveFrom="opacity-100 scale-100" leaveTo="opacity-0 scale-95" > - + { @@ -262,10 +262,10 @@ export const ExistingIssuesListModal: React.FC = ({ {selectedIssues.length > 0 && (
- -
diff --git a/web/components/core/modals/gpt-assistant-modal.tsx b/web/components/core/modals/gpt-assistant-modal.tsx index 672fc9a05..b98b1bc1c 100644 --- a/web/components/core/modals/gpt-assistant-modal.tsx +++ b/web/components/core/modals/gpt-assistant-modal.tsx @@ -203,10 +203,10 @@ export const GptAssistantModal: React.FC = ({ )}
- -
diff --git a/web/components/core/modals/image-upload-modal.tsx b/web/components/core/modals/image-upload-modal.tsx index e4cdb16d6..5640d62f6 100644 --- a/web/components/core/modals/image-upload-modal.tsx +++ b/web/components/core/modals/image-upload-modal.tsx @@ -106,7 +106,7 @@ export const ImageUploadModal: React.FC = observer((props) => { leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -120,7 +120,7 @@ export const ImageUploadModal: React.FC = observer((props) => { leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - +
Upload Image @@ -175,15 +175,15 @@ export const ImageUploadModal: React.FC = observer((props) => {

-
- -
diff --git a/web/components/core/modals/link-modal.tsx b/web/components/core/modals/link-modal.tsx index e2833f61f..02a216f06 100644 --- a/web/components/core/modals/link-modal.tsx +++ b/web/components/core/modals/link-modal.tsx @@ -76,7 +76,7 @@ export const LinkModal: FC = (props) => { leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -90,7 +90,7 @@ export const LinkModal: FC = (props) => { leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - +
@@ -149,10 +149,10 @@ export const LinkModal: FC = (props) => {
- - -
diff --git a/web/components/cycles/form.tsx b/web/components/cycles/form.tsx index 7189b2fea..492337c4a 100644 --- a/web/components/cycles/form.tsx +++ b/web/components/cycles/form.tsx @@ -136,10 +136,10 @@ export const CycleForm: React.FC = (props) => {
- - - - + {({ close }) => (
= ({ isOpen, onClose, data, onSub leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -55,7 +55,7 @@ export const AcceptIssueModal: React.FC = ({ isOpen, onClose, data, onSub leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - +
@@ -75,10 +75,10 @@ export const AcceptIssueModal: React.FC = ({ isOpen, onClose, data, onSub

- -
diff --git a/web/components/inbox/modals/create-issue-modal.tsx b/web/components/inbox/modals/create-issue-modal.tsx index aa92e0bcd..28bde21e4 100644 --- a/web/components/inbox/modals/create-issue-modal.tsx +++ b/web/components/inbox/modals/create-issue-modal.tsx @@ -85,7 +85,7 @@ export const CreateInboxIssueModal: React.FC = observer((props) => { leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -99,7 +99,7 @@ export const CreateInboxIssueModal: React.FC = observer((props) => { leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - +

Create Inbox Issue

@@ -175,10 +175,10 @@ export const CreateInboxIssueModal: React.FC = observer((props) => { {}} size="md" />
- -
diff --git a/web/components/inbox/modals/decline-issue-modal.tsx b/web/components/inbox/modals/decline-issue-modal.tsx index 50fccdd74..5267f747b 100644 --- a/web/components/inbox/modals/decline-issue-modal.tsx +++ b/web/components/inbox/modals/decline-issue-modal.tsx @@ -41,7 +41,7 @@ export const DeclineIssueModal: React.FC = ({ isOpen, onClose, data, onSu leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -55,7 +55,7 @@ export const DeclineIssueModal: React.FC = ({ isOpen, onClose, data, onSu leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - +
@@ -75,10 +75,10 @@ export const DeclineIssueModal: React.FC = ({ isOpen, onClose, data, onSu

- -
diff --git a/web/components/inbox/modals/delete-issue-modal.tsx b/web/components/inbox/modals/delete-issue-modal.tsx index 29129cd70..eb135fb7a 100644 --- a/web/components/inbox/modals/delete-issue-modal.tsx +++ b/web/components/inbox/modals/delete-issue-modal.tsx @@ -78,7 +78,7 @@ export const DeleteInboxIssueModal: React.FC = observer(({ isOpen, onClos leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -92,7 +92,7 @@ export const DeleteInboxIssueModal: React.FC = observer(({ isOpen, onClos leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - +
@@ -112,10 +112,10 @@ export const DeleteInboxIssueModal: React.FC = observer(({ isOpen, onClos

- -
diff --git a/web/components/inbox/modals/select-duplicate.tsx b/web/components/inbox/modals/select-duplicate.tsx index ac0c63a95..e746d0df8 100644 --- a/web/components/inbox/modals/select-duplicate.tsx +++ b/web/components/inbox/modals/select-duplicate.tsx @@ -81,7 +81,7 @@ export const SelectDuplicateInboxIssueModal: React.FC = (props) => { leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -94,7 +94,7 @@ export const SelectDuplicateInboxIssueModal: React.FC = (props) => { leaveFrom="opacity-100 scale-100" leaveTo="opacity-0 scale-95" > - + { @@ -166,10 +166,10 @@ export const SelectDuplicateInboxIssueModal: React.FC = (props) => { {filteredIssues.length > 0 && (
- -
diff --git a/web/components/integration/delete-import-modal.tsx b/web/components/integration/delete-import-modal.tsx index 49f9e5c28..8d222c4db 100644 --- a/web/components/integration/delete-import-modal.tsx +++ b/web/components/integration/delete-import-modal.tsx @@ -78,7 +78,7 @@ export const DeleteImportModal: React.FC = ({ isOpen, handleClose, data, leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -92,7 +92,7 @@ export const DeleteImportModal: React.FC = ({ isOpen, handleClose, data, leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - +
@@ -127,11 +127,13 @@ export const DeleteImportModal: React.FC = ({ isOpen, handleClose, data, />
-
- -
diff --git a/web/components/issues/delete-archived-issue-modal.tsx b/web/components/issues/delete-archived-issue-modal.tsx index fd9c9b3fd..14ecd7edd 100644 --- a/web/components/issues/delete-archived-issue-modal.tsx +++ b/web/components/issues/delete-archived-issue-modal.tsx @@ -78,7 +78,7 @@ export const DeleteArchivedIssueModal: React.FC = observer((props) => { leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -92,7 +92,7 @@ export const DeleteArchivedIssueModal: React.FC = observer((props) => { leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - +
@@ -113,10 +113,16 @@ export const DeleteArchivedIssueModal: React.FC = observer((props) => {

- -
diff --git a/web/components/issues/delete-draft-issue-modal.tsx b/web/components/issues/delete-draft-issue-modal.tsx index 3b3efaea0..955d8ac78 100644 --- a/web/components/issues/delete-draft-issue-modal.tsx +++ b/web/components/issues/delete-draft-issue-modal.tsx @@ -88,7 +88,7 @@ export const DeleteDraftIssueModal: React.FC = observer((props) => { leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -102,7 +102,7 @@ export const DeleteDraftIssueModal: React.FC = observer((props) => { leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - +
@@ -123,10 +123,10 @@ export const DeleteDraftIssueModal: React.FC = observer((props) => {

- -
diff --git a/web/components/issues/delete-issue-modal.tsx b/web/components/issues/delete-issue-modal.tsx index 41133111e..38d0a33d1 100644 --- a/web/components/issues/delete-issue-modal.tsx +++ b/web/components/issues/delete-issue-modal.tsx @@ -58,7 +58,7 @@ export const DeleteIssueModal: React.FC = observer((props) => { leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -72,7 +72,7 @@ export const DeleteIssueModal: React.FC = observer((props) => { leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - +
@@ -93,10 +93,16 @@ export const DeleteIssueModal: React.FC = observer((props) => {

- -
diff --git a/web/components/issues/draft-issue-form.tsx b/web/components/issues/draft-issue-form.tsx index b006bfabc..e42d8aab3 100644 --- a/web/components/issues/draft-issue-form.tsx +++ b/web/components/issues/draft-issue-form.tsx @@ -600,11 +600,12 @@ export const DraftIssueForm: FC = (props) => { {}} size="md" />
- -
diff --git a/web/components/labels/delete-label-modal.tsx b/web/components/labels/delete-label-modal.tsx index b70e28dda..f8faeef33 100644 --- a/web/components/labels/delete-label-modal.tsx +++ b/web/components/labels/delete-label-modal.tsx @@ -75,7 +75,7 @@ export const DeleteLabelModal: React.FC = observer((props) => { leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -89,7 +89,7 @@ export const DeleteLabelModal: React.FC = observer((props) => { leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - +
@@ -110,10 +110,10 @@ export const DeleteLabelModal: React.FC = observer((props) => {
- -
diff --git a/web/components/labels/labels-list-modal.tsx b/web/components/labels/labels-list-modal.tsx index 650745caa..e3176d8a0 100644 --- a/web/components/labels/labels-list-modal.tsx +++ b/web/components/labels/labels-list-modal.tsx @@ -73,7 +73,7 @@ export const LabelsListModal: React.FC = observer((props) => { leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -86,7 +86,7 @@ export const LabelsListModal: React.FC = observer((props) => { leaveFrom="opacity-100 scale-100" leaveTo="opacity-0 scale-95" > - +
= observer((props) => { leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -89,7 +89,7 @@ export const DeleteModuleModal: React.FC = observer((props) => { leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - +
@@ -110,10 +110,10 @@ export const DeleteModuleModal: React.FC = observer((props) => {
- -
diff --git a/web/components/modules/form.tsx b/web/components/modules/form.tsx index c26926ff8..d47184907 100644 --- a/web/components/modules/form.tsx +++ b/web/components/modules/form.tsx @@ -183,10 +183,10 @@ export const ModuleForm: React.FC = ({
- - -
diff --git a/web/components/pages/create-update-page-modal.tsx b/web/components/pages/create-update-page-modal.tsx index 49057dd72..a5803fcad 100644 --- a/web/components/pages/create-update-page-modal.tsx +++ b/web/components/pages/create-update-page-modal.tsx @@ -153,7 +153,7 @@ export const CreateUpdatePageModal: React.FC = (props) => { leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -167,7 +167,7 @@ export const CreateUpdatePageModal: React.FC = (props) => { leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - + = ({ isOpen, s leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -110,7 +110,7 @@ export const DeletePageModal: React.FC = ({ isOpen, s leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - +
@@ -131,10 +131,10 @@ export const DeletePageModal: React.FC = ({ isOpen, s
- -
diff --git a/web/components/pages/page-form.tsx b/web/components/pages/page-form.tsx index c432bb82f..e898395c9 100644 --- a/web/components/pages/page-form.tsx +++ b/web/components/pages/page-form.tsx @@ -76,10 +76,10 @@ export const PageForm: React.FC = ({ handleFormSubmit, handleClose, statu
- - -
diff --git a/web/components/project/create-project-modal.tsx b/web/components/project/create-project-modal.tsx index ab734e9b3..e1d199239 100644 --- a/web/components/project/create-project-modal.tsx +++ b/web/components/project/create-project-modal.tsx @@ -186,7 +186,7 @@ export const CreateProjectModal: FC = observer((props) => { leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -200,7 +200,7 @@ export const CreateProjectModal: FC = observer((props) => { leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - +
{watch("cover_image") !== null && ( = observer((props) => {
- -
diff --git a/web/components/project/join-project-modal.tsx b/web/components/project/join-project-modal.tsx index 9debb0d83..08f7ed1f0 100644 --- a/web/components/project/join-project-modal.tsx +++ b/web/components/project/join-project-modal.tsx @@ -53,7 +53,7 @@ export const JoinProjectModal: React.FC = (props) => { leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -67,7 +67,7 @@ export const JoinProjectModal: React.FC = (props) => { leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - +
Join Project? @@ -79,10 +79,17 @@ export const JoinProjectModal: React.FC = (props) => {
- -
diff --git a/web/components/project/leave-project-modal.tsx b/web/components/project/leave-project-modal.tsx index e36fa0ae2..8f534cecb 100644 --- a/web/components/project/leave-project-modal.tsx +++ b/web/components/project/leave-project-modal.tsx @@ -104,7 +104,7 @@ export const LeaveProjectModal: FC = observer((props) => { leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -118,7 +118,7 @@ export const LeaveProjectModal: FC = observer((props) => { leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - +
@@ -187,10 +187,10 @@ export const LeaveProjectModal: FC = observer((props) => { />
- -
diff --git a/web/components/project/publish-project/modal.tsx b/web/components/project/publish-project/modal.tsx index fe31dfe65..f03e0abcc 100644 --- a/web/components/project/publish-project/modal.tsx +++ b/web/components/project/publish-project/modal.tsx @@ -276,7 +276,7 @@ export const PublishProjectModal: React.FC = observer((props) => { leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -290,7 +290,7 @@ export const PublishProjectModal: React.FC = observer((props) => { leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - + {/* heading */}
@@ -464,19 +464,19 @@ export const PublishProjectModal: React.FC = observer((props) => {
{!projectPublishStore.fetchSettingsLoader && (
- {project.is_deployed ? ( <> {isUpdateRequired && ( - )} ) : ( - )} diff --git a/web/components/project/send-project-invitation-modal.tsx b/web/components/project/send-project-invitation-modal.tsx index 4ab7bd20a..8fc895fe5 100644 --- a/web/components/project/send-project-invitation-modal.tsx +++ b/web/components/project/send-project-invitation-modal.tsx @@ -158,7 +158,7 @@ export const SendProjectInvitationModal: React.FC = observer((props) => { leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -172,7 +172,7 @@ export const SendProjectInvitationModal: React.FC = observer((props) => { leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - +
@@ -290,10 +290,10 @@ export const SendProjectInvitationModal: React.FC = observer((props) => { Add more
- - -
diff --git a/web/components/states/delete-state-modal.tsx b/web/components/states/delete-state-modal.tsx index b0c609702..d1785d5b6 100644 --- a/web/components/states/delete-state-modal.tsx +++ b/web/components/states/delete-state-modal.tsx @@ -82,7 +82,7 @@ export const DeleteStateModal: React.FC = observer((props) => { leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -96,8 +96,8 @@ export const DeleteStateModal: React.FC = observer((props) => { leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - -
+ +
-
- -
diff --git a/web/components/views/delete-view-modal.tsx b/web/components/views/delete-view-modal.tsx index 5d0f6bd96..5bf07fb66 100644 --- a/web/components/views/delete-view-modal.tsx +++ b/web/components/views/delete-view-modal.tsx @@ -77,7 +77,7 @@ export const DeleteProjectViewModal: React.FC = observer((props) => { leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -91,7 +91,7 @@ export const DeleteProjectViewModal: React.FC = observer((props) => { leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - +
@@ -115,7 +115,7 @@ export const DeleteProjectViewModal: React.FC = observer((props) => { -
diff --git a/web/components/views/modal.tsx b/web/components/views/modal.tsx index 02a2b8ec7..8cc1a5981 100644 --- a/web/components/views/modal.tsx +++ b/web/components/views/modal.tsx @@ -79,7 +79,7 @@ export const CreateUpdateProjectViewModal: FC = observer((props) => { leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -93,7 +93,7 @@ export const CreateUpdateProjectViewModal: FC = observer((props) => { leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - + = observer((props) => leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -62,8 +62,8 @@ export const ConfirmWorkspaceMemberRemove: React.FC = observer((props) => leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - -
+ +
-
- -
diff --git a/web/components/workspace/delete-workspace-modal.tsx b/web/components/workspace/delete-workspace-modal.tsx index 4dcbebafb..060ad8ded 100644 --- a/web/components/workspace/delete-workspace-modal.tsx +++ b/web/components/workspace/delete-workspace-modal.tsx @@ -89,7 +89,7 @@ export const DeleteWorkspaceModal: React.FC = observer((props) => { leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -103,7 +103,7 @@ export const DeleteWorkspaceModal: React.FC = observer((props) => { leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - +
@@ -171,10 +171,10 @@ export const DeleteWorkspaceModal: React.FC = observer((props) => {
- -
diff --git a/web/components/workspace/send-workspace-invitation-modal.tsx b/web/components/workspace/send-workspace-invitation-modal.tsx index 0332bc4de..b044ec5a2 100644 --- a/web/components/workspace/send-workspace-invitation-modal.tsx +++ b/web/components/workspace/send-workspace-invitation-modal.tsx @@ -103,7 +103,7 @@ export const SendWorkspaceInvitationModal: React.FC = (props) => { leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -117,7 +117,7 @@ export const SendWorkspaceInvitationModal: React.FC = (props) => { leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - + { @@ -214,10 +214,10 @@ export const SendWorkspaceInvitationModal: React.FC = (props) => { Add more
- -
diff --git a/web/components/workspace/views/delete-view-modal.tsx b/web/components/workspace/views/delete-view-modal.tsx index 432eba165..6d91bdb55 100644 --- a/web/components/workspace/views/delete-view-modal.tsx +++ b/web/components/workspace/views/delete-view-modal.tsx @@ -71,7 +71,7 @@ export const DeleteGlobalViewModal: React.FC = observer((props) => { leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -85,7 +85,7 @@ export const DeleteGlobalViewModal: React.FC = observer((props) => { leaveFrom="opacity-100 translate-y-0 sm:scale-100" leaveTo="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95" > - +
@@ -106,10 +106,10 @@ export const DeleteGlobalViewModal: React.FC = observer((props) => {
- -
diff --git a/web/components/workspace/views/form.tsx b/web/components/workspace/views/form.tsx index 71b44c3f3..f6c6de2d2 100644 --- a/web/components/workspace/views/form.tsx +++ b/web/components/workspace/views/form.tsx @@ -169,10 +169,10 @@ export const WorkspaceViewForm: React.FC = observer((props) => {
- -
diff --git a/web/components/headers/module-issues.tsx b/web/components/headers/module-issues.tsx index 8e1c20da3..cea8093bf 100644 --- a/web/components/headers/module-issues.tsx +++ b/web/components/headers/module-issues.tsx @@ -112,7 +112,7 @@ export const ModuleIssuesHeader: React.FC = observer(() => { onClose={() => setAnalyticsModal(false)} moduleDetails={moduleDetails ?? undefined} /> -
+
{ const { storedValue: modulesView, setValue: setModulesView } = useLocalStorage("modules_view", "grid"); return ( -
+
@@ -76,6 +74,7 @@ export const ModulesListHeader: React.FC = observer(() => {
diff --git a/web/components/headers/user-profile.tsx b/web/components/headers/user-profile.tsx index 70a3f40f5..1883e631f 100644 --- a/web/components/headers/user-profile.tsx +++ b/web/components/headers/user-profile.tsx @@ -17,9 +17,7 @@ export const UserProfileHeader: FC = observer((props) => { const { workspaceSlug } = router.query; return ( -
+
diff --git a/web/components/headers/workspace-analytics.tsx b/web/components/headers/workspace-analytics.tsx index ea1cde066..e25fc6d5b 100644 --- a/web/components/headers/workspace-analytics.tsx +++ b/web/components/headers/workspace-analytics.tsx @@ -9,7 +9,7 @@ export const WorkspaceAnalyticsHeader = () => { return ( <>
diff --git a/web/components/headers/workspace-dashboard.tsx b/web/components/headers/workspace-dashboard.tsx index 73d9dacab..76bd6bc30 100644 --- a/web/components/headers/workspace-dashboard.tsx +++ b/web/components/headers/workspace-dashboard.tsx @@ -7,6 +7,7 @@ import githubBlackImage from "/public/logos/github-black.png"; import githubWhiteImage from "/public/logos/github-white.png"; // components import { ProductUpdatesModal } from "components/common"; +import { Breadcrumbs } from "@plane/ui"; export const WorkspaceDashboardHeader = () => { const [isProductUpdatesModalOpen, setIsProductUpdatesModalOpen] = useState(false); @@ -16,25 +17,30 @@ export const WorkspaceDashboardHeader = () => { return ( <> -
-
- - Dashboard +
+
+
+ + } + label="Dashboard" + /> + +
{"What's New?"} = observer((pro const { workspaceSlug } = router.query; return ( -
+
From e78dd4b1c0449f27e1bcc82a0452d1879e78a9c7 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Fri, 10 Nov 2023 18:43:16 +0530 Subject: [PATCH 6/8] fix: app sidebar dropdown fix (#2751) --- web/components/workspace/sidebar-dropdown.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/web/components/workspace/sidebar-dropdown.tsx b/web/components/workspace/sidebar-dropdown.tsx index faa301eaa..dfa45d9bf 100644 --- a/web/components/workspace/sidebar-dropdown.tsx +++ b/web/components/workspace/sidebar-dropdown.tsx @@ -219,11 +219,12 @@ export const WorkspaceSidebarDropdown = observer(() => { { + router.push(link.href); + }} + className="flex w-full items-center cursor-pointer justify-start rounded px-2 py-1 text-sm text-custom-sidebar-text-200 hover:bg-custom-sidebar-background-80" > - - {link.name} - + {link.name} ))}
From 733fed76ccd5a2d7d16a41126cad639ad72abf07 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Fri, 10 Nov 2023 18:43:48 +0530 Subject: [PATCH 7/8] fix: cycle card title responsiveness added (#2752) --- web/components/cycles/cycles-board-card.tsx | 52 ++++++++++----------- 1 file changed, 25 insertions(+), 27 deletions(-) diff --git a/web/components/cycles/cycles-board-card.tsx b/web/components/cycles/cycles-board-card.tsx index b9398c4a7..7de04172f 100644 --- a/web/components/cycles/cycles-board-card.tsx +++ b/web/components/cycles/cycles-board-card.tsx @@ -152,34 +152,32 @@ export const CyclesBoardCard: FC = (props) => { -
-
-
- - +
+
+ + + + + {cycle.name} + +
+
+ {currentCycle && ( + + {currentCycle.value === "current" + ? `${findHowManyDaysLeft(cycle.end_date ?? new Date())} ${currentCycle.label}` + : `${currentCycle.label}`} - - {cycle.name} - -
-
- {currentCycle && ( - - {currentCycle.value === "current" - ? `${findHowManyDaysLeft(cycle.end_date ?? new Date())} ${currentCycle.label}` - : `${currentCycle.label}`} - - )} - -
+ )} +
From 00e61a8753b730901405c410cd5a25ad740b26dd Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Fri, 10 Nov 2023 18:45:41 +0530 Subject: [PATCH 8/8] fix: peek overview comment ordering and comment icon alignment fix (#2753) --- web/components/issues/comment/comment-card.tsx | 2 +- web/components/issues/issue-peek-overview/activity/view.tsx | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/web/components/issues/comment/comment-card.tsx b/web/components/issues/comment/comment-card.tsx index 983bfbb71..577050572 100644 --- a/web/components/issues/comment/comment-card.tsx +++ b/web/components/issues/comment/comment-card.tsx @@ -140,7 +140,7 @@ export const CommentCard: React.FC = ({
{showAccessSpecifier && ( -
+
{comment.access === "INTERNAL" ? : }
)} diff --git a/web/components/issues/issue-peek-overview/activity/view.tsx b/web/components/issues/issue-peek-overview/activity/view.tsx index 97976ed8f..fec3a2a08 100644 --- a/web/components/issues/issue-peek-overview/activity/view.tsx +++ b/web/components/issues/issue-peek-overview/activity/view.tsx @@ -42,8 +42,6 @@ export const IssueComment: FC = (props) => {
Activity
- - = (props) => { issueCommentReactionCreate={issueCommentReactionCreate} issueCommentReactionRemove={issueCommentReactionRemove} /> +
);