@@ -54,18 +54,62 @@ export const podcastStructure = (
5454 S . listItem ( )
5555 . title ( 'Podcasts' )
5656 . child (
57- S . documentTypeList ( 'podcastType' )
58- . title ( 'Podcast by Type' )
59- . child ( ( podcastTypeId ) =>
60- S . documentList ( )
61- . title ( 'Posts' )
62- . filter ( '_type == "podcast" && $podcastTypeId == podcastType._ref' )
63- . params ( { podcastTypeId } )
64- )
57+ S . list ( )
58+ . title ( "Filters" )
59+ . items ( [
60+ S . listItem ( )
61+ . title ( 'By Type' )
62+ . child (
63+ S . documentTypeList ( 'podcastType' )
64+ . title ( 'Podcast by Type' )
65+ . child ( ( podcastTypeId ) =>
66+ S . documentList ( )
67+ . title ( 'Podcasts' )
68+ . filter ( '_type == "podcast" && $podcastTypeId == podcastType._ref' )
69+ . params ( { podcastTypeId } )
70+ )
71+ ) ,
72+ S . listItem ( )
73+ . title ( 'Missing Hashnode' )
74+ . child ( ( ) =>
75+ S . documentList ( )
76+ . title ( 'Podcasts' )
77+ . filter ( '_type == "podcast" && hashnode == null' )
78+ ) ,
79+ S . listItem ( )
80+ . title ( 'Missing Dev.to' )
81+ . child ( ( ) =>
82+ S . documentList ( )
83+ . title ( 'Podcasts' )
84+ . filter ( '_type == "podcast" && devto == null' )
85+ ) ,
86+ S . listItem ( )
87+ . title ( 'Missing Season' )
88+ . child ( ( ) =>
89+ S . documentList ( )
90+ . title ( 'Podcasts' )
91+ . filter ( '_type == "podcast" && season == null' )
92+ ) ,
93+ S . listItem ( )
94+ . title ( 'Missing Episode' )
95+ . child ( ( ) =>
96+ S . documentList ( )
97+ . title ( 'Podcasts' )
98+ . filter ( '_type == "podcast" && episode == null' )
99+ ) ,
100+ S . listItem ( )
101+ . title ( 'Missing YouTube' )
102+ . child ( ( ) =>
103+ S . documentList ( )
104+ . title ( 'Podcasts' )
105+ . filter ( '_type == "podcast" && youtube == null' )
106+ ) ,
107+ ] )
65108 ) ,
66- ...S . documentTypeListItems ( ) . filter (
67- ( listItem ) => ! [ 'podcast' ] . includes ( `${ listItem . getId ( ) } ` )
68- ) ,
109+ ...S . documentTypeListItems ( )
110+ // .filter(
111+ // (listItem) => !['podcast'].includes(`${listItem.getId()}`)
112+ // ),
69113 ] ) ;
70114 } ;
71115} ;
0 commit comments