test(ui): cover app.runs.tsx mapping helpers and SavedViews flow - #8778
test(ui): cover app.runs.tsx mapping helpers and SavedViews flow#8778hurryup52 wants to merge 1 commit into
Conversation
mapSignalFidelity, mapAgentRunKind, mapAgentRunBundle, and SavedViews had zero direct test coverage. Export all four (no behavior change) and add branch-level tests: every mapSignalFidelity/mapAgentRunKind branch, mapAgentRunBundle's repo-fallback chain and surface/scoring-snapshot mappings and snapshot-replay construction, and a SavedViews render test covering save/apply/remove. Closes JSONbored#8701
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Caution 🛑 LoopOver review result - reject/close recommendedReview updated: 2026-07-26 04:26:38 UTC
Review summary Nits — 7 non-blocking
Why this is blocked
📋 Copy for AI agents — paste into your coding agentDecision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk 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.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. Visual previewClick any thumbnail to open the full-size screenshot. Before = production · After = this PR's preview deploy. Scroll preview
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.
|
|
LoopOver is closing this pull request on the maintainer's behalf (conflicts with the base branch — resolve and open a fresh PR; No linked issue detected). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |








Summary
app.runs.tsx's previously-untested pure mapping helpers (mapSignalFidelity,mapAgentRunKind,mapAgentRunBundle) and theSavedViewssave/apply/remove flow. No production behavior changes — the only non-test edit is adding theexportkeyword to four already-existing functions/types so the test file can import them directly.app.runs.tsxcode, including this PR's ownmapAgentRunBundle/mapAgentRunKind/mapSignalFidelity, renders the visible output).Scope
type(scope): short summaryConventional Commit format, for examplefix(api): restore profile access checks.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Closes #123) — a linked open issue is required for every contributor PR.Validation
git diff --checknpm run actionlint— skipped, no.github/workflows/composite-action changes in this diff.npm run typecheck(vianpm run ui:typecheck, which builds@loopover/ui-kitthen typechecks@loopover/ui+@loopover/ui-miner— clean)npm run test:coveragelocally — this repo's owncodecov/patchgate only measuressrc/**;apps/**(this change) is explicitly excluded (confirmed directly againstvitest.config.ts/codecov.yml, and issue test(ui): app.runs.tsx's pure mapping helpers and SavedViews flow have zero direct test coverage #8701's own body states the same). Ran the applicable local equivalent instead:npx vitest run src/routes/app.runs.test.tsx(35/35 passed) and the fullnpm run ui:test(683/683 passed across@loopover/ui+@loopover/ui-miner).npm run test:workers— skipped, no Workers/backend code touched.npm run build:mcp— ran for local diagnostics only (unrelated package, not part of this diff).npm run test:mcp-pack— skipped, no MCP package changes in this diff.npm run ui:openapi:check— skipped, no API/OpenAPI schema changes.npm run ui:lint— 0 errors (89 pre-existingreact-refresh/only-export-componentswarnings across the codebase, same pre-existing pattern already present on ~20 other route files in this repo).npm run ui:typechecknpm run ui:buildnpm audit --audit-level=moderate— 5 pre-existing high-severity advisories in theeslint/minimatch/brace-expansiondev-dependency chain, unrelated to this change (zero new dependencies added).If any required check was skipped, explain why:
test:workers/test:mcp-pack/ui:openapi:check/actionlintall skipped as not applicable — this diff touches exactly two files underapps/loopover-ui/src/routes/, nothing else.npm run test:cifails at the unshardedtest:coveragestep, but every failing test file is inpackages/loopover-mcp/packages/loopover-miner's CLI test suites (stale/missingdist/build artifacts for those two unrelated packages in a fresh clone — confirmed zero diff between this branch andupstream/mainfor every failing file, and confirmed zero failures anywhere underapps/loopover-ui). Ranui:lint/ui:typecheck/ui:test/ui:builddirectly instead, all green, per the boxes above.Safety
UI Evidencesection below with screenshots. — see below.UI Evidence
This PR has no visual or behavioral UI change — the only production edit is adding the
exportkeyword to four already-existing functions/types.exportis a compile-time-only module-visibility marker; it cannot alter runtime rendering, so before and after this diff are guaranteed identical, not merely visually similar. Also:apps/loopover-uiis a dark-mode-only build (the theme toggle was removed —apps/loopover-ui/src/components/site/theme-toggle.tsx), so there is no Light theme to capture; all rows below are the only theme this app has.Freshly captured this submission, running the real app locally (
npm --prefix apps/loopover-ui run dev) with only the/v1/auth/sessionand/v1/agent/runsnetwork calls mocked (standard technique — the actualapp.runs.tsxcode, including this PR'smapAgentRunBundle/mapAgentRunKind/mapSignalFidelity, renders everything visible):Before and after are the identical image in every row, intentionally — see the explanation above for why that's the honest, correct evidence for this diff, not an omission.
Notes
mapSignalFidelity(all 4 branches),mapAgentRunKind(all 4 branches, including both inputs that feed the sharedexplain-blockersbranch),mapAgentRunBundle(the full repo-fallback chain, surface→source/boundary mapping, scoring-snapshot fallback, and counterfactual-pooling/snapshot-replay construction), andSavedViews(save/apply/remove render test, plus the disabled-while-default-filters case and localStorage persistence across remounts).