fix: update connector name display logic in IndexingConfigurationView for better readability

This commit is contained in:
Anish Sarkar 2026-02-08 13:00:33 +05:30
parent e2dd80c604
commit dea66c4eb7

View file

@ -119,14 +119,16 @@ export const IndexingConfigurationView: FC<IndexingConfigurationViewProps> = ({
<Check className="size-7 text-green-500" />
</div>
<div>
<div className="flex flex-col">
<span className="text-xl sm:text-2xl font-semibold tracking-tight text-wrap whitespace-normal wrap-break-word">
{getConnectorTypeDisplay(connector?.connector_type || "")} Connected !
</span>{" "}
<div className="flex flex-col">
<span className="text-xl sm:text-2xl font-semibold tracking-tight text-wrap whitespace-normal wrap-break-word">
{getConnectorTypeDisplay(connector?.connector_type || "")} Connected !
</span>
{connector?.name?.includes(" - ") && (
<span className="text-xl sm:text-xl font-semibold text-muted-foreground tracking-tight text-wrap whitespace-normal wrap-break-word">
{getConnectorDisplayName(connector?.name || "")}
{getConnectorDisplayName(connector.name)}
</span>
</div>
)}
</div>
<p className="text-xs sm:text-base text-muted-foreground mt-1">
Configure when to start syncing your data
</p>