: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
feat(homepage): allow eight items in homepage grid (#82758)
Matt Pua0831ecd617a4
diff --git a/frontend/src/scenes/max/components/CapabilityBadges.tsx b/frontend/src/scenes/max/components/CapabilityBadges.tsxindex b47512605257..48c24ee1f5c4 100644--- a/frontend/src/scenes/max/components/CapabilityBadges.tsx+++ b/frontend/src/scenes/max/components/CapabilityBadges.tsx@@ -17,9 +17,8 @@ import { nextTypingDelayMs } from '../utils/typing'const COLORFUL_ICONS = 'group/colorful-product-icons colorful-product-icons-true'/**- * Height of the suggestion-cards / recents-grid swap area. Set once on the outer container by each- * surface; the cards and the homepage recents grid both fill it with `h-full`, so the two can never- * differ and swapping between them (or between capabilities) never shifts layout.+ * Baseline height of the suggestion-cards / recents-grid swap area. Each surface can grow beyond it+ * when its content needs more space.*/export const CAPABILITY_CARDS_HEIGHT_PX = 184@@ -101,8 +100,7 @@ export interface CapabilitySuggestionsProps {}/**- * The 4 suggestion cards for a selected capability. Fills its parent's height (`h-full`) — the- * parent sets the fixed height (see `CAPABILITY_CARDS_HEIGHT_PX`), and the 4 cards split it evenly.+ * The suggestion cards for a selected capability. Fills its parent's baseline height (`h-full`).*/export function CapabilitySuggestions({capability,diff --git a/frontend/src/scenes/project-homepage/ai-first/HomepageInput.tsx b/frontend/src/scenes/project-homepage/ai-first/HomepageInput.tsxindex 5ada26a78754..045e09922425 100644--- a/frontend/src/scenes/project-homepage/ai-first/HomepageInput.tsx+++ b/frontend/src/scenes/project-homepage/ai-first/HomepageInput.tsx@@ -459,10 +459,9 @@ function IdleGrid(): JSX.Element {ref={gridRef}role="grid"data-attr="homepage-grid"- // Fills the fixed-height swap container (see HomepageInput) so the recents grid and the- // capability cards are always the same height. Only shown at @xl+ where columns sit in a row.+ // Only shown at @xl+ where the homepage columns sit in a row.className={cn(- 'flex flex-col @xl/main-content:flex-row gap-8 @xl/main-content:gap-2 w-full px-3 outline-none h-full',+ 'flex flex-col @xl/main-content:flex-row gap-8 @xl/main-content:gap-2 w-full px-3 outline-none',hasExtraMarginTop && 'mt-8')}tabIndex={-1}@@ -573,11 +572,13 @@ export function HomepageInput(): JSX.Element {selectedKey={selectedCapability}onSelect={setSelectedCapability}/>- {/* Single fixed-height swap area — the cards and the recents grid both fill- it (h-full), so switching never changes height. */}+ {/* Capability suggestions need a fixed basis; the idle grid uses its intrinsic height. */}<divclassName="w-full shrink-0 overflow-hidden"- style={{ height: CAPABILITY_CARDS_HEIGHT_PX }}+ style={{+ height: selectedCapabilityData ? CAPABILITY_CARDS_HEIGHT_PX : 'auto',+ minHeight: CAPABILITY_CARDS_HEIGHT_PX,+ }}>{selectedCapabilityData ? (<CapabilitySuggestions