Skip to content

Commit d2d9729

Browse files
committed
Remove some logic
1 parent 475a084 commit d2d9729

File tree

3 files changed

+27
-17
lines changed

3 files changed

+27
-17
lines changed

public/__redirects

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,10 @@
1010
# changelog
1111
/changelog/rss.xml /changelog/rss/index.xml 301
1212
/cache/changelog/index.xml /changelog/rss/cache.xml 301
13-
/cloudflare-one/changelog/access/index.xml /changelog/rss/access.xml 301
14-
/cloudflare-one/changelog/browser-isolation/index.xml /changelog/rss/browser-isolation.xml 301
15-
/cloudflare-one/changelog/casb/index.xml /changelog/rss/casb.xml 301
16-
/cloudflare-one/changelog/dex/index.xml /changelog/rss/dex.xml 301
17-
/cloudflare-one/changelog/dlp/index.xml /changelog/rss/dlp.xml 301
18-
/cloudflare-one/changelog/email-security/index.xml /changelog/rss/email-security.xml 301
19-
/cloudflare-one/changelog/gateway/index.xml /changelog/rss/gateway.xml 301
20-
/cloudflare-one/changelog/risk-score/index.xml /changelog/rss/risk-score.xml 301
2113
/dns/changelog/index.xml /changelog/rss/dns.xml 301
2214
/fundamentals/changelog/index.xml /changelog/rss/fundamentals.xml 301
2315
/logs/changelog/index.xml /changelog/rss/logs.xml 301
2416
/ssl/changelog/index.xml /changelog/rss/ssl.xml 301
25-
/cloudflare-one/changelog/tunnel/index.xml /changelog/rss/cloudflare-tunnel.xml 301
2617

2718
## legacy
2819
/changelog/index.xml /release-notes/index.xml 301

src/components/ProductChangelog.astro

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import { slug } from "github-slugger";
77
import RSSButton from "~/components/RSSButton.astro";
88
import AnchorHeading from "~/components/AnchorHeading.astro";
99
import { format } from "date-fns";
10+
import ProductPills from "~/components/changelog/ProductPills.astro";
11+
1012
const props = z
1113
.object({
1214
product: reference("products"),
@@ -19,11 +21,13 @@ const props = z
1921
const input = await props.parseAsync(Astro.props);
2022
let filter: GetChangelogsOptions["filter"];
2123
let rss: string;
24+
let areaFeed: boolean
2225
if ("product" in input) {
2326
rss = `/changelog/rss/${input.product.id}.xml`;
2427
filter = (e) => {
2528
return !e.data.hidden && e.data.products.some(({ id }) => id === input.product.id);
2629
};
30+
areaFeed = false;
2731
} else {
2832
rss = `/changelog/rss/${slug(input.area)}.xml`;
2933
const products = await getCollection("products", (e) => {
@@ -32,6 +36,7 @@ if ("product" in input) {
3236
filter = (e) => {
3337
return e.data.products.some((x) => products.some((y) => x.id === y.id));
3438
};
39+
areaFeed = true;
3540
}
3641
const changelogs = await getChangelogs({ filter });
3742
---
@@ -40,15 +45,29 @@ const changelogs = await getChangelogs({ filter });
4045

4146
{
4247
changelogs.map(async (entry) => {
48+
const { Content } = await render(entry);
4349

50+
// If areaFeed is true, add ProductPills
51+
if (areaFeed === true) {
52+
return (
53+
<AnchorHeading depth={2} title={format(entry.data.date, "yyyy-MM-dd")} />
54+
<ProductPills products={entry.data.products} />
55+
<br />
56+
<strong>{entry.data.title}</strong>
57+
<br />
58+
<Content />
59+
);
60+
}
4461

45-
const { Content } = await render(entry);
62+
// Default output
4663
return (
47-
<AnchorHeading depth={2} title={format(entry.data.date, "yyyy-MM-dd")} />
48-
<br/>
49-
<strong>{entry.data.title}</strong>
50-
<br/>
51-
<Content />
64+
<>
65+
<AnchorHeading depth={2} title={format(entry.data.date, "yyyy-MM-dd")} />
66+
<br />
67+
<strong>{entry.data.title}</strong>
68+
<br />
69+
<Content />
70+
</>
5271
);
5372
})
5473
}

src/content/changelog/access/2025-03-03-saml-oidc-fields-saml-transformations.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ date: 2025-03-03T6:00:00Z
66

77
[Access for SaaS applications](/cloudflare-one/applications/configure-apps/saas-apps/) now include more configuration options to support a wider array of SaaS applications.
88

9-
### SAML and OIDC Field Additions
9+
**SAML and OIDC Field Additions**
1010

1111
OIDC apps now include:
1212

@@ -21,7 +21,7 @@ SAML apps now include improved SAML attribute mapping from an IdP.
2121

2222
![SAML field additions](~/assets/images/changelog/access/saml-attribute-statements.png)
2323

24-
### SAML transformations
24+
**SAML transformations**
2525

2626
SAML identities sent to Access applications can be fully customized using JSONata expressions. This allows admins to configure the precise identity SAML statement sent to a SaaS application.
2727

0 commit comments

Comments
 (0)