@@ -153,7 +153,16 @@ export const documentsNavItems = adminNavItems;
153153
154154const defaultOnFollowHandler = ( ev : CustomEvent < SideNavigationProps . FollowDetail > ) : void => {
155155 // Prevent navigation for non-navigable items (deployment info, region-restricted features)
156- if ( ev . detail . href === '#deployment-info' || ev . detail . href === '#custom-models-unavailable' ) {
156+ const nonNavigableHrefs = [
157+ '#deployment-info' ,
158+ '#custom-models-unavailable' ,
159+ '#stackname' ,
160+ '#version' ,
161+ '#builddatetime' ,
162+ '#idppattern' ,
163+ '#region' ,
164+ ] ;
165+ if ( nonNavigableHrefs . includes ( ev . detail . href ) ) {
157166 ev . preventDefault ( ) ;
158167 return ;
159168 }
@@ -283,7 +292,9 @@ const Navigation = ({
283292 // Create navigation items with deployment info
284293 const navigationItems : SideNavigationProps . Item [ ] = [ ...filteredItems ] as SideNavigationProps . Item [ ] ;
285294
286- if ( settings ?. Version || settings ?. StackName || settings ?. BuildDateTime || settings ?. IDPPattern ) {
295+ const deployedRegion = import . meta. env . VITE_AWS_REGION as string | undefined ;
296+
297+ if ( settings ?. Version || settings ?. StackName || settings ?. BuildDateTime || settings ?. IDPPattern || deployedRegion ) {
287298 const deploymentInfoItems : SideNavigationProps . Item [ ] = [ ] ;
288299
289300 if ( settings ?. StackName ) {
@@ -299,6 +310,9 @@ const Navigation = ({
299310 const pattern = ( settings . IDPPattern as string ) . split ( ' ' ) [ 0 ] ;
300311 deploymentInfoItems . push ( { type : 'link' , text : `Pattern: ${ pattern } ` , href : '#idppattern' } ) ;
301312 }
313+ if ( deployedRegion ) {
314+ deploymentInfoItems . push ( { type : 'link' , text : `Region: ${ deployedRegion } ` , href : '#region' } ) ;
315+ }
302316
303317 navigationItems . push ( {
304318 type : 'section' ,
0 commit comments