Repository navigation
Restore main to the approved landing branch - #123
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: 22 | ||
|
|
||
| - name: Unit tests | ||
| run: node --test "workers/download-proxy/test/*.test.mjs" | ||
|
|
||
| deploy: |
| needs: test | ||
| if: github.event_name != 'pull_request' | ||
| runs-on: ubuntu-latest | ||
| # Deploying is opt-in: without the Cloudflare secrets configured the | ||
| # steps below skip (green, not failed) and the site keeps using the | ||
| # same-origin /stream fallback. See README "Download pipeline". | ||
| # (The secrets context is not available in job-level `if`, so the | ||
| # gate lives in job env + step conditions.) | ||
| env: | ||
| HAS_CLOUDFLARE_SECRETS: ${{ secrets.CLOUDFLARE_API_TOKEN != '' && secrets.CLOUDFLARE_ACCOUNT_ID != '' }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| if: env.HAS_CLOUDFLARE_SECRETS == 'true' | ||
|
|
||
| - name: Deploy to Cloudflare | ||
| if: env.HAS_CLOUDFLARE_SECRETS == 'true' | ||
| uses: cloudflare/wrangler-action@v3 | ||
| with: | ||
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
| accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | ||
| workingDirectory: workers/download-proxy | ||
|
|
||
| - name: Skipped (secrets not configured) | ||
| if: env.HAS_CLOUDFLARE_SECRETS != 'true' | ||
| run: echo "CLOUDFLARE_API_TOKEN / CLOUDFLARE_ACCOUNT_ID not set — worker deploy skipped; /stream fallback remains active." |
| ) | ||
| for f in ('session_recording_opt_in', 'heatmaps_opt_in', 'autocapture_web_vitals_opt_in', 'app_urls'): | ||
| check(f in body, f'project PATCH missing {f}') | ||
| check('https://opencoven-redesign-preview.vercel.app' in body.get('app_urls', []), 'siteUrl not in app_urls') |
| for f in ('session_recording_opt_in', 'heatmaps_opt_in', 'autocapture_web_vitals_opt_in', 'app_urls'): | ||
| check(f in body, f'project PATCH missing {f}') | ||
| check('https://opencoven-redesign-preview.vercel.app' in body.get('app_urls', []), 'siteUrl not in app_urls') | ||
| check('https://existing.example' in body.get('app_urls', []), 'existing app_urls clobbered') |
| throw new Error(`${pathName} is missing canonical URL ${expected}`); | ||
| async function getInitialJavascriptBudget(htmlContent) { | ||
| const modulePaths = []; | ||
| const scriptTags = htmlContent.match(/<script\b[^>]*>/g) ?? []; |
|
Pre-merge verification: hosted Documented CodeQL aggregate exception for this exact-tree restoration: the two high findings at The selected tree remains exactly |
Restore
mainto the exact tracked tree oflandingatca47fbcf871c3801a9ad737a02626691434657ad(approved PR #121), as explicitly requested by the repository owner. This replaces the vNext implementation and the #122 hero integration rather than combining the two designs. No new primary issue; this is the requested branch restoration.The resulting tree is
1da10f5a4473108b4c053a3a0e6916a20d56333f, identical tolanding. All 135 changed paths are intentional snapshot restoration, including the earlier homepage, route composition, downloads, legal pages, analytics implementation, Worker and verification workflows. Canonical context consulted: the current main repository instructions and public truth contracts; the selected restored implementation is the previously approved landing snapshot. This is an explicit whole-tree rollback, not a new claim or legal/authority audit. It restores landing's prior public copy, privacy/security behavior and accessibility implementation, and removes main-only routes and gates.Validation: frozen pnpm 10 install under Node 22,
CI=true pnpm build, andpnpm checkpassed. All 34 browser tests and all 10 download Worker tests passed. Browser verification used a temporary untracked Playwright config with port 4184 to avoid interfering with another local server; test definitions are unchanged. Existing whitespace in the landing snapshot was retained to preserve exact tree identity. Local logs:/tmp/coven-restore-landing-checks.logand/tmp/coven-restore-landing-browser.log; generateddistand test reports are excluded from the commit.History remains intact; no force push is needed. The former main tip
abb799b42283ce2b46996acb4ccd2b0575f26dd9is also preserved atbackup/main-before-landing-20261113. Rollback is a revert of this restoration or restoration from that backup. No migration is required.vercel.jsonis unchanged; production branch/domain routing and separate Worker deployment are not reconfigured by this PR. Hosted CI and preview checks must pass before merge; production acceptance remains separate. The experimental ribbon preview and the user's dirty local navigation branch are excluded.