@industry-theme/backlogmd-kanban-panel 1.0.35 → 1.0.36

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.
@@ -1 +1 @@
1
- {"version":3,"file":"KanbanPanel.d.ts","sourceRoot":"","sources":["../../src/panels/KanbanPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6E,MAAM,OAAO,CAAC;AAelG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAgBpD;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA+qCrD,CAAC"}
1
+ {"version":3,"file":"KanbanPanel.d.ts","sourceRoot":"","sources":["../../src/panels/KanbanPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6E,MAAM,OAAO,CAAC;AAelG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAgBpD;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA8qCrD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Core, type Task } from '@backlog-md/core';
1
+ import { Core, type Task, DEFAULT_TASK_STATUSES } from '@backlog-md/core';
2
2
  import type { PanelContextValue, PanelActions } from '../../../types';
3
3
  /** Per-column pagination state */
4
4
  export interface ColumnState {
@@ -7,10 +7,13 @@ export interface ColumnState {
7
7
  hasMore: boolean;
8
8
  isLoadingMore: boolean;
9
9
  }
10
- /** Status column names */
11
- export type StatusColumn = 'todo' | 'in-progress' | 'done';
12
- /** Display labels for status columns */
13
- export declare const STATUS_DISPLAY_LABELS: Record<StatusColumn, string>;
10
+ /**
11
+ * Status column identifiers - now using actual status values directly
12
+ * This eliminates the need for status-to-column mapping
13
+ */
14
+ export type StatusColumn = typeof DEFAULT_TASK_STATUSES[keyof typeof DEFAULT_TASK_STATUSES];
15
+ /** All status columns in order for rendering */
16
+ export declare const STATUS_COLUMNS: StatusColumn[];
14
17
  /** Status-based column state (computed from source data) */
15
18
  export interface StatusColumnState {
16
19
  tasks: Task[];
@@ -1 +1 @@
1
- {"version":3,"file":"useKanbanData.d.ts","sourceRoot":"","sources":["../../../../src/panels/kanban/hooks/useKanbanData.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,KAAK,IAAI,EAAwB,MAAM,kBAAkB,CAAC;AAEzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEtE,kCAAkC;AAClC,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,0BAA0B;AAC1B,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,aAAa,GAAG,MAAM,CAAC;AAE3D,wCAAwC;AACxC,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAI9D,CAAC;AAgBF,4DAA4D;AAC5D,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,oCAAoC;AACpC,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,yCAAyC;IACzC,YAAY,EAAE,GAAG,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;IAC7C,mDAAmD;IACnD,QAAQ,EAA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C;IAC9B,yDAAyD;IACzD,aAAa,EAAE,GAAG,CAAC,YAAY,EAAE,iBAAiB,CAAC,CAAC;IACpD,mCAAmC;IACnC,eAAe,EAAE,gBAAgB,CAAC;IAClC,sBAAsB;IACtB,aAAa,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACnC,4EAA4E;IAC5E,kBAAkB,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAC;IACrE,wBAAwB;IACxB,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,GAAG,SAAS,CAAC;IAClD,6CAA6C;IAC7C,QAAQ,EAAE,OAAO,CAAC;IAClB,kEAAkE;IAClE,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;CACnB;AAED,UAAU,oBAAoB;IAC5B,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,qDAAqD;IACrD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qCAAqC;IACrC,MAAM,CAAC,EAAE,GAAG,CAAC;CACd;AAID;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,OAAO,CAAC,EAAE,oBAAoB,GAC7B,mBAAmB,CA0YrB"}
@@ -6100,6 +6100,11 @@ function gt(o, e, t, r2) {
6100
6100
  };
6101
6101
  }, [o, e, t, r2]);
6102
6102
  }
6103
+ const DEFAULT_TASK_STATUSES = {
6104
+ TODO: "To Do",
6105
+ IN_PROGRESS: "In Progress",
6106
+ DONE: "Done"
6107
+ };
6103
6108
  function parseTaskMarkdown(content2, filePath) {
6104
6109
  const { frontmatter, title, rawContent, acceptanceCriteria, description } = parseMarkdownContent(content2);
6105
6110
  const id = extractIdFromPath(filePath);
@@ -6777,7 +6782,11 @@ class Core {
6777
6782
  }
6778
6783
  const dirName = this.projectRoot.split("/").pop() || "Backlog";
6779
6784
  const projectName = options.projectName || dirName;
6780
- const statuses = options.statuses || ["To Do", "In Progress", "Done"];
6785
+ const statuses = options.statuses || [
6786
+ DEFAULT_TASK_STATUSES.TODO,
6787
+ DEFAULT_TASK_STATUSES.IN_PROGRESS,
6788
+ DEFAULT_TASK_STATUSES.DONE
6789
+ ];
6781
6790
  const config = {
6782
6791
  projectName,
6783
6792
  statuses,
@@ -7501,18 +7510,28 @@ class Core {
7501
7510
  * @returns Created task
7502
7511
  */
7503
7512
  async createTask(input) {
7504
- var _a, _b;
7513
+ var _a, _b, _c, _d, _e2;
7505
7514
  this.ensureInitialized();
7506
7515
  const tasksDir = this.getTasksDir();
7507
7516
  await this.fs.createDir(tasksDir, { recursive: true });
7508
- const existingIds = Array.from(this.tasks.keys()).map((id) => parseInt(id.replace(/\D/g, ""), 10)).filter((n) => !Number.isNaN(n));
7517
+ const existingIds = Array.from(this.lazyInitialized ? this.taskIndex.keys() : this.tasks.keys()).map((id) => parseInt(id.replace(/\D/g, ""), 10)).filter((n) => !Number.isNaN(n));
7509
7518
  const nextId = existingIds.length > 0 ? Math.max(...existingIds) + 1 : 1;
7510
7519
  const taskId = String(nextId);
7520
+ const configStatuses = ((_a = this.config) == null ? void 0 : _a.statuses) || [
7521
+ DEFAULT_TASK_STATUSES.TODO,
7522
+ DEFAULT_TASK_STATUSES.IN_PROGRESS,
7523
+ DEFAULT_TASK_STATUSES.DONE
7524
+ ];
7525
+ let status = input.status || ((_b = this.config) == null ? void 0 : _b.defaultStatus) || DEFAULT_TASK_STATUSES.TODO;
7526
+ if (!configStatuses.includes(status)) {
7527
+ console.warn(`Warning: Status "${status}" is not in configured statuses [${configStatuses.join(", ")}]. Using default status "${((_c = this.config) == null ? void 0 : _c.defaultStatus) || DEFAULT_TASK_STATUSES.TODO}" instead.`);
7528
+ status = ((_d = this.config) == null ? void 0 : _d.defaultStatus) || DEFAULT_TASK_STATUSES.TODO;
7529
+ }
7511
7530
  const now = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
7512
7531
  const task = {
7513
7532
  id: taskId,
7514
7533
  title: input.title,
7515
- status: input.status || ((_a = this.config) == null ? void 0 : _a.defaultStatus) || "To Do",
7534
+ status,
7516
7535
  priority: input.priority,
7517
7536
  assignee: input.assignee || [],
7518
7537
  createdDate: now,
@@ -7524,7 +7543,7 @@ class Core {
7524
7543
  description: input.description,
7525
7544
  implementationPlan: input.implementationPlan,
7526
7545
  implementationNotes: input.implementationNotes,
7527
- acceptanceCriteriaItems: (_b = input.acceptanceCriteria) == null ? void 0 : _b.map((ac, i) => ({
7546
+ acceptanceCriteriaItems: (_e2 = input.acceptanceCriteria) == null ? void 0 : _e2.map((ac, i) => ({
7528
7547
  index: i + 1,
7529
7548
  text: ac.text,
7530
7549
  checked: ac.checked || false
@@ -7539,6 +7558,15 @@ class Core {
7539
7558
  await this.fs.writeFile(filepath, content2);
7540
7559
  task.filePath = filepath;
7541
7560
  this.tasks.set(taskId, task);
7561
+ if (this.lazyInitialized) {
7562
+ const relativePath = filepath.replace(this.projectRoot + "/", "");
7563
+ this.taskIndex.set(taskId, {
7564
+ id: taskId,
7565
+ filePath: relativePath,
7566
+ title: task.title,
7567
+ source: "tasks"
7568
+ });
7569
+ }
7542
7570
  if (input.milestone) {
7543
7571
  await this.addTaskToMilestone(taskId, input.milestone);
7544
7572
  }
@@ -7913,16 +7941,11 @@ class PanelFileSystemAdapter {
7913
7941
  return path2.replace(/^\/+/, "").replace(/\/+$/, "").replace(/\/+/g, "/");
7914
7942
  }
7915
7943
  }
7916
- const STATUS_DISPLAY_LABELS = {
7917
- "todo": "To Do",
7918
- "in-progress": "In Progress",
7919
- "done": "Done"
7920
- };
7921
- const COLUMN_TO_STATUS = {
7922
- "todo": "To Do",
7923
- "in-progress": "In Progress",
7924
- "done": "Done"
7925
- };
7944
+ const STATUS_COLUMNS = [
7945
+ DEFAULT_TASK_STATUSES.TODO,
7946
+ DEFAULT_TASK_STATUSES.IN_PROGRESS,
7947
+ DEFAULT_TASK_STATUSES.DONE
7948
+ ];
7926
7949
  const DEFAULT_TASKS_LIMIT = 20;
7927
7950
  function useKanbanData(options) {
7928
7951
  const {
@@ -7973,11 +7996,9 @@ function useKanbanData(options) {
7973
7996
  }, []);
7974
7997
  const fileTreeVersionRef = useRef(null);
7975
7998
  const buildColumnStates = useCallback((allTasks) => {
7976
- const statusColumns2 = ["todo", "in-progress", "done"];
7977
7999
  const newColumnStates = /* @__PURE__ */ new Map();
7978
- for (const column of statusColumns2) {
7979
- const status = COLUMN_TO_STATUS[column];
7980
- const columnTasks = allTasks.filter((t) => t.status === status);
8000
+ for (const column of STATUS_COLUMNS) {
8001
+ const columnTasks = allTasks.filter((t) => t.status === column);
7981
8002
  newColumnStates.set(column, {
7982
8003
  tasks: columnTasks,
7983
8004
  total: columnTasks.length,
@@ -8154,7 +8175,7 @@ function useKanbanData(options) {
8154
8175
  );
8155
8176
  const moveTaskOptimistic = useCallback(
8156
8177
  (taskId, toColumn) => {
8157
- const newStatus = COLUMN_TO_STATUS[toColumn];
8178
+ const newStatus = toColumn;
8158
8179
  setTasks((prev) => {
8159
8180
  const newTasks = prev.map(
8160
8181
  (t) => t.id === taskId ? { ...t, status: newStatus } : t
@@ -8173,7 +8194,7 @@ function useKanbanData(options) {
8173
8194
  },
8174
8195
  [tasks]
8175
8196
  );
8176
- const statusColumns = ["todo", "in-progress", "done"];
8197
+ const statusColumns = STATUS_COLUMNS;
8177
8198
  const tasksByStatus = (() => {
8178
8199
  const result = /* @__PURE__ */ new Map();
8179
8200
  for (const column of statusColumns) {
@@ -9921,7 +9942,7 @@ const KanbanPanel = ({
9921
9942
  var _a, _b;
9922
9943
  const { theme: theme2 } = useTheme();
9923
9944
  const [selectedTaskId, setSelectedTaskId] = useState(null);
9924
- const [selectedTab, setSelectedTab] = useState("todo");
9945
+ const [selectedTab, setSelectedTab] = useState(DEFAULT_TASK_STATUSES.TODO);
9925
9946
  const [isNarrowView, setIsNarrowView] = useState(false);
9926
9947
  const kanbanPanelRef = useRef(null);
9927
9948
  const [viewMode, setViewMode] = useState("board");
@@ -10040,12 +10061,7 @@ const KanbanPanel = ({
10040
10061
  const targetColumn = over.id;
10041
10062
  const task = getTaskById(taskId);
10042
10063
  if (!task) return;
10043
- const statusToColumn = {
10044
- "To Do": "todo",
10045
- "In Progress": "in-progress",
10046
- "Done": "done"
10047
- };
10048
- const currentColumn = statusToColumn[task.status] || "todo";
10064
+ const currentColumn = task.status || DEFAULT_TASK_STATUSES.TODO;
10049
10065
  if (currentColumn !== targetColumn) {
10050
10066
  moveTaskOptimistic(taskId, targetColumn);
10051
10067
  }
@@ -10182,7 +10198,11 @@ const KanbanPanel = ({
10182
10198
  });
10183
10199
  }
10184
10200
  };
10185
- const availableStatuses = ["To Do", "In Progress", "Done"];
10201
+ const availableStatuses = [
10202
+ DEFAULT_TASK_STATUSES.TODO,
10203
+ DEFAULT_TASK_STATUSES.IN_PROGRESS,
10204
+ DEFAULT_TASK_STATUSES.DONE
10205
+ ];
10186
10206
  const currentError = viewMode === "board" ? error : milestonesError;
10187
10207
  return /* @__PURE__ */ jsxs(
10188
10208
  "div",
@@ -10586,7 +10606,7 @@ const KanbanPanel = ({
10586
10606
  gap: "6px"
10587
10607
  },
10588
10608
  children: [
10589
- STATUS_DISPLAY_LABELS[status],
10609
+ status,
10590
10610
  /* @__PURE__ */ jsx(
10591
10611
  "span",
10592
10612
  {
@@ -10636,7 +10656,7 @@ const KanbanPanel = ({
10636
10656
  KanbanColumn,
10637
10657
  {
10638
10658
  columnId: status,
10639
- status: STATUS_DISPLAY_LABELS[status],
10659
+ status,
10640
10660
  tasks: columnTasks,
10641
10661
  onTaskClick: handleTaskClick,
10642
10662
  fullWidth: isNarrowView,
@@ -51498,9 +51518,11 @@ var createIndustryMarkdownComponents = ({
51498
51518
  fontSize: theme2.fontSizes[5],
51499
51519
  lineHeight: theme2.lineHeights.heading,
51500
51520
  fontWeight: theme2.fontWeights.bold,
51501
- marginTop: index2 === 0 ? 0 : theme2.space[4],
51521
+ marginTop: theme2.space[4],
51502
51522
  marginBottom: theme2.space[4],
51503
51523
  fontFamily: theme2.fonts.heading,
51524
+ paddingBottom: theme2.space[2],
51525
+ borderBottom: `1px solid ${theme2.colors.border}`,
51504
51526
  ...headerStyles
51505
51527
  },
51506
51528
  ...props
@@ -51511,9 +51533,11 @@ var createIndustryMarkdownComponents = ({
51511
51533
  fontSize: theme2.fontSizes[4],
51512
51534
  lineHeight: theme2.lineHeights.heading,
51513
51535
  fontWeight: theme2.fontWeights.bold,
51514
- marginTop: index2 === 0 ? 0 : theme2.space[4],
51536
+ marginTop: theme2.space[4],
51515
51537
  marginBottom: theme2.space[3],
51516
51538
  fontFamily: theme2.fonts.heading,
51539
+ paddingBottom: theme2.space[2],
51540
+ borderBottom: `1px solid ${theme2.colors.border}`,
51517
51541
  ...headerStyles
51518
51542
  },
51519
51543
  ...props
@@ -51524,12 +51548,48 @@ var createIndustryMarkdownComponents = ({
51524
51548
  fontSize: theme2.fontSizes[3],
51525
51549
  lineHeight: theme2.lineHeights.heading,
51526
51550
  fontWeight: theme2.fontWeights.semibold,
51527
- marginTop: index2 === 0 ? 0 : theme2.space[4],
51551
+ marginTop: theme2.space[4],
51528
51552
  marginBottom: theme2.space[3],
51529
51553
  fontFamily: theme2.fonts.heading
51530
51554
  },
51531
51555
  ...props
51532
51556
  }, children2),
51557
+ h4: ({ children: children2, ...props }) => /* @__PURE__ */ React2__default.createElement("h4", {
51558
+ style: {
51559
+ color: theme2.colors.text,
51560
+ fontSize: theme2.fontSizes[2],
51561
+ lineHeight: theme2.lineHeights.heading,
51562
+ fontWeight: theme2.fontWeights.semibold,
51563
+ marginTop: theme2.space[3],
51564
+ marginBottom: theme2.space[2],
51565
+ fontFamily: theme2.fonts.heading
51566
+ },
51567
+ ...props
51568
+ }, children2),
51569
+ h5: ({ children: children2, ...props }) => /* @__PURE__ */ React2__default.createElement("h5", {
51570
+ style: {
51571
+ color: theme2.colors.text,
51572
+ fontSize: theme2.fontSizes[1],
51573
+ lineHeight: theme2.lineHeights.heading,
51574
+ fontWeight: theme2.fontWeights.semibold,
51575
+ marginTop: theme2.space[3],
51576
+ marginBottom: theme2.space[1],
51577
+ fontFamily: theme2.fonts.heading
51578
+ },
51579
+ ...props
51580
+ }, children2),
51581
+ h6: ({ children: children2, ...props }) => /* @__PURE__ */ React2__default.createElement("h6", {
51582
+ style: {
51583
+ color: theme2.colors.text,
51584
+ fontSize: theme2.fontSizes[1],
51585
+ lineHeight: theme2.lineHeights.heading,
51586
+ fontWeight: theme2.fontWeights.medium,
51587
+ marginTop: theme2.space[3],
51588
+ marginBottom: theme2.space[1],
51589
+ fontFamily: theme2.fonts.heading
51590
+ },
51591
+ ...props
51592
+ }, children2),
51533
51593
  p: ({ children: children2, ...props }) => /* @__PURE__ */ React2__default.createElement("p", {
51534
51594
  style: {
51535
51595
  color: theme2.colors.text,
@@ -51892,7 +51952,7 @@ var createIndustryMarkdownComponents = ({
51892
51952
  }), "Fill & Copy (", placeholders.length, ")"))), isPrompt ? /* @__PURE__ */ React2__default.createElement("div", {
51893
51953
  style: {
51894
51954
  margin: 0,
51895
- padding: theme2.space[5],
51955
+ padding: theme2.space[1],
51896
51956
  backgroundColor: "transparent",
51897
51957
  fontSize: theme2.fontSizes[1],
51898
51958
  lineHeight: theme2.lineHeights.body,
@@ -51919,7 +51979,7 @@ var createIndustryMarkdownComponents = ({
51919
51979
  })) : /* @__PURE__ */ React2__default.createElement("pre", {
51920
51980
  style: {
51921
51981
  margin: 0,
51922
- padding: theme2.space[4],
51982
+ padding: theme2.space[1],
51923
51983
  backgroundColor: "transparent",
51924
51984
  overflow: "auto",
51925
51985
  fontSize: theme2.fontSizes[1],