8000 fix: lemon tabs data attrs by pauldambra · Pull Request #33532 · PostHog/posthog · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: lemon tabs data attrs #33532

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 11, 2025
Merged

fix: lemon tabs data attrs #33532

merged 2 commits into from
Jun 11, 2025

Conversation

pauldambra
Copy link
Member
@pauldambra pauldambra commented Jun 11, 2025

we hadn't typed our tabs, so I added data-attrs but they were ignored

and anyway lemon tabs didn't support a data-attr on the tab itself...

and so...

Screenshot 2025-06-11 at 11 33 36

Copy link
Contributor
@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

Enhanced type safety and data attribute support in LemonTabs component to improve analytics tracking capabilities.

  • Added data-attr prop to AbstractLemonTab interface allowing per-tab attribute tracking
  • Implemented proper data-attr application on individual tab button elements in frontend/src/lib/lemon-ui/LemonTabs/LemonTabs.tsx
  • Added TypeScript type safety in frontend/src/scenes/session-recordings/filters/RecordingsUniversalFiltersEmbed.tsx by explicitly typing tabs as LemonTab<string>[]

2 files reviewed, 1 comment
Edit PR Review Bot Settings | Greptile

@pauldambra pauldambra requested a review from veryayskiy June 11, 2025 10:34
Copy link
Contributor

Size Change: +27 B (0%)

Total Size: 1.83 MB

ℹ️ View Unchanged
Filename Size Change
frontend/dist/toolbar.js 1.83 MB +27 B (0%)

compressed-size-action

@pauldambra pauldambra merged commit 0de5a35 into master Jun 11, 2025
99 checks passed
@pauldambra pauldambra deleted the fix/lemon-tabs-data-attr branch June 11, 2025 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0