@@ -19,14 +19,40 @@ export const TaskObject = {
1919 fields : {
2020 id : { name : 'id' , label : 'ID' , type : 'text' , required : true } ,
2121 subject : { name : 'subject' , label : 'Subject' , type : 'text' , required : true } ,
22- priority : { name : 'priority' , label : 'Priority' , type : 'number' , defaultValue : 5 } ,
22+ status : {
23+ name : 'status' ,
24+ label : 'Status' ,
25+ type : 'select' ,
26+ options : [
27+ { label : 'Not Started' , value : 'not_started' } ,
28+ { label : 'In Progress' , value : 'in_progress' } ,
29+ { label : 'Waiting' , value : 'waiting' } ,
30+ { label : 'Completed' , value : 'completed' } ,
31+ ]
32+ } ,
33+ priority : {
34+ name : 'priority' ,
35+ label : 'Priority' ,
36+ type : 'select' ,
37+ options : [
38+ { label : 'Low' , value : 'low' } ,
39+ { label : 'Normal' , value : 'normal' } ,
40+ { label : 'High' , value : 'high' } ,
41+ { label : 'Urgent' , value : 'urgent' } ,
42+ ]
43+ } ,
44+ category : { name : 'category' , label : 'Category' , type : 'text' } ,
45+ due_date : { name : 'due_date' , label : 'Due Date' , type : 'date' } ,
2346 is_completed : { name : 'is_completed' , label : 'Completed' , type : 'boolean' , defaultValue : false } ,
2447 created_at : { name : 'created_at' , label : 'Created At' , type : 'datetime' }
2548 }
2649} ;
2750
2851/**
2952 * App Configuration
53+ *
54+ * This is the single source of truth for apps/studio in MSW (browser) mode.
55+ * In server mode the studio fetches apps dynamically via the API.
3056 */
3157export default defineStack ( {
3258 name : 'task_app' ,
@@ -41,6 +67,23 @@ export default defineStack({
4167 objects : [
4268 TaskObject
4369 ] ,
70+ data : [
71+ {
72+ object : 'task' ,
73+ mode : 'upsert' as const ,
74+ externalId : 'subject' ,
75+ records : [
76+ { subject : 'Learn ObjectStack' , status : 'completed' , priority : 'high' , category : 'Work' } ,
77+ { subject : 'Build a cool app' , status : 'in_progress' , priority : 'normal' , category : 'Work' } ,
78+ { subject : 'Review PR #102' , status : 'completed' , priority : 'high' , category : 'Work' } ,
79+ { subject : 'Write Documentation' , status : 'not_started' , priority : 'normal' , category : 'Work' } ,
80+ { subject : 'Fix Server bug' , status : 'waiting' , priority : 'urgent' , category : 'Work' } ,
81+ { subject : 'Buy groceries' , status : 'not_started' , priority : 'low' , category : 'Shopping' } ,
82+ { subject : 'Schedule dentist appointment' , status : 'not_started' , priority : 'normal' , category : 'Health' } ,
83+ { subject : 'Pay utility bills' , status : 'not_started' , priority : 'high' , category : 'Finance' } ,
84+ ]
85+ }
86+ ] ,
4487 navigation : [
4588 {
4689 id : 'group_tasks' ,
0 commit comments