video-embed: derive provider and id from a pasted URL #97
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Cloonar/deckle#97
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What to build
Web-editor-only convenience for the
video-embedform: when an editor pastes a full YouTube or Vimeo URL into theidfield, derive and setproviderandidclient-side. Storage format is unchanged — the sidecar still storesprovider(select) andid(text); nothing changes for agents, the server, or the shortcode.Handle at least:
youtube.com/watch?v=<id>,youtu.be/<id>,youtube.com/shorts/<id>,vimeo.com/<id>(with optional query strings/timestamps stripped). A pasted value that is not a recognized URL is left as-is (assumed to already be an id).Acceptance criteria
idsetsproviderand reduces the field to the bare idBlocked by
None - can start immediately
Triage confirmed — enhancement, ready-for-agent. The issue body is the authoritative agent brief.
Verified against the codebase:
video-embed.yamlstoresprovider(select: youtube/vimeo) +id(text) exactly as described, so the change is genuinely web-editor-only with no schema/server/shortcode impact. The click-to-load facade for the manual check exists in the theme'svideo-embed.html.