@@ -19,6 +19,7 @@ type RequestParamsKeys = keyof Pick<
1919 | 'target_jobs'
2020 | 'target_volumes'
2121 | 'target_gateways'
22+ | 'target_secrets'
2223 | 'within_projects'
2324 | 'within_fleets'
2425 | 'within_runs'
@@ -35,6 +36,7 @@ const filterKeys: Record<string, RequestParamsKeys> = {
3536 TARGET_JOBS : 'target_jobs' ,
3637 TARGET_VOLUMES : 'target_volumes' ,
3738 TARGET_GATEWAYS : 'target_gateways' ,
39+ TARGET_SECRETS : 'target_secrets' ,
3840 WITHIN_PROJECTS : 'within_projects' ,
3941 WITHIN_FLEETS : 'within_fleets' ,
4042 WITHIN_RUNS : 'within_runs' ,
@@ -53,6 +55,7 @@ const multipleChoiseKeys: RequestParamsKeys[] = [
5355 'target_jobs' ,
5456 'target_volumes' ,
5557 'target_gateways' ,
58+ 'target_secrets' ,
5659 'within_projects' ,
5760 'within_fleets' ,
5861 'within_runs' ,
@@ -69,6 +72,7 @@ const targetTypes = [
6972 { label : 'Job' , value : 'job' } ,
7073 { label : 'Volume' , value : 'volume' } ,
7174 { label : 'Gateway' , value : 'gateway' } ,
75+ { label : 'Secret' , value : 'secret' } ,
7276] ;
7377
7478export const useFilters = ( ) => {
@@ -171,6 +175,11 @@ export const useFilters = () => {
171175 operators : [ '=' ] ,
172176 propertyLabel : 'Target gateways' ,
173177 } ,
178+ {
179+ key : filterKeys . TARGET_SECRETS ,
180+ operators : [ '=' ] ,
181+ propertyLabel : 'Target secrets' ,
182+ } ,
174183
175184 {
176185 key : filterKeys . WITHIN_PROJECTS ,
0 commit comments