Skip to content

Commit 36da126

Browse files
Copilothuangyiirene
andcommitted
Add Kanban board example to playground
Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com>
1 parent 1812b78 commit 36da126

1 file changed

Lines changed: 123 additions & 1 deletion

File tree

apps/playground/src/data/examples.ts

Lines changed: 123 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,127 @@ export const examples = {
638638
]
639639
}
640640
]
641+
}`,
642+
643+
'kanban-board': `{
644+
"type": "kanban",
645+
"className": "w-full h-[600px]",
646+
"columns": [
647+
{
648+
"id": "backlog",
649+
"title": "📋 Backlog",
650+
"cards": [
651+
{
652+
"id": "card-1",
653+
"title": "User Authentication",
654+
"description": "Implement user login and registration flow",
655+
"badges": [
656+
{ "label": "Feature", "variant": "default" },
657+
{ "label": "High Priority", "variant": "destructive" }
658+
]
659+
},
660+
{
661+
"id": "card-2",
662+
"title": "API Documentation",
663+
"description": "Write comprehensive API docs",
664+
"badges": [
665+
{ "label": "Documentation", "variant": "outline" }
666+
]
667+
},
668+
{
669+
"id": "card-3",
670+
"title": "Database Optimization",
671+
"description": "Improve query performance",
672+
"badges": [
673+
{ "label": "Performance", "variant": "secondary" }
674+
]
675+
}
676+
]
677+
},
678+
{
679+
"id": "todo",
680+
"title": "📝 To Do",
681+
"cards": [
682+
{
683+
"id": "card-4",
684+
"title": "Design Landing Page",
685+
"description": "Create wireframes and mockups",
686+
"badges": [
687+
{ "label": "Design", "variant": "default" }
688+
]
689+
},
690+
{
691+
"id": "card-5",
692+
"title": "Setup CI/CD Pipeline",
693+
"description": "Configure GitHub Actions",
694+
"badges": [
695+
{ "label": "DevOps", "variant": "secondary" }
696+
]
697+
}
698+
]
699+
},
700+
{
701+
"id": "in-progress",
702+
"title": "⚙️ In Progress",
703+
"limit": 3,
704+
"cards": [
705+
{
706+
"id": "card-6",
707+
"title": "Payment Integration",
708+
"description": "Integrate Stripe payment gateway",
709+
"badges": [
710+
{ "label": "Feature", "variant": "default" },
711+
{ "label": "In Progress", "variant": "secondary" }
712+
]
713+
},
714+
{
715+
"id": "card-7",
716+
"title": "Bug Fix: Login Issue",
717+
"description": "Fix session timeout bug",
718+
"badges": [
719+
{ "label": "Bug", "variant": "destructive" }
720+
]
721+
}
722+
]
723+
},
724+
{
725+
"id": "review",
726+
"title": "👀 Review",
727+
"cards": [
728+
{
729+
"id": "card-8",
730+
"title": "Dashboard Analytics",
731+
"description": "Add charts and metrics",
732+
"badges": [
733+
{ "label": "Feature", "variant": "default" },
734+
{ "label": "Needs Review", "variant": "outline" }
735+
]
736+
}
737+
]
738+
},
739+
{
740+
"id": "done",
741+
"title": "✅ Done",
742+
"cards": [
743+
{
744+
"id": "card-9",
745+
"title": "Project Setup",
746+
"description": "Initialize repository and dependencies",
747+
"badges": [
748+
{ "label": "Completed", "variant": "outline" }
749+
]
750+
},
751+
{
752+
"id": "card-10",
753+
"title": "Basic Layout",
754+
"description": "Create header and navigation",
755+
"badges": [
756+
{ "label": "Completed", "variant": "outline" }
757+
]
758+
}
759+
]
760+
}
761+
]
641762
}`
642763
};
643764

@@ -646,5 +767,6 @@ export type ExampleKey = keyof typeof examples;
646767
export const exampleCategories = {
647768
'Primitives': ['simple-page', 'input-states', 'button-variants'],
648769
'Layouts': ['grid-layout', 'dashboard', 'tabs-demo'],
649-
'Forms': ['form-demo']
770+
'Forms': ['form-demo'],
771+
'Complex': ['kanban-board']
650772
};

0 commit comments

Comments
 (0)