@@ -559,7 +559,7 @@ type RecommendationShelfItem =
559559 key : string ;
560560 title : string ;
561561 summary : string ;
562- badge : string ;
562+ badge ? : string ;
563563 hint : string ;
564564 meta : string ;
565565 contextSummary ?: string ;
@@ -573,7 +573,7 @@ type RecommendationShelfItem =
573573 key : string ;
574574 title : string ;
575575 summary : string ;
576- badge : string ;
576+ badge ? : string ;
577577 hint : string ;
578578 meta : string ;
579579 contextSummary ?: string ;
@@ -587,7 +587,7 @@ interface ContinuationShelfItem {
587587 key : string ;
588588 title : string ;
589589 summary : string ;
590- badge : string ;
590+ badge ? : string ;
591591 usedAt : number ;
592592 testId : string ;
593593 onSelect : ( ) => void ;
@@ -1309,7 +1309,6 @@ export const EmptyState: React.FC<EmptyStateProps> = ({
13091309 key : template . id ,
13101310 title : template . title ,
13111311 summary : template . summary ,
1312- badge : featured . badgeLabel ,
13131312 hint : template . outputHint ,
13141313 meta : `${ metaPrefix } ${ buildCuratedTaskCapabilityDescription ( template , {
13151314 includeSummary : false ,
@@ -1489,7 +1488,6 @@ export const EmptyState: React.FC<EmptyStateProps> = ({
14891488 ]
14901489 . filter ( ( segment ) => segment . length > 0 )
14911490 . join ( " · " ) ,
1492- badge : "结果模板" ,
14931491 usedAt : template . recentUsedAt as number ,
14941492 testId : `entry-continuation-solution-${ template . id } ` ,
14951493 onSelect : ( ) =>
@@ -1525,7 +1523,6 @@ export const EmptyState: React.FC<EmptyStateProps> = ({
15251523 ]
15261524 . filter ( ( segment ) => segment . length > 0 )
15271525 . join ( " · " ) ,
1528- badge : "我的方法" ,
15291526 usedAt,
15301527 testId : `entry-continuation-method-${ skill . key } ` ,
15311528 onSelect : ( ) => {
@@ -1572,7 +1569,6 @@ export const EmptyState: React.FC<EmptyStateProps> = ({
15721569 ]
15731570 . filter ( ( segment ) => segment . length > 0 )
15741571 . join ( " · " ) ,
1575- badge : "我的方法" ,
15761572 usedAt,
15771573 testId : `entry-continuation-method-${ skill . id } ` ,
15781574 onSelect : ( ) => {
@@ -1815,7 +1811,6 @@ export const EmptyState: React.FC<EmptyStateProps> = ({
18151811 { reviewFeedbackBanner ? (
18161812 < RecommendationSignalBanner data-testid = "entry-review-feedback-banner" >
18171813 < RecommendationSignalBannerHeader >
1818- < RecommendationShelfBadge > 围绕最近复盘</ RecommendationShelfBadge >
18191814 < RecommendationSignalBannerTitle >
18201815 最近复盘已更新:{ reviewFeedbackBanner . title }
18211816 </ RecommendationSignalBannerTitle >
@@ -1847,7 +1842,9 @@ export const EmptyState: React.FC<EmptyStateProps> = ({
18471842 < RecommendationLeadCard
18481843 type = "button"
18491844 data-testid = { leadRecommendationItem . testId }
1850- title = { `${ leadRecommendationItem . badge } · ${ leadRecommendationItem . summary } · ${ leadRecommendationItem . meta } ` }
1845+ title = { [ leadRecommendationItem . summary , leadRecommendationItem . meta ]
1846+ . filter ( ( segment ) => segment . trim ( ) . length > 0 )
1847+ . join ( " · " ) }
18511848 onClick = { ( ) => {
18521849 leadRecommendationItem . onSelect ( ) ;
18531850 } }
@@ -1856,9 +1853,11 @@ export const EmptyState: React.FC<EmptyStateProps> = ({
18561853 < RecommendationLeadEyebrow >
18571854 { resolveLeadRecommendationEyebrow ( creationReplaySurface ) }
18581855 </ RecommendationLeadEyebrow >
1859- < RecommendationShelfInlineBadge >
1860- { leadRecommendationItem . badge }
1861- </ RecommendationShelfInlineBadge >
1856+ { leadRecommendationItem . badge ? (
1857+ < RecommendationShelfInlineBadge >
1858+ { leadRecommendationItem . badge }
1859+ </ RecommendationShelfInlineBadge >
1860+ ) : null }
18621861 </ RecommendationLeadEyebrowRow >
18631862 < RecommendationLeadTitle >
18641863 { leadRecommendationItem . title }
@@ -1897,7 +1896,9 @@ export const EmptyState: React.FC<EmptyStateProps> = ({
18971896 key = { item . key }
18981897 type = "button"
18991898 data-testid = { item . testId }
1900- title = { `${ item . badge } · ${ item . summary } · ${ item . meta } ` }
1899+ title = { [ item . summary , item . meta ]
1900+ . filter ( ( segment ) => segment . trim ( ) . length > 0 )
1901+ . join ( " · " ) }
19011902 onClick = { ( ) => {
19021903 item . onSelect ( ) ;
19031904 } }
@@ -1906,9 +1907,11 @@ export const EmptyState: React.FC<EmptyStateProps> = ({
19061907 < RecommendationAssistCardTitle >
19071908 { item . title }
19081909 </ RecommendationAssistCardTitle >
1909- < RecommendationShelfInlineBadge >
1910- { item . badge }
1911- </ RecommendationShelfInlineBadge >
1910+ { item . badge ? (
1911+ < RecommendationShelfInlineBadge >
1912+ { item . badge }
1913+ </ RecommendationShelfInlineBadge >
1914+ ) : null }
19121915 </ RecommendationAssistCardHeader >
19131916 < RecommendationAssistCardSummary >
19141917 { item . contextSummary
@@ -1934,7 +1937,7 @@ export const EmptyState: React.FC<EmptyStateProps> = ({
19341937 key = { item . key }
19351938 type = "button"
19361939 data-testid = { item . testId }
1937- title = { ` ${ item . badge } · ${ item . summary } ` }
1940+ title = { item . summary }
19381941 onClick = { ( ) => {
19391942 item . onSelect ( ) ;
19401943 } }
@@ -1943,7 +1946,9 @@ export const EmptyState: React.FC<EmptyStateProps> = ({
19431946 < RecommendationAssistCardTitle >
19441947 { item . title }
19451948 </ RecommendationAssistCardTitle >
1946- < RecommendationShelfBadge > { item . badge } </ RecommendationShelfBadge >
1949+ { item . badge ? (
1950+ < RecommendationShelfBadge > { item . badge } </ RecommendationShelfBadge >
1951+ ) : null }
19471952 </ RecommendationAssistCardHeader >
19481953 < RecommendationAssistCardSummary >
19491954 { item . summary }
0 commit comments