Skip to content

Commit

Permalink
feat(kanban): updating the react code to handle the new props and dat…
Browse files Browse the repository at this point in the history
…a structure.
  • Loading branch information
h0lybyte committed Dec 26, 2024
1 parent 665801d commit e594048
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion apps/kbve.com/src/engine/kanban/KanbanBase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,18 +115,28 @@ export class KanbanBase extends Kilobase {
typeof result === 'object' &&
'todo' in result &&
'in_progress' in result &&
'done' in result
'done' in result &&
'unassigned' in result &&
'metadata' in result &&
'actions' in result
) {
// Save to local storage
const formattedResult = {
TODO: result.todo || [],
'IN-PROGRESS': result.in_progress || [],
DONE: result.done || [],
UNASSIGNED: result.unassigned || [],
};

this.itemPositionsStore.set(formattedResult);
console.log(
`Loaded and saved board data for board ID: ${boardId}`,
);

// Optionally, you could handle metadata and actions separately if needed
console.log('Metadata:', result.metadata);
console.log('Actions:', result.actions);

return formattedResult;
}

Expand Down

0 comments on commit e594048

Please sign in to comment.