Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(dashboards): shorten dashboard picker actions copytext (#100277)

Matt Puafa834e87e104
diff --git a/frontend/src/lib/components/AddToDashboard/AddToDashboardModal.tsx b/frontend/src/lib/components/AddToDashboard/AddToDashboardModal.tsx
index 6084eb7370e1..111513b07883 100644
--- a/frontend/src/lib/components/AddToDashboard/AddToDashboardModal.tsx
+++ b/frontend/src/lib/components/AddToDashboard/AddToDashboardModal.tsx
@@ -82,6 +82,7 @@ const DashboardRelationRow = ({
<LemonButton
type="secondary"
status={isAlreadyOnDashboard ? 'danger' : 'default'}
+ aria-label={`${isAlreadyOnDashboard ? 'Remove from' : 'Add to'} ${dashboard.name || 'Untitled'} dashboard`}
loading={dashboardWithActiveAPICall === dashboard.id}
disabledReason={
!canEditInsight
@@ -96,7 +97,7 @@ const DashboardRelationRow = ({
isAlreadyOnDashboard ? removeFromDashboard(dashboard.id) : addToDashboard(dashboard.id)
}}
>
- {isAlreadyOnDashboard ? 'Remove from dashboard' : 'Add to dashboard'}
+ {isAlreadyOnDashboard ? 'Remove' : 'Add'}
</LemonButton>
</div>
)