feat: auto-recompute UMAP on author add/remove + delete UI - #133
Merged
Conversation
Extract umap_projector.recompute_umap for shared use, refresh scatter
centroids after StyleProfile insert, and add DELETE /api/authors/{id}.
Hide remove control for Austen/Dickens/Poe and return 403 from DELETE so the gallery can drop custom authors without wiping the pitch seeds.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Davisuco28
approved these changes
Jul 30, 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.
What
Automatically recompute global UMAP 2D after StyleProfile insert or author delete, expose
DELETE /api/authors/{id}, and add a gallery remove control for live-added authors. Austen / Dickens / Poe are protected (no UI button; API returns 403).Why
Related: #88 (WO-07 noted that upload/recompute should trigger reprojection), #16 (UMAP precompute).
No dedicated open issue for auto-recompute / delete — this closes the gap left after WO-07: new uploads left scatter centroids at
[0,0], and there was no safe way to remove demo-uploaded authors without wiping the three pitch voices.Closes #
How IBM Bob helped
Screenshots / output
DELETE live-added author
Protected preloaded voice
UI: trash button only on non-preloaded author cards (home gallery); confirm dialog before delete;
router.refresh()after success.Checklist
make test) —backend/tests/test_delete_author.py(3 passed); UMAP projector tests added earlier on this branchmake lint)docs/.env.exampledocs/api_contract.yamlREADME.mdupdated