@@ -42,6 +42,7 @@ import { ProviderSettingsForm } from "./ProviderSettingsForm";
4242import { ProviderModelsSection } from "./ProviderModelsSection" ;
4343import { ProviderInstanceIcon , providerInstanceInitials } from "../chat/ProviderInstanceIcon" ;
4444import { ProviderAccentColorPicker } from "./ProviderAccentColorPicker" ;
45+ import { RedactedSensitiveText } from "./RedactedSensitiveText" ;
4546import {
4647 getProviderVersionAdvisoryPresentation ,
4748 PROVIDER_STATUS_STYLES ,
@@ -149,6 +150,21 @@ export function deriveProviderModelsForDisplay(input: {
149150 return [ ...serverModels , ...customModels ] ;
150151}
151152
153+ function ProviderAuthEmail ( props : { readonly email : string | undefined } ) {
154+ const email = props . email ?. trim ( ) ;
155+ if ( ! email ) return null ;
156+
157+ return (
158+ < RedactedSensitiveText
159+ value = { email }
160+ ariaLabel = "Toggle account email visibility"
161+ revealTooltip = "Click to reveal email"
162+ hideTooltip = "Click to hide email"
163+ className = "max-w-full truncate"
164+ />
165+ ) ;
166+ }
167+
152168function ProviderEnvironmentSection ( props : {
153169 readonly environment : ReadonlyArray < ProviderInstanceEnvironmentVariable > ;
154170 readonly onChange : ( environment : ReadonlyArray < ProviderInstanceEnvironmentVariable > ) => void ;
@@ -420,6 +436,7 @@ export function ProviderInstanceCard({
420436 const statusStyle = PROVIDER_STATUS_STYLES [ statusKey ] ;
421437 const rawSummary = getProviderSummary ( liveProvider ) ;
422438 const summary = enabled ? rawSummary : { headline : "Disabled" , detail : null } ;
439+ const authEmail = liveProvider ?. auth . email ;
423440 const showEditorStatus = enabled && ( statusKey === "warning" || statusKey === "error" ) ;
424441 const versionLabel = getProviderVersionLabel ( liveProvider ?. version ) ;
425442 const versionAdvisory = getProviderVersionAdvisoryPresentation ( liveProvider ?. versionAdvisory ) ;
@@ -636,12 +653,12 @@ export function ProviderInstanceCard({
636653 }
637654
638655 return (
639- < div className = "min-w-0" >
656+ < div className = "min-w-0 lg:flex lg:h-full lg:min-h-0 lg:flex-col " >
640657 < div
641658 inert = { readOnly }
642659 aria-disabled = { readOnly || undefined }
643660 className = { cn (
644- "flex min-h-16 items-center justify-between gap-3 border-b border-border/70 px-4 py-3" ,
661+ "flex min-h-16 shrink-0 items-center justify-between gap-3 border-b border-border/70 px-4 py-3" ,
645662 readOnly && "opacity-50 select-none" ,
646663 ) }
647664 >
@@ -755,7 +772,7 @@ export function ProviderInstanceCard({
755772 </ div >
756773 </ div >
757774
758- < div className = "flex h-11 border-b border-border/70 px-1" >
775+ < div className = "flex h-11 shrink-0 border-b border-border/70 px-1" >
759776 { driverOption !== undefined ? (
760777 < button
761778 type = "button"
@@ -779,9 +796,21 @@ export function ProviderInstanceCard({
779796 < div
780797 inert = { readOnly }
781798 aria-disabled = { readOnly || undefined }
782- className = { cn ( "px-4 py-5 " , readOnly && "opacity-50 select-none" ) }
799+ className = { cn ( "lg:min-h-0 lg:flex-1 " , readOnly && "opacity-50 select-none" ) }
783800 >
784- < div className = "space-y-5" hidden = { visibleTab !== "configuration" } >
801+ < div
802+ className = "space-y-5 px-4 py-5 lg:h-full lg:overflow-y-auto"
803+ hidden = { visibleTab !== "configuration" }
804+ >
805+ { authEmail ?. trim ( ) ? (
806+ < div className = "min-w-0" >
807+ < div className = "text-xs font-medium text-foreground" > Account email</ div >
808+ < div className = "mt-1.5 flex min-h-8 min-w-0 items-center" >
809+ < ProviderAuthEmail email = { authEmail } />
810+ </ div >
811+ </ div >
812+ ) : null }
813+
785814 < div >
786815 < label htmlFor = { `provider-instance-${ instanceId } -display-name` } className = "block" >
787816 < span className = "text-xs font-medium text-foreground" > Display name</ span >
@@ -838,7 +867,7 @@ export function ProviderInstanceCard({
838867 ) : null }
839868 </ div >
840869 { driverOption !== undefined ? (
841- < div hidden = { visibleTab !== "models" } >
870+ < div className = "px-4 py-5 lg:h-full lg:min-h-0" hidden = { visibleTab !== "models" } >
842871 < ProviderModelsSection
843872 instanceId = { instanceId }
844873 driverKind = { driverKind }
0 commit comments