fix: Fix organization deletion modal link count#333
Merged
Conversation
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
|
🚀 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: 💡 Tip: To skip preview deployment, add the |
|
🧹 Ephemeral Environment Cleaned Up Resources for PR #333 cleanup summary:
Cleanup completed automatically when PR was closed. Note: If this PR had the |
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.
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.