Repository navigation
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Guard the workflow edit listeners, disable step settings while keeping collapsible sections openable, and hide title editing and the auto-save switch from viewers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Merging to
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 |
|
Decision record for this PR, from the agent session and the design review round.
|
…viewers A disabled fieldset also disabled collapse headers inside step settings, so viewers could not open nested sections. Lock edit controls with a view-only area that leaves collapse headers clickable. Offer Duplicate only to users who can create workflows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ings Pointer blocking alone left step controls reachable by keyboard, and some of them call APIs directly. The view-only area now stops clicks, key presses, paste and drop on everything except collapse headers and links. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Moved to #127180 on a branch in PostHog/posthog, so it gets the full CI. |
Problem
Impact
workflow view only banner shownandworkflow view only duplicatedevents track it.Warning
🟡 Merge risk: medium · two-way door (merge-risk rubric)
git revertthe merge commit.Changes
workflowLogicdrops viewer edits in the four listeners that every layout writes through, and skips auto-save.hog_flowalready rejects viewer saves.How did you test this code?
Test rationale: existing editor tests never load a viewer. Logic tests check that viewer edits never change or auto-save the workflow.
workflowViewOnly.test.tsxchecks blocked input and readable settings.hog_flows. The owner's edit saved.👉 Stay up-to-date with PostHog coding conventions for a smoother review.
Release status
Docs update
🤖 Agent context
Autonomy: Human-driven (agent-assisted)
Agent: Claude Code, claude-opus-5-5
Skills:
/full-stop,/impact,/tdd,/qa-swarm,/merge-risk,/pr-description,/writing-pr-descriptionshog_flowworkflowLogiclisteners plus blocked input eventsInvolvement: one design review, UI walk and live run captured, four GPT-6.1 Sol review reads with the last one clean.
More context for AI agents
deletableinto theworkflowLogiclisteners. Review rounds replaced the disabled fieldset with capture-phase event blocking, gated Duplicate, and limited cursor keys to text fields.readOnlycode editors.workflowLogic.tslistener guards,ViewOnlyArea.tsx.🤖 Generated with Claude Code