Action | Type | Resolved On |
|---|---|---|
| Resolved On in Action Markdown | Refacotring | - - - |
The action markdown files currently use resolved as the frontmatter field name to store the date when an action was resolved. This naming is confusing and causes errors because:
resolved sounds like a boolean - It implies a true/false status rather than a dateresolved field that is actually a boolean, creating naming confusionconst actionsCollection = defineCollection({
type: "content",
schema: z.object({
action: z.string(),
type: z.string(),
project: z.string(),
resolved: z.string().optional(), // ❌ Confusing name
}),
});
---
action: "Fix console.log variable bug"
type: "fixing"
project: "bearlabs"
resolved: "2026-02-07" # ❌ Looks like a boolean but is a date
---
<!-- Checks if resolved date exists (confusing) -->
{entry.data.resolved ? entry.data.resolved : "- - -"}
<!-- Styling based on resolved date presence -->
className={`${entry.data.resolved ? "text-green-200" : "text-amber-100"}`}
Rename resolved to resolved_on throughout the codebase for clarity:
const actionsCollection = defineCollection({
type: "content",
schema: z.object({
action: z.string(),
type: z.string(),
project: z.string(),
resolved_on: z.string().optional(), // ✅ Clear: this is a date
}),
});
Change frontmatter from:
resolved: "2026-02-07"
To:
resolved_on: "2026-02-07"
Files that need updating:
src/content/config.ts - Schema definitionsrc/components/planner/benben/Action.astro - Usage in componentsrc/pages/benben/actions/index.astro - Usage in pagesrc/pages/benben/actions/[item].astro - Usage in dynamic routesrc/pages/2025/*/benben/actions/*.astro - All versioned action pagessrc/pages/2026/*/benben/actions/*.astro - All versioned action pagessrc/pages/2025/*/hygge/portfolio/bearlabs/*.astro - Portfolio pagesresolved_on clearly indicates a date fieldresolved (boolean) vs frontmatter resolved_on (date)created_on, updated_on)src/content/config.ts schemasrc/content/actions/2025/src/content/actions/2026/src/components/planner/benben/Action.astrosrc/pages/benben/actions/index.astrosrc/pages/benben/actions/[item].astrosrc/pages/2025/src/pages/2026/src/pages/2025/12/hygge/portfolio/bearlabs/src/content/config.tssrc/content/actions/**/*.mdsrc/components/planner/benben/Action.astrosrc/pages/benben/actions/index.astrosrc/pages/benben/actions/[item].astrosrc/pages/2025/**/benben/actions/*.astrosrc/pages/2026/**/benben/actions/*.astrosrc/pages/2025/**/hygge/portfolio/bearlabs/*.astro