File tree Expand file tree Collapse file tree
clients/trieve-shopify-extension
extensions/global-search/blocks Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -206,7 +206,6 @@ export const validateTrieveAuth = async <S extends boolean = true>(
206206 } ) ;
207207 }
208208
209- console . log ( "updating dataset id for shop" , key ) ;
210209 if ( key . currentDatasetId && key . key && session ) {
211210 setAppMetafields ( fetcher , {
212211 id : key . id ,
Original file line number Diff line number Diff line change 4242 zIndex: Number (getValue (appMetafieldTrieve .z_index , 2147483645 )),
4343 defaultAiQuestions,
4444 brandColor: getValue (" {{ block .settings .brand_color }}" , " " ),
45+ brandLogoImgSrcUrl: getValue (" {{ block .settings .brand_logo_img_src_url }}" , undefined ),
4546 chatPlaceholder: getValue (" {{ block .settings .chat_placeholder }}" , " Ask anything..." ),
4647 suggestedQueries: toBool (getValue (" {{ block .settings .suggested_queries }}" , true )),
4748 followupQuestions: toBool (getValue (" {{ block .settings .suggested_queries }}" , true )),
129130 "label" : " Brand Color" ,
130131 "default" : " #ff0000"
131132 },
133+ {
134+ "type" : " text" ,
135+ "id" : " brand_logo_img_src_url" ,
136+ "label" : " Brand Logo Image URL" ,
137+ "placeholder" : " https://cdn.trieve.ai/trieve-logo.png"
138+ },
132139 {
133140 "type" : " text" ,
134141 "id" : " chat_placeholder" ,
Original file line number Diff line number Diff line change 4646 datasetId: appMetafieldTrieve .dataset_id ,
4747 zIndex: Number (getValue (appMetafieldTrieve .z_index , 2147483645 )),
4848 defaultAiQuestions,
49- brandColor: getValue (" {{ block .settings .brand_color }}" , " " ),
49+ brandColor: getValue (" {{ block .settings .brand_color }}" , " #ff0000" ),
50+ brandLogoImgSrcUrl: getValue (" {{ block .settings .brand_logo_img_src_url }}" , undefined ),
5051 chatPlaceholder: getValue (" {{ block .settings .chat_placeholder }}" , " Ask anything..." ),
5152 suggestedQueries: toBool (getValue (" {{ block .settings .suggested_queries }}" , true )),
5253 followupQuestions: toBool (getValue (" {{ block .settings .suggested_queries }}" , true )),
You can’t perform that action at this time.
0 commit comments