fix(site): clarify default model delete copy

This commit is contained in:
Tracy Johnson
2026-05-29 18:14:19 +00:00
parent 1e4c2cdb7b
commit e29ca16a3c
4 changed files with 10 additions and 6 deletions
@@ -153,7 +153,9 @@ export const DeleteDialogWithAssociatedModels: Story = {
).toBeInTheDocument();
await expect(screen.getByText("2 models")).toBeInTheDocument();
await expect(
screen.getByText("No other model exists to become the default."),
screen.getByText(
"Your default model will be disabled. No other model is available to become the default.",
),
).toBeInTheDocument();
},
};
@@ -258,8 +258,8 @@ const UpdateProviderPageView: React.FC = () => {
{willReassignDefault && (
<li>
{hasDefaultReplacement
? "The default model will be reassigned."
: "No other model exists to become the default."}
? "Your default model will be disabled. Another model will be chosen automatically."
: "Your default model will be disabled. No other model is available to become the default."}
</li>
)}
</ul>
@@ -2339,7 +2339,9 @@ export const ProviderDeleteConfirmation: Story = {
).toBeInTheDocument();
expect(body.getByText(/2 models/i)).toBeInTheDocument();
expect(
body.getByText("No other model exists to become the default."),
body.getByText(
"Your default model will be disabled. No other model is available to become the default.",
),
).toBeInTheDocument();
await expect(body.getByRole("dialog")).toBeInTheDocument();
await expect(
@@ -147,8 +147,8 @@ export const ProviderForm: FC<ProviderFormProps> = ({
{willReassignDefault && (
<li>
{hasDefaultReplacement
? "The default model will be reassigned."
: "No other model exists to become the default."}
? "Your default model will be disabled. Another model will be chosen automatically."
: "Your default model will be disabled. No other model is available to become the default."}
</li>
)}
</ul>