Repository navigation
The frontend tests main fails follow the code they exercise - #133
Merged
Merged
Conversation
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]>
5 of 9 tasks
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.
Changelog category (leave one):
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 testsjob 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 nomemory.*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 asksmemory.auto_retirementson the namespace the picker shows, whatever the page is. The same badge already asksconflicts.listandcost.budget_statusthere. The tests now exclude that one badge read by name, through amemoriesPageReadhelper. 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
frontend/src/. No dashboard code changes.memory.auto_retirements. A Memories page read (memory.list,memory.get) on the namespace still fails the tests.Compatibility, rollout and rollback
Tests
memory.*call:memory.auto_retirementson 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 typecheckandmake test-unitpass; the integration suite passes if server behaviour changed. (Format and lint ran here; no server code changed.)docs/reference/configuration.mdand thedocs/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).main; no merged migration is edited.hooks/,lib/,bin/,skills/,.mcp.json, the Codexplugin-defaults.json) bumps both plugin manifests' version, and no other open PR uses that version.npm --prefix frontend run build) and its tests pass, iffrontend/changed.docs/describe the system as it now is, and this description names any operator steps and wire changes.tests/unit/test_public_copy.py).git commit -s), as CONTRIBUTING.md asks.🤖 Generated with Claude Code