Skip to content

Mark every difference between the two course versions, with no limit - #202

Merged
teriaavibes merged 1 commit into
mainfrom
ccr-1f4483a5-9qnoiy
Nov 26, 2026
Merged

teriaavibes merged 1 commit into
mainfrom
ccr-1f4483a5-9qnoiy

Conversation

@teriaavibes

Copy link
Copy Markdown
Collaborator

What this changes

The course page with a "Current" and an "Upcoming" tab left everything unmarked when more than half of the tasks were new or reworded, with a note saying the course was largely rewritten. That is exactly the case where a reader most needs to see the difference, so the limit is gone:

  • versionMarks (scripts/lib/course-next.mjs) always marks new, reworded and leaving tasks, and the cards only one version has. The largely flag and the three "rewritten" texts are removed.
  • renderCourseVersions (scripts/lib/course-render.mjs) always uses the normal intro and legends.
  • MAJOR_SHARE still decides whether course-next build patches a course or asks for the whole pipeline. That rule is unchanged.
  • docs/course-next.md and tests/scripts/course-next.test.mjs are updated to match (the old "a rewrite marks nothing" test now checks that a rewrite is marked).
  • src/content/docs/courses/ab-620.mdx is re-rendered. AB-620 was the only two-tab page over the limit (20 of 36 tasks new or reworded); it now shows 15 new, 12 reworded and 23 leaving tasks marked. The other four two-tab pages (AB-210, AB-250, AB-410, AB-731) render identically.

Checks

  • node --test tests/scripts/*.test.mjs passes.
  • pnpm build passes.
  • Checked the AB-620 Upcoming tab in a browser: the green, underlined headings and "New from December 18, 2026" / "Reworded" badges render.

Generated by Claude Code

The page with a current and an upcoming tab left everything unmarked when
more than half of the tasks were new or reworded, which is exactly when the
difference matters most. New, reworded and leaving tasks and the cards only
one version has are now always marked. The limit stays only where it decides
whether course-next patches a course or asks for the whole pipeline.

Re-renders the AB-620 course page, the only one that was over the limit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01U1jUtxqLq3sdWtii22g6qq
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying hub-staging with  Cloudflare Pages  Cloudflare Pages

Latest commit: e6ed3dc
Status: ✅  Deploy successful!
Preview URL: https://a5e12a33.hub-staging-9wx.pages.dev
Branch Preview URL: https://ccr-1f4483a5-9qnoiy.hub-staging-9wx.pages.dev

View logs

@teriaavibes
teriaavibes merged commit 60efcf6 into main Nov 26, 2026
6 checks passed
@teriaavibes
teriaavibes deleted the ccr-1f4483a5-9qnoiy branch November 26, 2026 18:45
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.

2 participants