Skip to content

Add weekly note page SmartBlocks command - #536

Open
mdroidian wants to merge 4 commits into
mainfrom
codex/weekly-note-page-smartblocks
Open

Add weekly note page SmartBlocks command#536
mdroidian wants to merge 4 commits into
mainfrom
codex/weekly-note-page-smartblocks

Conversation

@mdroidian

@mdroidian mdroidian commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add a reusable weekly note page date utility
  • register <%WEEKLYNOTEPAGE:…%> with SmartBlocks-compatible NLP and DATEBASIS handling
  • respect WorkBench weekly boundaries and configured page-title formats
  • create missing weekly pages and initialize missing or content-empty pages with the configured weekly template
  • preserve non-empty pages and defer/serialize template initialization until the outer SmartBlocks workflow completes
  • keep WEEKLYNOTEPAGE links inside weekly templates link-only to prevent recursive template expansion
  • re-register safely when SmartBlocks reloads, document the command, and release as WorkBench 1.9.0

Verification

  • npm run build:roam
  • 8 fixed-date assertions covering requested expressions, custom boundaries, and invalid formats
  • focused tsc --noEmit: no diagnostics in changed source files (repository has existing unrelated diagnostics)
  • real logged-in Roam recording at exact PR head aeb15507363534e2383b775b641d7295d75cef14
  • genuine SmartBlocks jj workflow verified missing-page initialization, existing-empty-page initialization, non-empty-page preservation, weekly DATEBASIS, and recursion safety
  • zero page/console errors; temporary graph data removed and the original Weekly Notes configuration restored
  • GitHub Publish Extension / deploy check passed

@coderabbitai

coderabbitai Bot commented Aug 24, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: b5d9c1fb-2bba-4d61-bc26-3e6f9022194b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Open in Devin Review

Comment thread src/utils/weeklyNotePage.ts

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: aeb1550736

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/features/weekly-notes.ts
@mdroidian

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 19208ba87c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/features/weekly-notes.ts Outdated
@mdroidian

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 2f27785796

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@mdroidian

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 2f27785796

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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