@@ -12,6 +12,8 @@ import DatabaseUpsertDark from '$lib/images/promos/database-upsert-dark.png';
12
12
import DatabaseUpsertLight from '$lib/images/promos/database-upsert-light.png' ;
13
13
import EncryptedDatabasesDark from '$lib/images/promos/encrypted-attribute-dark.png' ;
14
14
import EncryptedDatabasesLight from '$lib/images/promos/encrypted-attribute-light.png' ;
15
+ import AutoIncrementDark from '$lib/images/promos/auto-increment-dark.png' ;
16
+ import AutoIncrementLight from '$lib/images/promos/auto-increment-light.png' ;
15
17
16
18
const listOfPromotions : BottomModalAlertItem [ ] = [ ] ;
17
19
@@ -95,7 +97,33 @@ if (isCloud) {
95
97
} ,
96
98
show : true
97
99
} ;
98
- listOfPromotions . push ( encryptedAttributePromo , databaseUpsert , bulkApiPromo , csvImportPromo ) ;
100
+ const autoIncrementPromo : BottomModalAlertItem = {
101
+ id : 'modal:auto_increment_announcement' ,
102
+ src : {
103
+ dark : AutoIncrementDark ,
104
+ light : AutoIncrementLight
105
+ } ,
106
+ title : 'Announcing Auto-increment support' ,
107
+ message :
108
+ 'Get a built-in numeric identifier that increases predictably with every new document added.' ,
109
+ plan : 'free' ,
110
+ importance : 8 ,
111
+ scope : 'project' ,
112
+ cta : {
113
+ text : 'Read announcement' ,
114
+ link : ( ) => 'https://appwrite.io/blog/post/announcing-auto-increment' ,
115
+ external : true ,
116
+ hideOnClick : true
117
+ } ,
118
+ show : true
119
+ } ;
120
+ listOfPromotions . push (
121
+ autoIncrementPromo ,
122
+ encryptedAttributePromo ,
123
+ databaseUpsert ,
124
+ bulkApiPromo ,
125
+ csvImportPromo
126
+ ) ;
99
127
}
100
128
101
129
export function addBottomModalAlerts ( ) {
0 commit comments