-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fix: friendlier label names for feature flags property targetting #28301
fix: friendlier label names for feature flags property targetting #28301
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
Enhanced feature flag property targeting UI by adding human-readable labels for property keys in the feature flag conditions display.
- Added
getFilterLabel
function call infrontend/src/scenes/feature-flags/FeatureFlagReleaseConditions.tsx
to show descriptive labels (e.g. "Latest Current URL" instead of "$current_url") - Modified read-only property display to show both friendly label and technical key for better clarity
- Improved UX by making property targeting conditions more understandable for non-technical users
1 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings | Greptile
{property?.type !== 'cohort' && | ||
getFilterLabel( | ||
property.key, | ||
property.type === 'person' | ||
? TaxonomicFilterGroupType.PersonProperties | ||
: TaxonomicFilterGroupType.EventProperties | ||
)} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logic: The property type check should also handle group properties, not just person and event properties
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we filter type !== 'cohort'
?
should we also consider group properties?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Size Change: 0 B Total Size: 1.17 MB ℹ️ View Unchanged
|
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
Problem
adds the friendlier label name to the feature flag conditions match, so users don't have to set a "Latest Current URL" and then see just a
$current_url
key which doesn't carry a lot of meaning.Changes
👉 Stay up-to-date with PostHog coding conventions for a smoother review.
Does this work well for both Cloud and self-hosted?
Yes
How did you test this code?
Verified locally, no logic changes