@@ -19,7 +19,7 @@ import '../../../shared/components/rich/issue-icon';
1919import  '../../../shared/components/rich/pr-icon' ; 
2020import  '../../../shared/components/actions/action-item' ; 
2121import  '../../../shared/components/actions/action-nav' ; 
22- import  './merge-conflict-warning ' ; 
22+ import  './merge-target-status ' ; 
2323
2424export  const  branchCardStyles  =  css ` 
2525	.branch-item { 
@@ -136,6 +136,11 @@ export const branchCardStyles = css`
136136	.branch-item__section.mb-1 { 
137137		margin-block: 0.4rem; 
138138	} 
139+ 
140+ 	.branch-item__merge-target { 
141+ 		position: absolute; 
142+ 		bottom: 0.4rem; 
143+ 	} 
139144` ; 
140145
141146type  NothingType  =  typeof  nothing ; 
@@ -318,7 +323,7 @@ export abstract class GlBranchCardBase extends GlElement {
318323		const  tracking  =  this . renderTracking ( ) ; 
319324		const  avatars  =  this . renderAvatars ( ) ; 
320325		const  indicator  =  this . branch . opened  ? undefined  : this . renderBranchIndicator ?.( ) ; 
321- 		const  conflict  =  this . renderPotentialMergeConflicts ( ) ; 
326+ 		const  mergeTargetStatus  =  this . renderMergeTargetStatus ( ) ; 
322327		const  timestamp  =  this . renderTimestamp ( ) ; 
323328
324329		return  html ` 
@@ -334,7 +339,6 @@ export abstract class GlBranchCardBase extends GlElement {
334339							< code-icon  icon =${ this . branch . worktree  ? 'gl-worktrees-view'  : 'git-branch' } > </ code-icon >  
335340						</ span >  
336341						< span  class ="branch-item__name "> ${ this . branch . name } </ span >  
337- 						${ conflict }  
338342					</ p >  
339343				</ div >  
340344				< div  class ="branch-item__section branch-item__section--details " slot ="context ">  
@@ -346,7 +350,7 @@ export abstract class GlBranchCardBase extends GlElement {
346350							</ p > ` , 
347351					) }  
348352				</ div >  
349- 				${ actionsSection  ??  nothing }  
353+ 				${ actionsSection  ??  nothing } ${ mergeTargetStatus }  
350354			</ gl-work-item >  
351355		` ; 
352356	} 
@@ -368,20 +372,21 @@ export abstract class GlBranchCardBase extends GlElement {
368372			</ gl-work-item >  
369373		` ; 
370374	} 
375+ 
371376	// ${this.branch.pr.launchpad != null 
372377	// 	? html`<p> 
373378	// 			<span class="branch-item__category">${this.branch.pr.launchpad.category}</span> 
374379	// 	  </p>` 
375380	// 	: nothing } 
376381
377- 	protected  renderPotentialMergeConflicts ( )  { 
378- 		if  ( ! this . branch . target ?. potentialMergeConflicts )  return  nothing ; 
382+ 	protected  renderMergeTargetStatus ( )  { 
383+ 		if  ( ! this . branch . mergeTarget )  return  nothing ; 
379384
380- 		return  html ` 
381- 			< gl-merge-conflict-warning  
382- 				 .conflict =${ this . branch . target . potentialMergeConflicts }  
383- 			> </ gl-merge-conflict-warning >  
384- 		` ; 
385+ 		return  html `< gl-merge-target-status  
386+ 			class =" branch-item__merge-target "  
387+ 			.branch =${ this . branch . name }  
388+ 			.target = ${ this . branch . mergeTarget }  
389+ 		> </ gl-merge-target-status > ` ; 
385390	} 
386391
387392	protected  renderIssuesItem ( )  { 
0 commit comments