Skip to content

OpenGraph 0.3.4: Editor forms survive a reconnect

OpenGraph 0.3.4 makes the template editor keep its state across a reconnect and fixes the look of its segmented controls under daisyUI 5.

Every form in the editor, from the template name to each element’s properties, now has an id. Without one, LiveView cannot restore a form after the connection drops, so values in the property panel could be lost. The assignment forms got the same fix in 0.3.3.

The editor’s segmented controls, such as background type, image fit, text align and button style, used the daisyUI 4 class tabs-boxed, which daisyUI 5 no longer has. They now use tabs-box.

Full release notes: OpenGraph 0.3.4

0.3.4 · 21 August 2026

Fixed

  • Every editor phx-change form now has an id, so LiveView form recovery actually works on the canvas — the same gap 0.3.3 closed for the three scope/group/template forms (#9).
  • daisyUI 4 tabs-boxed → v5 tabs-box on the editor’s segmented controls. These stay radio inputs in a form, not core’s <.nav_tabs> (#9).
  • Post-merge: two canvas form ids named for the wrong field (og-canvas-size-form was bg_type; og-canvas-bg-type-form was bg_image_fit) plus the button style strip (preset, not align).

OpenGraph 0.3.4. Install or update: {:phoenix_kit_og, "~> 0.3"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.