Skip to content

Commit

Permalink
feat: Send openRelatedTablesLogEvent when opening related tables on m…
Browse files Browse the repository at this point in the history
…ain area
  • Loading branch information
sasamuku committed Dec 20, 2024
1 parent b839057 commit 486286a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions frontend/.changeset/dry-islands-flash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@liam-hq/erd-core": patch
"@liam-hq/cli": patch
---

📈 : Add open related tables log event
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { convertDBStructureToNodes } from '@/components/ERDRenderer/convertDBStructureToNodes'
import { OpenRelatedTablesLogEvent } from '@/features/gtm/utils'
import {
replaceHiddenNodeIds,
updateActiveTableName,
Expand Down Expand Up @@ -33,7 +34,10 @@ export const RelatedTables: FC<Props> = ({ table }) => {

replaceHiddenNodeIds(hiddenNodeIds)
updateActiveTableName(undefined)
}, [nodes, getNodes])
OpenRelatedTablesLogEvent({
tableId: table.name,
})
}, [nodes, getNodes, table.name])

return (
<div className={styles.wrapper}>
Expand Down

0 comments on commit 486286a

Please sign in to comment.