: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(customer-analytics): clarify relationship unassignment (#90862)
Arthur Moreira de Deus9ea8a32c05d9
diff --git a/products/customer_analytics/frontend/components/Accounts/AGENTS.md b/products/customer_analytics/frontend/components/Accounts/AGENTS.mdindex 8707fcafaf7f..c06a9279d759 100644--- a/products/customer_analytics/frontend/components/Accounts/AGENTS.md+++ b/products/customer_analytics/frontend/components/Accounts/AGENTS.md@@ -28,7 +28,7 @@ AccountsTabContent ── binds dataNodeLogic(ACCOUNTS_TABLE_DATA_NODE_KEY, acc└── AccountNotebooksExpansion expanded row: sidebar (Useful links + active-relationships summary) + LemonTabs(Notes/Users/Relationships/Feature requests/Usage/Spend/Opportunities/Conversations/Meetings/Event stream)├── (notes) paginated/searchable/sortable LemonTable + "New note" button (accountNotebooksLogic, keyed by accountId)├── (users) AccountRelatedUsersExpansion (accountRelatedUsersLogic, keyed by externalId; staff get a compact, region-aware admin link)- ├── (relationships) AccountRelationshipsExpansion (accountRelationshipsLogic, keyed by accountId — full assignment timeline, paginated; assign/end controls + definition filter, admin-only hard-delete controls with confirmation, current assignments sorted on top)+ ├── (relationships) AccountRelationshipsExpansion (accountRelationshipsLogic, keyed by accountId — full assignment timeline, paginated; assign/unassign controls + definition filter, admin-only hard-delete controls with confirmation, current assignments sorted on top)├── (feature requests) AccountFeatureRequestsExpansion (accountFeatureRequestsLogic, keyed by accountId — linked requests and link-existing flow)├── (usage) AccountBillingExpansion kind="usage" (accountBillingLogic — a saved billing-usage insight)├── (spend) AccountBillingExpansion kind="spend" (accountBillingLogic — saved billing-spend insights)diff --git a/products/customer_analytics/frontend/components/Accounts/AccountRelationshipsExpansion.tsx b/products/customer_analytics/frontend/components/Accounts/AccountRelationshipsExpansion.tsxindex 2d9668041856..04c664c542a8 100644--- a/products/customer_analytics/frontend/components/Accounts/AccountRelationshipsExpansion.tsx+++ b/products/customer_analytics/frontend/components/Accounts/AccountRelationshipsExpansion.tsx@@ -1,6 +1,6 @@import { useActions, useValues } from 'kea'-import { IconTrash, IconX } from '@posthog/icons'+import { IconTrash } from '@posthog/icons'import {LemonButton,LemonModal,@@ -88,12 +88,15 @@ export function AccountRelationshipsExpansion({ accountId }: { accountId: string<div className="flex justify-end gap-1">{!relationship.ended_at && (<LemonButton+ type="secondary"size="xsmall"- icon={<IconX />}tooltip={`End this ${relationship.definition.name} assignment`}disabledReason={relationshipSaving ? 'Saving…' : undefined}+ data-attr="account-relationships-unassign-button"onClick={() => endRelationship(relationship)}- />+ >+ Unassign+ </LemonButton>)}{canDeleteRelationships && (<LemonButton