@gostack-framework/ui 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE.md +5 -0
- package/dist/activity/index.d.ts +2 -0
- package/dist/activity/index.js +3 -0
- package/dist/activity/index.js.map +1 -0
- package/dist/clickup/common/InlineNameTab.d.ts +11 -0
- package/dist/clickup/common/InlineNameTab.js +50 -0
- package/dist/clickup/common/InlineNameTab.js.map +1 -0
- package/dist/clickup/common/TaskAssigneeAvatar.d.ts +14 -0
- package/dist/clickup/common/TaskAssigneeAvatar.js +32 -0
- package/dist/clickup/common/TaskAssigneeAvatar.js.map +1 -0
- package/dist/clickup/common/TaskBreadcrumb.d.ts +11 -0
- package/dist/clickup/common/TaskBreadcrumb.js +11 -0
- package/dist/clickup/common/TaskBreadcrumb.js.map +1 -0
- package/dist/clickup/common/TaskCheck.d.ts +10 -0
- package/dist/clickup/common/TaskCheck.js +17 -0
- package/dist/clickup/common/TaskCheck.js.map +1 -0
- package/dist/clickup/common/TaskContextMenu.d.ts +10 -0
- package/dist/clickup/common/TaskContextMenu.js +22 -0
- package/dist/clickup/common/TaskContextMenu.js.map +1 -0
- package/dist/clickup/common/TaskIcon.d.ts +29 -0
- package/dist/clickup/common/TaskIcon.js +30 -0
- package/dist/clickup/common/TaskIcon.js.map +1 -0
- package/dist/clickup/common/TaskPriorityBadge.d.ts +11 -0
- package/dist/clickup/common/TaskPriorityBadge.js +11 -0
- package/dist/clickup/common/TaskPriorityBadge.js.map +1 -0
- package/dist/clickup/common/TaskRowActionMenu.d.ts +6 -0
- package/dist/clickup/common/TaskRowActionMenu.js +10 -0
- package/dist/clickup/common/TaskRowActionMenu.js.map +1 -0
- package/dist/clickup/common/TaskStatusPill.d.ts +12 -0
- package/dist/clickup/common/TaskStatusPill.js +24 -0
- package/dist/clickup/common/TaskStatusPill.js.map +1 -0
- package/dist/clickup/common/WorkspaceButton.d.ts +3 -0
- package/dist/clickup/common/WorkspaceButton.js +8 -0
- package/dist/clickup/common/WorkspaceButton.js.map +1 -0
- package/dist/clickup/common/WorkspaceHeader.d.ts +9 -0
- package/dist/clickup/common/WorkspaceHeader.js +7 -0
- package/dist/clickup/common/WorkspaceHeader.js.map +1 -0
- package/dist/clickup/common/WorkspaceMenus.d.ts +17 -0
- package/dist/clickup/common/WorkspaceMenus.js +15 -0
- package/dist/clickup/common/WorkspaceMenus.js.map +1 -0
- package/dist/clickup/common/WorkspaceMessage.d.ts +7 -0
- package/dist/clickup/common/WorkspaceMessage.js +6 -0
- package/dist/clickup/common/WorkspaceMessage.js.map +1 -0
- package/dist/clickup/common/WorkspaceMetricStrip.d.ts +10 -0
- package/dist/clickup/common/WorkspaceMetricStrip.js +6 -0
- package/dist/clickup/common/WorkspaceMetricStrip.js.map +1 -0
- package/dist/clickup/common/WorkspacePanel.d.ts +7 -0
- package/dist/clickup/common/WorkspacePanel.js +7 -0
- package/dist/clickup/common/WorkspacePanel.js.map +1 -0
- package/dist/clickup/common/WorkspaceSelect.d.ts +5 -0
- package/dist/clickup/common/WorkspaceSelect.js +64 -0
- package/dist/clickup/common/WorkspaceSelect.js.map +1 -0
- package/dist/clickup/common/WorkspaceTable.d.ts +16 -0
- package/dist/clickup/common/WorkspaceTable.js +7 -0
- package/dist/clickup/common/WorkspaceTable.js.map +1 -0
- package/dist/clickup/dialogs/ClickUpCommentComposer.d.ts +9 -0
- package/dist/clickup/dialogs/ClickUpCommentComposer.js +35 -0
- package/dist/clickup/dialogs/ClickUpCommentComposer.js.map +1 -0
- package/dist/clickup/dialogs/ClickUpTaskActions.d.ts +8 -0
- package/dist/clickup/dialogs/ClickUpTaskActions.js +10 -0
- package/dist/clickup/dialogs/ClickUpTaskActions.js.map +1 -0
- package/dist/clickup/dialogs/ClickUpTaskAssignee.d.ts +7 -0
- package/dist/clickup/dialogs/ClickUpTaskAssignee.js +12 -0
- package/dist/clickup/dialogs/ClickUpTaskAssignee.js.map +1 -0
- package/dist/clickup/dialogs/ClickUpTaskDescription.d.ts +12 -0
- package/dist/clickup/dialogs/ClickUpTaskDescription.js +12 -0
- package/dist/clickup/dialogs/ClickUpTaskDescription.js.map +1 -0
- package/dist/clickup/dialogs/ClickUpTaskDialog.d.ts +27 -0
- package/dist/clickup/dialogs/ClickUpTaskDialog.js +35 -0
- package/dist/clickup/dialogs/ClickUpTaskDialog.js.map +1 -0
- package/dist/clickup/dialogs/ClickUpTaskDiscussion.d.ts +11 -0
- package/dist/clickup/dialogs/ClickUpTaskDiscussion.js +29 -0
- package/dist/clickup/dialogs/ClickUpTaskDiscussion.js.map +1 -0
- package/dist/clickup/dialogs/ClickUpTaskMain.d.ts +24 -0
- package/dist/clickup/dialogs/ClickUpTaskMain.js +26 -0
- package/dist/clickup/dialogs/ClickUpTaskMain.js.map +1 -0
- package/dist/clickup/dialogs/ClickUpTaskProperties.d.ts +17 -0
- package/dist/clickup/dialogs/ClickUpTaskProperties.js +26 -0
- package/dist/clickup/dialogs/ClickUpTaskProperties.js.map +1 -0
- package/dist/clickup/elements/TaskCalendarCell.d.ts +14 -0
- package/dist/clickup/elements/TaskCalendarCell.js +19 -0
- package/dist/clickup/elements/TaskCalendarCell.js.map +1 -0
- package/dist/clickup/elements/TaskCard.d.ts +16 -0
- package/dist/clickup/elements/TaskCard.js +51 -0
- package/dist/clickup/elements/TaskCard.js.map +1 -0
- package/dist/clickup/elements/TaskGroup.d.ts +24 -0
- package/dist/clickup/elements/TaskGroup.js +50 -0
- package/dist/clickup/elements/TaskGroup.js.map +1 -0
- package/dist/clickup/elements/TaskRow.d.ts +19 -0
- package/dist/clickup/elements/TaskRow.js +60 -0
- package/dist/clickup/elements/TaskRow.js.map +1 -0
- package/dist/clickup/elements/TaskTableHead.d.ts +1 -0
- package/dist/clickup/elements/TaskTableHead.js +15 -0
- package/dist/clickup/elements/TaskTableHead.js.map +1 -0
- package/dist/clickup/elements/TaskTimelineRow.d.ts +12 -0
- package/dist/clickup/elements/TaskTimelineRow.js +16 -0
- package/dist/clickup/elements/TaskTimelineRow.js.map +1 -0
- package/dist/clickup/index.d.ts +41 -0
- package/dist/clickup/index.js +48 -0
- package/dist/clickup/index.js.map +1 -0
- package/dist/clickup/task-ui.css +864 -0
- package/dist/clickup/toolbar/TaskToolbar.d.ts +20 -0
- package/dist/clickup/toolbar/TaskToolbar.js +16 -0
- package/dist/clickup/toolbar/TaskToolbar.js.map +1 -0
- package/dist/clickup/toolbar/TaskViewPicker.d.ts +8 -0
- package/dist/clickup/toolbar/TaskViewPicker.js +48 -0
- package/dist/clickup/toolbar/TaskViewPicker.js.map +1 -0
- package/dist/clickup/toolbar/TaskViewSwitcher.d.ts +21 -0
- package/dist/clickup/toolbar/TaskViewSwitcher.js +55 -0
- package/dist/clickup/toolbar/TaskViewSwitcher.js.map +1 -0
- package/dist/clickup/types.d.ts +66 -0
- package/dist/clickup/types.js +2 -0
- package/dist/clickup/types.js.map +1 -0
- package/dist/clickup/views/TaskBoardView.d.ts +21 -0
- package/dist/clickup/views/TaskBoardView.js +75 -0
- package/dist/clickup/views/TaskBoardView.js.map +1 -0
- package/dist/clickup/views/TaskCalendarView.d.ts +12 -0
- package/dist/clickup/views/TaskCalendarView.js +197 -0
- package/dist/clickup/views/TaskCalendarView.js.map +1 -0
- package/dist/clickup/views/TaskGanttView.d.ts +12 -0
- package/dist/clickup/views/TaskGanttView.js +64 -0
- package/dist/clickup/views/TaskGanttView.js.map +1 -0
- package/dist/clickup/views/TaskListView.d.ts +22 -0
- package/dist/clickup/views/TaskListView.js +17 -0
- package/dist/clickup/views/TaskListView.js.map +1 -0
- package/dist/clickup/views/TaskTableView.d.ts +21 -0
- package/dist/clickup/views/TaskTableView.js +50 -0
- package/dist/clickup/views/TaskTableView.js.map +1 -0
- package/dist/components/ActivityFeed.d.ts +48 -0
- package/dist/components/ActivityFeed.js +60 -0
- package/dist/components/ActivityFeed.js.map +1 -0
- package/dist/components/AudioPlayer.d.ts +8 -0
- package/dist/components/AudioPlayer.js +96 -0
- package/dist/components/AudioPlayer.js.map +1 -0
- package/dist/components/BulkActionBar.d.ts +10 -0
- package/dist/components/BulkActionBar.js +10 -0
- package/dist/components/BulkActionBar.js.map +1 -0
- package/dist/components/Carousel.d.ts +8 -0
- package/dist/components/Carousel.js +38 -0
- package/dist/components/Carousel.js.map +1 -0
- package/dist/components/ChatBot.d.ts +6 -0
- package/dist/components/ChatBot.js +52 -0
- package/dist/components/ChatBot.js.map +1 -0
- package/dist/components/CheckboxCustom.d.ts +9 -0
- package/dist/components/CheckboxCustom.js +42 -0
- package/dist/components/CheckboxCustom.js.map +1 -0
- package/dist/components/ClickUpTaskModal.d.ts +36 -0
- package/dist/components/ClickUpTaskModal.js +180 -0
- package/dist/components/ClickUpTaskModal.js.map +1 -0
- package/dist/components/ConditionBuilder.d.ts +28 -0
- package/dist/components/ConditionBuilder.js +63 -0
- package/dist/components/ConditionBuilder.js.map +1 -0
- package/dist/components/ConfirmDialog.d.ts +21 -0
- package/dist/components/ConfirmDialog.js +51 -0
- package/dist/components/ConfirmDialog.js.map +1 -0
- package/dist/components/DataCard.d.ts +43 -0
- package/dist/components/DataCard.js +30 -0
- package/dist/components/DataCard.js.map +1 -0
- package/dist/components/DataTable.d.ts +107 -0
- package/dist/components/DataTable.js +153 -0
- package/dist/components/DataTable.js.map +1 -0
- package/dist/components/DatePicker.d.ts +16 -0
- package/dist/components/DatePicker.js +184 -0
- package/dist/components/DatePicker.js.map +1 -0
- package/dist/components/EmptyState.d.ts +26 -0
- package/dist/components/EmptyState.js +37 -0
- package/dist/components/EmptyState.js.map +1 -0
- package/dist/components/Error.d.ts +12 -0
- package/dist/components/Error.js +41 -0
- package/dist/components/Error.js.map +1 -0
- package/dist/components/ErrorState.d.ts +10 -0
- package/dist/components/ErrorState.js +53 -0
- package/dist/components/ErrorState.js.map +1 -0
- package/dist/components/FileAttachmentChip.d.ts +10 -0
- package/dist/components/FileAttachmentChip.js +21 -0
- package/dist/components/FileAttachmentChip.js.map +1 -0
- package/dist/components/FilterConditionChip.d.ts +10 -0
- package/dist/components/FilterConditionChip.js +11 -0
- package/dist/components/FilterConditionChip.js.map +1 -0
- package/dist/components/GalleryCarouselDialog.d.ts +14 -0
- package/dist/components/GalleryCarouselDialog.js +167 -0
- package/dist/components/GalleryCarouselDialog.js.map +1 -0
- package/dist/components/HierarchicalSelectionMenu.d.ts +21 -0
- package/dist/components/HierarchicalSelectionMenu.js +168 -0
- package/dist/components/HierarchicalSelectionMenu.js.map +1 -0
- package/dist/components/InfiniteSelect.d.ts +44 -0
- package/dist/components/InfiniteSelect.js +121 -0
- package/dist/components/InfiniteSelect.js.map +1 -0
- package/dist/components/LoadingState.d.ts +28 -0
- package/dist/components/LoadingState.js +24 -0
- package/dist/components/LoadingState.js.map +1 -0
- package/dist/components/LucidIconRender.d.ts +9 -0
- package/dist/components/LucidIconRender.js +7 -0
- package/dist/components/LucidIconRender.js.map +1 -0
- package/dist/components/MasterDetailLayout.d.ts +67 -0
- package/dist/components/MasterDetailLayout.js +79 -0
- package/dist/components/MasterDetailLayout.js.map +1 -0
- package/dist/components/PinnedAttributeRow.d.ts +12 -0
- package/dist/components/PinnedAttributeRow.js +11 -0
- package/dist/components/PinnedAttributeRow.js.map +1 -0
- package/dist/components/PopUp.d.ts +11 -0
- package/dist/components/PopUp.js +83 -0
- package/dist/components/PopUp.js.map +1 -0
- package/dist/components/PrioritySignal.d.ts +10 -0
- package/dist/components/PrioritySignal.js +54 -0
- package/dist/components/PrioritySignal.js.map +1 -0
- package/dist/components/RichTextEditor.d.ts +7 -0
- package/dist/components/RichTextEditor.js +252 -0
- package/dist/components/RichTextEditor.js.map +1 -0
- package/dist/components/SLACountdown.d.ts +15 -0
- package/dist/components/SLACountdown.js +26 -0
- package/dist/components/SLACountdown.js.map +1 -0
- package/dist/components/StatusBadge.d.ts +14 -0
- package/dist/components/StatusBadge.js +55 -0
- package/dist/components/StatusBadge.js.map +1 -0
- package/dist/components/StatusCards.d.ts +12 -0
- package/dist/components/StatusCards.js +12 -0
- package/dist/components/StatusCards.js.map +1 -0
- package/dist/components/StatusProgressBar.d.ts +18 -0
- package/dist/components/StatusProgressBar.js +50 -0
- package/dist/components/StatusProgressBar.js.map +1 -0
- package/dist/components/TableActions.d.ts +26 -0
- package/dist/components/TableActions.js +49 -0
- package/dist/components/TableActions.js.map +1 -0
- package/dist/components/TaskDetailsModal.d.ts +3 -0
- package/dist/components/TaskDetailsModal.js +8 -0
- package/dist/components/TaskDetailsModal.js.map +1 -0
- package/dist/components/ThemedText.d.ts +24 -0
- package/dist/components/ThemedText.js +103 -0
- package/dist/components/ThemedText.js.map +1 -0
- package/dist/components/TicketWorkspaceLayout.d.ts +11 -0
- package/dist/components/TicketWorkspaceLayout.js +7 -0
- package/dist/components/TicketWorkspaceLayout.js.map +1 -0
- package/dist/components/TimePicker.d.ts +15 -0
- package/dist/components/TimePicker.js +96 -0
- package/dist/components/TimePicker.js.map +1 -0
- package/dist/components/Tooltip.d.ts +19 -0
- package/dist/components/Tooltip.js +75 -0
- package/dist/components/Tooltip.js.map +1 -0
- package/dist/components/TreeView.d.ts +33 -0
- package/dist/components/TreeView.js +55 -0
- package/dist/components/TreeView.js.map +1 -0
- package/dist/components/accordion.d.ts +6 -0
- package/dist/components/accordion.js +18 -0
- package/dist/components/accordion.js.map +1 -0
- package/dist/components/avatar.d.ts +11 -0
- package/dist/components/avatar.js +23 -0
- package/dist/components/avatar.js.map +1 -0
- package/dist/components/badge.d.ts +12 -0
- package/dist/components/badge.js +44 -0
- package/dist/components/badge.js.map +1 -0
- package/dist/components/button.d.ts +15 -0
- package/dist/components/button.js +47 -0
- package/dist/components/button.js.map +1 -0
- package/dist/components/card.d.ts +11 -0
- package/dist/components/card.js +25 -0
- package/dist/components/card.js.map +1 -0
- package/dist/components/context menu core/context-menu.d.ts +28 -0
- package/dist/components/context menu core/context-menu.js +91 -0
- package/dist/components/context menu core/context-menu.js.map +1 -0
- package/dist/components/context menu core/contextMenuAdvanced.d.ts +46 -0
- package/dist/components/context menu core/contextMenuAdvanced.js +34 -0
- package/dist/components/context menu core/contextMenuAdvanced.js.map +1 -0
- package/dist/components/dialog.d.ts +18 -0
- package/dist/components/dialog.js +42 -0
- package/dist/components/dialog.js.map +1 -0
- package/dist/components/dropdown-menu.d.ts +29 -0
- package/dist/components/dropdown-menu.js +51 -0
- package/dist/components/dropdown-menu.js.map +1 -0
- package/dist/components/filter/AdvancedFilters.d.ts +14 -0
- package/dist/components/filter/AdvancedFilters.js +220 -0
- package/dist/components/filter/AdvancedFilters.js.map +1 -0
- package/dist/components/filter/Filter.d.ts +48 -0
- package/dist/components/filter/Filter.js +153 -0
- package/dist/components/filter/Filter.js.map +1 -0
- package/dist/components/filter/FilterButton.d.ts +10 -0
- package/dist/components/filter/FilterButton.js +9 -0
- package/dist/components/filter/FilterButton.js.map +1 -0
- package/dist/components/filter/NormalFilters.d.ts +14 -0
- package/dist/components/filter/NormalFilters.js +40 -0
- package/dist/components/filter/NormalFilters.js.map +1 -0
- package/dist/components/filter/index.d.ts +5 -0
- package/dist/components/filter/index.js +6 -0
- package/dist/components/filter/index.js.map +1 -0
- package/dist/components/filter/types.d.ts +32 -0
- package/dist/components/filter/types.js +2 -0
- package/dist/components/filter/types.js.map +1 -0
- package/dist/components/form-error.d.ts +42 -0
- package/dist/components/form-error.js +103 -0
- package/dist/components/form-error.js.map +1 -0
- package/dist/components/icons.d.ts +19 -0
- package/dist/components/icons.js +21 -0
- package/dist/components/icons.js.map +1 -0
- package/dist/components/image.d.ts +12 -0
- package/dist/components/image.js +18 -0
- package/dist/components/image.js.map +1 -0
- package/dist/components/index.d.ts +59 -0
- package/dist/components/index.js +60 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/input.d.ts +22 -0
- package/dist/components/input.js +102 -0
- package/dist/components/input.js.map +1 -0
- package/dist/components/label.d.ts +7 -0
- package/dist/components/label.js +8 -0
- package/dist/components/label.js.map +1 -0
- package/dist/components/layout/FeatureLayout.d.ts +131 -0
- package/dist/components/layout/FeatureLayout.js +113 -0
- package/dist/components/layout/FeatureLayout.js.map +1 -0
- package/dist/components/layout/FeatureLayoutExportButton.d.ts +10 -0
- package/dist/components/layout/FeatureLayoutExportButton.js +21 -0
- package/dist/components/layout/FeatureLayoutExportButton.js.map +1 -0
- package/dist/components/layout/FeatureLayoutTabs.d.ts +36 -0
- package/dist/components/layout/FeatureLayoutTabs.js +192 -0
- package/dist/components/layout/FeatureLayoutTabs.js.map +1 -0
- package/dist/components/layout/kanban/FeatureLayoutKanban.d.ts +6 -0
- package/dist/components/layout/kanban/FeatureLayoutKanban.js +195 -0
- package/dist/components/layout/kanban/FeatureLayoutKanban.js.map +1 -0
- package/dist/components/layout/kanban/KanbanCard.d.ts +12 -0
- package/dist/components/layout/kanban/KanbanCard.js +43 -0
- package/dist/components/layout/kanban/KanbanCard.js.map +1 -0
- package/dist/components/layout/kanban/KanbanColumn.d.ts +23 -0
- package/dist/components/layout/kanban/KanbanColumn.js +30 -0
- package/dist/components/layout/kanban/KanbanColumn.js.map +1 -0
- package/dist/components/layout/kanban/KanbanToolbar.d.ts +11 -0
- package/dist/components/layout/kanban/KanbanToolbar.js +10 -0
- package/dist/components/layout/kanban/KanbanToolbar.js.map +1 -0
- package/dist/components/layout/kanban/index.d.ts +6 -0
- package/dist/components/layout/kanban/index.js +7 -0
- package/dist/components/layout/kanban/index.js.map +1 -0
- package/dist/components/layout/kanban/types.d.ts +67 -0
- package/dist/components/layout/kanban/types.js +2 -0
- package/dist/components/layout/kanban/types.js.map +1 -0
- package/dist/components/popover.d.ts +11 -0
- package/dist/components/popover.js +20 -0
- package/dist/components/popover.js.map +1 -0
- package/dist/components/react-flow/FlowGraphHeader.d.ts +2 -0
- package/dist/components/react-flow/FlowGraphHeader.js +10 -0
- package/dist/components/react-flow/FlowGraphHeader.js.map +1 -0
- package/dist/components/react-flow/GlowEdge.d.ts +3 -0
- package/dist/components/react-flow/GlowEdge.js +100 -0
- package/dist/components/react-flow/GlowEdge.js.map +1 -0
- package/dist/components/react-flow/ReactFlowCanvas.d.ts +7 -0
- package/dist/components/react-flow/ReactFlowCanvas.js +44 -0
- package/dist/components/react-flow/ReactFlowCanvas.js.map +1 -0
- package/dist/components/react-flow/RelationshipFlow.d.ts +2 -0
- package/dist/components/react-flow/RelationshipFlow.js +9 -0
- package/dist/components/react-flow/RelationshipFlow.js.map +1 -0
- package/dist/components/react-flow/TreeFlowLayout.d.ts +29 -0
- package/dist/components/react-flow/TreeFlowLayout.js +14 -0
- package/dist/components/react-flow/TreeFlowLayout.js.map +1 -0
- package/dist/components/react-flow/edges.d.ts +8 -0
- package/dist/components/react-flow/edges.js +21 -0
- package/dist/components/react-flow/edges.js.map +1 -0
- package/dist/components/react-flow/index.d.ts +9 -0
- package/dist/components/react-flow/index.js +10 -0
- package/dist/components/react-flow/index.js.map +1 -0
- package/dist/components/react-flow/layout.d.ts +5 -0
- package/dist/components/react-flow/layout.js +11 -0
- package/dist/components/react-flow/layout.js.map +1 -0
- package/dist/components/react-flow/types.d.ts +82 -0
- package/dist/components/react-flow/types.js +6 -0
- package/dist/components/react-flow/types.js.map +1 -0
- package/dist/components/react-flow/useFlowGraph.d.ts +3 -0
- package/dist/components/react-flow/useFlowGraph.js +22 -0
- package/dist/components/react-flow/useFlowGraph.js.map +1 -0
- package/dist/components/react-flow/useFlowGraphSync.d.ts +4 -0
- package/dist/components/react-flow/useFlowGraphSync.js +43 -0
- package/dist/components/react-flow/useFlowGraphSync.js.map +1 -0
- package/dist/components/select.d.ts +23 -0
- package/dist/components/select.js +109 -0
- package/dist/components/select.js.map +1 -0
- package/dist/components/sonner.d.ts +4 -0
- package/dist/components/sonner.js +29 -0
- package/dist/components/sonner.js.map +1 -0
- package/dist/components/stepper.d.ts +12 -0
- package/dist/components/stepper.js +22 -0
- package/dist/components/stepper.js.map +1 -0
- package/dist/components/switch.d.ts +5 -0
- package/dist/components/switch.js +16 -0
- package/dist/components/switch.js.map +1 -0
- package/dist/components/table.d.ts +52 -0
- package/dist/components/table.js +112 -0
- package/dist/components/table.js.map +1 -0
- package/dist/components/tabs.d.ts +10 -0
- package/dist/components/tabs.js +29 -0
- package/dist/components/tabs.js.map +1 -0
- package/dist/components/textarea.d.ts +6 -0
- package/dist/components/textarea.js +17 -0
- package/dist/components/textarea.js.map +1 -0
- package/dist/condition-builder/index.d.ts +2 -0
- package/dist/condition-builder/index.js +3 -0
- package/dist/condition-builder/index.js.map +1 -0
- package/dist/context-menu/index.d.ts +2 -0
- package/dist/context-menu/index.js +3 -0
- package/dist/context-menu/index.js.map +1 -0
- package/dist/dropdown/SearchDropdown.d.ts +19 -0
- package/dist/dropdown/SearchDropdown.js +27 -0
- package/dist/dropdown/SearchDropdown.js.map +1 -0
- package/dist/dropdown/index.d.ts +2 -0
- package/dist/dropdown/index.js +3 -0
- package/dist/dropdown/index.js.map +1 -0
- package/dist/editor.d.ts +1 -0
- package/dist/editor.js +2 -0
- package/dist/editor.js.map +1 -0
- package/dist/feedback/index.d.ts +6 -0
- package/dist/feedback/index.js +7 -0
- package/dist/feedback/index.js.map +1 -0
- package/dist/flow.d.ts +1 -0
- package/dist/flow.js +2 -0
- package/dist/flow.js.map +1 -0
- package/dist/hooks/index.d.ts +3 -0
- package/dist/hooks/index.js +4 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/useContextMenuActions.d.ts +16 -0
- package/dist/hooks/useContextMenuActions.js +35 -0
- package/dist/hooks/useContextMenuActions.js.map +1 -0
- package/dist/hooks/useFeatureLayout.d.ts +14 -0
- package/dist/hooks/useFeatureLayout.js +21 -0
- package/dist/hooks/useFeatureLayout.js.map +1 -0
- package/dist/hooks/useTableActions.d.ts +46 -0
- package/dist/hooks/useTableActions.js +71 -0
- package/dist/hooks/useTableActions.js.map +1 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.js +26 -0
- package/dist/index.js.map +1 -0
- package/dist/integrations.d.ts +42 -0
- package/dist/integrations.js +9 -0
- package/dist/integrations.js.map +1 -0
- package/dist/itsm/index.d.ts +7 -0
- package/dist/itsm/index.js +8 -0
- package/dist/itsm/index.js.map +1 -0
- package/dist/locales/ar.json +149 -0
- package/dist/locales/en.json +149 -0
- package/dist/primitives/index.d.ts +11 -0
- package/dist/primitives/index.js +12 -0
- package/dist/primitives/index.js.map +1 -0
- package/dist/progress.d.ts +7 -0
- package/dist/progress.js +20 -0
- package/dist/progress.js.map +1 -0
- package/dist/select/index.d.ts +3 -0
- package/dist/select/index.js +4 -0
- package/dist/select/index.js.map +1 -0
- package/dist/styles.css +2 -0
- package/dist/support/api.d.ts +8 -0
- package/dist/support/api.js +2 -0
- package/dist/support/api.js.map +1 -0
- package/dist/support/types/file.types.d.ts +12 -0
- package/dist/support/types/file.types.js +2 -0
- package/dist/support/types/file.types.js.map +1 -0
- package/dist/support/types/gallery.types.d.ts +22 -0
- package/dist/support/types/gallery.types.js +2 -0
- package/dist/support/types/gallery.types.js.map +1 -0
- package/dist/support/types/governorates.types.d.ts +12 -0
- package/dist/support/types/governorates.types.js +2 -0
- package/dist/support/types/governorates.types.js.map +1 -0
- package/dist/support/types/grade.types.d.ts +7 -0
- package/dist/support/types/grade.types.js +2 -0
- package/dist/support/types/grade.types.js.map +1 -0
- package/dist/support/types/index.d.ts +13 -0
- package/dist/support/types/index.js +14 -0
- package/dist/support/types/index.js.map +1 -0
- package/dist/support/types/metadata.types.d.ts +61 -0
- package/dist/support/types/metadata.types.js +3 -0
- package/dist/support/types/metadata.types.js.map +1 -0
- package/dist/support/types/table.types.d.ts +33 -0
- package/dist/support/types/table.types.js +2 -0
- package/dist/support/types/table.types.js.map +1 -0
- package/dist/support/types/viewCard.types.d.ts +78 -0
- package/dist/support/types/viewCard.types.js +3 -0
- package/dist/support/types/viewCard.types.js.map +1 -0
- package/dist/support/utils/fileUtils.d.ts +1 -0
- package/dist/support/utils/fileUtils.js +2 -0
- package/dist/support/utils/fileUtils.js.map +1 -0
- package/dist/support/utils.d.ts +5 -0
- package/dist/support/utils.js +4 -0
- package/dist/support/utils.js.map +1 -0
- package/dist/table/index.d.ts +6 -0
- package/dist/table/index.js +7 -0
- package/dist/table/index.js.map +1 -0
- package/dist/tasks.d.ts +3 -0
- package/dist/tasks.js +4 -0
- package/dist/tasks.js.map +1 -0
- package/dist/tours/TourContext.d.ts +33 -0
- package/dist/tours/TourContext.js +98 -0
- package/dist/tours/TourContext.js.map +1 -0
- package/dist/tours/TourOverlay.d.ts +7 -0
- package/dist/tours/TourOverlay.js +129 -0
- package/dist/tours/TourOverlay.js.map +1 -0
- package/dist/tours.d.ts +2 -0
- package/dist/tours.js +3 -0
- package/dist/tours.js.map +1 -0
- package/dist/types.d.ts +91 -0
- package/dist/types.js +7 -0
- package/dist/types.js.map +1 -0
- package/dist/typography/index.d.ts +4 -0
- package/dist/typography/index.js +5 -0
- package/dist/typography/index.js.map +1 -0
- package/dist/typography/typography.adapter.d.ts +18 -0
- package/dist/typography/typography.adapter.js +113 -0
- package/dist/typography/typography.adapter.js.map +1 -0
- package/dist/typography/typography.constants.d.ts +56 -0
- package/dist/typography/typography.constants.js +649 -0
- package/dist/typography/typography.constants.js.map +1 -0
- package/dist/typography/typography.types.d.ts +62 -0
- package/dist/typography/typography.types.js +6 -0
- package/dist/typography/typography.types.js.map +1 -0
- package/dist/typography/useTypography.d.ts +25 -0
- package/dist/typography/useTypography.js +158 -0
- package/dist/typography/useTypography.js.map +1 -0
- package/dist/ui/accordion.d.ts +7 -0
- package/dist/ui/accordion.js +18 -0
- package/dist/ui/accordion.js.map +1 -0
- package/dist/ui/avatar.d.ts +11 -0
- package/dist/ui/avatar.js +23 -0
- package/dist/ui/avatar.js.map +1 -0
- package/dist/ui/badge.d.ts +10 -0
- package/dist/ui/badge.js +33 -0
- package/dist/ui/badge.js.map +1 -0
- package/dist/ui/button.d.ts +11 -0
- package/dist/ui/button.js +41 -0
- package/dist/ui/button.js.map +1 -0
- package/dist/ui/card.d.ts +9 -0
- package/dist/ui/card.js +25 -0
- package/dist/ui/card.js.map +1 -0
- package/dist/ui/dialog.d.ts +17 -0
- package/dist/ui/dialog.js +37 -0
- package/dist/ui/dialog.js.map +1 -0
- package/dist/ui/dropdown-menu.d.ts +25 -0
- package/dist/ui/dropdown-menu.js +51 -0
- package/dist/ui/dropdown-menu.js.map +1 -0
- package/dist/ui/index.d.ts +15 -0
- package/dist/ui/index.js +16 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/ui/input.d.ts +3 -0
- package/dist/ui/input.js +7 -0
- package/dist/ui/input.js.map +1 -0
- package/dist/ui/popover.d.ts +10 -0
- package/dist/ui/popover.js +26 -0
- package/dist/ui/popover.js.map +1 -0
- package/dist/ui/select.d.ts +15 -0
- package/dist/ui/select.js +38 -0
- package/dist/ui/select.js.map +1 -0
- package/dist/ui/switch.d.ts +6 -0
- package/dist/ui/switch.js +8 -0
- package/dist/ui/switch.js.map +1 -0
- package/dist/ui/table.d.ts +10 -0
- package/dist/ui/table.js +28 -0
- package/dist/ui/table.js.map +1 -0
- package/dist/ui/tabs.d.ts +11 -0
- package/dist/ui/tabs.js +29 -0
- package/dist/ui/tabs.js.map +1 -0
- package/dist/ui/textarea.d.ts +3 -0
- package/dist/ui/textarea.js +7 -0
- package/dist/ui/textarea.js.map +1 -0
- package/dist/ui/tooltip.d.ts +7 -0
- package/dist/ui/tooltip.js +17 -0
- package/dist/ui/tooltip.js.map +1 -0
- package/dist/workspace/index.d.ts +2 -0
- package/dist/workspace/index.js +3 -0
- package/dist/workspace/index.js.map +1 -0
- package/package.json +61 -4
- package/src/activity/index.ts +2 -0
- package/src/clickup/common/InlineNameTab.tsx +122 -0
- package/src/clickup/common/TaskAssigneeAvatar.tsx +127 -0
- package/src/clickup/common/TaskBreadcrumb.tsx +91 -0
- package/src/clickup/common/TaskCheck.tsx +51 -0
- package/src/clickup/common/TaskContextMenu.tsx +42 -0
- package/src/clickup/common/TaskIcon.tsx +145 -0
- package/src/clickup/common/TaskPriorityBadge.tsx +52 -0
- package/src/clickup/common/TaskRowActionMenu.tsx +43 -0
- package/src/clickup/common/TaskStatusPill.tsx +73 -0
- package/src/clickup/common/WorkspaceButton.tsx +22 -0
- package/src/clickup/common/WorkspaceHeader.tsx +41 -0
- package/src/clickup/common/WorkspaceMenus.tsx +92 -0
- package/src/clickup/common/WorkspaceMessage.tsx +39 -0
- package/src/clickup/common/WorkspaceMetricStrip.tsx +49 -0
- package/src/clickup/common/WorkspacePanel.tsx +27 -0
- package/src/clickup/common/WorkspaceSelect.tsx +173 -0
- package/src/clickup/common/WorkspaceTable.tsx +78 -0
- package/src/clickup/dialogs/ClickUpCommentComposer.tsx +93 -0
- package/src/clickup/dialogs/ClickUpTaskActions.tsx +73 -0
- package/src/clickup/dialogs/ClickUpTaskAssignee.tsx +86 -0
- package/src/clickup/dialogs/ClickUpTaskDescription.tsx +67 -0
- package/src/clickup/dialogs/ClickUpTaskDialog.tsx +187 -0
- package/src/clickup/dialogs/ClickUpTaskDiscussion.tsx +136 -0
- package/src/clickup/dialogs/ClickUpTaskMain.tsx +156 -0
- package/src/clickup/dialogs/ClickUpTaskProperties.tsx +214 -0
- package/src/clickup/elements/TaskCalendarCell.tsx +91 -0
- package/src/clickup/elements/TaskCard.tsx +154 -0
- package/src/clickup/elements/TaskGroup.tsx +208 -0
- package/src/clickup/elements/TaskRow.tsx +172 -0
- package/src/clickup/elements/TaskTableHead.tsx +29 -0
- package/src/clickup/elements/TaskTimelineRow.tsx +77 -0
- package/src/clickup/index.ts +63 -0
- package/src/clickup/task-ui.css +864 -0
- package/src/clickup/toolbar/TaskToolbar.tsx +130 -0
- package/src/clickup/toolbar/TaskViewPicker.tsx +148 -0
- package/src/clickup/toolbar/TaskViewSwitcher.tsx +129 -0
- package/src/clickup/types.ts +79 -0
- package/src/clickup/views/TaskBoardView.tsx +259 -0
- package/src/clickup/views/TaskCalendarView.tsx +410 -0
- package/src/clickup/views/TaskGanttView.tsx +178 -0
- package/src/clickup/views/TaskListView.tsx +95 -0
- package/src/clickup/views/TaskTableView.tsx +192 -0
- package/src/components/ActivityFeed.tsx +440 -0
- package/src/components/AudioPlayer.tsx +179 -0
- package/src/components/BulkActionBar.tsx +72 -0
- package/src/components/Carousel.tsx +107 -0
- package/src/components/ChatBot.tsx +205 -0
- package/src/components/CheckboxCustom.tsx +106 -0
- package/src/components/ClickUpTaskModal.tsx +661 -0
- package/src/components/ConditionBuilder.tsx +322 -0
- package/src/components/ConfirmDialog.tsx +157 -0
- package/src/components/DataCard.tsx +203 -0
- package/src/components/DataTable.tsx +609 -0
- package/src/components/DatePicker.tsx +397 -0
- package/src/components/EmptyState.tsx +105 -0
- package/src/components/Error.tsx +248 -0
- package/src/components/ErrorState.tsx +199 -0
- package/src/components/FileAttachmentChip.tsx +84 -0
- package/src/components/FilterConditionChip.tsx +56 -0
- package/src/components/GalleryCarouselDialog.tsx +439 -0
- package/src/components/HierarchicalSelectionMenu.tsx +432 -0
- package/src/components/InfiniteSelect.tsx +397 -0
- package/src/components/LoadingState.tsx +105 -0
- package/src/components/LucidIconRender.tsx +25 -0
- package/src/components/MasterDetailLayout.tsx +442 -0
- package/src/components/PinnedAttributeRow.tsx +70 -0
- package/src/components/PopUp.tsx +309 -0
- package/src/components/PrioritySignal.tsx +131 -0
- package/src/components/RichTextEditor.tsx +433 -0
- package/src/components/SLACountdown.tsx +133 -0
- package/src/components/StatusBadge.tsx +119 -0
- package/src/components/StatusCards.tsx +78 -0
- package/src/components/StatusProgressBar.tsx +158 -0
- package/src/components/TableActions.tsx +182 -0
- package/src/components/TaskDetailsModal.tsx +7 -0
- package/src/components/ThemedText.tsx +181 -0
- package/src/components/TicketWorkspaceLayout.tsx +63 -0
- package/src/components/TimePicker.tsx +283 -0
- package/src/components/Tooltip.tsx +128 -0
- package/src/components/TreeView.tsx +297 -0
- package/src/components/accordion.tsx +78 -0
- package/src/components/avatar.tsx +107 -0
- package/src/components/badge.tsx +72 -0
- package/src/components/button.tsx +93 -0
- package/src/components/card.tsx +103 -0
- package/src/components/context menu core/context-menu.tsx +304 -0
- package/src/components/context menu core/contextMenuAdvanced.tsx +130 -0
- package/src/components/dialog.tsx +186 -0
- package/src/components/dropdown-menu.tsx +274 -0
- package/src/components/filter/AdvancedFilters.tsx +834 -0
- package/src/components/filter/Filter.tsx +233 -0
- package/src/components/filter/FilterButton.tsx +38 -0
- package/src/components/filter/NormalFilters.tsx +109 -0
- package/src/components/filter/index.ts +5 -0
- package/src/components/filter/types.ts +36 -0
- package/src/components/form-error.tsx +172 -0
- package/src/components/icons.tsx +468 -0
- package/src/components/image.tsx +85 -0
- package/src/components/index.ts +59 -0
- package/src/components/input.tsx +260 -0
- package/src/components/label.tsx +27 -0
- package/src/components/layout/FeatureLayout.tsx +739 -0
- package/src/components/layout/FeatureLayoutExportButton.tsx +93 -0
- package/src/components/layout/FeatureLayoutTabs.tsx +413 -0
- package/src/components/layout/kanban/FeatureLayoutKanban.tsx +386 -0
- package/src/components/layout/kanban/KanbanCard.tsx +132 -0
- package/src/components/layout/kanban/KanbanColumn.tsx +241 -0
- package/src/components/layout/kanban/KanbanToolbar.tsx +77 -0
- package/src/components/layout/kanban/index.ts +6 -0
- package/src/components/layout/kanban/types.ts +96 -0
- package/src/components/popover.tsx +66 -0
- package/src/components/react-flow/FlowGraphHeader.tsx +68 -0
- package/src/components/react-flow/GlowEdge.tsx +238 -0
- package/src/components/react-flow/ReactFlowCanvas.tsx +112 -0
- package/src/components/react-flow/RelationshipFlow.tsx +50 -0
- package/src/components/react-flow/TreeFlowLayout.tsx +187 -0
- package/src/components/react-flow/edges.ts +39 -0
- package/src/components/react-flow/index.ts +9 -0
- package/src/components/react-flow/layout.ts +16 -0
- package/src/components/react-flow/types.ts +103 -0
- package/src/components/react-flow/useFlowGraph.ts +36 -0
- package/src/components/react-flow/useFlowGraphSync.ts +67 -0
- package/src/components/select.tsx +386 -0
- package/src/components/sonner.tsx +58 -0
- package/src/components/stepper.tsx +97 -0
- package/src/components/switch.tsx +46 -0
- package/src/components/table.tsx +577 -0
- package/src/components/tabs.tsx +81 -0
- package/src/components/textarea.tsx +67 -0
- package/src/condition-builder/index.ts +2 -0
- package/src/context-menu/index.ts +2 -0
- package/src/dropdown/SearchDropdown.tsx +145 -0
- package/src/dropdown/index.ts +2 -0
- package/src/editor.ts +1 -0
- package/src/feedback/index.ts +6 -0
- package/src/flow.ts +1 -0
- package/src/hooks/index.ts +3 -0
- package/src/hooks/useContextMenuActions.ts +69 -0
- package/src/hooks/useFeatureLayout.ts +44 -0
- package/src/hooks/useTableActions.ts +146 -0
- package/src/index.ts +27 -0
- package/src/integrations.tsx +11 -0
- package/src/itsm/index.ts +7 -0
- package/src/locales/ar.json +149 -0
- package/src/locales/en.json +149 -0
- package/src/primitives/index.ts +11 -0
- package/src/progress.tsx +87 -0
- package/src/select/index.ts +3 -0
- package/src/support/api.ts +1 -0
- package/src/support/types/file.types.ts +13 -0
- package/src/support/types/gallery.types.ts +22 -0
- package/src/support/types/governorates.types.ts +13 -0
- package/src/support/types/grade.types.ts +7 -0
- package/src/support/types/index.ts +14 -0
- package/src/support/types/metadata.types.ts +93 -0
- package/src/support/types/table.types.ts +45 -0
- package/src/support/types/viewCard.types.ts +100 -0
- package/src/support/utils/fileUtils.ts +1 -0
- package/src/support/utils.ts +3 -0
- package/src/table/index.ts +6 -0
- package/src/tasks.ts +3 -0
- package/src/tours/TourContext.tsx +142 -0
- package/src/tours/TourOverlay.tsx +281 -0
- package/src/tours.ts +2 -0
- package/src/types.ts +138 -0
- package/src/typography/index.ts +4 -0
- package/src/typography/typography.adapter.ts +131 -0
- package/src/typography/typography.constants.ts +700 -0
- package/src/typography/typography.types.ts +156 -0
- package/src/typography/useTypography.ts +211 -0
- package/src/ui/accordion.tsx +66 -0
- package/src/ui/avatar.tsx +106 -0
- package/src/ui/badge.tsx +58 -0
- package/src/ui/button.tsx +69 -0
- package/src/ui/card.tsx +97 -0
- package/src/ui/dialog.tsx +165 -0
- package/src/ui/dropdown-menu.tsx +262 -0
- package/src/ui/index.ts +15 -0
- package/src/ui/input.tsx +22 -0
- package/src/ui/popover.tsx +86 -0
- package/src/ui/select.tsx +193 -0
- package/src/ui/switch.tsx +32 -0
- package/src/ui/table.tsx +119 -0
- package/src/ui/tabs.tsx +89 -0
- package/src/ui/textarea.tsx +21 -0
- package/src/ui/tooltip.tsx +54 -0
- package/src/workspace/index.ts +2 -0
- package/styles.css +532 -0
- package/README.md +0 -3
|
@@ -0,0 +1,661 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Button,
|
|
3
|
+
ConfirmDialog,
|
|
4
|
+
Dialog,
|
|
5
|
+
DialogContent,
|
|
6
|
+
DropdownMenu,
|
|
7
|
+
DropdownMenuContent,
|
|
8
|
+
DropdownMenuItem,
|
|
9
|
+
DropdownMenuTrigger,
|
|
10
|
+
Textarea,
|
|
11
|
+
} from "../index";
|
|
12
|
+
import { cn } from "../support/utils";
|
|
13
|
+
import {
|
|
14
|
+
Calendar,
|
|
15
|
+
CheckSquare,
|
|
16
|
+
ChevronDown,
|
|
17
|
+
Clock,
|
|
18
|
+
FileText,
|
|
19
|
+
MessageSquare,
|
|
20
|
+
Plus,
|
|
21
|
+
Send,
|
|
22
|
+
Tag,
|
|
23
|
+
Trash2,
|
|
24
|
+
UserPlus,
|
|
25
|
+
Users,
|
|
26
|
+
X,
|
|
27
|
+
} from "lucide-react";
|
|
28
|
+
import { useEffect, useState } from "react";
|
|
29
|
+
|
|
30
|
+
export interface TaskNote {
|
|
31
|
+
id: string;
|
|
32
|
+
author: string;
|
|
33
|
+
avatar?: string;
|
|
34
|
+
text: string;
|
|
35
|
+
createdAt: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface TaskSubtask {
|
|
39
|
+
id: string;
|
|
40
|
+
title: string;
|
|
41
|
+
completed: boolean;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface ClickUpTaskData {
|
|
45
|
+
id: string;
|
|
46
|
+
title: string;
|
|
47
|
+
description?: string;
|
|
48
|
+
status: string;
|
|
49
|
+
owner: string;
|
|
50
|
+
assignees?: string[];
|
|
51
|
+
dueDate?: string;
|
|
52
|
+
startDate?: string;
|
|
53
|
+
priority?: string;
|
|
54
|
+
tags?: string[];
|
|
55
|
+
subtasks?: TaskSubtask[];
|
|
56
|
+
notes?: TaskNote[];
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface ClickUpTaskModalProps {
|
|
60
|
+
isOpen: boolean;
|
|
61
|
+
onClose: () => void;
|
|
62
|
+
task: ClickUpTaskData | null;
|
|
63
|
+
onSave?: (updatedTask: ClickUpTaskData) => void;
|
|
64
|
+
onDelete?: (taskId: string) => void;
|
|
65
|
+
onAddNote?: (content: string) => void;
|
|
66
|
+
availableUsers?: string[];
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function ClickUpTaskModal(props: ClickUpTaskModalProps) {
|
|
70
|
+
return props.task ? <TaskModalContent {...props} task={props.task} /> : null;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function TaskModalContent({
|
|
74
|
+
isOpen,
|
|
75
|
+
onClose,
|
|
76
|
+
task,
|
|
77
|
+
onSave,
|
|
78
|
+
onDelete,
|
|
79
|
+
onAddNote,
|
|
80
|
+
availableUsers = [],
|
|
81
|
+
}: Omit<ClickUpTaskModalProps, 'task'> & { task: ClickUpTaskData }) {
|
|
82
|
+
|
|
83
|
+
// Form states synchronized with task prop
|
|
84
|
+
const [title, setTitle] = useState(
|
|
85
|
+
task.title || task.description || "New Task",
|
|
86
|
+
);
|
|
87
|
+
const [description, setDescription] = useState(task.description || "");
|
|
88
|
+
const [status, setStatus] = useState(task.status || "Pending");
|
|
89
|
+
const [priority, setPriority] = useState(task.priority || "Normal");
|
|
90
|
+
const [owner, setOwner] = useState(task.owner || "Platform Owner");
|
|
91
|
+
const [assignees, setAssignees] = useState<string[]>(
|
|
92
|
+
task.assignees || [task.owner || "Platform Owner"],
|
|
93
|
+
);
|
|
94
|
+
const [startDate, setStartDate] = useState(task.startDate || "");
|
|
95
|
+
const [dueDate, setDueDate] = useState(task.dueDate || "");
|
|
96
|
+
const [tags, setTags] = useState<string[]>(task.tags || []);
|
|
97
|
+
const [newTagInput, setNewTagInput] = useState("");
|
|
98
|
+
const [showTagInput, setShowTagInput] = useState(false);
|
|
99
|
+
|
|
100
|
+
// Subtasks
|
|
101
|
+
const [subtasks, setSubtasks] = useState<TaskSubtask[]>(
|
|
102
|
+
task.subtasks || [],
|
|
103
|
+
);
|
|
104
|
+
const [newSubtaskTitle, setNewSubtaskTitle] = useState("");
|
|
105
|
+
|
|
106
|
+
// Notes / Comments Activity Timeline
|
|
107
|
+
const [notes, setNotes] = useState<TaskNote[]>(task.notes || []);
|
|
108
|
+
const [newNoteText, setNewNoteText] = useState("");
|
|
109
|
+
const [showDeleteConfirm, setShowDeleteConfirm] = useState(false);
|
|
110
|
+
|
|
111
|
+
// Sync state only when the modal opens
|
|
112
|
+
useEffect(() => {
|
|
113
|
+
if (isOpen && task) {
|
|
114
|
+
setTitle(task.title || task.description || "New Task");
|
|
115
|
+
setDescription(task.description || "");
|
|
116
|
+
setStatus(task.status || "Pending");
|
|
117
|
+
setPriority(task.priority || "Normal");
|
|
118
|
+
setOwner(task.owner || "Platform Owner");
|
|
119
|
+
setAssignees(task.assignees || [task.owner || "Platform Owner"]);
|
|
120
|
+
setStartDate(task.startDate || "");
|
|
121
|
+
setDueDate(task.dueDate || "");
|
|
122
|
+
setTags(task.tags || []);
|
|
123
|
+
setSubtasks(task.subtasks || []);
|
|
124
|
+
setNotes(task.notes || []);
|
|
125
|
+
}
|
|
126
|
+
}, [isOpen, task]);
|
|
127
|
+
|
|
128
|
+
const handleAddAssignee = (user: string) => {
|
|
129
|
+
if (!assignees.includes(user)) {
|
|
130
|
+
setAssignees([...assignees, user]);
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
const handleRemoveAssignee = (user: string) => {
|
|
135
|
+
setAssignees(assignees.filter((u) => u !== user));
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
const handleToggleSubtask = (subtaskId: string) => {
|
|
139
|
+
setSubtasks(
|
|
140
|
+
subtasks.map((st) =>
|
|
141
|
+
st.id === subtaskId ? { ...st, completed: !st.completed } : st,
|
|
142
|
+
),
|
|
143
|
+
);
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
const handleAddSubtask = () => {
|
|
147
|
+
if (!newSubtaskTitle.trim()) return;
|
|
148
|
+
setSubtasks([
|
|
149
|
+
...subtasks,
|
|
150
|
+
{
|
|
151
|
+
id: Date.now().toString(),
|
|
152
|
+
title: newSubtaskTitle,
|
|
153
|
+
completed: false,
|
|
154
|
+
},
|
|
155
|
+
]);
|
|
156
|
+
setNewSubtaskTitle("");
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
const handleDeleteSubtask = (subtaskId: string) => {
|
|
160
|
+
setSubtasks(subtasks.filter((st) => st.id !== subtaskId));
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
const handleAddTag = () => {
|
|
164
|
+
if (newTagInput.trim() && !tags.includes(newTagInput.trim())) {
|
|
165
|
+
setTags([...tags, newTagInput.trim()]);
|
|
166
|
+
setNewTagInput("");
|
|
167
|
+
setShowTagInput(false);
|
|
168
|
+
}
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
const handleAddNote = () => {
|
|
172
|
+
if (!newNoteText.trim()) return;
|
|
173
|
+
const newNote: TaskNote = {
|
|
174
|
+
id: Date.now().toString(),
|
|
175
|
+
author: owner || "Platform Owner",
|
|
176
|
+
avatar: (owner || "PO").substring(0, 2).toUpperCase(),
|
|
177
|
+
text: newNoteText,
|
|
178
|
+
createdAt: "Just now",
|
|
179
|
+
};
|
|
180
|
+
setNotes([...notes, newNote]);
|
|
181
|
+
if (onAddNote) {
|
|
182
|
+
onAddNote(newNoteText);
|
|
183
|
+
}
|
|
184
|
+
setNewNoteText("");
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
const handleSaveTask = () => {
|
|
188
|
+
const updatedTask: ClickUpTaskData = {
|
|
189
|
+
...task,
|
|
190
|
+
title,
|
|
191
|
+
description,
|
|
192
|
+
status,
|
|
193
|
+
priority,
|
|
194
|
+
owner,
|
|
195
|
+
assignees,
|
|
196
|
+
startDate,
|
|
197
|
+
dueDate,
|
|
198
|
+
tags,
|
|
199
|
+
subtasks,
|
|
200
|
+
notes,
|
|
201
|
+
};
|
|
202
|
+
if (onSave) {
|
|
203
|
+
onSave(updatedTask);
|
|
204
|
+
}
|
|
205
|
+
onClose();
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
const statusColors: Record<string, string> = {
|
|
209
|
+
Pending: "bg-amber-500/10 text-amber-400 border-amber-500/30",
|
|
210
|
+
"In Progress": "bg-blue-500/10 text-blue-400 border-blue-500/30",
|
|
211
|
+
Completed: "bg-emerald-500/10 text-emerald-400 border-emerald-500/30",
|
|
212
|
+
Blocked: "bg-red-500/10 text-red-400 border-red-500/30",
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
const priorityColors: Record<string, string> = {
|
|
216
|
+
Critical:
|
|
217
|
+
"bg-dashboard-destructive/15 text-dashboard-destructive border border-dashboard-destructive/30",
|
|
218
|
+
High: "bg-amber-500/15 text-amber-400 border border-amber-500/30",
|
|
219
|
+
Medium: "bg-sky-500/15 text-sky-400 border border-sky-500/30",
|
|
220
|
+
Low: "bg-dashboard-secondary text-dashboard-muted-foreground border border-dashboard-border",
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
return (
|
|
224
|
+
<Dialog open={isOpen} onOpenChange={(open) => !open && onClose()}>
|
|
225
|
+
<DialogContent
|
|
226
|
+
showCloseButton={false}
|
|
227
|
+
className="sm:max-w-5xl max-w-5xl h-[85vh] max-h-[85vh] p-0! bg-dashboard-card border-dashboard-border text-dashboard-foreground overflow-hidden rounded-2xl shadow-2xl flex flex-col"
|
|
228
|
+
>
|
|
229
|
+
{/* Modal Top Header Bar */}
|
|
230
|
+
<div className="px-6 py-3.5 border-b border-dashboard-border bg-dashboard-card flex items-center justify-between shrink-0">
|
|
231
|
+
<div className="flex items-center gap-2 text-xs text-dashboard-muted-foreground">
|
|
232
|
+
<span className="font-semibold text-dashboard-foreground flex items-center gap-1.5">
|
|
233
|
+
<CheckSquare className="w-4 h-4 text-emerald-400" />
|
|
234
|
+
Task Workspace
|
|
235
|
+
</span>
|
|
236
|
+
<span>/</span>
|
|
237
|
+
<span className="truncate max-w-50 text-dashboard-muted-foreground">
|
|
238
|
+
Change Tasks
|
|
239
|
+
</span>
|
|
240
|
+
<span>/</span>
|
|
241
|
+
<span className="text-dashboard-foreground font-bold font-mono">
|
|
242
|
+
{String(task.id).length >= 10 &&
|
|
243
|
+
!isNaN(Number(task.id)) &&
|
|
244
|
+
Number(task.id) > 1000000000
|
|
245
|
+
? "New Task"
|
|
246
|
+
: `#${task.id}`}
|
|
247
|
+
</span>
|
|
248
|
+
</div>
|
|
249
|
+
|
|
250
|
+
<div className="flex items-center gap-3">
|
|
251
|
+
{onDelete && (
|
|
252
|
+
<Button
|
|
253
|
+
type="button"
|
|
254
|
+
variant="ghost"
|
|
255
|
+
size="sm"
|
|
256
|
+
onClick={() => setShowDeleteConfirm(true)}
|
|
257
|
+
className="h-8 px-2.5 text-xs text-red-400 hover:text-red-300 hover:bg-red-500/10 rounded-lg flex items-center gap-1"
|
|
258
|
+
>
|
|
259
|
+
<Trash2 className="w-3.5 h-3.5" />
|
|
260
|
+
<span>Delete</span>
|
|
261
|
+
</Button>
|
|
262
|
+
)}
|
|
263
|
+
<Button
|
|
264
|
+
type="button"
|
|
265
|
+
onClick={handleSaveTask}
|
|
266
|
+
className="h-8 px-4 text-xs font-semibold rounded-lg bg-emerald-500 hover:bg-emerald-600 text-white shadow-sm"
|
|
267
|
+
>
|
|
268
|
+
Save Changes
|
|
269
|
+
</Button>
|
|
270
|
+
<button
|
|
271
|
+
type="button"
|
|
272
|
+
onClick={onClose}
|
|
273
|
+
className="text-dashboard-muted-foreground hover:text-dashboard-foreground p-1 rounded-lg hover:bg-dashboard-secondary transition-colors"
|
|
274
|
+
>
|
|
275
|
+
<X className="w-5 h-5" />
|
|
276
|
+
</button>
|
|
277
|
+
</div>
|
|
278
|
+
</div>
|
|
279
|
+
|
|
280
|
+
{/* ClickUp Split Body: Left Main Content (2/3) + Right Activity Sidebar (1/3) */}
|
|
281
|
+
<div className="flex-1 overflow-hidden flex flex-col md:flex-row min-h-0 bg-dashboard-card">
|
|
282
|
+
{/* Left Main Content Area */}
|
|
283
|
+
<div className="flex-1 overflow-y-auto p-6 space-y-6 border-r border-dashboard-border hide-scrollbar">
|
|
284
|
+
{/* Task Title input */}
|
|
285
|
+
<div className="space-y-2">
|
|
286
|
+
<input
|
|
287
|
+
type="text"
|
|
288
|
+
value={title}
|
|
289
|
+
onChange={(e) => setTitle(e.target.value)}
|
|
290
|
+
placeholder="Task Title..."
|
|
291
|
+
className="w-full bg-transparent text-xl font-bold text-dashboard-foreground outline-none border-b border-transparent hover:border-dashboard-border focus:border-dashboard-primary pb-1 transition-colors"
|
|
292
|
+
/>
|
|
293
|
+
</div>
|
|
294
|
+
|
|
295
|
+
{/* Metadata Key-Value Property Block */}
|
|
296
|
+
<div className="grid grid-cols-2 gap-4 bg-dashboard-secondary/60 border border-dashboard-border rounded-xl p-4 text-xs">
|
|
297
|
+
{/* Status Selector */}
|
|
298
|
+
<div className="flex items-center gap-3">
|
|
299
|
+
<span className="w-20 text-dashboard-muted-foreground font-medium flex items-center gap-1.5 shrink-0">
|
|
300
|
+
<Clock className="w-3.5 h-3.5" /> Status
|
|
301
|
+
</span>
|
|
302
|
+
<DropdownMenu>
|
|
303
|
+
<DropdownMenuTrigger
|
|
304
|
+
className={cn(
|
|
305
|
+
"px-2.5 py-1 rounded-lg text-[11px] font-semibold border flex items-center gap-1.5 cursor-pointer transition-all outline-none",
|
|
306
|
+
statusColors[status] ||
|
|
307
|
+
"bg-dashboard-card text-dashboard-foreground border-dashboard-border",
|
|
308
|
+
)}
|
|
309
|
+
>
|
|
310
|
+
<span>{status}</span>
|
|
311
|
+
<ChevronDown className="w-3 h-3 opacity-60 shrink-0" />
|
|
312
|
+
</DropdownMenuTrigger>
|
|
313
|
+
<DropdownMenuContent className="w-36 min-w-36 bg-dashboard-card border-dashboard-border text-dashboard-foreground">
|
|
314
|
+
{[
|
|
315
|
+
"Pending",
|
|
316
|
+
"In Progress",
|
|
317
|
+
"Completed",
|
|
318
|
+
"Blocked",
|
|
319
|
+
].map((st) => (
|
|
320
|
+
<DropdownMenuItem
|
|
321
|
+
key={st}
|
|
322
|
+
onClick={() => setStatus(st)}
|
|
323
|
+
className="flex items-center gap-2 text-xs cursor-pointer"
|
|
324
|
+
>
|
|
325
|
+
<span
|
|
326
|
+
className={cn(
|
|
327
|
+
"w-2 h-2 rounded-full",
|
|
328
|
+
st === "Pending"
|
|
329
|
+
? "bg-amber-400"
|
|
330
|
+
: st ===
|
|
331
|
+
"In Progress"
|
|
332
|
+
? "bg-blue-400"
|
|
333
|
+
: st ===
|
|
334
|
+
"Completed"
|
|
335
|
+
? "bg-emerald-400"
|
|
336
|
+
: "bg-red-400",
|
|
337
|
+
)}
|
|
338
|
+
/>
|
|
339
|
+
<span>{st}</span>
|
|
340
|
+
</DropdownMenuItem>
|
|
341
|
+
))}
|
|
342
|
+
</DropdownMenuContent>
|
|
343
|
+
</DropdownMenu>
|
|
344
|
+
</div>
|
|
345
|
+
|
|
346
|
+
{/* Priority Selector */}
|
|
347
|
+
<div className="flex items-center gap-3">
|
|
348
|
+
<span className="w-20 text-dashboard-muted-foreground font-medium flex items-center gap-1.5 shrink-0">
|
|
349
|
+
<Tag className="w-3.5 h-3.5" /> Priority
|
|
350
|
+
</span>
|
|
351
|
+
<DropdownMenu>
|
|
352
|
+
<DropdownMenuTrigger
|
|
353
|
+
className={cn(
|
|
354
|
+
"px-2.5 py-1 rounded-lg text-[11px] font-semibold border flex items-center gap-1.5 cursor-pointer transition-all outline-none",
|
|
355
|
+
priorityColors[priority] ||
|
|
356
|
+
"bg-dashboard-card text-dashboard-foreground border-dashboard-border",
|
|
357
|
+
)}
|
|
358
|
+
>
|
|
359
|
+
<span>{priority}</span>
|
|
360
|
+
<ChevronDown className="w-3 h-3 opacity-60 shrink-0" />
|
|
361
|
+
</DropdownMenuTrigger>
|
|
362
|
+
<DropdownMenuContent className="w-36 min-w-36 bg-dashboard-card border-dashboard-border text-dashboard-foreground">
|
|
363
|
+
{[
|
|
364
|
+
"Low",
|
|
365
|
+
"Medium",
|
|
366
|
+
"High",
|
|
367
|
+
"Critical",
|
|
368
|
+
].map((pr) => (
|
|
369
|
+
<DropdownMenuItem
|
|
370
|
+
key={pr}
|
|
371
|
+
onClick={() => setPriority(pr)}
|
|
372
|
+
className="flex items-center gap-2 text-xs cursor-pointer"
|
|
373
|
+
>
|
|
374
|
+
<span
|
|
375
|
+
className={cn(
|
|
376
|
+
"w-2 h-2 rounded-full",
|
|
377
|
+
pr === "Critical"
|
|
378
|
+
? "bg-dashboard-destructive"
|
|
379
|
+
: pr === "High"
|
|
380
|
+
? "bg-amber-400"
|
|
381
|
+
: pr === "Medium"
|
|
382
|
+
? "bg-sky-400"
|
|
383
|
+
: "bg-dashboard-muted-foreground",
|
|
384
|
+
)}
|
|
385
|
+
/>
|
|
386
|
+
<span>{pr}</span>
|
|
387
|
+
</DropdownMenuItem>
|
|
388
|
+
))}
|
|
389
|
+
</DropdownMenuContent>
|
|
390
|
+
</DropdownMenu>
|
|
391
|
+
</div>
|
|
392
|
+
|
|
393
|
+
{/* Assignees */}
|
|
394
|
+
<div className="flex items-start gap-3 col-span-2 pt-2 border-t border-dashboard-border">
|
|
395
|
+
<span className="w-20 text-dashboard-muted-foreground font-medium flex items-center gap-1.5 shrink-0 pt-1">
|
|
396
|
+
<Users className="w-3.5 h-3.5" /> Assignees
|
|
397
|
+
</span>
|
|
398
|
+
<div className="flex-1 flex items-center gap-2 flex-wrap">
|
|
399
|
+
{assignees.map((user) => (
|
|
400
|
+
<div
|
|
401
|
+
key={user}
|
|
402
|
+
className="flex items-center gap-1.5 bg-dashboard-card border border-dashboard-border px-2.5 py-1 rounded-full text-[11px] font-medium text-dashboard-foreground"
|
|
403
|
+
>
|
|
404
|
+
<div className="w-4 h-4 rounded-full bg-dashboard-primary/30 text-dashboard-primary flex items-center justify-center text-[9px] font-bold">
|
|
405
|
+
{user
|
|
406
|
+
.substring(0, 2)
|
|
407
|
+
.toUpperCase()}
|
|
408
|
+
</div>
|
|
409
|
+
<span>{user}</span>
|
|
410
|
+
<button
|
|
411
|
+
type="button"
|
|
412
|
+
onClick={() =>
|
|
413
|
+
handleRemoveAssignee(user)
|
|
414
|
+
}
|
|
415
|
+
className="text-dashboard-muted-foreground hover:text-red-400 ml-0.5"
|
|
416
|
+
>
|
|
417
|
+
<X className="w-3 h-3" />
|
|
418
|
+
</button>
|
|
419
|
+
</div>
|
|
420
|
+
))}
|
|
421
|
+
|
|
422
|
+
<DropdownMenu>
|
|
423
|
+
<DropdownMenuTrigger className="px-2.5 py-1 rounded-full bg-dashboard-card hover:bg-dashboard-secondary border border-dashed border-dashboard-border text-[11px] text-dashboard-muted-foreground hover:text-dashboard-foreground flex items-center gap-1 cursor-pointer transition-colors outline-none">
|
|
424
|
+
<UserPlus className="w-3 h-3" />
|
|
425
|
+
<span>Add Assignee</span>
|
|
426
|
+
</DropdownMenuTrigger>
|
|
427
|
+
<DropdownMenuContent className="w-48 min-w-48 bg-dashboard-card border-dashboard-border text-dashboard-foreground">
|
|
428
|
+
{availableUsers.map((u) => (
|
|
429
|
+
<DropdownMenuItem
|
|
430
|
+
key={u}
|
|
431
|
+
onClick={() =>
|
|
432
|
+
handleAddAssignee(u)
|
|
433
|
+
}
|
|
434
|
+
className="text-xs cursor-pointer"
|
|
435
|
+
>
|
|
436
|
+
{u}
|
|
437
|
+
</DropdownMenuItem>
|
|
438
|
+
))}
|
|
439
|
+
</DropdownMenuContent>
|
|
440
|
+
</DropdownMenu>
|
|
441
|
+
</div>
|
|
442
|
+
</div>
|
|
443
|
+
|
|
444
|
+
{/* Dates */}
|
|
445
|
+
<div className="flex items-center gap-3 col-span-2 pt-2 border-t border-dashboard-border">
|
|
446
|
+
<span className="w-20 text-dashboard-muted-foreground font-medium flex items-center gap-1.5 shrink-0">
|
|
447
|
+
<Calendar className="w-3.5 h-3.5" /> Dates
|
|
448
|
+
</span>
|
|
449
|
+
<div className="flex items-center gap-4">
|
|
450
|
+
<div className="flex items-center gap-1.5">
|
|
451
|
+
<span className="text-dashboard-muted-foreground text-[11px]">
|
|
452
|
+
Start:
|
|
453
|
+
</span>
|
|
454
|
+
<input
|
|
455
|
+
type="date"
|
|
456
|
+
value={startDate}
|
|
457
|
+
min={
|
|
458
|
+
new Date()
|
|
459
|
+
.toISOString()
|
|
460
|
+
.split("T")[0]
|
|
461
|
+
}
|
|
462
|
+
onChange={(e) => {
|
|
463
|
+
const newStartDate =
|
|
464
|
+
e.target.value;
|
|
465
|
+
setStartDate(newStartDate);
|
|
466
|
+
if (
|
|
467
|
+
dueDate &&
|
|
468
|
+
newStartDate > dueDate
|
|
469
|
+
) {
|
|
470
|
+
setDueDate(newStartDate);
|
|
471
|
+
}
|
|
472
|
+
}}
|
|
473
|
+
className="bg-dashboard-card border border-dashboard-border rounded-lg px-2.5 py-1 text-xs text-dashboard-foreground outline-none focus:border-dashboard-primary"
|
|
474
|
+
/>
|
|
475
|
+
</div>
|
|
476
|
+
<div className="flex items-center gap-1.5">
|
|
477
|
+
<span className="text-dashboard-muted-foreground text-[11px]">
|
|
478
|
+
Due:
|
|
479
|
+
</span>
|
|
480
|
+
<input
|
|
481
|
+
type="date"
|
|
482
|
+
value={dueDate}
|
|
483
|
+
min={
|
|
484
|
+
startDate ||
|
|
485
|
+
new Date()
|
|
486
|
+
.toISOString()
|
|
487
|
+
.split("T")[0]
|
|
488
|
+
}
|
|
489
|
+
onChange={(e) =>
|
|
490
|
+
setDueDate(e.target.value)
|
|
491
|
+
}
|
|
492
|
+
className="bg-dashboard-card border border-dashboard-border rounded-lg px-2.5 py-1 text-xs text-dashboard-foreground outline-none focus:border-dashboard-primary"
|
|
493
|
+
/>
|
|
494
|
+
</div>
|
|
495
|
+
</div>
|
|
496
|
+
</div>
|
|
497
|
+
|
|
498
|
+
{/* Tags */}
|
|
499
|
+
<div className="flex items-center gap-3 col-span-2 pt-2 border-t border-dashboard-border">
|
|
500
|
+
<span className="w-20 text-dashboard-muted-foreground font-medium flex items-center gap-1.5 shrink-0">
|
|
501
|
+
<Tag className="w-3.5 h-3.5" /> Tags
|
|
502
|
+
</span>
|
|
503
|
+
<div className="flex items-center gap-2 flex-wrap">
|
|
504
|
+
{tags.map((tg) => (
|
|
505
|
+
<span
|
|
506
|
+
key={tg}
|
|
507
|
+
className="px-2.5 py-0.5 rounded-lg bg-dashboard-primary/10 text-dashboard-primary border border-dashboard-primary/20 text-[11px] font-medium"
|
|
508
|
+
>
|
|
509
|
+
#{tg}
|
|
510
|
+
</span>
|
|
511
|
+
))}
|
|
512
|
+
{showTagInput ? (
|
|
513
|
+
<div className="flex items-center gap-1">
|
|
514
|
+
<input
|
|
515
|
+
type="text"
|
|
516
|
+
value={newTagInput}
|
|
517
|
+
onChange={(e) =>
|
|
518
|
+
setNewTagInput(
|
|
519
|
+
e.target.value,
|
|
520
|
+
)
|
|
521
|
+
}
|
|
522
|
+
onKeyDown={(e) =>
|
|
523
|
+
e.key === "Enter" &&
|
|
524
|
+
handleAddTag()
|
|
525
|
+
}
|
|
526
|
+
placeholder="Tag name..."
|
|
527
|
+
className="bg-dashboard-card border border-dashboard-border rounded-lg px-2 py-0.5 text-xs text-dashboard-foreground w-24 outline-none"
|
|
528
|
+
autoFocus
|
|
529
|
+
/>
|
|
530
|
+
<button
|
|
531
|
+
type="button"
|
|
532
|
+
onClick={handleAddTag}
|
|
533
|
+
className="text-emerald-400 hover:text-emerald-300 text-xs font-bold px-1"
|
|
534
|
+
>
|
|
535
|
+
Add
|
|
536
|
+
</button>
|
|
537
|
+
</div>
|
|
538
|
+
) : (
|
|
539
|
+
<button
|
|
540
|
+
type="button"
|
|
541
|
+
onClick={() =>
|
|
542
|
+
setShowTagInput(true)
|
|
543
|
+
}
|
|
544
|
+
className="text-xs text-dashboard-muted-foreground hover:text-dashboard-foreground flex items-center gap-1"
|
|
545
|
+
>
|
|
546
|
+
<Plus className="w-3 h-3" /> Add Tag
|
|
547
|
+
</button>
|
|
548
|
+
)}
|
|
549
|
+
</div>
|
|
550
|
+
</div>
|
|
551
|
+
</div>
|
|
552
|
+
|
|
553
|
+
{/* Description Section */}
|
|
554
|
+
<div className="space-y-2">
|
|
555
|
+
<label className="text-xs font-bold text-dashboard-muted-foreground uppercase tracking-wider flex items-center gap-1.5">
|
|
556
|
+
<FileText className="w-3.5 h-3.5 text-emerald-400" />
|
|
557
|
+
Description
|
|
558
|
+
</label>
|
|
559
|
+
<Textarea
|
|
560
|
+
value={description}
|
|
561
|
+
onChange={(e) => setDescription(e.target.value)}
|
|
562
|
+
placeholder="Add detailed instructions, technical scope, or prerequisites..."
|
|
563
|
+
className="min-h-28 bg-dashboard-secondary border-dashboard-border text-dashboard-foreground placeholder:text-dashboard-muted-foreground rounded-xl text-xs leading-relaxed"
|
|
564
|
+
/>
|
|
565
|
+
</div>
|
|
566
|
+
</div>
|
|
567
|
+
|
|
568
|
+
{/* Right Activity & Notes Sidebar (ClickUp 1/3 Panel) */}
|
|
569
|
+
<div className="w-full md:w-80 bg-dashboard-card flex flex-col shrink-0 min-h-0 border-t md:border-t-0 md:border-l border-dashboard-border">
|
|
570
|
+
{/* Sidebar Header */}
|
|
571
|
+
<div className="px-4 py-3.5 border-b border-dashboard-border flex items-center justify-between shrink-0 bg-dashboard-card">
|
|
572
|
+
<span className="text-xs font-bold text-dashboard-foreground flex items-center gap-1.5">
|
|
573
|
+
<MessageSquare className="w-3.5 h-3.5 text-blue-400" />
|
|
574
|
+
Activity & Notes ({notes.length})
|
|
575
|
+
</span>
|
|
576
|
+
</div>
|
|
577
|
+
|
|
578
|
+
{/* Scrollable Notes List */}
|
|
579
|
+
<div className="flex-1 overflow-y-auto p-4 space-y-3 min-h-0 hide-scrollbar bg-dashboard-card">
|
|
580
|
+
{notes.map((note) => (
|
|
581
|
+
<div
|
|
582
|
+
key={note.id}
|
|
583
|
+
className="bg-dashboard-secondary border border-dashboard-border rounded-xl p-3 space-y-2 text-xs"
|
|
584
|
+
>
|
|
585
|
+
<div className="flex items-center justify-between">
|
|
586
|
+
<div className="flex items-center gap-2">
|
|
587
|
+
<div className="w-5 h-5 rounded-full bg-dashboard-primary/30 text-dashboard-primary flex items-center justify-center font-bold text-[9px]">
|
|
588
|
+
{note.avatar || "PO"}
|
|
589
|
+
</div>
|
|
590
|
+
<span className="font-semibold text-dashboard-foreground">
|
|
591
|
+
{note.author}
|
|
592
|
+
</span>
|
|
593
|
+
</div>
|
|
594
|
+
<span className="text-[10px] text-dashboard-muted-foreground">
|
|
595
|
+
{note.createdAt}
|
|
596
|
+
</span>
|
|
597
|
+
</div>
|
|
598
|
+
<p className="text-dashboard-muted-foreground leading-relaxed">
|
|
599
|
+
{note.text}
|
|
600
|
+
</p>
|
|
601
|
+
</div>
|
|
602
|
+
))}
|
|
603
|
+
</div>
|
|
604
|
+
|
|
605
|
+
{/* Note Composer Box */}
|
|
606
|
+
<div className="p-3 border-t border-dashboard-border bg-dashboard-card shrink-0 space-y-2">
|
|
607
|
+
<Textarea
|
|
608
|
+
value={newNoteText}
|
|
609
|
+
onChange={(e) => setNewNoteText(e.target.value)}
|
|
610
|
+
placeholder="Mention @user or write note..."
|
|
611
|
+
className="min-h-16 bg-dashboard-secondary border-dashboard-border text-dashboard-foreground placeholder:text-dashboard-muted-foreground text-xs rounded-xl p-2.5"
|
|
612
|
+
/>
|
|
613
|
+
<div className="flex items-center justify-end">
|
|
614
|
+
{/* <div className="flex items-center gap-1 text-dashboard-muted-foreground">
|
|
615
|
+
<button
|
|
616
|
+
type="button"
|
|
617
|
+
className="p-1 hover:text-dashboard-foreground"
|
|
618
|
+
>
|
|
619
|
+
<Paperclip className="w-3.5 h-3.5" />
|
|
620
|
+
</button>
|
|
621
|
+
<button
|
|
622
|
+
type="button"
|
|
623
|
+
className="p-1 hover:text-dashboard-foreground"
|
|
624
|
+
>
|
|
625
|
+
<Smile className="w-3.5 h-3.5" />
|
|
626
|
+
</button>
|
|
627
|
+
</div> */}
|
|
628
|
+
<Button
|
|
629
|
+
type="button"
|
|
630
|
+
onClick={handleAddNote}
|
|
631
|
+
className="h-7 px-3 text-xs font-semibold bg-emerald-500 hover:bg-emerald-600 text-white rounded-lg flex items-center gap-1"
|
|
632
|
+
>
|
|
633
|
+
<Send className="w-3 h-3" />
|
|
634
|
+
<span>Send</span>
|
|
635
|
+
</Button>
|
|
636
|
+
</div>
|
|
637
|
+
</div>
|
|
638
|
+
</div>
|
|
639
|
+
</div>
|
|
640
|
+
</DialogContent>
|
|
641
|
+
|
|
642
|
+
{/* Confirm Delete Dialog */}
|
|
643
|
+
<ConfirmDialog
|
|
644
|
+
open={showDeleteConfirm}
|
|
645
|
+
onOpenChange={setShowDeleteConfirm}
|
|
646
|
+
title="Delete Task"
|
|
647
|
+
description={`Are you sure you want to delete "${title || "this task"}"? This action cannot be undone.`}
|
|
648
|
+
variant="danger"
|
|
649
|
+
confirmText="Delete Task"
|
|
650
|
+
cancelText="Cancel"
|
|
651
|
+
onConfirm={() => {
|
|
652
|
+
if (onDelete && task) {
|
|
653
|
+
onDelete(task.id);
|
|
654
|
+
}
|
|
655
|
+
setShowDeleteConfirm(false);
|
|
656
|
+
onClose();
|
|
657
|
+
}}
|
|
658
|
+
/>
|
|
659
|
+
</Dialog>
|
|
660
|
+
);
|
|
661
|
+
}
|