chore: gantt chart resizable blocks, y-axis drag and drop (#1810)

* chore: gantt chart resizable blocks

* chore: right scroll added

* chore: left scroll added

* fix: build errors

* chore: remove unnecessary console logs

* chore: add block type and remove info toggle

* feat: gantt chart blocks y-axis drag and drop

* chore: disable drag flag

* fix: y-axis drag mutation

* fix: scroll container undefined error

* fix: negative scroll

* fix: negative scroll

* style: blocks tooltip consistency
This commit is contained in:
Aaryan Khandelwal 2023-08-11 15:59:13 +05:30 committed by GitHub
parent 762ef422ca
commit 785a6e8871
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
46 changed files with 1109 additions and 848 deletions

View file

@ -50,7 +50,7 @@ const ProjectModules: NextPage = () => {
: null
);
const { data: modules } = useSWR<IModule[]>(
const { data: modules, mutate: mutateModules } = useSWR(
workspaceSlug && projectId ? MODULE_LIST(projectId as string) : null,
workspaceSlug && projectId
? () => modulesService.getModules(workspaceSlug as string, projectId as string)
@ -139,7 +139,9 @@ const ProjectModules: NextPage = () => {
</div>
</div>
)}
{modulesView === "gantt_chart" && <ModulesListGanttChartView modules={modules} />}
{modulesView === "gantt_chart" && (
<ModulesListGanttChartView modules={modules} mutateModules={mutateModules} />
)}
</div>
) : (
<EmptyState