diff --git a/CHANGELOG.md b/CHANGELOG.md index acb1709..f3b7149 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +## v2.1.1 + +### Fixes and improvements + +- Fix OIDC to allow only client_secret_basic and client_secret_post auth methods +- Fix minimum length for 2 characters messages +- Fix poll option order +- Fix translations for current interactions +- Improve poll results UI +- Optimize resource usage of the manager when attendees join the event +- Fix duplicate event being inaccesible + ## v2.1.0 ### Features diff --git a/assets/js/app.js b/assets/js/app.js index af51d19..0df58fc 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -226,7 +226,7 @@ Hooks.PostForm = { e.preventDefault(); submitBtn.click(); } else { - if (TA.value.length > 1 && TA.value.length < 256) { + if (TA.value.length > 0 && TA.value.length < 256) { submitBtn.classList.remove("opacity-50"); submitBtn.classList.add("opacity-100"); submitBtn.disabled = false; @@ -261,7 +261,7 @@ Hooks.PostForm = { updated() { const submitBtn = document.getElementById("submitBtn"); const TA = document.getElementById("postFormTA"); - if (TA.value.length > 1 && TA.value.length < 256) { + if (TA.value.length > 0 && TA.value.length < 256) { submitBtn.classList.remove("opacity-50"); submitBtn.classList.add("opacity-100"); submitBtn.disabled = false; @@ -316,6 +316,13 @@ Hooks.Pickr = { this.pickr.destroy(); }, }; +Hooks.UpdateAttendees = { + mounted() { + this.handleEvent("update-attendees", ({ count }) => { + this.el.textContent = count; + }); + }, +}; Hooks.Presenter = { mounted() { this.presenter = new Presenter(this); diff --git a/lib/claper/events.ex b/lib/claper/events.ex index b5807dc..ed8ba60 100644 --- a/lib/claper/events.ex +++ b/lib/claper/events.ex @@ -428,7 +428,7 @@ defmodule Claper.Events do |> Map.drop([:id, :inserted_at, :updated_at]) |> Map.put(:presentation_file_id, new_presentation_file.id) |> Map.put(:position, 0) - |> Map.put(:banned, nil) + |> Map.put(:banned, []) Claper.Presentations.create_presentation_state(attrs) end) diff --git a/lib/claper_web/controllers/user_oidc_auth.ex b/lib/claper_web/controllers/user_oidc_auth.ex index d2e85a2..9aaec12 100644 --- a/lib/claper_web/controllers/user_oidc_auth.ex +++ b/lib/claper_web/controllers/user_oidc_auth.ex @@ -78,7 +78,8 @@ defmodule ClaperWeb.UserOidcAuth do %{ redirect_uri: "#{url}/users/oidc/callback", - scopes: scopes() + scopes: scopes(), + preferred_auth_methods: [:client_secret_basic, :client_secret_post] } end diff --git a/lib/claper_web/live/event_live/embed_component.ex b/lib/claper_web/live/event_live/embed_component.ex index 46ef274..b73d5bc 100644 --- a/lib/claper_web/live/event_live/embed_component.ex +++ b/lib/claper_web/live/event_live/embed_component.ex @@ -17,21 +17,17 @@ defmodule ClaperWeb.EventLive.EmbedComponent do