Skip to content

Commit 45df0a0

Browse files
authored
feat(corpus): [MC-1502] Filter schedule view by 'time-sensitive' on all surfaces (#1217)
1 parent 35f3878 commit 45df0a0

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/curated-corpus/components/ScheduleDayData/ScheduleDayData.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,9 @@ export const ScheduleDayData: React.FC<ScheduleDayDataProps> = (
170170
(filters.types === 'Collections' &&
171171
item.approvedItem.isCollection) ||
172172
(filters.types === 'Syndicated' &&
173-
item.approvedItem.isSyndicated)
173+
item.approvedItem.isSyndicated) ||
174+
(filters.types === 'Time-sensitive' &&
175+
item.approvedItem.isTimeSensitive)
174176
) {
175177
return (
176178
<ScheduledItemCardWrapper

src/curated-corpus/components/ScheduleDayFilterRow/ScheduleDayFilterRow.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ export const ScheduleDayFilterRow: React.FC<ScheduleDayFilterRowProps> = (
8888
count: scheduledItems.filter((item) => item.approvedItem.isCollection)
8989
.length,
9090
},
91+
{
92+
name: 'Time-sensitive',
93+
count: scheduledItems.filter((item) => item.approvedItem.isTimeSensitive)
94+
.length,
95+
},
9196
];
9297

9398
return (

0 commit comments

Comments
 (0)