fix(extensions): avoid success banner when no visible providers remain
This commit is contained in:
parent
7c21d14bdf
commit
e2c5c8e99b
2 changed files with 6 additions and 0 deletions
|
|
@ -856,6 +856,9 @@ export const CliStatusBanner = (): React.JSX.Element | null => {
|
|||
if (isCheckingMultimodelStatus(cliStatus, visibleCliProviders)) return 'info';
|
||||
if (cliStatus.authStatusChecking) return 'info';
|
||||
if (!cliStatus.installed) return 'error';
|
||||
if (isMultimodelRuntimeStatus(cliStatus) && visibleCliProviders.length === 0) {
|
||||
return 'warning';
|
||||
}
|
||||
if (
|
||||
isMultimodelRuntimeStatus(cliStatus) &&
|
||||
visibleCliProviders.length > 0 &&
|
||||
|
|
|
|||
|
|
@ -411,6 +411,9 @@ describe('CLI status visibility during completed install state', () => {
|
|||
|
||||
expect(host.textContent).not.toContain('Authenticated');
|
||||
expect(host.textContent).not.toContain('Providers:');
|
||||
expect((host.firstElementChild as HTMLElement | null)?.getAttribute('style')).toContain(
|
||||
'245, 158, 11'
|
||||
);
|
||||
|
||||
await act(async () => {
|
||||
root.unmount();
|
||||
|
|
|
|||
Loading…
Reference in a new issue