@@ -112,7 +112,6 @@ async activate(_priority: Pick<Priority, "id">) {
112112 await this .plot .createActivity ({
113113 type: ActivityType .Task ,
114114 title: " Connect your account" ,
115- start: new Date (),
116115 links: [authLink ],
117116 });
118117}
@@ -124,7 +123,6 @@ async activate(_priority: Pick<Priority, "id">) {
124123const activity = await this .plot .createActivity ({
125124 type: ActivityType .Task ,
126125 title: " Setup" ,
127- start: new Date (),
128126});
129127
130128await this .set (" setup_activity_id" , activity .id );
@@ -200,7 +198,6 @@ async activate(_priority: Pick<Priority, "id">) {
200198 const activity = await this .plot .createActivity ({
201199 type: ActivityType .Task ,
202200 title: " Connect Google account" ,
203- start: new Date (),
204201 links: [authLink ],
205202 });
206203
@@ -383,32 +380,6 @@ try {
383380- ** Clean up callbacks and stored state** - Delete callbacks and Store entries when no longer needed.
384381- ** Handle missing auth gracefully** - Check for stored auth before operations.
385382
386- ## Type Patterns
387-
388- ### Entity Types
389-
390- Follow Plot's entity type patterns:
391-
392- ``` typescript
393- export type Activity = {
394- id: string ; // Required
395- type: ActivityType ; // Required
396- title: string | null ; // Nullable (not optional)
397- note: string | null ; // Nullable (not optional)
398- start: Date | string | null ; // Nullable (not optional)
399- };
400-
401- export type NewActivity = {
402- type: Activity [" type" ]; // Only type is required
403- } & Partial <Omit <Activity , " id" | " author" | " type" >>;
404- ```
405-
406- This pattern distinguishes between:
407-
408- - Omitted fields (` undefined ` in Partial types)
409- - Explicitly set to null (clearing a value)
410- - Set to a value
411-
412383## Testing
413384
414385Before deploying, verify:
0 commit comments