Skip to content

[codex] fix journalProjects auxiliary file filtering - #25

Open
wangping88 wants to merge 1 commit into
Goldentrii:mainfrom
wangping88:codex/journal-projects-file-filter
Open

[codex] fix journalProjects auxiliary file filtering#25
wangping88 wants to merge 1 commit into
Goldentrii:mainfrom
wangping88:codex/journal-projects-file-filter

Conversation

@wangping88

Copy link
Copy Markdown

Summary

  • Reuse the shared journal file filter when listAllProjects() scans project journals.
  • Keep the existing date-prefix requirement for project listings so freeform markdown files do not become project entries.
  • Add regression coverage for journalProjects() to ignore merged entries, capture notes, weekly rollups, index files, and non-date markdown.

Why

journalProjects() depends on listAllProjects(), which had a local journal filename filter that drifted from the shared isJournalFile() helper. Auxiliary files such as *.merged.md could be counted as real journal entries and make project lists report the wrong latest entry or entry count.

Tests

  • npm run build
  • npm run lint
  • npm test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant