defmodule IngotWeb.Live.Components.LabelFormComponent do use IngotWeb, :live_component @impl true def render(assigns) do ~H"""

YOUR RATING:

<%= for {dimension, label, description} <- dimensions() do %>
{label}: {description}
<%= if @focused_dimension == dimension do %> Press 1-5 <% end %>
<%= for value <- 1..5 do %> <% end %>
<% end %>
""" end defp dimensions do [ {:coherence, "Coherence", "How well does the synthesis integrate both narratives?"}, {:grounded, "Grounded", "Is the synthesis supported by the source narratives?"}, {:novel, "Novel", "Does the synthesis add new insights beyond simple summary?"}, {:balanced, "Balanced", "Does the synthesis give fair weight to both perspectives?"} ] end end