Skip to content

fix: count footer words from BlockNote text, not JSON - #43

Merged
daschinmoy21 merged 2 commits into
mainfrom
fix/word-count-blocknote
Jul 28, 2026
Merged

daschinmoy21 merged 2 commits into
mainfrom
fix/word-count-blocknote

Conversation

@daschinmoy21

Copy link
Copy Markdown
Owner

Summary

  • Add countWordsInNoteContent that extracts text from BlockNote JSON
  • App uses it for footer word count instead of splitting raw JSON

Fixes #38

Test plan

  • unit tests for BlockNote docs vs naive JSON split
  • tsc --noEmit

Parse block content recursively so Words: no longer includes keys,
ids, and props from the serialized document.

Closes #38
@coderabbitai

coderabbitai Bot commented Jul 28, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

@daschinmoy21, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 58 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 264aa83d-8af7-433d-a2d0-b14632de6c4c

📥 Commits

Reviewing files that changed from the base of the PR and between a3b158b and 128517d.

📒 Files selected for processing (3)
  • src/App.tsx
  • src/lib/note-utils.test.ts
  • src/lib/note-utils.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/word-count-blocknote

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.

@daschinmoy21
daschinmoy21 merged commit ce685f5 into main Jul 28, 2026
3 of 4 checks passed
@daschinmoy21
daschinmoy21 deleted the fix/word-count-blocknote branch July 28, 2026 19:49
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.

Bug: Footer word count counts BlockNote JSON tokens, not words

1 participant