buzz icon indicating copy to clipboard operation
buzz copied to clipboard

fix(projects): show re-announced repos after kind:5 deletion

Open chessing234 opened this issue 4 months ago • 1 comments

Summary

  • Honor kind:5 repo deletions only when event.created_at >= project.createdAt, so newer NIP-09 replaceable announcements at the same coordinate render again after re-announcement.
  • Allow deleting agent-owned repositories when the viewer owns the agent (canDeleteProject / deleteProject), matching relay is_agent_owner auth.
  • Add unit tests for the deletion filter and agent-owner delete gate.

Fixes #3760

Test plan

  • [x] pnpm test -- src/features/projects/projectDeletion.test.mjs src/features/projects/lib/projectsViewHelpers.test.mjs
  • [ ] Delete a repo, re-announce the same dtag, confirm it appears in Repositories
  • [ ] Confirm agent owner sees Delete on agent-owned repos and publish succeeds

Made with Cursor

chessing234 avatar Jul 31 '26 10:07 chessing234

@tlongwell-block @wesbillman @wpfleger96 mind taking a look when you get a chance?

chessing234 avatar Aug 02 '26 08:08 chessing234

🔐 Codex Security Review

Status: review required for the current range.

The current range is 59328d5ae38a51a618dd2fddd7faf1343d42096f...4b93952bf2b84f7c3884081e10378053bcb7c078. A new review must complete for this exact range. When manual authorization is required, a Block organization member must comment exactly @buzz-security-review 4b93952bf2b84f7c3884081e10378053bcb7c078 to authorize a new review. Any previous review applies only to its recorded range.

github-actions[bot] avatar Sep 01 '26 15:09 github-actions[bot]

empty PR

ngthuydiem avatar Oct 06 '26 21:10 ngthuydiem