Skip to content

fix(test): pin loopover-ui + ui-kit jsdom localStorage over Node 26's broken global#7616

Merged
JSONbored merged 2 commits into
mainfrom
claude/beautiful-rosalind-5b6a9a
Jul 21, 2026
Merged

fix(test): pin loopover-ui + ui-kit jsdom localStorage over Node 26's broken global#7616
JSONbored merged 2 commits into
mainfrom
claude/beautiful-rosalind-5b6a9a

Conversation

@JSONbored

@JSONbored JSONbored commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Closes #7612

Summary

  • apps/loopover-ui/vitest.setup.ts and packages/loopover-ui-kit/vitest.setup.ts never received
    fix(test): pin miner-ui jsdom localStorage over Node 26's broken global #7597's guard against Node 26's broken globalThis.localStorage global, so any bare localStorage.*
    call throws under Node 26 (while passing on Node 22/24, what CI actually runs). Mirrors the exact fix
    already accepted for apps/loopover-miner-ui.

Scope

  • The PR title follows type(scope): short summary Conventional Commit format, for example fix(api): restore profile access checks.
  • This PR is focused and does not mix unrelated backend, UI, MCP, docs, dependency, and deploy changes.
  • This follows CONTRIBUTING.md and does not reintroduce GitHub Pages, VitePress, site/, or CNAME.
  • I linked a currently open issue this PR resolves (e.g. Closes #123) — a linked open issue is required for every contributor PR.

Validation

  • git diff --check
  • npm run actionlint
  • npm run typecheck
  • npm run test:coverage locally; codecov/patch requires ≥99% coverage of the lines AND branches you changed (aim for 100% on your diff so CI variance does not fail near the threshold). Global coverage is a non-blocking trend with a loose 90% backstop, not the gate.
  • npm run test:workers
  • npm run build:mcp
  • npm run test:mcp-pack
  • npm run ui:openapi:check
  • npm run ui:lint
  • npm run ui:typecheck
  • npm run ui:build
  • npm audit --audit-level=moderate
  • New or changed behavior has unit/integration tests for new branches, fallback paths, and sanitizer boundaries

If any required check was skipped, explain why:

  • No new test files: both changed files are vitest.setup.ts (outside Codecov's src/**-only include
    glob, so no patch-coverage obligation either way). The regression proof is the 5 previously-Node-26-red
    apps/loopover-ui test files (routes/index, api/try-it, app-panels/onboarding-preview-card,
    lib/analytics-window, lib/use-local-storage) turning green — verified directly on Node 26: 426/426
    in apps/loopover-ui, 19/19 in packages/loopover-ui-kit. packages/loopover-ui-kit has no test that
    currently touches localStorage, so its guard is preventive rather than fixing a currently-red test.

Safety

  • No secrets, wallet details, hotkeys, coldkeys, user PATs, private keys, raw trust scores, private rankings, or private maintainer evidence are exposed.
  • Public GitHub text stays sanitized, low-noise, and does not imply compensation guarantees or optimization tactics.
  • Auth, cookie, CORS, GitHub App, Cloudflare, or session changes include negative-path tests.
  • API/OpenAPI/MCP behavior is updated and tested where needed.
  • UI changes use live API data or real empty/error/loading states, not production mock/demo fallbacks.
  • Visible UI changes include a UI Evidence section below with JPG/JPEG or PNG screenshots arranged as organized, captioned, clickable thumbnails. SVG screenshots are not used as review evidence. Review-only screenshots or recordings are not committed to the repository.
  • Public docs/changelogs are updated where needed; changelogs are only edited for release-prep PRs.

UI Evidence

Not applicable — test-infrastructure-only change, no visible UI/frontend difference.

Notes

… broken global (#7612)

Node 26 predefines an experimental globalThis.localStorage accessor
(nodejs/node#60303) that returns undefined without --localstorage-file.
It exists on globalThis before jsdom's environment is installed, so
Vitest's populateGlobal skips copying jsdom's working Storage over it,
and every bare localStorage call throws under Node 26 while passing on
Node 22/24 -- the identical gap #7597 fixed in apps/loopover-miner-ui,
which never got mirrored into apps/loopover-ui or packages/loopover-ui-kit.

Confirmed via a full npm run test:ci on Node 26: 5 files / 26 tests
failed in apps/loopover-ui with "Cannot read properties of undefined
(reading 'clear')" on window.localStorage.clear() -- routes/index,
api/try-it, app-panels/onboarding-preview-card, lib/analytics-window,
lib/use-local-storage. packages/loopover-ui-kit has no test that
currently touches localStorage, so this guard is preventive there.

Point globalThis.localStorage at jsdom's real Storage from the raw
JSDOM window unconditionally: a no-op where the global already is that
object, the fix on Node 26+. All 5 previously-failing files now pass
on Node 26 (426/426 in apps/loopover-ui, 19/19 in ui-kit), with no
change on Node 22/24.

Closes #7612
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 21, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
loopover-ui d57a509 Commit Preview URL

Branch Preview URL
Jul 21 2026, 02:14 AM

…ge guard

npm run ui:lint flagged the previous wrap of the jsdom.window?.localStorage
chain; break before ?.window instead of before ?.localStorage to match
apps/loopover-ui's printWidth-100 prettier config. No behavior change.
@superagent-security

Copy link
Copy Markdown
Contributor

Superagent didn't find any vulnerabilities or security issues in this PR.

@codecov

codecov Bot commented Jul 21, 2026

Copy link
Copy Markdown

Bundle Report

Changes will increase total bundle size by 1 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
loopover-ui 7.66MB 1 bytes (0.0%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: loopover-ui

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/add-scalar-classes-DovJOH2u.js (New) 2.17MB 2.17MB 100.0% 🚀
assets/tanstack-vendor-DKkuCBmj.js (New) 823.76kB 823.76kB 100.0% 🚀
assets/docs.fumadocs-spike-api-reference-DjR3EjkU.js (New) 442.94kB 442.94kB 100.0% 🚀
assets/AgentScalarChatInterface.vue-BEo-gGED.js (New) 201.71kB 201.71kB 100.0% 🚀
assets/modal-DzKz9jHa.js (New) 184.28kB 184.28kB 100.0% 🚀
assets/client-FLUEa-iw.js (New) 146.06kB 146.06kB 100.0% 🚀
assets/maintainer-panel-l1N6NGTy.js (New) 78.53kB 78.53kB 100.0% 🚀
assets/ui-vendor-C61zgCb7.js (New) 57.04kB 57.04kB 100.0% 🚀
assets/routes-CoSmqlkQ.js (New) 34.83kB 34.83kB 100.0% 🚀
assets/owner-panel-D_bujBJ6.js (New) 27.2kB 27.2kB 100.0% 🚀
assets/app-BXrlzDzo.js (New) 25.65kB 25.65kB 100.0% 🚀
assets/app.runs-B8odb4E4.js (New) 23.55kB 23.55kB 100.0% 🚀
assets/miner-panel-oTGk1oYU.js (New) 20.25kB 20.25kB 100.0% 🚀
assets/docs-source-DorUINqj.js (New) 19.46kB 19.46kB 100.0% 🚀
assets/api._op-CWGHMIL3.js (New) 17.55kB 17.55kB 100.0% 🚀
assets/self-hosting-docs-audit-z47wcNAF.js (New) 16.73kB 16.73kB 100.0% 🚀
assets/app.index-BfwTa_3c.js (New) 15.62kB 15.62kB 100.0% 🚀
assets/playground-panel-CqBjxRsa.js (New) 14.49kB 14.49kB 100.0% 🚀
assets/app.audit-DdBzvaXQ.js (New) 10.11kB 10.11kB 100.0% 🚀
assets/extension-D-MiHbIe.js (New) 10.04kB 10.04kB 100.0% 🚀
assets/app.config-generator-BJcD7WcB.js (New) 9.88kB 9.88kB 100.0% 🚀
assets/fairness-6hiVcCfC.js (New) 8.34kB 8.34kB 100.0% 🚀
assets/maintainers-CwSdXVbo.js (New) 8.03kB 8.03kB 100.0% 🚀
assets/miners-D5r6ZpxO.js (New) 7.85kB 7.85kB 100.0% 🚀
assets/agents-DztQtKh7.js (New) 7.76kB 7.76kB 100.0% 🚀
assets/commands-panel-ChKhWmIJ.js (New) 6.65kB 6.65kB 100.0% 🚀
assets/maintainer-workflow-hi33Hh8x.js (New) 6.61kB 6.61kB 100.0% 🚀
assets/roadmap-p_zGAWKj.js (New) 6.33kB 6.33kB 100.0% 🚀
assets/digest-panel-DSQixChJ.js (New) 6.18kB 6.18kB 100.0% 🚀
assets/repos._owner._repo.quality-ptdk-Jw_.js (New) 6.14kB 6.14kB 100.0% 🚀
assets/docs.index-DXROxBVL.js (New) 5.55kB 5.55kB 100.0% 🚀
assets/api.index-BKDrN6iX.js (New) 4.7kB 4.7kB 100.0% 🚀
assets/api-BpoA45bG.js (New) 2.69kB 2.69kB 100.0% 🚀
assets/docs-A-NpI83Z.js (New) 2.67kB 2.67kB 100.0% 🚀
assets/app.workbench-CqjygjH5.js (New) 1.58kB 1.58kB 100.0% 🚀
assets/session-yNsYd3Of.js (New) 1.45kB 1.45kB 100.0% 🚀
assets/tooltip-BnSweOR3.js (New) 1.45kB 1.45kB 100.0% 🚀
assets/tabs-BUBoJpmc.js (New) 1.39kB 1.39kB 100.0% 🚀
assets/app.repos-D2uxeAoA.js (New) 1.07kB 1.07kB 100.0% 🚀
assets/input-Cgmg-38l.js (New) 796 bytes 796 bytes 100.0% 🚀
assets/file-cog-Dr7w5G19.js (New) 758 bytes 758 bytes 100.0% 🚀
assets/docs.ai-summaries-BBOltMHq.js (New) 506 bytes 506 bytes 100.0% 🚀
assets/app.maintainer-ChbpVOyp.js (New) 502 bytes 502 bytes 100.0% 🚀
assets/docs.branch-analysis-DffXK3lC.js (New) 499 bytes 499 bytes 100.0% 🚀
assets/docs.scoreability-Djs96HwS.js (New) 499 bytes 499 bytes 100.0% 🚀
assets/docs.upstream-drift-Ru91wsN0.js (New) 499 bytes 499 bytes 100.0% 🚀
assets/docs.federated-fleet-intelligence-B59cDcnM.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.maintainer-install-trust-Dfqz5hgp.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-ai-providers-C8Ba2wG9.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-backup-scaling-BuT1ZQSq.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-configuration-DF4F2xTq.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-docs-audit-C5U-QaE7.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-github-app-CNxeNYQH.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-quickstart-C6vi0wWb.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-rag-CtTlRjPt.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-rees-DzHHs703.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-rees-analyzers-BE5Q2xH0.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-release-checklist-CGXgccq7.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-releases-DGTG-4sQ.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-security-Dy1xUvq2.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-troubleshooting-CZy0J9aj.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.self-hosting-unified-ams-orb-D2jXGVT-.js (New) 498 bytes 498 bytes 100.0% 🚀
assets/docs.ams-config-precedence-DKGNKI7c.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-deployment-kdz2c4CY.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-discovery-plane-DMJPTOmI.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-env-reference-DCDsKFh3.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-fleet-manifest-eie2s92a.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-goal-spec-CXW3c4YE.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-kill-switch-incident-Dxin1asM.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-observability-CK_bpFrz.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-operations-runbook-_-GECc78.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-sizing-B14AWCQW.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.ams-unattended-scheduling-o_pwRx-y.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.beta-onboarding-BDCjgf5V.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.capacity-6mBolS0x.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.maintainer-self-hosting-CHNsaQ1_.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.mcp-clients-DvLzJhgC.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.owner-checklist-Dw1seHIn.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.quickstart-Dmyu_2fU.js (New) 497 bytes 497 bytes 100.0% 🚀
assets/docs.github-app-WAq3FZOF.js (New) 495 bytes 495 bytes 100.0% 🚀
assets/docs.maintainer-workflow-BesN5UyW.js (New) 495 bytes 495 bytes 100.0% 🚀
assets/docs.privacy-security-QFEEJ7F4.js (New) 495 bytes 495 bytes 100.0% 🚀
assets/docs.troubleshooting-BJHUiDzj.js (New) 495 bytes 495 bytes 100.0% 🚀
assets/docs.tuning-BzC_66zJ.js (New) 495 bytes 495 bytes 100.0% 🚀
assets/docs.loopover-commands-DUTs-7Op.js (New) 494 bytes 494 bytes 100.0% 🚀
assets/sparkles-BFvN_vRP.js (New) 494 bytes 494 bytes 100.0% 🚀
assets/docs.how-reviews-work-BxPtZDhd.js (New) 493 bytes 493 bytes 100.0% 🚀
assets/app.owner-tEEingoL.js (New) 474 bytes 474 bytes 100.0% 🚀
assets/app.commands-CygYF0_N.js (New) 455 bytes 455 bytes 100.0% 🚀
assets/app.playground-D0X3bM5T.js (New) 442 bytes 442 bytes 100.0% 🚀
assets/reveal-G1QSjPk7.js (New) 442 bytes 442 bytes 100.0% 🚀
assets/index-IvjHunG2.js (New) 438 bytes 438 bytes 100.0% 🚀
assets/app.digest-BRW28j6v.js (New) 430 bytes 430 bytes 100.0% 🚀
assets/eye-off-DH-aun4p.js (New) 430 bytes 430 bytes 100.0% 🚀
assets/app.miner-BLK6s1nP.js (New) 422 bytes 422 bytes 100.0% 🚀
assets/key-round-*.js (New) 355 bytes 355 bytes 100.0% 🚀
assets/bot-DpbJHAJR.js (New) 328 bytes 328 bytes 100.0% 🚀
assets/trash-2-C5VEVbYa.js (New) 328 bytes 328 bytes 100.0% 🚀
assets/save-Dd0D8H1T.js (New) 327 bytes 327 bytes 100.0% 🚀
assets/git-pull-request-arrow-CwHR4R7L.js (New) 321 bytes 321 bytes 100.0% 🚀
assets/wrench-BG03kQOH.js (New) 303 bytes 303 bytes 100.0% 🚀
assets/list-checks-DxmWo7FJ.js (New) 279 bytes 279 bytes 100.0% 🚀
assets/shield-BSJ3pGt-.js (New) 272 bytes 272 bytes 100.0% 🚀
assets/workflow-DE1mGPiq.js (New) 265 bytes 265 bytes 100.0% 🚀
assets/compass-CKRdhC9e.js (New) 251 bytes 251 bytes 100.0% 🚀
assets/history-CXA6tME_.js (New) 237 bytes 237 bytes 100.0% 🚀
assets/activity-4JmeMq1y.js (New) 234 bytes 234 bytes 100.0% 🚀
assets/message-square-BBWLo81N.js (New) 233 bytes 233 bytes 100.0% 🚀
assets/lock-DHS5UNTg.js (New) 206 bytes 206 bytes 100.0% 🚀
assets/rotate-cw-CAeuQ-Ud.js (New) 201 bytes 201 bytes 100.0% 🚀
assets/play-CykUoKMT.js (New) 190 bytes 190 bytes 100.0% 🚀
assets/circle-check-c_pSZoQW.js (New) 178 bytes 178 bytes 100.0% 🚀
assets/search-Dkcz8b73.js (New) 174 bytes 174 bytes 100.0% 🚀
assets/maintainer-workflow-D-1Qk5OP.js (New) 155 bytes 155 bytes 100.0% 🚀
assets/self-hosting-docs-audit-BBCDVFsG.js (New) 141 bytes 141 bytes 100.0% 🚀
assets/circle-BvhSbUO1.js (New) 130 bytes 130 bytes 100.0% 🚀
assets/modal-CpNcW7J0.js (New) 115 bytes 115 bytes 100.0% 🚀
assets/add-scalar-classes-B0WDyWwA.js (Deleted) -2.17MB 0 bytes -100.0% 🗑️
assets/tanstack-vendor-Bl0w0SrS.js (Deleted) -823.76kB 0 bytes -100.0% 🗑️
assets/docs.fumadocs-spike-api-reference-DcMmXqPa.js (Deleted) -442.94kB 0 bytes -100.0% 🗑️
assets/AgentScalarChatInterface.vue-CtDiEmEC.js (Deleted) -201.71kB 0 bytes -100.0% 🗑️
assets/modal-sxTiKAJd.js (Deleted) -184.28kB 0 bytes -100.0% 🗑️
assets/client-DU6ZBOTj.js (Deleted) -146.06kB 0 bytes -100.0% 🗑️
assets/maintainer-panel-Bazoo7-1.js (Deleted) -78.53kB 0 bytes -100.0% 🗑️
assets/ui-vendor-DtI8OCuE.js (Deleted) -57.04kB 0 bytes -100.0% 🗑️
assets/routes-DbUX_aZ6.js (Deleted) -34.83kB 0 bytes -100.0% 🗑️
assets/owner-panel-2OV9QePF.js (Deleted) -27.2kB 0 bytes -100.0% 🗑️
assets/app-BqohjiDo.js (Deleted) -25.65kB 0 bytes -100.0% 🗑️
assets/app.runs-CCDDleMx.js (Deleted) -23.55kB 0 bytes -100.0% 🗑️
assets/miner-panel-CV6U1PQP.js (Deleted) -20.25kB 0 bytes -100.0% 🗑️
assets/docs-source-CrCqFpBR.js (Deleted) -19.46kB 0 bytes -100.0% 🗑️
assets/api._op-DEM-mvOl.js (Deleted) -17.55kB 0 bytes -100.0% 🗑️
assets/self-hosting-docs-audit-Co1MnEBe.js (Deleted) -16.73kB 0 bytes -100.0% 🗑️
assets/app.index-DOj03IS-.js (Deleted) -15.62kB 0 bytes -100.0% 🗑️
assets/playground-panel-D56LY9-k.js (Deleted) -14.49kB 0 bytes -100.0% 🗑️
assets/app.audit-B-oXnINK.js (Deleted) -10.11kB 0 bytes -100.0% 🗑️
assets/extension-DqIw3_To.js (Deleted) -10.04kB 0 bytes -100.0% 🗑️
assets/app.config-generator-Dfr_VUmJ.js (Deleted) -9.88kB 0 bytes -100.0% 🗑️
assets/fairness-ChAW43aE.js (Deleted) -8.34kB 0 bytes -100.0% 🗑️
assets/maintainers-CFZLvq69.js (Deleted) -8.03kB 0 bytes -100.0% 🗑️
assets/miners-CDC37Y6W.js (Deleted) -7.85kB 0 bytes -100.0% 🗑️
assets/agents-CzaGwEV-.js (Deleted) -7.76kB 0 bytes -100.0% 🗑️
assets/commands-panel-DQyjHGLS.js (Deleted) -6.65kB 0 bytes -100.0% 🗑️
assets/maintainer-workflow-DE3SW-bZ.js (Deleted) -6.61kB 0 bytes -100.0% 🗑️
assets/roadmap-DJoTIJSe.js (Deleted) -6.33kB 0 bytes -100.0% 🗑️
assets/digest-panel-W4aUhBMs.js (Deleted) -6.18kB 0 bytes -100.0% 🗑️
assets/repos._owner._repo.quality-DSCI1cBa.js (Deleted) -6.14kB 0 bytes -100.0% 🗑️
assets/docs.index-D25w6dZg.js (Deleted) -5.55kB 0 bytes -100.0% 🗑️
assets/api.index-DrJs_xfo.js (Deleted) -4.7kB 0 bytes -100.0% 🗑️
assets/api-CACvbtej.js (Deleted) -2.69kB 0 bytes -100.0% 🗑️
assets/docs-DdmVBunr.js (Deleted) -2.67kB 0 bytes -100.0% 🗑️
assets/app.workbench-DP-AkLKI.js (Deleted) -1.58kB 0 bytes -100.0% 🗑️
assets/session-Cl3UXx9P.js (Deleted) -1.45kB 0 bytes -100.0% 🗑️
assets/tooltip-BxxHsvMa.js (Deleted) -1.45kB 0 bytes -100.0% 🗑️
assets/tabs-VhZKNjdh.js (Deleted) -1.39kB 0 bytes -100.0% 🗑️
assets/app.repos-DuRtED8T.js (Deleted) -1.07kB 0 bytes -100.0% 🗑️
assets/input-DS_EoX-F.js (Deleted) -796 bytes 0 bytes -100.0% 🗑️
assets/file-cog-C0GaoE6p.js (Deleted) -758 bytes 0 bytes -100.0% 🗑️
assets/docs.ai-summaries-Bh0Y5Hyc.js (Deleted) -506 bytes 0 bytes -100.0% 🗑️
assets/app.maintainer-_H1gKNox.js (Deleted) -502 bytes 0 bytes -100.0% 🗑️
assets/docs.branch-analysis-D-UwAqmL.js (Deleted) -499 bytes 0 bytes -100.0% 🗑️
assets/docs.scoreability-9FB0V6xD.js (Deleted) -499 bytes 0 bytes -100.0% 🗑️
assets/docs.upstream-drift-BCjtkN1Y.js (Deleted) -499 bytes 0 bytes -100.0% 🗑️
assets/docs.federated-fleet-intelligence-Ci4oM_SD.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.maintainer-install-trust-3fGMLDdj.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-ai-providers-DQarDG52.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-backup-scaling-DBOET0NF.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-configuration-BHnnjlxH.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-docs-audit-Dij3FOo2.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-github-app-C7XPzv_R.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-quickstart-BTnqZFMk.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-rag--Hn7_zsG.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-rees-OM4dqADP.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-rees-analyzers-CFLNeLcB.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-release-checklist-BCtU2Moa.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-releases-BBjNAk_Q.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-security-B9FzdzRQ.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-troubleshooting-BEd8alDM.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.self-hosting-unified-ams-orb-sbMfbpLN.js (Deleted) -498 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-config-precedence-B7ll_IQr.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-deployment-fs1zsw0t.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-discovery-plane-WCRledaL.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-env-reference-DOBNlhd1.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-fleet-manifest-C5Sspf4T.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-goal-spec-DH68Prfm.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-kill-switch-incident-DvrUZ_46.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-observability-GgMStrr3.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-operations-runbook-BSSVeS3g.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-sizing-SQXGAaKp.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.ams-unattended-scheduling-CS-4EVyW.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.beta-onboarding-DRAYM9HU.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.capacity-CnfAhmMh.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.maintainer-self-hosting-BsP6Ik4Y.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.mcp-clients-kYcJ-2Ue.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.owner-checklist-vJTeHgpm.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.quickstart-DY1Ayh3j.js (Deleted) -497 bytes 0 bytes -100.0% 🗑️
assets/docs.github-app-DPtvidV-.js (Deleted) -495 bytes 0 bytes -100.0% 🗑️
assets/docs.maintainer-workflow-CGQvcVtf.js (Deleted) -495 bytes 0 bytes -100.0% 🗑️
assets/docs.privacy-security-BPSIPDGv.js (Deleted) -495 bytes 0 bytes -100.0% 🗑️
assets/docs.troubleshooting-pc9UTWdg.js (Deleted) -495 bytes 0 bytes -100.0% 🗑️
assets/docs.tuning-B1KJxshw.js (Deleted) -495 bytes 0 bytes -100.0% 🗑️
assets/docs.loopover-commands-DtGep9It.js (Deleted) -494 bytes 0 bytes -100.0% 🗑️
assets/sparkles-CqPCbJFa.js (Deleted) -494 bytes 0 bytes -100.0% 🗑️
assets/docs.how-reviews-work-DtwdQxem.js (Deleted) -493 bytes 0 bytes -100.0% 🗑️
assets/app.owner-D45MYISU.js (Deleted) -474 bytes 0 bytes -100.0% 🗑️
assets/app.commands-CfAnRiIN.js (Deleted) -455 bytes 0 bytes -100.0% 🗑️
assets/app.playground-jCqtRHuL.js (Deleted) -442 bytes 0 bytes -100.0% 🗑️
assets/reveal-CK3StjG7.js (Deleted) -442 bytes 0 bytes -100.0% 🗑️
assets/index-fSG1s6VM.js (Deleted) -438 bytes 0 bytes -100.0% 🗑️
assets/app.digest-ivOTDW9w.js (Deleted) -430 bytes 0 bytes -100.0% 🗑️
assets/eye-off-CuhRsQN9.js (Deleted) -430 bytes 0 bytes -100.0% 🗑️
assets/app.miner-BHMvoocr.js (Deleted) -422 bytes 0 bytes -100.0% 🗑️
assets/key-round-mtnKj0_D.js (Deleted) -355 bytes 0 bytes -100.0% 🗑️
assets/bot-BduZcC3q.js (Deleted) -328 bytes 0 bytes -100.0% 🗑️
assets/trash-2-YexQ2E9t.js (Deleted) -328 bytes 0 bytes -100.0% 🗑️
assets/save-bzQcRanV.js (Deleted) -327 bytes 0 bytes -100.0% 🗑️
assets/git-pull-request-arrow-BDvwGub3.js (Deleted) -321 bytes 0 bytes -100.0% 🗑️
assets/wrench-DEhgxAEi.js (Deleted) -303 bytes 0 bytes -100.0% 🗑️
assets/list-checks-3zSIZ9az.js (Deleted) -279 bytes 0 bytes -100.0% 🗑️
assets/shield-BQVIMTqO.js (Deleted) -272 bytes 0 bytes -100.0% 🗑️
assets/workflow-fa2dKZHS.js (Deleted) -265 bytes 0 bytes -100.0% 🗑️
assets/compass-BTG7lxkg.js (Deleted) -251 bytes 0 bytes -100.0% 🗑️
assets/history-BFMLBpcB.js (Deleted) -237 bytes 0 bytes -100.0% 🗑️
assets/activity-Dq9fyrqV.js (Deleted) -234 bytes 0 bytes -100.0% 🗑️
assets/message-square-CxSS3gkX.js (Deleted) -233 bytes 0 bytes -100.0% 🗑️
assets/lock-sjjBI6Im.js (Deleted) -206 bytes 0 bytes -100.0% 🗑️
assets/rotate-cw-DlZml6Ob.js (Deleted) -201 bytes 0 bytes -100.0% 🗑️
assets/play-Bgmc_0uD.js (Deleted) -190 bytes 0 bytes -100.0% 🗑️
assets/circle-check-eg-9G1a5.js (Deleted) -178 bytes 0 bytes -100.0% 🗑️
assets/search-DZEthPCU.js (Deleted) -174 bytes 0 bytes -100.0% 🗑️
assets/maintainer-workflow-B_sY2rRD.js (Deleted) -155 bytes 0 bytes -100.0% 🗑️
assets/self-hosting-docs-audit-CxrFtLVX.js (Deleted) -141 bytes 0 bytes -100.0% 🗑️
assets/circle-7FSUpA9e.js (Deleted) -130 bytes 0 bytes -100.0% 🗑️
assets/modal-BsQ7ViqO.js (Deleted) -115 bytes 0 bytes -100.0% 🗑️

@loopover-orb loopover-orb Bot added the gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier. label Jul 21, 2026
@loopover-orb

loopover-orb Bot commented Jul 21, 2026

Copy link
Copy Markdown

Tip

✅ LoopOver review result - approve/merge recommended

Review updated: 2026-07-21 03:07:51 UTC

2 files · 1 AI reviewer · no blockers · readiness 100/100 · CI green · clean

✅ Suggested Action - Approve/Merge

  • safe to merge

Review summary
This PR extends the Node 26 jsdom-localStorage guard already accepted for apps/loopover-miner-ui (#7597) to apps/loopover-ui and packages/loopover-ui-kit, using the identical Object.defineProperty pattern. The fix is mechanically correct: since Node 26's own globalThis.localStorage accessor already exists as a property before jsdom installs its env, Vitest's populateGlobal skips overwriting it, so redefining the property from jsdom's real window.localStorage is the right layer for the fix. The apps/loopover-ui change is a real regression fix backed by five previously-red test files; the loopover-ui-kit change is explicitly preventive (no current caller), which is reasonable for a shared package but worth noting as speculative hardening.

Nits — 6 non-blocking
  • packages/loopover-ui-kit/vitest.setup.ts adds this guard with no current caller in the package (per the PR's own description), so it's unverified preventive code rather than a proven fix — worth flagging in review even though it mirrors the accepted pattern.
  • Both files repeat the same ~15-line comment verbatim; consider extracting the guard into a small shared helper (e.g. a workspace test-utils package) to avoid triple-maintaining this comment/logic across loopover-miner-ui, loopover-ui, and loopover-ui-kit.
  • Consider factoring the jsdom-localStorage guard into a shared `vitest.setup` helper module imported by all three workspaces, so future Node versions only need a single fix point instead of three copies.
  • For loopover-ui-kit, add a minimal test (or note in the PR) exercising `localStorage` once a real consumer exists, so the guard's correctness isn't purely inferred from the sibling packages.
  • PR author also opened the linked issue — Link an issue that was opened by a different contributor, or provide a rationale for why this self-authored issue represents genuine discovery work.
  • Code changes lack test evidence — Add focused regression tests or explain why existing coverage is sufficient.

Decision drivers

  • ✅ Code review — No blockers (1 reviewer)
  • ✅ Gate result — Passing (No configured blocker found.)
Context & advisory signals — never blocks the verdict
Signal Result Evidence
Linked issue ✅ Linked #7612
Related work ✅ No active overlap found No same-issue or scoped active PR overlap found.
Change scope ✅ 20/20 Low review scope from cached public metadata (1 linked issue).
Validation posture ✅ 25/25 PR body includes validation/test evidence.
Contributor workload ✅ 10/10 Author activity: 23 registered-repo PR(s), 16 merged, 358 issue(s).
Contributor context ✅ Confirmed Gittensor contributor JSONbored; Gittensor profile; 23 PR(s), 358 issue(s).
Improvement ℹ️ None detected risk: low · value: none · LLM: moderate
Linked issue satisfaction

Addressed
The PR patches both apps/loopover-ui/vitest.setup.ts and packages/loopover-ui-kit/vitest.setup.ts with the guard redefining globalThis.localStorage from jsdom's window, mirroring #7597's fix as requested, and is conditional/no-op safe for Node 22/24.

Review context
  • Author: JSONbored
  • Role context: owner (maintainer lane)
  • Public audience mode: oss maintainer
  • Lane context: Repository is configured for direct PR review.
  • Public profile languages: Python, TypeScript, Ruby, Go, JavaScript, MDX, Shell, Solidity
  • Official Gittensor activity: 23 PR(s), 358 issue(s).
  • PR-specific overlap: none found.
Contributor next steps
  • Start here: Treat this as maintainer-lane context rather than normal contributor-lane activity.
Signal definitions
  • Related work = same linked issue, overlapping active PRs, or title/path similarity.
  • Change scope = cached public metadata such as size labels, draft state, and review-burden hints.
  • Validation posture = whether the PR provides enough public validation/test evidence for maintainer review.
  • Contributor workload = public contributor activity and cleanup pressure, not a repo-wide quality failure.
  • Contributor context = public GitHub/Gittensor identity context; non-Gittensor status is not a blocker.
🧪 Chat with LoopOver

Ask LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.

  • @loopover ask <question> answers contribution-quality Q&A with source citations and freshness.
  • @loopover chat <question> answers in natural prose from cached decision-pack facts via local inference (maintainer/collaborator; read-only).
  • A plain-language @loopover mention with a real question is routed to the closest matching read-only command automatically — no exact syntax required.

Full command reference: https://loopover.ai/docs/loopover-commands

🧪 Experimental — new and may change.

Visual preview
Route Viewport Before (production) After (this PR's preview) Diff
/ desktop before /
before /
after /
after /
/ mobile before / (mobile)
before / (mobile)
after / (mobile)
after / (mobile)

Click any thumbnail to open the full-size screenshot. Before = production · After = this PR's preview deploy.

Scroll preview
Route Before (production) After (this PR's preview)
/ before / (scroll)
before / (scroll)
after / (scroll)
after / (scroll)

A short scroll-through clip (desktop) — click either thumbnail to open the full animation. Evidence for scroll-linked behavior a single screenshot can't show.

🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed


💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →.

Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.

  • Re-run LoopOver review

@loopover-orb loopover-orb Bot added the manual-review Gittensor contributor context label Jul 21, 2026
@JSONbored
JSONbored merged commit d6477bf into main Jul 21, 2026
13 checks passed
@JSONbored
JSONbored deleted the claude/beautiful-rosalind-5b6a9a branch July 21, 2026 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gittensor:bug Gittensor-scored bug fix — scores a 0.05x multiplier. manual-review Gittensor contributor context

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(test): Node 26 jsdom localStorage gap in apps/loopover-ui and packages/loopover-ui-kit

1 participant