Skip to content

Lua M2 §4: extract set-pieces' pure geometry - #246

Merged
clintecker merged 1 commit into
mainfrom
lua-m2-setpieces
Aug 5, 2026
Merged

Lua M2 §4: extract set-pieces' pure geometry#246
clintecker merged 1 commit into
mainfrom
lua-m2-setpieces

Conversation

@clintecker

Copy link
Copy Markdown
Owner

Moves set-pieces.lua's pure geometry (cascade step, the tail sine offset + LaTeX/web size ramps) into press-util.lua beside the figure helpers, unit-tested under pandoc lua. Same require mechanism; all AST-shaping stays. Behaviour identical — set-pieces integration test unchanged (5), full filter + unit suite green (52). docs/LUA-QUALITY-PLAN.md §4.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NMBFSnRjob6Cmz1p4cwyCQ

Move the set-piece geometry from set-pieces.lua into press-util.lua beside the
figure helpers: the cascade step (cascade_indent), the serpentine tail's sine
offset + LaTeX size ramp (tail_ramp), and the web font-size ramp (tail_web_size),
with their constants (CASCADE_STEP, TAIL_AMP, TAIL_SIZES, TAIL_WEB_SIZES). The
filter loads the module by the same PANDOC_SCRIPT_FILE-relative package.path and
keeps all AST-shaping. Unit-tested under pandoc lua beside the figure helpers.

Behaviour identical: the set-pieces integration test passes unchanged (5), all
filter integration + unit tests green (56), stylua/selene/syntax clean.
docs/LUA-QUALITY-PLAN.md §4.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NMBFSnRjob6Cmz1p4cwyCQ
@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown

Warning

Review limit reached

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

Next review available in: 27 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

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: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 5759a6ff-fb35-43be-8c40-d4d4cfa7ed52

📥 Commits

Reviewing files that changed from the base of the PR and between 0d15a11 and 934c229.

📒 Files selected for processing (3)
  • src/press/data/lua/press-util.lua
  • src/press/data/lua/set-pieces.lua
  • tests/lua/test_press_util.lua

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.

@clintecker
clintecker merged commit 3c02ee5 into main Aug 5, 2026
17 checks passed
@clintecker
clintecker deleted the lua-m2-setpieces branch August 5, 2026 23:05
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