Repository navigation
Mark every difference between the two course versions, with no limit - #202
Merged
Merged
Conversation
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
Deploying hub-staging with
|
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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. Thelargelyflag and the three "rewritten" texts are removed.renderCourseVersions(scripts/lib/course-render.mjs) always uses the normal intro and legends.MAJOR_SHAREstill decides whethercourse-next buildpatches a course or asks for the whole pipeline. That rule is unchanged.docs/course-next.mdandtests/scripts/course-next.test.mjsare updated to match (the old "a rewrite marks nothing" test now checks that a rewrite is marked).src/content/docs/courses/ab-620.mdxis 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.mjspasses.pnpm buildpasses.Generated by Claude Code