: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(today): use quill button shape and sizes in phone headers (#111646)
Shy Alterc40757fb9ffe
diff --git a/frontend/src/layout/today/TodayPhoneHeader.tsx b/frontend/src/layout/today/TodayPhoneHeader.tsxindex 33f5cc89f1f1..dce4cdc83b42 100644--- a/frontend/src/layout/today/TodayPhoneHeader.tsx+++ b/frontend/src/layout/today/TodayPhoneHeader.tsx@@ -35,13 +35,7 @@ export function TodayPhoneHeader(): JSX.Element {return (<header className="TodayPhoneHeader" data-scrolled={scrolled} data-quill>- <Button- size="icon-lg"- className="rounded-full"- aria-label="Back"- data-attr="today-phone-back"- onClick={goBackOnPhone}- >+ <Button size="icon-lg" aria-label="Back" data-attr="today-phone-back" onClick={goBackOnPhone}><IconChevronLeft /></Button><Text@@ -55,7 +49,6 @@ export function TodayPhoneHeader(): JSX.Element {{!onAiPage && (<Buttonsize="icon-lg"- className="rounded-full"aria-label="Open context panel"data-attr="today-phone-context-panel"onClick={() => openSidePanel(scenePanelIsPresent ? SidePanelTab.Info : SidePanelTab.Max)}diff --git a/frontend/src/layout/today/TodayShell.tsx b/frontend/src/layout/today/TodayShell.tsxindex 795737b5845e..741eaefc2b99 100644--- a/frontend/src/layout/today/TodayShell.tsx+++ b/frontend/src/layout/today/TodayShell.tsx@@ -156,7 +156,7 @@ export function TodayShell({ className }: { className?: string }): JSX.Element {{TODAY_MORE_PANES.includes(activePane) && (<Buttonsize="icon-lg"- className="-ml-2 rounded-full"+ className="-ml-2"aria-label="Back to More"data-attr="today-more-back"onClick={() => pickPane('more')}diff --git a/products/posthog_ai/frontend/components/composer/ComposerModelEffortSheet.tsx b/products/posthog_ai/frontend/components/composer/ComposerModelEffortSheet.tsxindex 1e65a36e8ec3..82fa61da33b3 100644--- a/products/posthog_ai/frontend/components/composer/ComposerModelEffortSheet.tsx+++ b/products/posthog_ai/frontend/components/composer/ComposerModelEffortSheet.tsx@@ -1,7 +1,6 @@import { useState } from 'react'-import { IconCheck } from '@posthog/icons'-import { Button, MenuLabel, ToggleGroup, ToggleGroupItem, cn } from '@posthog/quill-primitives'+import { Button, ItemRadio, MenuLabel, ToggleGroup, ToggleGroupItem } from '@posthog/quill-primitives'import { SHEET_PARTS } from '~/layout/today/todayMenuParts'import { TodaySheetMenu } from '~/layout/today/TodaySheetMenu'@@ -103,22 +102,16 @@ export function ComposerModelEffortSheet({{adapterModels.map((option) => {const selected = option.model === selectedModelreturn (- <button+ <ItemRadiokey={option.model}- type="button"- role="radio"aria-checked={selected}- className={cn(- 'flex min-h-11 w-full items-center gap-2 rounded-md px-3 text-left text-base',- 'hover:bg-fill-hover focus-visible:bg-fill-hover focus-visible:outline-none'- )}+ className="flex-nowrap"onClick={() => onModelChange(option.model)}data-attr="composer-model-sheet-model">- <span className="min-w-0 flex-1 truncate">{option.display_name}</span>+ <span className="min-w-0 flex-1 truncate text-left">{option.display_name}</span><ModelCostChip model={option.model} />- <span className="flex size-4 shrink-0">{selected && <IconCheck />}</span>- </button>+ </ItemRadio>)})}</div>@@ -136,15 +129,18 @@ export function ComposerModelEffortSheet({dataAttr="composer-model-sheet-harness">{adapters.map((adapter) => (- <SHEET_PARTS.Item+ <ItemRadiokey={adapter}+ aria-checked={adapter === selectedAdapter}disabled={harnessDisabled(adapter)}- onClick={() => onAdapterChange(adapter)}- dataAttr={`composer-model-sheet-harness-${adapter}`}+ onClick={() => {+ onAdapterChange(adapter)+ setOpen(false)+ }}+ data-attr={`composer-model-sheet-harness-${adapter}`}>- <span className="flex-1 text-left">{getHarnessLabel(adapter)}</span>- {adapter === selectedAdapter && <IconCheck className="shrink-0" />}- </SHEET_PARTS.Item>+ {getHarnessLabel(adapter)}+ </ItemRadio>))}</TodaySheetSub>)}@@ -156,18 +152,21 @@ export function ComposerModelEffortSheet({dataAttr="composer-model-sheet-billing">{[ModelAccessEnumApi.PosthogGateway, ModelAccessEnumApi.OwnSubscription].map((value) => (- <SHEET_PARTS.Item+ <ItemRadiokey={value}+ aria-checked={value === billing.value}disabled={billing.locked ||(value === ModelAccessEnumApi.OwnSubscription && !billing.planConnected)}- onClick={() => billing.onChange(value)}- dataAttr={`composer-model-sheet-billing-${value}`}+ onClick={() => {+ billing.onChange(value)+ setOpen(false)+ }}+ data-attr={`composer-model-sheet-billing-${value}`}>- <span className="flex-1 text-left">{billingLabels[value]}</span>- {value === billing.value && <IconCheck className="shrink-0" />}- </SHEET_PARTS.Item>+ {billingLabels[value]}+ </ItemRadio>))}{!billing.planConnected && !billing.locked && (<>diff --git a/products/posthog_ai/frontend/components/quill/QuillAttachedContextPicker.tsx b/products/posthog_ai/frontend/components/quill/QuillAttachedContextPicker.tsxindex 8c780607203b..f5c651298a74 100644--- a/products/posthog_ai/frontend/components/quill/QuillAttachedContextPicker.tsx+++ b/products/posthog_ai/frontend/components/quill/QuillAttachedContextPicker.tsx@@ -57,7 +57,7 @@ export function QuillAttachedContextPicker(): JSX.Element {><IconChevronLeft /></Button>- <DialogTitle className="text-base font-semibold">Add context</DialogTitle>+ <DialogTitle>Add context</DialogTitle></div><div data-not-quill className="min-h-0 flex-1 overflow-hidden px-5 pt-3"><TaxonomicFilterdiff --git a/products/posthog_ai/frontend/components/quill/QuillModePicker.tsx b/products/posthog_ai/frontend/components/quill/QuillModePicker.tsxindex e96fbccb4c12..586b06824462 100644--- a/products/posthog_ai/frontend/components/quill/QuillModePicker.tsx+++ b/products/posthog_ai/frontend/components/quill/QuillModePicker.tsx@@ -1,7 +1,6 @@import { useValues } from 'kea'import { useState } from 'react'-import { IconCheck } from '@posthog/icons'import {Button,DropdownMenu,@@ -9,11 +8,13 @@ import {DropdownMenuRadioGroup,DropdownMenuRadioItem,DropdownMenuTrigger,+ ItemContent,+ ItemDescription,+ ItemRadio,+ ItemTitle,MenuLabel,- Text,} from '@posthog/quill-primitives'-import { SHEET_PARTS } from '~/layout/today/todayMenuParts'import { TodaySheetMenu } from '~/layout/today/TodaySheetMenu'import { todayShellLogic } from '~/layout/today/todayShellLogic'@@ -56,19 +57,20 @@ export function QuillModePicker({ selectedMode, onModeChange, modes }: QuillMode</Button><TodaySheetMenu open={open} onOpenChange={setOpen} title="Mode">{options.map((option) => (- <SHEET_PARTS.Item+ <ItemRadiokey={option.value}- onClick={() => onModeChange(option.value)}- dataAttr={`composer-mode-${option.value}`}+ aria-checked={option.value === selectedMode}+ onClick={() => {+ onModeChange(option.value)+ setOpen(false)+ }}+ data-attr={`composer-mode-${option.value}`}>- <span className="flex min-w-0 flex-1 flex-col text-left">- <span>{option.label}</span>- <Text size="sm" variant="muted" render={<span />}>- {option.description}- </Text>- </span>- {option.value === selectedMode && <IconCheck className="shrink-0" aria-label="Selected" />}- </SHEET_PARTS.Item>+ <ItemContent className="text-left">+ <ItemTitle>{option.label}</ItemTitle>+ <ItemDescription className="line-clamp-none">{option.description}</ItemDescription>+ </ItemContent>+ </ItemRadio>))}</TodaySheetMenu></>diff --git a/products/posthog_ai/frontend/scenes/TaskTracker/components/ArtifactCommentsPage.tsx b/products/posthog_ai/frontend/scenes/TaskTracker/components/ArtifactCommentsPage.tsxindex 1e594d00f53d..e7638d955870 100644--- a/products/posthog_ai/frontend/scenes/TaskTracker/components/ArtifactCommentsPage.tsx+++ b/products/posthog_ai/frontend/scenes/TaskTracker/components/ArtifactCommentsPage.tsx@@ -73,9 +73,7 @@ export function ArtifactCommentsPage({onCheckedChange={(checked: boolean) => setShowResolved(checked)}data-attr="task-artifact-comments-show-resolved"/>- <Label htmlFor={switchId} className="text-xs">- {`Resolved (${resolvedCount})`}- </Label>+ <Label htmlFor={switchId}>{`Resolved (${resolvedCount})`}</Label></div>)}</div>diff --git a/products/posthog_ai/frontend/scenes/TaskTracker/components/TaskRunSceneShell.tsx b/products/posthog_ai/frontend/scenes/TaskTracker/components/TaskRunSceneShell.tsxindex 8b1aa4c2e3d1..a0ecfd0560ab 100644--- a/products/posthog_ai/frontend/scenes/TaskTracker/components/TaskRunSceneShell.tsx+++ b/products/posthog_ai/frontend/scenes/TaskTracker/components/TaskRunSceneShell.tsx@@ -166,7 +166,7 @@ export function TaskRunSceneShell({<Buttonvariant="default"size="icon-lg"- className="-ml-2 rounded-full"+ className="-ml-2"aria-label="Back"onClick={goBackOnPhone}data-attr="today-phone-back"