Skip to content

Commit 9b9844a

Browse files
feat(sub v3): route for activity-logs (#101360)
Adds a route for `/activity-logs`, which is the same as `/usage-log`, but allows us to render `Subscription > Activity Logs` instead of `Subscription > Usage Log` when that route is hit. <img width="725" height="210" alt="Screenshot 2025-10-10 at 2 47 08 PM" src="https://github.com/user-attachments/assets/781a3120-fa2c-46c5-a96e-c389f118f77d" />
1 parent 1246c04 commit 9b9844a

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

static/gsApp/hooks/settingsRoutes.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,19 @@ const settingsRoutes = (): SentryRouteObject => ({
7878
component: make(() => import('../views/subscriptionPage/billingInformation')),
7979
deprecatedRouteProps: true,
8080
},
81+
// TODO(sub-v3): We're keeping both routes for now, but we should remove the usage-log route once we're confident in keeping the new name
8182
{
8283
path: 'usage-log/',
8384
name: 'Usage Log',
8485
component: make(() => import('../views/subscriptionPage/usageLog')),
8586
deprecatedRouteProps: true,
8687
},
88+
{
89+
path: 'activity-logs/',
90+
name: 'Activity Logs',
91+
component: make(() => import('../views/subscriptionPage/usageLog')),
92+
deprecatedRouteProps: true,
93+
},
8794
{
8895
path: 'receipts/:invoiceGuid/',
8996
name: 'Receipt Details',

static/gsApp/views/subscriptionPage/headerCards/linksCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function LinksCard({organization}: {organization: Organization}) {
3131
<LinkButton
3232
priority="link"
3333
icon={<IconTimer />}
34-
to="/settings/billing/usage-log/"
34+
to="/settings/billing/activity-logs/"
3535
>
3636
<Text size="sm" variant="accent">
3737
{t('View activity')}
@@ -51,7 +51,7 @@ function LinksCard({organization}: {organization: Organization}) {
5151
<LinkButton
5252
priority="link"
5353
icon={<IconTimer />}
54-
to="/settings/billing/usage-log/"
54+
to="/settings/billing/activity-logs/"
5555
>
5656
<Text size="sm" variant="accent">
5757
{t('View activity')}

0 commit comments

Comments
 (0)