From 98a223e5e149f698918ab4cd4aca69ca174f48fc Mon Sep 17 00:00:00 2001 From: anmolsinghbhatia Date: Sat, 20 May 2023 22:24:05 +0530 Subject: [PATCH 1/4] fix: cycle view board view fix , feat: on gantt view set all cycle as default tab --- .../app/components/cycles/completed-cycles.tsx | 8 -------- apps/app/components/cycles/cycles-view.tsx | 18 ++++++++++++------ 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/apps/app/components/cycles/completed-cycles.tsx b/apps/app/components/cycles/completed-cycles.tsx index 738b6c5fb..36ef691f5 100644 --- a/apps/app/components/cycles/completed-cycles.tsx +++ b/apps/app/components/cycles/completed-cycles.tsx @@ -104,14 +104,6 @@ export const CompletedCycles: React.FC = ({ ))} )} - {cycleView === "gantt" && ( - - )} ) : ( = ({ @@ -100,7 +100,10 @@ export const CyclesView: React.FC = ({ className={`grid h-7 w-7 place-items-center rounded outline-none duration-300 hover:bg-brand-surface-2 ${ cyclesView === "gantt_chart" ? "bg-brand-surface-2" : "" }`} - onClick={() => setCyclesView("gantt_chart")} + onClick={() => { + setCyclesView("gantt_chart"); + setCycleTab("All"); + }} > waterfall_chart @@ -111,6 +114,7 @@ export const CyclesView: React.FC = ({ { switch (i) { case 0: @@ -123,7 +127,6 @@ export const CyclesView: React.FC = ({ return setCycleTab("Completed"); case 4: return setCycleTab("Drafts"); - default: return setCycleTab("All"); } @@ -132,7 +135,10 @@ export const CyclesView: React.FC = ({
{["All", "Active", "Upcoming", "Completed", "Drafts"].map((tab, index) => { - if (cyclesView === "gantt_chart" && (tab === "Active" || tab === "Drafts")) + if ( + cyclesView === "gantt_chart" && + (tab === "Active" || tab === "Drafts" || tab === "Completed") + ) return null; return ( @@ -162,7 +168,7 @@ export const CyclesView: React.FC = ({ type="current" /> )} - {cyclesView === "grid" && ( + {cyclesView === "board" && ( Date: Sat, 20 May 2023 22:30:44 +0530 Subject: [PATCH 2/4] fix: create label modal error message updated --- .../components/labels/create-label-modal.tsx | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/apps/app/components/labels/create-label-modal.tsx b/apps/app/components/labels/create-label-modal.tsx index 3f1b4d647..858f7f7b5 100644 --- a/apps/app/components/labels/create-label-modal.tsx +++ b/apps/app/components/labels/create-label-modal.tsx @@ -156,19 +156,21 @@ export const CreateLabelModal: React.FC = ({ isOpen, projectId, handleClo )} - +
+ +
From cba62f07c064761260b956646a62f30667e13b1e Mon Sep 17 00:00:00 2001 From: pablohashescobar <118773738+pablohashescobar@users.noreply.github.com> Date: Sat, 20 May 2023 23:16:19 +0530 Subject: [PATCH 3/4] chore: analytic export mail (#1098) --- apiserver/templates/emails/exports/analytics.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apiserver/templates/emails/exports/analytics.html b/apiserver/templates/emails/exports/analytics.html index 248c5513c..f5611705e 100644 --- a/apiserver/templates/emails/exports/analytics.html +++ b/apiserver/templates/emails/exports/analytics.html @@ -1,4 +1,8 @@ - Your Export is ready + Hey there,
+ Your requested data export from Plane Analytics is now ready. The information has been compiled into a CSV format for your convenience.
+ Please find the attachment and download the CSV file. This file can easily be imported into any spreadsheet program for further analysis.
+ If you require any assistance or have any questions, please do not hesitate to contact us.
+ Thank you From a01e24152350530fa4c5d11d07de5f53e363d393 Mon Sep 17 00:00:00 2001 From: guru_sainath Date: Sat, 20 May 2023 23:17:44 +0530 Subject: [PATCH 4/4] styles: UI changes in the gantt blocks (#1099) --- .../components/cycles/cycles-list-gantt-chart.tsx | 6 +++--- apps/app/components/cycles/gantt-chart.tsx | 6 +++--- apps/app/components/gantt-chart/blocks/index.tsx | 12 +++++------- apps/app/components/gantt-chart/chart/index.tsx | 2 +- apps/app/components/gantt-chart/views/month-view.ts | 2 +- apps/app/components/issues/gantt-chart.tsx | 6 +++--- apps/app/components/modules/gantt-chart.tsx | 6 +++--- .../components/modules/modules-list-gantt-chart.tsx | 6 +++--- apps/app/components/views/gantt-chart.tsx | 6 +++--- 9 files changed, 25 insertions(+), 27 deletions(-) diff --git a/apps/app/components/cycles/cycles-list-gantt-chart.tsx b/apps/app/components/cycles/cycles-list-gantt-chart.tsx index 2b783f4e2..ad298e79d 100644 --- a/apps/app/components/cycles/cycles-list-gantt-chart.tsx +++ b/apps/app/components/cycles/cycles-list-gantt-chart.tsx @@ -23,9 +23,9 @@ export const CyclesListGanttChartView: FC = ({ cycles }) => { // rendering issues on gantt card const GanttBlockView = ({ data }: { data: ICycle }) => ( -
-
-
+
+
+
{data?.name}
diff --git a/apps/app/components/cycles/gantt-chart.tsx b/apps/app/components/cycles/gantt-chart.tsx index d38ad727b..04de7afb7 100644 --- a/apps/app/components/cycles/gantt-chart.tsx +++ b/apps/app/components/cycles/gantt-chart.tsx @@ -32,12 +32,12 @@ export const CycleIssuesGanttChartView: FC = ({}) => { // rendering issues on gantt card const GanttBlockView = ({ data }: any) => ( -
+
-
+
{data?.name}
diff --git a/apps/app/components/gantt-chart/blocks/index.tsx b/apps/app/components/gantt-chart/blocks/index.tsx index 24ee4d39e..113ca8964 100644 --- a/apps/app/components/gantt-chart/blocks/index.tsx +++ b/apps/app/components/gantt-chart/blocks/index.tsx @@ -21,14 +21,14 @@ export const GanttChartBlocks: FC<{ className="relative z-10 mt-[58px] h-full w-[4000px] divide-x divide-gray-300 overflow-hidden overflow-y-auto bg-[#999] bg-opacity-5" style={{ width: `${itemsContainerWidth}px` }} > -
+
{blocks && blocks.length > 0 && blocks.map((block: any, _idx: number) => ( <> {block.start_date && block.target_date && (
-
- {blockRender({ ...block?.data })} -
+ {blockRender({ ...block?.data })}
@@ -71,7 +69,7 @@ export const GanttChartBlocks: FC<{ {blocks && blocks.length > 0 && blocks.map((block: any, _idx: number) => ( -
+
{sidebarBlockRender(block?.data)}
))} diff --git a/apps/app/components/gantt-chart/chart/index.tsx b/apps/app/components/gantt-chart/chart/index.tsx index a1b80ef84..6724c3552 100644 --- a/apps/app/components/gantt-chart/chart/index.tsx +++ b/apps/app/components/gantt-chart/chart/index.tsx @@ -214,7 +214,7 @@ export const ChartViewRoot: FC = ({
{/* chart title */}
diff --git a/apps/app/components/gantt-chart/views/month-view.ts b/apps/app/components/gantt-chart/views/month-view.ts index df537ba5e..7211a45eb 100644 --- a/apps/app/components/gantt-chart/views/month-view.ts +++ b/apps/app/components/gantt-chart/views/month-view.ts @@ -184,7 +184,7 @@ export const getMonthChartItemPositionWidthInMonth = (chartData: ChartDataType, diffMonths -= startDate.getMonth(); diffMonths += itemStartDate.getMonth(); - scrollPosition = scrollPosition + diffMonths - 1; + scrollPosition = scrollPosition + diffMonths; // position code ends // width code starts diff --git a/apps/app/components/issues/gantt-chart.tsx b/apps/app/components/issues/gantt-chart.tsx index 5e79822c5..b35d4a749 100644 --- a/apps/app/components/issues/gantt-chart.tsx +++ b/apps/app/components/issues/gantt-chart.tsx @@ -32,12 +32,12 @@ export const IssueGanttChartView: FC = ({}) => { // rendering issues on gantt card const GanttBlockView = ({ data }: any) => ( -
+
-
+
{data?.name}
diff --git a/apps/app/components/modules/gantt-chart.tsx b/apps/app/components/modules/gantt-chart.tsx index edc24cfc9..0d11da2c0 100644 --- a/apps/app/components/modules/gantt-chart.tsx +++ b/apps/app/components/modules/gantt-chart.tsx @@ -32,12 +32,12 @@ export const ModuleIssuesGanttChartView: FC = ({}) => { // rendering issues on gantt card const GanttBlockView = ({ data }: any) => ( -
+
-
+
{data?.name}
diff --git a/apps/app/components/modules/modules-list-gantt-chart.tsx b/apps/app/components/modules/modules-list-gantt-chart.tsx index c6fbf329f..edff17a95 100644 --- a/apps/app/components/modules/modules-list-gantt-chart.tsx +++ b/apps/app/components/modules/modules-list-gantt-chart.tsx @@ -27,12 +27,12 @@ export const ModulesListGanttChartView: FC = ({ modules }) => { // rendering issues on gantt card const GanttBlockView = ({ data }: { data: IModule }) => ( -
+
s.value === data.status)?.color }} /> -
+
{data?.name}
diff --git a/apps/app/components/views/gantt-chart.tsx b/apps/app/components/views/gantt-chart.tsx index dbe71fae0..461f46835 100644 --- a/apps/app/components/views/gantt-chart.tsx +++ b/apps/app/components/views/gantt-chart.tsx @@ -32,12 +32,12 @@ export const ViewIssuesGanttChartView: FC = ({}) => { // rendering issues on gantt card const GanttBlockView = ({ data }: any) => ( -
+
-
+
{data?.name}