Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(feature-flags): add view action and rename duplicate in row menu (#61459)

ruby childs124b954087da
diff --git a/frontend/src/scenes/feature-flags/FeatureFlags.tsx b/frontend/src/scenes/feature-flags/FeatureFlags.tsx
index cdf58cf15e80..d83fb156f68b 100644
--- a/frontend/src/scenes/feature-flags/FeatureFlags.tsx
+++ b/frontend/src/scenes/feature-flags/FeatureFlags.tsx
@@ -168,6 +168,12 @@ function FeatureFlagRowActions({ featureFlag }: { featureFlag: FeatureFlagType }
<More
overlay={
<>
+ {featureFlag.id && (
+ <LemonButton to={urls.featureFlag(featureFlag.id)} data-attr="feature-flag-view" fullWidth>
+ View
+ </LemonButton>
+ )}
+
<LemonButton
onClick={() => {
void copyToClipboard(featureFlag.key, 'feature flag key')
@@ -245,7 +251,7 @@ function FeatureFlagRowActions({ featureFlag }: { featureFlag: FeatureFlagType }
data-attr="feature-flag-duplicate"
fullWidth
>
- Duplicate feature flag
+ Duplicate
</LemonButton>
<LemonButton to={tryInInsightsUrl(featureFlag)} data-attr="usage" fullWidth targetBlank>