Skip to content

Commit 918f0b7

Browse files
committed
scheduled
1 parent 072e922 commit 918f0b7

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

src/components/ProductChangelog.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const props = z
2222
.and(
2323
z.object({
2424
hideEntry: z.string().optional(),
25+
scheduledOnly: z.boolean().default(false),
2526
}),
2627
);
2728
@@ -37,7 +38,8 @@ if ("product" in input) {
3738
return (
3839
!e.data.hidden &&
3940
e.data.products.some(({ id }) => id === input.product.id) &&
40-
input.hideEntry !== e.id
41+
input.hideEntry !== e.id &&
42+
(!input.scheduledOnly || e.data.scheduled)
4143
);
4244
};
4345
} else {

src/content/changelog/waf/2025-07-21-scheduled-waf-release.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: WAF Release - Scheduled changes
33
description: WAF managed ruleset changes scheduled for 2025-07-28
44
date: 2025-07-21
5-
scheduledDate: 2025-07-28
5+
scheduled: true
66
---
77

88
import { RuleID } from "~/components";
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: Scheduled changes
3+
sidebar:
4+
order: 2
5+
---
6+
7+
import { ProductChangelog } from "~/components";
8+
9+
<ProductChangelog product="waf" scheduledOnly />

src/schemas/changelog.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const changelogSchema = ({ image }: SchemaContext) =>
66
title: z.string(),
77
description: z.string(),
88
date: z.coerce.date(),
9-
scheduledDate: z.coerce.date().optional(),
9+
scheduled: z.boolean().default(false),
1010
products: z
1111
.array(reference("products"))
1212
.default([])

0 commit comments

Comments
 (0)