Skip to content

The frontend tests main fails follow the code they exercise - #133

Merged
zlareb1 merged 2 commits into
mainfrom
fix/frontend-main-tests
Oct 21, 2026
Merged

zlareb1 merged 2 commits into
mainfrom
fix/frontend-main-tests

Conversation

@zlareb1

@zlareb1 zlareb1 commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):

...

Why

The frontend tests job fails on main in three tests. #126 landed with the Collections failure, and #26 added the App.boot failures. The job fails on every PR that merges main, though none of them touches the dashboard.

  • App.boot.test.tsx, two "a link's namespace" tests. Both assert that no memory.* call is made while the page says it has no access to the linked namespace (or could not check). The intent is that the Memories page reads nothing. Memory conflicts are judged in the background, every automatic retirement can be listed and undone, and graph facts follow the rows that state them #26 added a sidebar badge for the Review queue's Auto-resolved tab, which asks memory.auto_retirements on the namespace the picker shows, whatever the page is. The same badge already asks conflicts.list and cost.budget_status there. The tests now exclude that one badge read by name, through a memoriesPageRead helper. The assertion that nothing at all is read in the linked namespace is unchanged.
  • views/admin/Collections.test.tsx, "deletes only after the confirm, then reads the list again". The component moves focus to the search once the read after a delete lands, because that read drops the deleted row and with it the menu that held the focus. The test kept serving the deleted row, so the row and its menu trigger stayed, and the menu handed focus back to the trigger when it closed. The read after the delete now returns the list without the row, as the server does.

The components are unchanged; both tests now exercise the behaviour they describe.

Scope and risk

  • Two test files under frontend/src/. No dashboard code changes.
  • The App.boot exclusion covers only memory.auto_retirements. A Memories page read (memory.list, memory.get) on the namespace still fails the tests.

Compatibility, rollout and rollback

  • Wire: none.
  • Operator steps: none.
  • Rollback: reverting returns the three failures.

Tests

  • The three tests fail on main at 18fe4dd, every time (five runs of the Collections test). With this change they pass.
  • A temporary log of the recorded calls in the App.boot "no access" test showed the one memory.* call: memory.auto_retirements on the picker's namespace.
  • npm --prefix frontend run test: 206 files, 1618 tests passed. npm --prefix frontend run build: built. make format, make lint: clean.

AI assistance in the code (leave one; writing this description with AI is fine):

  • AI-generated (an agent wrote most of the diff): Claude Code. The failing calls were logged before the change, and each test failed before it and passes after.

  • I can explain every line of this diff and how it interacts with the rest of Loom.

Checklist

  • make format-check, make lint, make typecheck and make test-unit pass; the integration suite passes if server behaviour changed. (Format and lint ran here; no server code changed.)
  • Generated files are regenerated in this PR, not by hand: the SDK op tables, docs/reference/configuration.md and the docs/reference/ tables (python scripts/codegen/docs_reference.py), the reach manifest, schemas/schema.sql (make schema-dump) and the Codex plugin copies (python3 scripts/codegen/agent_plugin_sync.py).
  • A new migration is additive and numbered after the latest on main; no merged migration is edited.
  • A behaviour change to any file a plugin ships (hooks/, lib/, bin/, skills/, .mcp.json, the Codex plugin-defaults.json) bumps both plugin manifests' version, and no other open PR uses that version.
  • The frontend builds (npm --prefix frontend run build) and its tests pass, if frontend/ changed.
  • Docs under docs/ describe the system as it now is, and this description names any operator steps and wire changes.
  • Repository text has no dates, people, host names, internal namespaces, ticket or decision numbers; the history goes in this description (tests/unit/test_public_copy.py).
  • Commits are signed off (git commit -s), as CONTRIBUTING.md asks.

🤖 Generated with Claude Code

zlareb1 and others added 2 commits October 21, 2026 14:52
App.boot's link tests counted the sidebar Review badge's memory.auto_retirements read as a Memories page read. The Collections delete test kept serving the deleted row, so the menu trigger stayed and took the focus back.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
@zlareb1
zlareb1 merged commit 7c1a5e9 into main Oct 21, 2026
19 of 22 checks passed
@zlareb1
zlareb1 deleted the fix/frontend-main-tests branch October 21, 2026 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant