@@ -34,6 +34,8 @@ type PossibleTreeDetailsFilters = Pick<
3434 | 'bootOrigin'
3535 | 'testOrigin'
3636 | 'buildLab'
37+ | 'bootLab'
38+ | 'testLab'
3739> ;
3840
3941interface ITreeDetailsFilter {
@@ -69,6 +71,8 @@ export const createFilter = (data: TreeDetailsSummary): TFilter => {
6971 filters . testOrigin = { } ;
7072
7173 filters . buildLab = { } ;
74+ filters . bootLab = { } ;
75+ filters . testLab = { } ;
7276
7377 // Filters affecting all tabs
7478 const allFilters = data . filters . all ;
@@ -113,6 +117,9 @@ export const createFilter = (data: TreeDetailsSummary): TFilter => {
113117 for ( const o of bootFilters . origins ) {
114118 filters . bootOrigin [ o ] = false ;
115119 }
120+ for ( const l of bootFilters . labs ) {
121+ filters . bootLab [ l ] = false ;
122+ }
116123
117124 // Test tab filters
118125 const testFilters = data . filters . tests ;
@@ -125,6 +132,9 @@ export const createFilter = (data: TreeDetailsSummary): TFilter => {
125132 for ( const o of testFilters . origins ) {
126133 filters . testOrigin [ o ] = false ;
127134 }
135+ for ( const l of testFilters . labs ) {
136+ filters . testLab [ l ] = false ;
137+ }
128138
129139 return filters ;
130140} ;
@@ -208,6 +218,18 @@ const sectionTrees: ISectionItem[] = [
208218 sectionKey : 'buildLab' ,
209219 isGlobal : false ,
210220 } ,
221+ {
222+ title : 'filter.bootLab' ,
223+ subtitle : 'filter.labsSubtitle' ,
224+ sectionKey : 'bootLab' ,
225+ isGlobal : false ,
226+ } ,
227+ {
228+ title : 'filter.testLab' ,
229+ subtitle : 'filter.labsSubtitle' ,
230+ sectionKey : 'testLab' ,
231+ isGlobal : false ,
232+ } ,
211233] ;
212234
213235// TODO: some sections can be hidden if there is only 1 value for them (e.g., origins, labs)
0 commit comments