Project chronological date: YMD admin, month/year public, sort/recent

- Serialize and save project.date as date-only YYYY-MM-DD (no TZ drift)
- Admin label + hint; projects list shows Date column
- Home Recent and portfolio date sort use project.date (nulls last)
- Public display stays month+year / year-only via safe formatters
This commit is contained in:
2026-08-01 11:50:17 -04:00
parent ee4412d911
commit bf2732c936
10 changed files with 126 additions and 18 deletions
+2 -1
View File
@@ -1,11 +1,12 @@
import { Link } from "react-router-dom";
import type { Project } from "../lib/api";
import { thumbOf } from "../lib/api";
import { formatProjectYear } from "../lib/dates";
import "./ProjectCard.scss";
export function ProjectCard({ project, index = 0 }: { project: Project; index?: number }) {
const thumb = thumbOf(project);
const year = project.date ? new Date(project.date).getFullYear() : null;
const year = formatProjectYear(project.date);
return (
<article