@@ -7,7 +7,6 @@ import { FileViewsSchema } from "@/workspaces/files/view-cache"
77import { languageSchema } from "@/runtime/i18n/language"
88import { HomeServersSchema } from "@/home/projects/controller"
99import { ModelProvidersSchema } from "@/settings/models/models"
10- import { NotificationStore , type Notification } from "@/shell/notifications/notification"
1110import { IconState , ProjectState , VcsState } from "@/runtime/server/persistence"
1211
1312function stored < S extends Schema . ConstraintCodec < object , unknown > > (
@@ -21,11 +20,6 @@ function stored<S extends Schema.ConstraintCodec<object, unknown>>(
2120 return { name, decode : Schema . decodeUnknownSync ( codec ) , encode : Schema . encodeUnknownSync ( codec ) , cases }
2221}
2322
24- const notifications : Notification [ ] = [
25- { type : "turn-complete" , time : 123 , viewed : false , session : "session-1" } ,
26- { type : "error" , time : 124 , viewed : true , error : { type : "api" , message : "failed" , status : 500 } } ,
27- ]
28-
2923const collapsed = [
3024 [ { } , { collapsed : { } } ] ,
3125 [ { collapsed : [ ] } , { collapsed : { } } ] ,
@@ -51,22 +45,6 @@ describe("persisted consumer schemas", () => {
5145 stored ( "workspace tip" , WorkspaceTipSchema , { dismissedAt : 0 } , [ [ { dismissedAt : 123 } , { dismissedAt : 123 } ] ] ) ,
5246 stored ( "home server collapse" , HomeServersSchema , { collapsed : { } } , collapsed ) ,
5347 stored ( "model provider collapse" , ModelProvidersSchema , { collapsed : { } } , collapsed ) ,
54- stored ( "notifications" , NotificationStore , { list : [ ] } , [
55- [
56- {
57- list : [
58- notifications [ 0 ] ,
59- null ,
60- { type : "unknown" , time : 123 , viewed : false } ,
61- { ...notifications [ 1 ] , error : "invalid" } ,
62- notifications [ 1 ] ,
63- ] ,
64- } ,
65- { list : notifications } ,
66- ] ,
67- [ { } , { list : [ ] } ] ,
68- [ { list : { } } , { list : [ ] } ] ,
69- ] ) ,
7048 stored ( "VCS cache" , VcsState , { value : undefined } , [
7149 [ { } , { value : undefined } ] ,
7250 [ { value : null } , { value : undefined } ] ,
0 commit comments