Просмотр исходного кода

fix(teamStats): Sentence case empty state text on team stats (#30952)

Scott Cooper 3 лет назад
Родитель
Сommit
53691cb6e1

+ 1 - 1
static/app/views/organizationStats/teamInsights/overview.tsx

@@ -392,7 +392,7 @@ function TeamInsightsOverview({location, router}: Props) {
             </DescriptionCard>
             <DescriptionCard
               title={t('Number of Releases')}
-              description={t("The releases that were created in your team's projects.")}
+              description={t('The releases that were created in your team’s projects.')}
             >
               <TeamReleases
                 projects={projects}

+ 1 - 1
static/app/views/organizationStats/teamInsights/teamAlertsTriggered.tsx

@@ -152,7 +152,7 @@ class TeamAlertsTriggered extends AsyncComponent<Props, State> {
           isEmpty={
             !alertsTriggered || !alertsTriggeredRules || alertsTriggeredRules.length === 0
           }
-          emptyMessage={t("No Alerts Triggered For This Team's Projects")}
+          emptyMessage={t('No alerts triggered for this team’s projects')}
           emptyAction={
             <ButtonsContainer>
               <Button

+ 1 - 1
static/app/views/organizationStats/teamInsights/teamIssuesAge.tsx

@@ -137,7 +137,7 @@ class TeamIssuesAge extends AsyncComponent<Props, State> {
         </ChartWrapper>
         <StyledPanelTable
           isEmpty={!oldestIssues || oldestIssues.length === 0}
-          emptyMessage={t("No Unresolved Issues For This Team's Projects")}
+          emptyMessage={t('No unresolved issues for this team’s projects')}
           headers={[
             t('Oldest Issues'),
             <RightAligned key="events">{t('Events')}</RightAligned>,

+ 1 - 1
static/app/views/organizationStats/teamInsights/teamIssuesReviewed.tsx

@@ -156,7 +156,7 @@ class TeamIssuesReviewed extends AsyncComponent<Props, State> {
         </ChartWrapper>
         <StyledPanelTable
           isEmpty={projects.length === 0}
-          emptyMessage={t('No Projects Assigned To This Team')}
+          emptyMessage={t('No projects assigned to this team')}
           headers={[
             t('Project'),
             <AlignRight key="forReview">{t('For Review')}</AlignRight>,

+ 1 - 1
static/app/views/organizationStats/teamInsights/teamMisery.tsx

@@ -87,7 +87,7 @@ function TeamMisery({
     <Fragment>
       <StyledPanelTable
         isEmpty={projects.length === 0 || periodTableData?.data.length === 0}
-        emptyMessage={t('No Key Transactions Starred By This Team')}
+        emptyMessage={t('No key transactions starred by this team')}
         emptyAction={
           <Button
             size="small"

+ 1 - 1
static/app/views/organizationStats/teamInsights/teamReleases.tsx

@@ -245,7 +245,7 @@ class TeamReleases extends AsyncComponent<Props, State> {
         </ChartWrapper>
         <StyledPanelTable
           isEmpty={projects.length === 0}
-          emptyMessage={t("No Releases Were Setup For This Team's Projects")}
+          emptyMessage={t('No releases were setup for this team’s projects')}
           emptyAction={
             <Button
               size="small"

+ 1 - 1
static/app/views/organizationStats/teamInsights/teamStability.tsx

@@ -239,7 +239,7 @@ class TeamStability extends AsyncComponent<Props, State> {
         {({response, loading}) => (
           <StyledPanelTable
             isEmpty={projects.length === 0}
-            emptyMessage={t('No Projects With Release Health Enabled')}
+            emptyMessage={t('No projects with release health enabled')}
             emptyAction={
               <Button
                 size="small"

+ 1 - 1
tests/js/spec/views/organizationStats/teamInsights/teamMisery.spec.jsx

@@ -115,7 +115,7 @@ describe('TeamMisery', () => {
     );
 
     expect(
-      screen.getByText('No Key Transactions Starred By This Team')
+      screen.getByText('No key transactions starred by this team')
     ).toBeInTheDocument();
   });
 

+ 1 - 1
tests/js/spec/views/organizationStats/teamInsights/teamStability.spec.jsx

@@ -42,7 +42,7 @@ describe('TeamStability', () => {
     );
 
     expect(
-      screen.getByText('No Projects With Release Health Enabled')
+      screen.getByText('No projects with release health enabled')
     ).toBeInTheDocument();
   });
 });