Skip to content

Commit dd630dc

Browse files
chore(frontend): normalize related post ordering
Include post ordering change produced by validation hooks and add a focused assertion so ordering regressions are covered.
1 parent 68ec67b commit dd630dc

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

frontend/src/site/site_data.test.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { describe, expect, it } from "vitest";
22
import {
33
CLI_COMMANDS_TABLE,
44
FUNCTIONALITY_MATRIX,
5+
LEARN_MORE_POSTS,
56
MCP_ACTIONS_TABLE,
67
SITE_CODE_SNIPPETS,
78
SITE_SECTIONS,
@@ -36,4 +37,15 @@ describe("site_data", () => {
3637
expect(SITE_CODE_SNIPPETS.stdioConfigJson).toContain("\"mcpServers\"");
3738
expect(SITE_CODE_SNIPPETS.cliUploadExample).toContain("neotoma upload");
3839
});
40+
41+
it("keeps learn-more card ordering stable", () => {
42+
const relatedPostTitles = LEARN_MORE_POSTS.filter((item) => item.label === "Related post").map(
43+
(item) => item.title
44+
);
45+
expect(relatedPostTitles).toContain("Six agentic trends I'm betting on (and how I might be wrong)");
46+
expect(relatedPostTitles).toContain("Why agent memory needs more than RAG");
47+
expect(
48+
relatedPostTitles.indexOf("Six agentic trends I'm betting on (and how I might be wrong)")
49+
).toBeLessThan(relatedPostTitles.indexOf("Why agent memory needs more than RAG"));
50+
});
3951
});

frontend/src/site/site_data.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -570,14 +570,6 @@ export const LEARN_MORE_POSTS: LearnMoreCardItem[] = [
570570
href: "https://markmhendrickson.com/posts/agent-memory-truth-problem",
571571
imageUrl: "https://markmhendrickson.com/images/posts/agent-memory-truth-problem-hero.png",
572572
},
573-
{
574-
label: "Related post",
575-
title: "Why agent memory needs more than RAG",
576-
description:
577-
"Why similarity search works for exploration but breaks for durable state, and how schema-first memory closes the gap.",
578-
href: "https://markmhendrickson.com/posts/why-agent-memory-needs-more-than-rag",
579-
imageUrl: "https://markmhendrickson.com/images/posts/why-agent-memory-needs-more-than-rag-hero.png",
580-
},
581573
{
582574
label: "Related post",
583575
title: "Six agentic trends I'm betting on (and how I might be wrong)",
@@ -586,6 +578,14 @@ export const LEARN_MORE_POSTS: LearnMoreCardItem[] = [
586578
href: "https://markmhendrickson.com/posts/six-agentic-trends-betting-on",
587579
imageUrl: "https://markmhendrickson.com/images/posts/six-agentic-trends-betting-on-hero.png",
588580
},
581+
{
582+
label: "Related post",
583+
title: "Why agent memory needs more than RAG",
584+
description:
585+
"Why similarity search works for exploration but breaks for durable state, and how schema-first memory closes the gap.",
586+
href: "https://markmhendrickson.com/posts/why-agent-memory-needs-more-than-rag",
587+
imageUrl: "https://markmhendrickson.com/images/posts/why-agent-memory-needs-more-than-rag-hero.png",
588+
},
589589
{
590590
label: "Related post",
591591
title: "Agent command centers need one source of truth",

0 commit comments

Comments
 (0)