Polish header navigation in Snakes & Boxes and Stepping Stones (#3939)
Polish header navigation in Snakes & Boxes and Stepping Stones
Handle empty colors in header navigation
Polish header navigation in Snakes & Boxes and Stepping Stones (#3939)
Polish header navigation in Snakes & Boxes and Stepping Stones
Handle empty colors in header navigation
Fix mobile margins and content overflow in Strata and Summertime (#3959)
Co-authored-by: SAPHID saphid@users.noreply.github.com
Commit: 1abb7912 Author: Alex Southwell
Let community admins open members-only entries without joining (#3823)
LJ::Entry::visible_to let community administrators read private entries but required membership for members-only ones, so an admin who wasn't a member saw their members-only entries on the community's recent page and /editjournal, then got an error opening or editing them. Treat admins like members for members-only community entries there and in the reading-page filter, matching the recent, day, month, archive and search paths.
Fixes #671
Co-authored-by: SAPHID saphid@users.noreply.github.com Co-authored-by: Claude Opus 5.5 noreply@anthropic.com
Commit: c19d3043 Author: Alex Southwell
Add a kill switch, an auto-merge switch and an hourly cap to Bellwether (#3779)
Three repository variables control it: BELLWETHER_ENABLED=false stops the workflow entirely; merges after the grace period, with no maintainer's go-ahead, happen only while BELLWETHER_AUTO_MERGE is "true"; and at most BELLWETHER_AUTO_PER_HOUR of those (default 2) land in any hour, so a backlog doesn't flood everyone's notifications at once. Merges a maintainer asks for with /merge aren't capped.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Merges after the grace period now happen only in a sweep. Sweeps share one concurrency group, so they never overlap; comment runs for different PRs can, and two of those could both see room under the cap and both merge. A sweep counts the last hour's merges once, when the first merge comes due, then counts each merge it asks for, so several PRs coming due in one sweep can't exceed the cap either.
recent_merges pages through closed PRs until one was last updated before the cutoff, instead of reading only the 30 most recently updated, so a burst of activity on old PRs can't hide a recent merge.
A BELLWETHER_AUTO_PER_HOUR that isn't a whole number falls back to the default with a message instead of crashing every run at import.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
CI completions get a concurrency group per commit instead of sharing the sweep's, so a later one can't replace a pending sweep and cost an hour of grace-period merges.
A due PR that a comment run leaves for the sweep, or that a sweep holds back at the cap, now says it's ready and waiting for the hourly check, rather than keeping whatever the comment said before (such as "On hold" after an /unhold). A merge already under way is left alone. A dry-run sweep counts the merges it would make.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
A due PR now goes through the live checks (draft, CI, main drift, conflicts) before it's told it's waiting for the hourly check, so one with failing CI says so instead. The guard that leaves a Merging line alone moves into set_next, which checks the comment it's about to rewrite rather than an earlier read. A dry-run sweep adds merges it simulated before counting the hour's merges. Drops a bytecode file the merge from main brought back.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Fix quick reply on entries in the Negatives, Database and Zesty layouts (#3813)
Negatives printed its entry reply container with the entry page's "topcomment" target on every page, so on recent, reading and day pages the reply links pointed at containers that did not exist. Database's entry interaction links had no recent/day/network case, so those pages got a plain link to the reply page. Zesty printed plain reply links and no containers for entries, and its page template never printed the page's script tags, so no quick reply JavaScript loaded at all.
Fixes #2413
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Refresh the Zesty comment link after quick reply
Test quick reply in its own S2 layout suite
Refresh the Database comment count after quick reply
Fix nightly headings and strictness tests
Use the native request language context when rendering heading outlines, and enable strict mode in the importer records module and test fixture.
Co-authored-by: Codex noreply@openai.com
Commit: 268077d2 Author: Mark Smith
Sysban: don't check trusted proxy hops in X-Forwarded-For (#3997)
The middleware checked every X-Forwarded-For entry against IP bans and tempbans, including our own CDN edges and the load balancer. Every request through a CDN carries the CDN server's IP, so a ban on one of those (e.g. a captcha-fraud tempban created while the app took the CDN server for the client) blocked everyone routed through it. Skip entries $LJ::IS_TRUSTED_PROXY trusts; the client and any untrusted hops are still checked.
Co-authored-by: Claude Opus 5.5 noreply@anthropic.com
Commit: 8a3c9e56 Author: Mark Smith
Update CI's dev database to the checkout's schema before tests (#3996)
Thirty of the t/plack-*.t tests don't set $LJ::TCONFIG, so they run against the dev database, which the devcontainer image bakes from main at each nightly build. A PR that adds a userprop or schema change failed those tests until the next image build: #3994's entryform_layout prop broke CI on the PR and on main for a day. CI and the nightly run now bring the dev database up to date with update-db.pl after starting MySQL, which takes a few seconds.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Codex review: tests on the dev config that read a new string from the database would get it empty until the next image build.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Retry Bellwether's GitHub reads, and recover when a merge's answer is lost (#3995)
GitHub's API sometimes answers 500 or 504 for a moment. One such answer stopped the whole hourly sweep, so every PR after it waited an hour. Reads now retry with backoff, and requests time out after 30 seconds. A sweep that hits an error on one PR carries on with the rest and fails at the end, so the error still shows. Writes aren't retried: one that timed out may have happened.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
A merge request that errors or times out may still have merged. Watch for the merge before reporting: record it if it shows up, otherwise leave the comment on Merging and fail the run. A merged PR whose comment doesn't say so, or still has status labels, is finished by the next run that sees it, and the hourly sweep looks at PRs merged in the last six hours. A comment that records a merge is never overwritten.
Also: labels added during a run are cleared when it merges (bw: merging used to survive), a failed permission lookup stops the PR instead of counting as no access, cut-off and TLS-broken responses are retried, and the CI handler keeps going past one PR's error like the sweep.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Keep the login dialog remember-me label on its own checkbox (#3736)
Co-authored-by: SAPHID saphid@users.noreply.github.com
Commit: 95f18bb5 Author: Alex Southwell
Add Core2 entry_tags_position property for tags above entry text (#3933)
Co-authored-by: SAPHID saphid@users.noreply.github.com
Commit: fa9b1a15 Author: Alex Southwell
Let free accounts make polls for paid communities they post to (#3793)
The poll generator used the generic authas check, which only accepts journals the user maintains, and offered free accounts only the paid journals they maintain. Accept any community the user can post to, including ones that let anybody post, where the poll could be posted, matching the rule used when the entry is posted. Offer those communities in the Post to list, and open the generator for the community chosen on the entry form.
Co-authored-by: SAPHID saphid@users.noreply.github.com Co-authored-by: Claude Opus 5.5 noreply@anthropic.com
Commit: 5f570a1d Author: Alex Southwell
Expose site logo URLs to S2 styles (#3888)
Co-authored-by: SAPHID saphid@users.noreply.github.com
Commit: 52e419dc Author: Alex Southwell
Use larger default embed sizes for uploaded images (#3896)
Default image embeds to practical sizes (#2685)
Verify delivery of copied image embeds (#2685)
Match crosspost confirmation borders to site skins (#3862)
Co-authored-by: SAPHID saphid@users.noreply.github.com
Commit: 9e4c2b33 Author: Alex Southwell
Explain why redirecting usernames are unavailable for rename (#3831)
Co-authored-by: SAPHID saphid@users.noreply.github.com
Commit: 246352c0 Author: Alex Southwell
Sort uploaded images in the bulk editor (#3870)
Sort uploaded images in the bulk editor
Improve contrast for the selected image sort order
Store community entry slugs on the destination journal cluster (#3894)
Co-authored-by: SAPHID saphid@users.noreply.github.com
Commit: 1d957db4 Author: Alex Southwell
Style error messages in a Foundation alert box (#3898)
Convert the shared error page to Foundation
Keep shared error links and account switching accessible
Remember the entry form layout for old posting and editing links (#3994)
Old /update and /editjournal links, the Edit Entries page and stale-tab recovery links opened the simple layout for everyone, including people who had opted into the native editor through the updatepage beta. The layout switch link now stores the chosen layout in a new entryform_layout userprop, and those links open the stored layout (simple by default).
bin/upgrading/migrate-updatepage-beta.pl gives updatepage beta users the advanced layout. Run it before removing updatepage from %LJ::BETA_FEATURES: checking any beta drops inactive keys from a user's beta list.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Store an explicit "simple" choice even while the preference is unset, so the beta migration can't override it; report a failed save instead of claiming success; reject values with a trailing newline. The switch link saves before following itself when the browser won't queue a beacon.
The migration skips accounts that no longer exist, reads from the cluster master and re-reads each preference before writing, reports failures in its exit status, and takes --userid to limit a run (the test uses it so it leaves other development accounts alone).
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
With no stored layout, fall back to the updatepage beta: people who opted into the native editor get its advanced layout from old links right after deploy, not only once the migration script has run. A stored choice still wins.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
The layout fallback called is_in_beta, which rewrites the whole beta list when any beta has expired; on every old link that could race with joining another beta, and expiring updatepage would erase what the migration needs. Read the list directly instead.
The migration re-checks each stored layout on the cluster master rather than memcache. A modified click on the layout switch still opens its new tab when the browser refuses the beacon.
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com