Skip to content

fix: Fix organization deletion modal link count#333

Merged
piffio merged 2 commits intomainfrom
fix/291-organization-deletion-modal-shows-incorrect-link-count
Apr 23, 2026
Merged

fix: Fix organization deletion modal link count#333
piffio merged 2 commits intomainfrom
fix/291-organization-deletion-modal-shows-incorrect-link-count

Conversation

@piffio
Copy link
Copy Markdown
Owner

@piffio piffio commented Apr 23, 2026

The modal was showing billing account-level link creation count instead of the actual number of links in the specific organization being deleted.
Additionally, skip the modal entirely if the organization has 0 links.

  • Add link_count to /api/orgs/{id} endpoint response
  • Update OrgDetails TypeScript interface to include link_count
  • Use org-specific link count instead of billing account count in deletion modal
  • Skip modal and delete directly when organization has 0 links

piffio added 2 commits April 23, 2026 11:18
R2 buckets are managed transparently in the local environment without
the need to explicly create them.
The modal was showing billing account-level link creation count instead of the actual number of links in the specific organization being deleted.
Additionally, skip the modal entirely if the organization has 0 links.

- Add link_count to /api/orgs/{id} endpoint response
- Update OrgDetails TypeScript interface to include link_count
- Use org-specific link count instead of billing account count in deletion modal
- Skip modal and delete directly when organization has 0 links
@github-actions
Copy link
Copy Markdown

🚀 Ephemeral Environment Deployed (Unified Worker)

Application: https://rushomon-pr-333.piffio.workers.dev

This unified Worker deployment serves both frontend and backend from the same domain for better security (httpOnly cookies work correctly).

This environment will be automatically cleaned up when the PR is closed.

Worker: rushomon-pr-333


💡 Tip: To skip preview deployment, add the skip-preview label to this PR.

@piffio piffio merged commit 2cd1b18 into main Apr 23, 2026
9 checks passed
@github-actions
Copy link
Copy Markdown

🧹 Ephemeral Environment Cleaned Up

Resources for PR #333 cleanup summary:

Resource Status
Worker rushomon-pr-333 ✅ Deleted
KV Namespace URL_MAPPINGS_pr_333 ✅ Deleted
D1 Database rushomon-pr-333 ✅ Deleted
R2 Bucket rushomon-assets-pr-333 ✅ Deleted

Cleanup completed automatically when PR was closed.

Note: If this PR had the skip-preview label, resources were still cleaned up because they were deployed before the label was added.

@piffio piffio linked an issue Apr 23, 2026 that may be closed by this pull request
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.

Organization Deletion Modal Shows Incorrect Link Count

1 participant