File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed
Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77
88## [ Unreleased]
99
10+ ### Added
11+ - Persistent status indicator and warning banner in UserWidget when organization is "on-hold" or "inactive"
12+ - Organization status tag now visible in the main widget even when modal is closed
13+
1014## [ 3.1.4] - 2026-01-15
1115
1216### Fixed
Original file line number Diff line number Diff line change @@ -586,6 +586,18 @@ const UserWidget: VtexFunctionComponent<UserWidgetProps> = ({
586586 </ Modal >
587587 { userWidgetData ?. getB2BSettings ?. uiSettings ?. showModal && (
588588 < Fragment >
589+ { isOrgOnHoldOrInactive && (
590+ < div className = { `${ handles . userWidgetRow } flex pr4 pl4 pt4` } >
591+ < div className = "bg-warning--faded pa4 br2 w-100" >
592+ < p className = "f6 fw6 c-warning ma0" >
593+ { userWidgetData ?. getOrganizationByIdStorefront ?. status ===
594+ 'on-hold'
595+ ? formatMessage ( messages . organizationOnHoldWarning )
596+ : formatMessage ( messages . organizationInactiveWarning ) }
597+ </ p >
598+ </ div >
599+ </ div >
600+ ) }
589601 < div className = { `${ handles . userWidgetRow } flex pr4 pl4 items-center` } >
590602 < div
591603 className = { `${ handles . userWidgetItem } pa3 br2 bg-base--inverted hover-bg-base--inverted active-bg-base--inverted c-on-base--inverted hover-c-on-base--inverted active-c-on-base--inverted dib mr3 flex items-center w-100` }
@@ -602,11 +614,18 @@ const UserWidget: VtexFunctionComponent<UserWidgetProps> = ({
602614 } `}
603615 </ div >
604616 ) }
605- < div className = { `${ handles . userWidgetRole } ` } >
617+ < div className = { `${ handles . userWidgetRole } mr4 ` } >
606618 { `${ formatMessage ( messages . role ) } ${
607619 organizationsState . currentRoleName ?? ''
608620 } `}
609621 </ div >
622+ { userWidgetData ?. getOrganizationByIdStorefront ?. status && (
623+ < div className = "mr4" >
624+ { handleStatusMessage (
625+ userWidgetData . getOrganizationByIdStorefront . status
626+ ) }
627+ </ div >
628+ ) }
610629 < div className = "ml-auto" >
611630 { ( hasMultipleOrganizations || isOrgOnHoldOrInactive ) && (
612631 < Button variant = "primary" onClick = { ( ) => setShowModal ( true ) } >
You can’t perform that action at this time.
0 commit comments