: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(logs): render the group-by picker in the empty Group view (#72690)
Jon McCallumbbe489ec1057
diff --git a/products/logs/frontend/components/LogsViewer/LogsDisplayBar.tsx b/products/logs/frontend/components/LogsViewer/LogsDisplayBar.tsxindex 1393823755de..f1101ad5a0a2 100644--- a/products/logs/frontend/components/LogsViewer/LogsDisplayBar.tsx+++ b/products/logs/frontend/components/LogsViewer/LogsDisplayBar.tsx@@ -180,7 +180,9 @@ const GroupByDimensionPickers = (): JSX.Element => {/></Fragment>))}- {groupBys.length > 0 && groupBys.length < MAX_GROUP_BY_DIMENSIONS && (+ {/* First pick and "+ and" are the same add picker: with no dimension chosen yet it+ must render (labelled "Group by") or the empty Group view has no picker at all. */}+ {groupBys.length < MAX_GROUP_BY_DIMENSIONS && (<TaxonomicStringPopover{...pickerProps}type="tertiary"@@ -189,7 +191,7 @@ const GroupByDimensionPickers = (): JSX.Element => {onChange={(value, groupType) =>value && addGroupBy({ key: value, source: resolveGroupBySource(value, groupType) })}- placeholder="+ and"+ placeholder={groupBys.length === 0 ? 'Group by' : '+ and'}data-attr="logs-group-by-add-dimension"/>)}