Skip to content

[6.x] Poll for element activity and upstream changes in the Inertia editor - #19405

Closed
brianjhanson wants to merge 1 commit into
feature/inertia-edit-previewfrom
feature/inertia-edit-activity
Closed

[6.x] Poll for element activity and upstream changes in the Inertia editor#19405
brianjhanson wants to merge 1 commit into
feature/inertia-edit-previewfrom
feature/inertia-edit-activity

Conversation

@brianjhanson

@brianjhanson brianjhanson commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Description

Adds collaborative awareness to the Inertia editor: who else is working on the element, and whether it has changed underneath the person editing it.

useElementActivity polls elements/recent-activity on the same fifteen-second cadence the legacy editor uses, rendering each active user's avatar beside the save controls with their activity message. When the element's or its canonical's last-modified stamp comes back different from what the screen rendered with, a notice offers to reload — naming the draft when the draft itself moved, and the element type otherwise.

Polling pauses while the tab is hidden and re-reads on return. The legacy editor keeps polling regardless, but a backgrounded tab has nobody to show avatars to, and the timestamps are compared fresh on the next visible poll either way. A failed poll is swallowed: this is ambient information nobody asked for, and the next tick may well succeed.

Revisions don't poll. They're read-only, so there is nothing to collaborate on and nothing to go stale.

@brianjhanson brianjhanson changed the title Poll for element activity and upstream changes in the Inertia editor [6.x] Poll for element activity and upstream changes in the Inertia editor Aug 11, 2026
@github-actions

github-actions Bot commented Aug 11, 2026

Copy link
Copy Markdown

📚 Storybook previews

@craftcms/uiopen Storybook

No changed components detected in this Storybook.

resources/js⚠️ deploy failure, no preview available

@brianjhanson
brianjhanson force-pushed the feature/inertia-edit-activity branch 2 times, most recently from a9f3014 to cc22db7 Compare August 12, 2026 14:53
@brianjhanson

Copy link
Copy Markdown
Contributor Author

Superseded by #19425, which flattens this stack into a single PR against 6.x — this PR is one of its commits, description and all.

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