From c0f39aeb51dc5abad6381706eaa0ac69a54979f2 Mon Sep 17 00:00:00 2001 From: Dan Rukas Date: Wed, 10 Dec 2025 16:38:25 -0500 Subject: [PATCH] fix(DataSource): migrate configuration dialog to ui-next components (#5626) * Fix to show data source on study list * Update Button in Dialog select rows * Updated legacy colors, small design updates * Update dialog sizing --- .../DataSourceConfigurationComponent.tsx | 7 ++-- .../src/Components/ItemListComponent.tsx | 35 +++++++++++-------- 2 files changed, 24 insertions(+), 18 deletions(-) diff --git a/extensions/default/src/Components/DataSourceConfigurationComponent.tsx b/extensions/default/src/Components/DataSourceConfigurationComponent.tsx index dac608c78..b6a4cf556 100644 --- a/extensions/default/src/Components/DataSourceConfigurationComponent.tsx +++ b/extensions/default/src/Components/DataSourceConfigurationComponent.tsx @@ -28,9 +28,9 @@ function DataSourceConfigurationComponent({ return; } - const { factory: configurationAPIFactory } = customizationService.getCustomization( - activeDataSourceDef.configuration.configurationAPI - ) ?? { factory: () => null }; + const configurationAPIFactory = + customizationService.getCustomization(activeDataSourceDef.configuration.configurationAPI) ?? + (() => null); if (!configurationAPIFactory) { return; @@ -66,6 +66,7 @@ function DataSourceConfigurationComponent({ show({ content: DataSourceConfigurationModalComponent, title: t('Configure Data Source'), + containerClassName: 'max-w-3xl', contentProps: { configurationAPI, configuredItems, diff --git a/extensions/default/src/Components/ItemListComponent.tsx b/extensions/default/src/Components/ItemListComponent.tsx index 796ad7659..12d7011df 100644 --- a/extensions/default/src/Components/ItemListComponent.tsx +++ b/extensions/default/src/Components/ItemListComponent.tsx @@ -2,8 +2,7 @@ import classNames from 'classnames'; import React, { ReactElement, useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { useSystem } from '@ohif/core'; -import { Button, InputFilterText } from '@ohif/ui'; -import { Icons } from '@ohif/ui-next'; +import { Button, Icons, InputFilter } from '@ohif/ui-next'; import { Types } from '@ohif/core'; type ItemListComponentProps = { @@ -32,25 +31,30 @@ function ItemListComponent({ return (
-
{t(`Select ${itemLabel}`)}
- {t(`Select ${itemLabel}`)}
+ + onChange={setFilterValue} + > + + + +
{itemList == null ? ( ) : itemList.length === 0 ? ( -
+
{t(`No ${itemLabel} available`)}
) : ( <> -
{t(itemLabel)}
+
{t(itemLabel)}
{itemList .filter( @@ -58,23 +62,24 @@ function ItemListComponent({ !filterValue || item.name.toLowerCase().includes(filterValue.toLowerCase()) ) .map(item => { - const border = - 'rounded border-transparent border-b-secondary-light border-[1px] hover:border-primary-light'; + const border = 'rounded border-transparent border-b-input border-[1px]'; return (
-
{item.name}
+
{item.name}
);