forked from github/plane
63b6150b9c
* fix: Labels reordering inconsistency * fix: Delete child labels * feat: multi-select while grouping labels * refactor: label sorting in mobx computed function * feat: drag & drop label grouping, un-grouping * chore: removed label select modal * fix: moving labels from project store to project label store * fix: typo changes and build tree function added * labels feature * disable dropping group into a group * fix build errors * fix more issues * chore: added combining state UI, fixed scroll issue for label groups * chore: group icon for label groups * fix: group cannot be dropped in another group --------- Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com> Co-authored-by: rahulramesha <rahulramesham@gmail.com> Co-authored-by: Aaryan Khandelwal <aaryankhandu123@gmail.com>
58 lines
1.7 KiB
TypeScript
58 lines
1.7 KiB
TypeScript
import React from "react";
|
|
import { observer } from "mobx-react-lite";
|
|
// components
|
|
import { List } from "../default";
|
|
// store
|
|
import { useMobxStore } from "lib/mobx/store-provider";
|
|
import { RootStore } from "store/root";
|
|
// constants
|
|
import { ISSUE_STATE_GROUPS, ISSUE_PRIORITIES } from "constants/issue";
|
|
|
|
export interface IViewListLayout {}
|
|
|
|
export const ProjectViewListLayout: React.FC = observer(() => {
|
|
const {
|
|
project: projectStore,
|
|
issue: issueStore,
|
|
issueFilter: issueFilterStore,
|
|
projectState: projectStateStore,
|
|
}: RootStore = useMobxStore();
|
|
|
|
const issues = issueStore?.getIssues;
|
|
|
|
const group_by: string | null = issueFilterStore?.userDisplayFilters?.group_by || null;
|
|
|
|
const display_properties = issueFilterStore?.userDisplayProperties || null;
|
|
|
|
const updateIssue = (group_by: string | null, issue: any) => {
|
|
issueStore.updateIssueStructure(group_by, null, issue);
|
|
};
|
|
|
|
const states = projectStateStore?.projectStates || null;
|
|
const priorities = ISSUE_PRIORITIES || null;
|
|
// const labels = projectStore?.projectLabels || null;
|
|
const stateGroups = ISSUE_STATE_GROUPS || null;
|
|
const projects = projectStateStore?.projectStates || null;
|
|
const estimates = null;
|
|
|
|
return null;
|
|
|
|
// return (
|
|
// <div className={`relative w-full h-full bg-custom-background-90`}>
|
|
// <List
|
|
// issues={issues}
|
|
// group_by={group_by}
|
|
// handleIssues={updateIssue}
|
|
// display_properties={display_properties}
|
|
// states={states}
|
|
// stateGroups={stateGroups}
|
|
// priorities={priorities}
|
|
// labels={labels}
|
|
// members={members}
|
|
// projects={projects}
|
|
// estimates={estimates}
|
|
// />
|
|
// </div>
|
|
// );
|
|
});
|