feat(skill-buttons): add PostHog actions menu to header#1708
feat(skill-buttons): add PostHog actions menu to header#1708jonathanlab merged 3 commits intomainfrom
Conversation
Generated-By: PostHog Code Task-Id: 08c5ae59-7ba7-44bf-9dbf-a015532342c6
| return <Icon size={14} weight="bold" color={color} />; | ||
| } | ||
|
|
||
| export function SkillButtonsMenu({ taskId }: SkillButtonsMenuProps) { |
There was a problem hiding this comment.
nit: can we make this button match the height / border radius / etc of the neighboring buttons pls?
There was a problem hiding this comment.
Done — dropped the ButtonGroup and used a flex wrapper with an inline 3px outer radius, so the two buttons now render at 24px / 3px to match the neighboring Radix Themes size="1" git buttons.
| tooltip: string; | ||
| } | ||
|
|
||
| export const SKILL_BUTTONS: Record<SkillButtonId, SkillButton> = { |
There was a problem hiding this comment.
[nit] mostly for brevity, what are your thoughts on making the labels more like actions?
examples:
- "Add analytics" -> "Track events"
- "Add error tracking" -> "Track errors"
not sure if that actually makes things more brief lol but perhaps something in that direction, lmk what you think
There was a problem hiding this comment.
Yup that's way better, let's do that.
There was a problem hiding this comment.
Shortened the labels to action verbs: Add analytics → Track events, Add error tracking → Track errors, Instrument LLM calls → Trace LLM calls, Add logging → Capture logs, Create feature flag → Add feature flag. Run experiment stays as is.
Shorten labels to action verbs ("Track events", "Track errors",
"Trace LLM calls", "Capture logs", "Add feature flag") for brevity,
and drop ButtonGroup in favor of a flex wrapper with 3px outer radius
so the menu matches the neighboring Radix Themes size="1" git buttons.
Generated-By: PostHog Code
Task-Id: a0864e1a-e8f9-4600-a40f-cfebfc25e324
Adds a new skill buttons menu to the task header that allows users to trigger PostHog-related actions (add analytics, create feature flags, run experiments) directly from the UI. This includes a new
SkillButtonsMenucomponent with a primary action button and dropdown menu for additional actions.Created with PostHog Code