goobs-frontend 0.8.28 → 0.8.29

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "goobs-frontend",
3
- "version": "0.8.28",
3
+ "version": "0.8.29",
4
4
  "type": "module",
5
5
  "description": "A comprehensive React-based UI library built on Material-UI, offering a wide range of customizable components including grids, typography, buttons, cards, forms, navigation, pricing tables, steppers, tooltips, accordions, and more. Designed for building responsive and consistent user interfaces with advanced features like form validation, theming, and code syntax highlighting.",
6
6
  "license": "MIT",
@@ -1,14 +1,17 @@
1
- // src\components\FormProjectBoard\index.tsx
1
+ // src/components/FormProjectBoard/index.tsx
2
+
2
3
  'use client'
3
4
 
4
5
  import React from 'react'
5
6
  import { Box } from '@mui/material'
6
7
  import ContentSection from '../../Content'
8
+ // Import the ProjectBoardProps type from your types folder:
7
9
  import { ProjectBoardProps } from '../../ProjectBoard/types'
8
10
 
9
11
  /**
10
- * Props for FormProjectBoard.
11
- * It's similar to FormDataGrid but for a project board.
12
+ * Props for FormProjectBoard:
13
+ * - A simple container that shows a title, description,
14
+ * and then renders a ProjectBoard via ContentSection.
12
15
  */
13
16
  export interface FormProjectBoardProps {
14
17
  /** Title text displayed above the project board. */
@@ -96,19 +99,9 @@ function FormProjectBoard({
96
99
  gridconfig: { gridwidth: '100%' },
97
100
  },
98
101
  projectboard: {
99
- /**
100
- * We must pass ALL the props that the final ProjectBoard expects:
101
- * - columns
102
- * - tasks
103
- * - rawStatuses, rawSubStatuses, etc.
104
- * - variant
105
- * - boardType
106
- * - onUpdateTask
107
- * - and optionally "company" if used
108
- */
109
- variant: projectboard.variant, // <-- IMPORTANT
110
- boardType: projectboard.boardType, // <-- IMPORTANT
111
-
102
+ // Pass along all props that ProjectBoard needs:
103
+ variant: projectboard.variant,
104
+ boardType: projectboard.boardType,
112
105
  company: projectboard.company,
113
106
 
114
107
  columns: projectboard.columns,
@@ -123,9 +116,21 @@ function FormProjectBoard({
123
116
  rawEmployees: projectboard.rawEmployees,
124
117
  rawSeverityLevels: projectboard.rawSeverityLevels,
125
118
 
126
- onUpdateTask: projectboard.onUpdateTask, // <-- If you want ProjectBoard to update tasks
119
+ // Callbacks / props that may be in ProjectBoardProps:
120
+ onComment: projectboard.onComment,
121
+ onEdit: projectboard.onEdit,
122
+ onDelete: projectboard.onDelete,
123
+ onDuplicate: projectboard.onDuplicate,
124
+ onCloseTask: projectboard.onCloseTask,
125
+ onEditComment: projectboard.onEditComment,
126
+
127
+ // If controlling ShowTask from a parent:
128
+ showTaskOpen: projectboard.showTaskOpen,
129
+
130
+ // For restricting comment edits, etc.
131
+ currentUserName: projectboard.currentUserName,
127
132
 
128
- // If you want to position it in a certain row/column in your custom grid:
133
+ // Example column placement in your grid:
129
134
  columnconfig: {
130
135
  row: 1,
131
136
  column: 1,