Skip to content

feat(loops): Allow editing loop metadata inline - #3847

Closed
MattPua wants to merge 3 commits into
mainfrom
posthog-code/edit-loop-metadata-inline
Closed

feat(loops): Allow editing loop metadata inline#3847
MattPua wants to merge 3 commits into
mainfrom
posthog-code/edit-loop-metadata-inline

Conversation

@MattPua

@MattPua MattPua commented Jul 27, 2026

Copy link
Copy Markdown
Member

Problem

Why: Loop titles and descriptions can only be changed through the full edit flow, making small metadata updates unnecessarily slow.

Changes

  • Make loop titles and descriptions editable directly from the detail page
  • Save on blur or Enter, with Escape to cancel
  • Keep empty descriptions discoverable with an inline placeholder

How did you test this?

  • pnpm --filter @posthog/ui typecheck
  • pnpm --filter @posthog/ui test src/features/loops (186 tests)
  • pnpm exec biome check --write packages/ui/src/features/loops/components/LoopDetailView.tsx

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

Created with PostHog Code

Generated-By: PostHog Code
Task-Id: beb0b035-943b-4a49-a2e4-04b47c3cbf07
@trunk-io

trunk-io Bot commented Jul 27, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

@github-actions

github-actions Bot commented Jul 27, 2026

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit 0f77479.

@MattPua MattPua changed the title Allow editing loop metadata inline feat(loops): Allow editing loop metadata inline Jul 27, 2026
MattPua added 2 commits July 27, 2026 13:37
Match the display typography and give the edit field room so long
titles are not clipped.

Generated-By: PostHog Code
Task-Id: beb0b035-943b-4a49-a2e4-04b47c3cbf07
QA pass on the inline title/description editors:

- Extract the triplicated save-on-blur state machine (title,
  description, instructions) into useInlineEdit, closing the drift
  where the new editors lacked the isPending guard.
- Description Enter now inserts a newline instead of committing,
  matching the instructions textarea; single-line title still
  commits on Enter.
- Add title tooltip for truncated names.
- Bump empty-description placeholder to the gray-10 muted-text token.
- Cover the hook with tests.

Generated-By: PostHog Code
Task-Id: beb0b035-943b-4a49-a2e4-04b47c3cbf07
@MattPua MattPua closed this Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant