@@ -1263,6 +1263,17 @@ const QueryRow: Component<{ query: Query }> = (props) => {
1263
1263
( e ) => e . query . queryHash === props . query . queryHash ,
1264
1264
)
1265
1265
1266
+ const isStatic = createSubscribeToQueryCacheBatcher (
1267
+ ( queryCache ) =>
1268
+ queryCache ( )
1269
+ . find ( {
1270
+ queryKey : props . query . queryKey ,
1271
+ } )
1272
+ ?. isStatic ( ) ?? false ,
1273
+ true ,
1274
+ ( e ) => e . query . queryHash === props . query . queryHash ,
1275
+ )
1276
+
1266
1277
const isStale = createSubscribeToQueryCacheBatcher (
1267
1278
( queryCache ) =>
1268
1279
queryCache ( )
@@ -1337,6 +1348,9 @@ const QueryRow: Component<{ query: Query }> = (props) => {
1337
1348
< Show when = { isDisabled ( ) } >
1338
1349
< div class = "tsqd-query-disabled-indicator" > disabled</ div >
1339
1350
</ Show >
1351
+ < Show when = { isStatic ( ) } >
1352
+ < div class = "tsqd-query-static-indicator" > static</ div >
1353
+ </ Show >
1340
1354
</ button >
1341
1355
</ Show >
1342
1356
)
@@ -3180,6 +3194,17 @@ const stylesFactory = (
3180
3194
border-bottom : 1px solid ${ t ( colors . gray [ 300 ] , colors . darkGray [ 400 ] ) } ;
3181
3195
font-size : ${ font . size . xs } ;
3182
3196
}
3197
+
3198
+ & .tsqd-query-static-indicator {
3199
+ align-self : stretch;
3200
+ display : flex;
3201
+ align-items : center;
3202
+ padding : 0 ${ tokens . size [ 2 ] } ;
3203
+ color : ${ t ( colors . teal [ 800 ] , colors . teal [ 300 ] ) } ;
3204
+ background-color : ${ t ( colors . teal [ 100 ] , colors . teal [ 900 ] ) } ;
3205
+ border-bottom : 1px solid ${ t ( colors . teal [ 300 ] , colors . teal [ 700 ] ) } ;
3206
+ font-size : ${ font . size . xs } ;
3207
+ }
3183
3208
` ,
3184
3209
selectedQueryRow : css `
3185
3210
background-color : ${ t ( colors . gray [ 200 ] , colors . darkGray [ 500 ] ) } ;
0 commit comments