<div>
{branch && (
<>
- {currentUser.isLoggedIn && (
+ {currentUser.isLoggedIn && hasNewCodeMeasures && (
<PromotedSection
content={translate('overview.promoted_section.content')}
dismissed={dismissedTour ?? false}
branch={branch}
component={component}
measures={measures}
- showTakeTheTourButton={dismissedTour && currentUser.isLoggedIn}
+ showTakeTheTourButton={
+ dismissedTour && currentUser.isLoggedIn && hasNewCodeMeasures
+ }
startTour={startTourGuide}
/>
<BasicSeparator />
value={isNewCode ? CodeScope.New : CodeScope.Overall}
>
{isNewCode && leakPeriod && (
- <LightLabel className="sw-body-sm sw-flex sw-items-center sw-mr-6">
+ <LightLabel
+ className="sw-body-sm sw-flex sw-items-center sw-mr-6 sw-pl-4"
+ data-spotlight-id="cayc-promotion-2"
+ >
<span className="sw-mr-1">{translate('overview.new_code')}:</span>
<LeakPeriodInfo leakPeriod={leakPeriod} />
</LightLabel>
const intl = useIntl();
return analysisDate ? (
- <span className="sw-pl-4" data-spotlight-id="cayc-promotion-2">
+ <span>
{intl.formatMessage(
{
id: 'overview.last_analysis_x',
help=Help
here=here
hide=Hide
+ide=IDE
inactive=Inactive
info=Info
issue=Issue
guiding.cayc_promotion.3.content.1=Quality Gate Status tells you if your new code is clean or not. Keep it green as often as possible, and your project will always be production-ready.
guiding.cayc_promotion.4.title=Clean at all levels
guiding.cayc_promotion.4.content.1=With SonarLint, clean code as you write it in your {value}.
-guiding.cayc_promotion.4.content.2=When a feature is ready, analyze your {value} and make sure no issue is missed.
+guiding.cayc_promotion.4.content.2=When a feature is ready, analyze your {value} (commercial edition only) and make sure no issue is missed.
guiding.cayc_promotion.4.content.3=Finally, rely on a thorough {value} analysis to ensure the new code is clean.
guiding.replay_tour_button.1.title=Replay tour
guiding.replay_tour_button.tour_completed.1.title=Tour complete!