feat: created recipes structure

This commit is contained in:
Leyla Becker 2026-02-12 14:57:57 -06:00
parent a035c08249
commit f93207b4e3
7 changed files with 432 additions and 13 deletions

View file

@ -42,6 +42,13 @@ const getTitleFromFilename = (filePath) => {
}
const getFileCreatedTime = (filePath) => {
// Try git first for accurate cross-system creation time
const gitTime = getGitCreatedTime(filePath);
if (gitTime) {
return gitTime;
}
// Fall back to filesystem for untracked files
try {
const stats = fs.statSync(filePath);
const time = stats.birthtime ?? stats.mtime;