Skip to content

Commit

Permalink
Add toggle for global reactions (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxlion committed Jun 7, 2024
1 parent cce4b20 commit 8e2bd93
Show file tree
Hide file tree
Showing 9 changed files with 181 additions and 177 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- Fix missing stream for form submits
- Fix unknown locales
- Add validation to avoid user to self assign as a facilitator
- Toggle for message reactions is replaced with toggle for message and global reactions

## v2.0.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ defmodule ClaperWeb.EventLive.ManagerSettingsComponent do
shortcut={if @create == nil, do: "D", else: nil}
/>
<span>
<%= gettext("Enable message reactions") %>
<%= gettext("Enable reactions") %>
<code
:if={@show_shortcut}
class="px-2 py-1.5 text-xs font-semibold text-gray-800 bg-gray-100 border border-gray-200 rounded-lg"
Expand Down
7 changes: 5 additions & 2 deletions lib/claper_web/live/event_live/show.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
</button>
</div>

<div class="fixed bottom-12 w-full">
<div class={"fixed w-full " <> if @state.message_reaction_enabled, do: "bottom-12", else: "bottom-3"}>
<%= if @state.chat_enabled do %>
<%= if !@state.anonymous_chat_enabled && (@nickname && @nickname == "") do %>
<.form
Expand Down Expand Up @@ -348,7 +348,10 @@
<% end %>
</div>

<div class="flex space-x-6 fixed justify-center bottom-3 w-full lg:w-1/3 lg:mx-auto">
<div
:if={@state.message_reaction_enabled}
class="flex space-x-6 fixed justify-center bottom-3 w-full lg:w-1/3 lg:mx-auto"
>
<a
phx-click="global-react"
phx-hook="ClickFeedback"
Expand Down
58 changes: 29 additions & 29 deletions priv/gettext/de/LC_MESSAGES/default.po
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ msgstr ""
msgid "Settings"
msgstr "Einstellungen"

#: lib/claper_web/live/event_live/manage.ex:761
#: lib/claper_web/live/event_live/manage.ex:763
#: lib/claper_web/live/form_live/form_component.html.heex:37
#: lib/claper_web/live/user_settings_live/show.html.heex:34
#: lib/claper_web/templates/user_registration/new.html.heex:29
Expand Down Expand Up @@ -72,17 +72,17 @@ msgstr "Wir haben Ihnen bereits eine E-Mail zur Anmeldung geschickt, bitte versu
msgid "We sent you an email at"
msgstr "Wir haben Ihnen eine E-Mail geschickt an"

#: lib/claper_web/live/event_live/show.html.heex:412
#: lib/claper_web/live/event_live/show.html.heex:415
#, elixir-autogen, elixir-format
msgid "days"
msgstr "Tage"

#: lib/claper_web/live/event_live/show.html.heex:418
#: lib/claper_web/live/event_live/show.html.heex:421
#, elixir-autogen, elixir-format
msgid "hours"
msgstr "Stunden"

#: lib/claper_web/live/event_live/show.html.heex:424
#: lib/claper_web/live/event_live/show.html.heex:427
#, elixir-autogen, elixir-format
msgid "minutes"
msgstr "Minuten"
Expand Down Expand Up @@ -112,7 +112,7 @@ msgstr "Dashboard"
msgid "Host"
msgstr "Host"

#: lib/claper_web/live/event_live/show.html.heex:430
#: lib/claper_web/live/event_live/show.html.heex:433
#, elixir-autogen, elixir-format
msgid "seconds"
msgstr "Sekunden"
Expand All @@ -138,7 +138,7 @@ msgid "Leave"
msgstr "Verlassen"

#: lib/claper_web/live/event_live/presenter.html.heex:26
#: lib/claper_web/live/event_live/show.html.heex:439
#: lib/claper_web/live/event_live/show.html.heex:442
#, elixir-autogen, elixir-format
msgid "Scan to interact in real-time"
msgstr "Scannen und in Echtzeit interagieren"
Expand All @@ -148,7 +148,7 @@ msgstr "Scannen und in Echtzeit interagieren"
msgid "Starting on"
msgstr "Startet um"

#: lib/claper_web/live/event_live/event_form_component.ex:253
#: lib/claper_web/live/event_live/event_form_component.ex:255
#, elixir-autogen, elixir-format
msgid "Updated successfully"
msgstr "Erfolgreich aktualisiert"
Expand All @@ -165,8 +165,8 @@ msgstr "Es ist an der Zeit, Ihren Präsentationen mehr Bedeutung zu verleihen."
msgid "Return to home"
msgstr "Zurück zur Startseite"

#: lib/claper_web/live/event_live/event_form_component.ex:197
#: lib/claper_web/live/event_live/event_form_component.ex:233
#: lib/claper_web/live/event_live/event_form_component.ex:199
#: lib/claper_web/live/event_live/event_form_component.ex:235
#, elixir-autogen, elixir-format
msgid "Created successfully"
msgstr "Erfolgreich erstellt"
Expand Down Expand Up @@ -285,8 +285,8 @@ msgstr "Präsentation hochgeladen"

#: lib/claper_web/live/event_live/event_form_component.html.heex:133
#: lib/claper_web/live/event_live/event_form_component.html.heex:211
#: lib/claper_web/live/event_live/event_form_component.html.heex:352
#: lib/claper_web/live/event_live/event_form_component.html.heex:375
#: lib/claper_web/live/event_live/event_form_component.html.heex:353
#: lib/claper_web/live/event_live/event_form_component.html.heex:377
#, elixir-autogen, elixir-format
msgid "Remove"
msgstr "Entfernen"
Expand All @@ -306,12 +306,12 @@ msgstr "Datei hochladen"
msgid "or drag and drop"
msgstr "oder drag and drop"

#: lib/claper_web/live/event_live/event_form_component.ex:304
#: lib/claper_web/live/event_live/event_form_component.ex:306
#, elixir-autogen, elixir-format
msgid "You have selected an incorrect file type"
msgstr "Sie haben einen falschen Dateityp ausgewählt"

#: lib/claper_web/live/event_live/event_form_component.ex:303
#: lib/claper_web/live/event_live/event_form_component.ex:305
#, elixir-autogen, elixir-format
msgid "Your file is too large"
msgstr "Ihre Datei ist zu groß"
Expand Down Expand Up @@ -341,7 +341,7 @@ msgstr "Neue Umfrage"
msgid "Title of your poll"
msgstr "Titel Ihrer Umfrage"

#: lib/claper_web/live/event_live/event_form_component.ex:305
#: lib/claper_web/live/event_live/event_form_component.ex:307
#, elixir-autogen, elixir-format
msgid "Upload failed"
msgstr "Hochladen fehlgeschlagen"
Expand Down Expand Up @@ -381,7 +381,7 @@ msgid "Vote"
msgstr "Abstimmen"

#: lib/claper_web/live/event_live/event_form_component.html.heex:342
#: lib/claper_web/live/event_live/event_form_component.html.heex:359
#: lib/claper_web/live/event_live/event_form_component.html.heex:360
#, elixir-autogen, elixir-format
msgid "User email address"
msgstr "Benutzer Email-Adresse"
Expand Down Expand Up @@ -632,7 +632,7 @@ msgstr "Anmeldung"
msgid "Connect to your account"
msgstr "Verbinden Sie sich mit Ihrem Konto"

#: lib/claper_web/live/event_live/show.html.heex:448
#: lib/claper_web/live/event_live/show.html.heex:451
#, elixir-autogen, elixir-format
msgid "Or use the code:"
msgstr "Oder verwenden Sie den Code:"
Expand Down Expand Up @@ -726,7 +726,7 @@ msgstr "Abgeschickte Formulare"
msgid "Form submissions from attendees will appear here."
msgstr "Formulareinsendungen der Teilnehmer werden hier angezeigt."

#: lib/claper_web/live/event_live/manage.ex:760
#: lib/claper_web/live/event_live/manage.ex:762
#, elixir-autogen, elixir-format
msgid "Name"
msgstr "Name"
Expand Down Expand Up @@ -801,12 +801,12 @@ msgstr "Mehrere Antworten"
msgid "Import all interactions from another presentation"
msgstr "Importieren Sie alle Interaktionen aus einer anderen Präsentation"

#: lib/claper_web/live/event_live/manage.ex:273
#: lib/claper_web/live/event_live/manage.ex:275
#, elixir-autogen, elixir-format
msgid "Interactions import failed"
msgstr "Der Import der Interaktionen ist fehlgeschlagen"

#: lib/claper_web/live/event_live/manage.ex:266
#: lib/claper_web/live/event_live/manage.ex:268
#, elixir-autogen, elixir-format
msgid "Interactions imported successfully"
msgstr "Interaktionen erfolgreich importiert"
Expand Down Expand Up @@ -1061,7 +1061,7 @@ msgstr "Gespeichert"
msgid "Access"
msgstr "Zugriff"

#: lib/claper_web/live/user_settings_live/show.html.heex:179
#: lib/claper_web/live/user_settings_live/show.html.heex:180
#, elixir-autogen, elixir-format
msgid "All your events and files will be permanently deleted, are you sure?"
msgstr "Alle Ihre Veranstaltungen und Dateien werden dauerhaft gelöscht, sind Sie sicher?"
Expand All @@ -1076,26 +1076,21 @@ msgstr "Sind Sie sicher, dass Sie diese Veranstaltung beenden möchten? Diese Ak
msgid "Attendees room"
msgstr "Teilnehmerraum"

#: lib/claper_web/live/user_settings_live/show.html.heex:171
#: lib/claper_web/live/user_settings_live/show.html.heex:172
#, elixir-autogen, elixir-format
msgid "Be careful, these actions are irreversible"
msgstr "Seien Sie vorsichtig, diese Aktionen sind unwiderruflich"

#: lib/claper_web/live/user_settings_live/show.html.heex:168
#: lib/claper_web/live/user_settings_live/show.html.heex:169
#, elixir-autogen, elixir-format
msgid "Danger zone"
msgstr "Gefahrenzone"

#: lib/claper_web/live/user_settings_live/show.html.heex:184
#: lib/claper_web/live/user_settings_live/show.html.heex:185
#, elixir-autogen, elixir-format, fuzzy
msgid "Delete account"
msgstr "Konto löschen"

#: lib/claper_web/live/event_live/manager_settings_component.ex:130
#, elixir-autogen, elixir-format, fuzzy
msgid "Enable message reactions"
msgstr "Nachrichtenreaktionen aktivieren"

#: lib/claper_web/live/event_live/manage.html.heex:423
#, elixir-autogen, elixir-format
msgid "Open presentation"
Expand Down Expand Up @@ -1345,7 +1340,7 @@ msgstr "Veranstaltung existiert nicht"
msgid "Customize your account"
msgstr "Passen Sie Ihr Konto an"

#: lib/claper_web/live/user_settings_live/show.html.heex:158
#: lib/claper_web/live/user_settings_live/show.html.heex:159
#, elixir-autogen, elixir-format
msgid "Language"
msgstr "Sprache"
Expand Down Expand Up @@ -1405,3 +1400,8 @@ msgstr "Mein Konto"
#, elixir-autogen, elixir-format, fuzzy
msgid "Your personal informations to access your account"
msgstr "Ihre persnlichen Informationen zum Zugreifen auf Ihr Konto"

#: lib/claper_web/live/event_live/manager_settings_component.ex:130
#, elixir-autogen, elixir-format, fuzzy
msgid "Enable reactions"
msgstr "Reaktionen aktivieren"
Loading

0 comments on commit 8e2bd93

Please sign in to comment.