Browse Source

ref(source-maps): Update artifacts header and breadcrumbs (#46434)

Priscila Oliveira 1 year ago
parent
commit
2ace28cbc3

+ 2 - 2
static/app/routes.tsx

@@ -526,7 +526,7 @@ function buildRoutes() {
           })}
         >
           <Route
-            name={t('Artifact Bundle')}
+            name={t('Debug ID Bundle')}
             path=":bundleId/"
             component={make(async () => {
               const {ProjectSourceMapsContainer} = await import(
@@ -551,7 +551,7 @@ function buildRoutes() {
           })}
         >
           <Route
-            name={t('Artifact Bundle')}
+            name={t('Release Bundle')}
             path=":bundleId/"
             component={make(async () => {
               const {ProjectSourceMapsContainer} = await import(

+ 2 - 2
static/app/views/settings/projectSourceMaps/projectSourceMapsArtifacts.spec.tsx

@@ -94,7 +94,7 @@ describe('ProjectSourceMapsArtifacts', function () {
       );
 
       // Title
-      expect(screen.getByRole('heading')).toHaveTextContent('Artifact Bundle');
+      expect(screen.getByRole('heading')).toHaveTextContent('Release Bundle');
       // Subtitle
       expect(screen.getByText('bea7335dfaebc0ca6e65a057')).toBeInTheDocument();
 
@@ -202,7 +202,7 @@ describe('ProjectSourceMapsArtifacts', function () {
       );
 
       // Title
-      expect(screen.getByRole('heading')).toHaveTextContent('Artifact Bundle');
+      expect(screen.getByRole('heading')).toHaveTextContent('Debug ID Bundle');
       // Subtitle
       expect(
         screen.getByText('7227e105-744e-4066-8c69-3e5e344723fc')

+ 1 - 1
static/app/views/settings/projectSourceMaps/projectSourceMapsArtifacts.tsx

@@ -183,7 +183,7 @@ export function ProjectSourceMapsArtifacts({params, location, router, project}:
   return (
     <Fragment>
       <SettingsPageHeader
-        title={t('Artifact Bundle')}
+        title={tabDebugIdBundlesActive ? t('Debug ID Bundle') : t('Release Bundle')}
         subtitle={
           <VersionAndDetails>
             {params.bundleId}