refactor(taxonomic-filter): extract eventMetadataTaxonomicGroupsLogic#59820
Conversation
|
🎭 Playwright didn't run on this PR — your changes touch code that could affect E2E behavior, but Playwright is opt-in via label now to keep CI cost down. Add the Most PRs don't need this. Real regressions still get caught on master and fix-forward. |
|
Size Change: 0 B Total Size: 80 MB ℹ️ View Unchanged
|
|
👋 Visual changes detected for this PR. Review and approve in PostHog Visual Review If these changes are unexpected, they may be caused by a flaky test or a broken snapshot on master. Don't approve — rerun the job or wait for a fix. |
8f09244 to
66640c1
Compare
|
Reviews (1): Last reviewed commit: "refactor(taxonomic-filter): extract even..." | Re-trigger Greptile |
39e29cf to
ab04276
Compare
66640c1 to
9af8d63
Compare
New commits pushed (delta classified non_linear_history) — stamphog approval dismissed; re-review running automatically.
ab04276 to
7311bba
Compare
9af8d63 to
4cf28ea
Compare
New commits pushed (delta classified non_linear_history) — stamphog approval dismissed; re-review running automatically.
a8119b1 to
7aab1dd
Compare
bdf2d4a to
01e5a4d
Compare
7aab1dd to
dd7de30
Compare
New commits pushed (delta classified non_linear_history) — stamphog approval dismissed; re-review running automatically.
There was a problem hiding this comment.
Clean mechanical refactor extracting event metadata group definitions into a dedicated kea logic file, following the same pattern as cohortTaxonomicGroupsLogic and groupAnalyticsTaxonomicGroupsLogic already in the same directory. Behavior is identical — the inline group object is simply moved out and spread back in.
dd7de30 to
76a5b7c
Compare
01e5a4d to
473e393
Compare
Fifth slice in the by-data-type split of `taxonomicFilterLogic`. The `Event metadata` tab was the only consumer of `eventMetadataPropertyDefinitions` from `propertyDefinitionsModel`, so the singleton tab and its connect both move together. New `eventMetadataTaxonomicGroupsLogic.ts`: - Connects to `propertyDefinitionsModel` for `eventMetadataPropertyDefinitions` (this connect is no longer needed in the parent). - Owns a new `eventMetadataTaxonomicGroups` selector returning the one-element array with the `Event metadata` tab definition. Parent `taxonomicFilterLogic`: - Connects to the new logic for `eventMetadataTaxonomicGroups`. - Removes the inline tab and replaces it with the spread. - Drops `propertyDefinitionsModel.eventMetadataPropertyDefinitions` from its connect block, and drops `s.eventMetadataPropertyDefinitions` from the `taxonomicGroups` selector inputs and signature. Net selector inputs stay at 15 (slot reused by the new connect value). - Drops now-unused `getEventMetadataDefinitionIcon` import and the `propertyDefinitionsModel` value import (the `updatePropertyDefinitions` function from the same module is still imported). - Net change: parent shrinks by another 18 lines. No behaviour change. The Event metadata tab renders the same data, uses the same icon and core-definition label lookup, and hits the same `/api/event/values/` endpoint for property values. This PR was written by an agent. Automated tests run: - `hogli test frontend/src/lib/components/TaxonomicFilter/` — 362/362 pass. - `pnpm exec tsc --noEmit` filtered to touched files — clean. - `pnpm format` — clean. - Kea typegen produces `eventMetadataTaxonomicGroupsLogicType.ts` and updates `taxonomicFilterLogicType.ts`. The agent did not manually click through the UI. Written by PostHog Code (Claude Opus 4.7). Continued the by-data-type stack strategy: each PR keeps blast radius small (one tab, one connected logic), stays behaviour-identical, and bites off a tab plus any selector that was solely used to feed it. Slow and steady is the point of the stack. Generated-By: PostHog Code Task-Id: 2649f7ae-c1f7-40ae-8866-be024f3f1285
…rent Generated-By: PostHog Code Task-Id: 2649f7ae-c1f7-40ae-8866-be024f3f1285
76a5b7c to
d04e1b3
Compare
New commits pushed (delta classified non_linear_history) — stamphog approval dismissed; re-review running automatically.
Merge activity
|

Problem
Changes
How did you test this code?
👉 Stay up-to-date with PostHog coding conventions for a smoother review.
Publish to changelog?
Docs update
🤖 Agent context