Skip to content

fix(ui): warn that team models are deleted in the delete-team modal - #29990

Merged
yuneng-berri merged 2 commits into
litellm_internal_stagingfrom
litellm_/competent-bassi-2731b1
Jun 19, 2026
Merged

fix(ui): warn that team models are deleted in the delete-team modal#29990
yuneng-berri merged 2 commits into
litellm_internal_stagingfrom
litellm_/competent-bassi-2731b1

Conversation

@yuneng-berri

@yuneng-berri yuneng-berri commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Relevant issues

Follow-up to #29977, which made deleting a team also delete that team's BYOK models. The delete-team confirmation modal still only warned about keys, so it understated what the action removes

Linear ticket

N/A

Pre-Submission checklist

  • I have added meaningful tests
  • My PR passes all unit tests on make test-unit (ran the touched UI test file with vitest instead; see Changes)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • I have requested a Greptile review by commenting @greptileai and received a Confidence Score of at least 4/5 before requesting a maintainer review

Screenshots / Proof of Fix

This is UI copy in the delete-team confirmation modal. To see it against a proxy on localhost:4000:

  1. Go to the Teams page at http://localhost:4000/ui/?page=teams
  2. Pick a team that has at least one key and click the trash/delete icon in its row
  3. The warning banner and the confirmation message both now read that the team's models are deleted along with its keys
  4. For the no-keys path, delete a team with zero keys; no warning banner shows, but the confirmation message still states that any models created for the team are deleted

Type

Bug Fix

Changes

The delete-team modal in OldTeams.tsx has two pieces of copy: a warning banner that renders only when the team has keys, and a confirmation message shown in every case. Both enumerated keys but not models. After #29977 a team's BYOK models are deleted along with the team, so the copy was telling the user less than what happens

The banner now mentions models next to keys. The confirmation message mentions them too, which matters because the banner is hidden when the team has no keys; a team with models but zero keys would otherwise get no warning about its models being removed. The info card was left as is on purpose; the team object's models field is the team's allowed-model access list rather than the BYOK models it owns, so surfacing that count would be misleading

Tests live in OldTeams.test.tsx. One opens the delete modal for a team with keys and asserts both the banner and the message mention models; one covers the no-keys path, asserting no banner renders but the message still warns about models. Reverting either string to the old copy fails both tests

The delete-team confirmation modal warned that a team's keys would be
deleted but said nothing about models. #29977 made team deletion also
delete the team's BYOK models, so the modal copy was understating what
gets removed.

The warning banner now mentions models alongside keys, and the
always-shown confirmation message does too so a team that has models but
no keys (the banner only renders when keys exist) still gets warned.
@greptile-apps

greptile-apps Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Updates the delete-team confirmation modal copy to reflect that BYOK models are deleted alongside keys when a team is removed, following the behaviour introduced in #29977.

  • The alertMessage banner (shown when the team has keys) and the message confirmation (shown in all cases) both now mention that any models created for the team are deleted.
  • Two new vitest tests assert the updated strings appear in the banner/message for the keys-present and keys-absent paths respectively.

Confidence Score: 5/5

Safe to merge — the change is limited to two UI strings in the delete-team modal with no logic or data-flow modifications.

Both changed lines are inert copy strings inside template literals. The surrounding conditional logic, component props, and deletion handler are untouched. The two new tests are additive and independently verify both the banner and the confirmation message for the with-keys and no-keys scenarios.

No files require special attention.

Important Files Changed

Filename Overview
ui/litellm-dashboard/src/components/OldTeams.tsx Two copy strings in the delete-team modal updated to mention model deletion alongside key deletion; no logic changes.
ui/litellm-dashboard/src/components/OldTeams.test.tsx Two new test cases added covering the warning banner (keys > 0) and confirmation message (keys = 0) paths for model-deletion copy; no existing tests modified.

Reviews (1): Last reviewed commit: "Merge remote-tracking branch 'origin/lit..." | Re-trigger Greptile

@codecov

codecov Bot commented Jun 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@yuneng-berri
yuneng-berri merged commit ea17236 into litellm_internal_staging Jun 19, 2026
117 checks passed
@yuneng-berri
yuneng-berri deleted the litellm_/competent-bassi-2731b1 branch June 19, 2026 23:30
fzowl pushed a commit to fzowl/litellm that referenced this pull request Jun 24, 2026
…erriAI#29990)

The delete-team confirmation modal warned that a team's keys would be
deleted but said nothing about models. BerriAI#29977 made team deletion also
delete the team's BYOK models, so the modal copy was understating what
gets removed.

The warning banner now mentions models alongside keys, and the
always-shown confirmation message does too so a team that has models but
no keys (the banner only renders when keys exist) still gets warned.
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.

2 participants