Integrate PRs #85, #89, and #90#93
Merged
Merged
Conversation
The homepage is rendered by fetching the here.now shell, injecting the catalog, and serving it. When that fetch throws or the shell returns a 5xx, the Worker passed the upstream failure straight through (loop-routes.js), so visitors hit an unbranded, catalog-less dead end even though the Worker already holds every loop record in its own database. Render a minimal branded fallback homepage from that catalog instead: it keeps the site chrome, lists every published loop with working links, and points agents at catalog.json and llms.txt. The real failure status is preserved (the upstream 5xx, or 502 when the shell is unreachable) so the outage stays honest and the page is marked noindex. Covered by two tests.
Co-authored-by: mberman84 <mberman84@users.noreply.github.com>
Co-authored-by: mberman84 <mberman84@users.noreply.github.com>
…ort-c5db Co-authored-by: mberman84 <mberman84@users.noreply.github.com>
…k-docs Co-authored-by: mberman84 <mberman84@users.noreply.github.com>
…allback Co-authored-by: mberman84 <mberman84@users.noreply.github.com>
Co-authored-by: mberman84 <mberman84@users.noreply.github.com>
Co-authored-by: mberman84 <mberman84@users.noreply.github.com>
…ll is unavailable Co-authored-by: mberman84 <mberman84@users.noreply.github.com>
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.
Summary
Combines the three open, reviewed PRs into one verified integration so they can land together:
Most popularoption to the homepage sort control, bumps the script cache tag to20260702-popular-sort, and extends the repository checks.catalog.txtandllms.txtin the publish checklist).noindexfallback listing every published loop from its own database while preserving the real failure status (502/503).Merging this PR marks the three source PRs as merged automatically.
Verification (on the combined result)
node --check loop-library/site/script.jsnode loop-library/scripts/check.mjs— passesnpm --prefix loop-library/worker run check— 52/52 tests passpython3 -m json.toolon both JSON manifests — validgit diff --check— cleanPost-merge
popular-sortscript cache tag takes effect (per Add dedicated "Most popular" sort to the loop library #90).