Repository navigation
feat(entities): merge entities from the list and the side panel, with undo - #384
Merged
Merged
Conversation
… undo Tick rows on the Entities page to merge them into one (the one on the fixed list, else the most mentioned) or give them one type. The side panel gets Merge (a find box; Enter merges the pick into it), Maybe the same (likely doubles with Merge and Not the same), and a merge offer when a rename clashes. Merges, type changes and hiding have Undo on their toast instead of a confirm. One entity's suggestions now look only in its own namespace. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EzVhJCpwskyo5NhHEtS822
…-ecob6g # Conflicts: # CHANGELOG.md
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EzVhJCpwskyo5NhHEtS822
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EzVhJCpwskyo5NhHEtS822
This was referenced Oct 15, 2026
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.
Requested by Adeel · project thread
Description
Before: the API could merge entities and undo it, but the web app had no way to do it outside Proposed changes. Two spellings of the same company stayed two entities unless someone used the API.
After: on the Entities page, editors tick rows and a bar at the bottom merges them into one in one click (it keeps the one on the fixed list, else the most mentioned; the arrow picks another) or gives them all one type. An entity's side panel has Merge: a find box where typing and Enter merges the picked entity into the open one. Its Maybe the same list shows likely doubles (same letters, acronyms, near spellings) with Merge and Not the same. Renaming an entity to a name another entity already has offers to merge them. Merges, bulk type changes and hiding happen at once and show Undo on the notice, so nothing asks to confirm.
How: a shared
components/entities/curate.tsx(merge hook with Undo,EntityFindcombobox,MergeInto,MaybeSame,keepOf) that the graph and the recording page reuse in the next PRs.EntityDrawernow looks up the namespace's types itself when not given, so it can open anywhere. On the backend, one entity's suggestions (GET /entities/suggestions?entity=) now compare only within its own namespace instead of every readable one.Motivation and Context
Adeel: "No easy way to merge and edit entities, topics etc. Should be as easy as from the graph explorer and canvas." This is the first of a few small PRs: entities page (this), then the graph explorer and canvas, topic undo, a recording's Entities tab, and agent tools.
Types of changes
!in the title)Checklist:
make hookschecks it on commit).__tests__/entities-curate.test.tsx,tests/domain/test_entities.py)docs/accordingly. (docs/processing.md)## UnreleasedinCHANGELOG.md.Done questions (AGENTS.md)
POST /entities/merge,/merges/{id}/undo,/retype,/not-same; MCP and assistant edit tools follow in their own PR).envedit or manual step.make openapi)🤖 Generated with Claude Code
https://claude.ai/code/session_01EzVhJCpwskyo5NhHEtS822
Generated by Claude Code