Skip to content

feat(crm): Incorporate B2B analytics into tree-nav #30930

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 5 commits into from
Apr 8, 2025

Conversation

danielbachhuber
Copy link
Contributor

See #29881

Changes

Renders the 'B2B analytics' side action and changes the 'People and groups' label when b2b-analytics is enabled

b2b-analytics disabled

CleanShot 2025-04-08 at 05 13 38

b2b-analytics enabled

CleanShot 2025-04-08 at 05 11 53

How did you test this code?

Visual review.

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

This PR updates the navigation components to support B2B analytics by conditionally rendering labels and side actions. It adjusts the UI to show "Persons and cohorts" and adds a beta tag when the B2B analytics flag is enabled.

  • Updated /frontend/src/layout/panel-layout/PanelLayoutNavBar.tsx to conditionally change the label and tooltip for the PersonsManagement nav item.
  • Modified /frontend/src/layout/panel-layout/panelLayoutLogic.tsx to add the setVisibleSideAction action.
  • Adjusted /frontend/src/layout/navigation-3000/navigationLogic.tsx to inject the B2B analytics nav item with a beta tag.

3 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

@danielbachhuber danielbachhuber enabled auto-merge (squash) April 8, 2025 12:25
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

2 snapshot changes in total. 0 added, 2 modified, 0 deleted:

  • chromium: 0 added, 2 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 5)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

Copy link
Contributor

github-actions bot commented Apr 8, 2025

Size Change: +40 B (0%)

Total Size: 13.1 MB

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

compressed-size-action

@danielbachhuber danielbachhuber merged commit 259b723 into master Apr 8, 2025
106 of 107 checks passed
@danielbachhuber danielbachhuber deleted the crm/tree-nav branch April 8, 2025 12:49
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.

3 participants