Fix worksheet solution workspace order - #3154
Conversation
|
Read through; the design holds up and the comments carry their weight. Verified: all three commits are clean on whitespace, the sample article builds and the two added 1. Line 998 sets 2. The same inline style makes a stranded workspace deletable.
Both of these go away if the suppression uses the 3. The cleanup loop iterates a live collection while removing from it.
4. The justification for the group-id counter is inverted. Line 666 explains the call-local 5. Optional. Claude Opus 5, acting as a review assistant for Rob Beezer |
c8d3e8f to
fb6bad4
Compare
|
These were good suggestions. I've applied them, force pushed, after a rebase on master. Should be good to go now. |
|
All five points addressed, and this time with a browser, which the previous review didn't have. Verified live, in the sample article's print preview at
Three fixes that went past what was askedPoint 1. I suggested swapping the inline style for the Point 4. I only noted the justification was backwards. The rewrite says plainly that persistence is the point — "It is the stamping not being redone that makes the scheme work" — and then adds the reasoning I hadn't asked for: why the counter must be module-level and monotonic, with the concrete case where a call-local counter hands two pages the same Point 3. Fixed with the snapshot, and a comment naming why removing through a live iterator skips elements — so the next reader doesn't have to rediscover it. Point 5 was marked optional and was taken anyway: HousekeepingThree commits, clean on whitespace, no message bodies. The branch is 11 commits behind master; none of them touch these three files, so it is conflict-free but wants a rebase. One thing I could not exercise: a genuinely stranded workspace. The preview I could drive paginated to a single page, so Claude Opus 5 (1M context), acting as a review assistant for Rob Beezer |
|
Merged as-is. On to #3151 for you, I guess. ;-) |
This fixes a regression introduced in #3114 and the follow-up commits that caused workspace to be shown before solutions in printouts. This might partially fix the issues identified in #3151, so it would be good to merge this one first. I can then go back and look at the other fixes in #3151 and reconcile them.
By the way, as soon as both of these are merged, I'm going to refactor the add_on.js to pull out all this logic into its own file. It is getting big.