Commit Graph

387 Commits

Author SHA1 Message Date
Alex Lion
73a81a2076 refactor: Remove outdated TODO comment regarding activity leader creation 2025-11-20 10:35:29 +01:00
Alex Lion
fc2a386643 refactor: Improve readability of event duplication and quiz question mapping logic 2025-11-20 10:26:31 +01:00
Alex Lion
6ff9e5c3df refactor: Simplify role assignment and event duplication logic in admin panel 2025-11-20 10:15:53 +01:00
Alex Lion
b486d02bfe Merge branch 'dev' into feature/admin-panel
# Conflicts:
#	CHANGELOG.md
#	config/runtime.exs
#	lib/claper/accounts/user.ex
#	lib/claper_web/live/user_settings_live/show.html.heex
#	priv/gettext/de/LC_MESSAGES/default.po
#	priv/gettext/default.pot
#	priv/gettext/en/LC_MESSAGES/default.po
#	priv/gettext/es/LC_MESSAGES/default.po
#	priv/gettext/fr/LC_MESSAGES/default.po
#	priv/gettext/it/LC_MESSAGES/default.po
#	priv/gettext/nl/LC_MESSAGES/default.po
2025-11-11 16:53:30 +01:00
Alex Lion
037d6d5835 chore: Update CHANGELOG with new features and fixes for v2.4.0 2025-11-11 16:36:26 +01:00
Alex Lion
9ae9fa7c69 refactor: Simplify role key determination in user creation and remove user_id requirement from event changeset 2025-11-11 16:20:54 +01:00
Alex Lion
9da202408d Fix register 2025-11-11 16:04:03 +01:00
Alex Lion
0c28c67e79 feat: Add default role assignment for user creation and update registration changeset to include role_id 2025-11-11 13:49:52 +01:00
Alex Lion
5fac2a9262 refactor: Comment out the 'New event' link in events index template 2025-11-11 13:27:17 +01:00
Alex Lion
8933ce1c29 refactor: Comment out unused link elements in user and admin templates 2025-11-11 13:25:20 +01:00
Alex Lion
ab29541ca3 feat: Add default admin user creation in seeds script 2025-11-11 13:02:44 +01:00
Alex Lion
11df9728d0 refactor: Improve formatting and readability in CSV export helper functions 2025-11-11 11:20:10 +01:00
Alex Lion
223935a3b0 feat: Enhance user role assignment and CSV export functionality
- Updated `assign_role/2` function to accept both role names and role structs in `Claper.Accounts`.
- Modified `export_users_to_csv/1` to include user names and roles in the CSV export.
- Enhanced `export_events_to_csv/1` to include event descriptions and statuses in the CSV export.
- Adjusted CSV headers and fields accordingly for better clarity.
- Removed unused user attributes in role tests to streamline setup.
- Updated tests for CSV export to reflect changes in data structure and content.
- Removed outdated tests for admin routes, user controller, OIDC provider controller, and admin form validation.
- Deleted tests for admin required plug and shared view components as part of cleanup.
2025-11-11 11:19:45 +01:00
Dimitrije Dimitrijevic
16bcce1a60 Fix duplicate key quiz when duplicate (#182)
* add quiz_responses association to user

* bugfix possible duplicate key entries in multi when adding quiz responses

* remove user_id from casting changeset in QuizResponse

* pass whole user to submit_quiz function

* update test to match changes

* simplify submit_quiz/3 function for inserting quiz response

---------

Co-authored-by: Dimitrije Dimitrijevic <me@dimitrijedimitrijevic.com>
2025-11-04 18:46:29 +01:00
Raúl R Pearson
fc667bb478 Hideable presenter attendee count (#183) 2025-10-28 18:34:49 +01:00
albanobattistella
51c8496dc4 i18n: improve Italian language (#179) 2025-10-26 17:01:53 +01:00
Raúl R Pearson
2a3a497130 Expand events tests (#175)
* Add with_env.sh as dev.sh replacement

This new script can load env vars from any path, supplied with the
optional --env option (still defaults to .env) and accepts any arbitrary
command after that: `mix phx.new`, `iex -S mix phx.server`, `mix test`.
This provides support for having multiple `.env*` files. One for dev,
one for test, for example. The previous setup wasn't picking up the
right Postgres connection string for tests and was creating problems.

* Fix assorted compilation warnings

* Make :name and :started_at required in event changesets

* Refactor get_event!/2 to take ID and UUID

* Make event ordering more consistent

* Fix spelling of leaded_by with led_by

* Refactor get_managed_event!/3

While testing I found that this did not return `Ecto.NoResultsError`
when no events were found. This new version does and it also uses a
single database query.

* Make get_different_event_with_code/2 private

* Enable youtube.com pattern for YouTube embeds

* Refactor duplicate_event/2

When duplicating an event without a presentation, an error was raised. I
attempted to fix that and ended up cleaning up the implementation a bit.
I also discovered issue #178 was raised, so I fixed the implementation
to skip copying `vote_count` for poll options.

* Add activity leader test fixture

* Make DataCase db connection check out conditional

* Expand event tests
2025-10-26 17:00:24 +01:00
Raúl R Pearson
03feb9a901 Fix email change confirmation (#172)
* Update translation files

I run `mix gettext.extract` and `mix gettext.merge priv/gettext`
as it seems that the files were somewhat outdated.

* Fix email change confirmation

Send the confirmation email to the new address

* Tweak email change confirmation email

* Run ./dev.sh format
2025-09-10 08:16:55 +02:00
Nami Sunami
0ccf3ae6e2 Un-expose db port (#173) 2025-09-08 09:07:05 +02:00
Alex Lion
c8bf32542f feat: add hu and lv locales to airpicker and moment 2025-08-24 09:55:09 +02:00
possible-im
4c678dc8df Latvian translation added (v1) (#163)
Co-authored-by: im <ivo.mezits@possible.lv>
2025-08-21 09:13:32 +02:00
bpisch
d7a530c670 Add Hungarian translation (#161) 2025-08-21 09:13:03 +02:00
Alex Lion
3d8871ad72 WIP 2025-08-09 19:53:39 +02:00
Alex Lion
d3c45533f0 fix: spacing in settings 2025-08-09 19:29:20 +02:00
Alex Lion
73a23511c2 Update changelog 2025-08-09 16:43:42 +02:00
Chayan Das
137d5f3de1 add scroll to the setting drawer (#168)
Signed-off-by: Chayan Das <01chayandas@gmail.com>
2025-08-09 16:33:43 +02:00
Alex Lion
7dd708d651 WIP 2025-08-09 16:04:38 +02:00
Alex Lion
4e5727cb70 WIP 2025-08-07 06:27:56 +02:00
Alex Lion
d6ac5bc525 WIP 2025-08-06 22:12:20 +02:00
Alex Lion
17da89a0f3 WIP 2025-08-06 22:04:31 +02:00
Alex Lion
4d340c76e1 WIP 2025-08-06 21:53:02 +02:00
Alex Lion
25c8d79d57 WIP 2025-08-06 21:44:54 +02:00
Alex Lion
eab2df01d0 WIP 2025-08-06 21:27:27 +02:00
Alex Lion
cb8356d880 WIP 2025-08-06 19:26:33 +02:00
Alex Lion
347c85eeef WIP 2025-08-03 11:15:35 +02:00
Alex Lion
e30a80133d WIP 2025-08-02 11:54:26 +02:00
Alex Lion
b7b4c10256 WIP 2025-08-01 18:46:15 +02:00
Alex Lion
dd8e2c2012 WIP 2025-07-31 15:40:19 +02:00
Alex Lion
2dbe120b0a WIP 2025-07-31 11:28:43 +02:00
Alex Lion
0b0191f02b WIP 2025-07-30 09:30:45 +02:00
Alex Lion
e0720a55ab WIP 2025-07-26 16:31:39 +02:00
Alex Lion
a687742994 WIP 2025-07-24 19:13:16 +02:00
Alex Lion
46de58ae47 WIP 2025-07-24 16:46:04 +02:00
Alex Lion
cab9ce1212 WIP 2025-07-20 22:24:49 +02:00
Alex Lion
b227a02e25 WIP 2025-07-17 17:22:39 +02:00
Alex Lion
8d04136474 update changelog 2025-07-16 17:15:34 +02:00
Aryel780
9b4cda357b fix: Scrollbar not showing in event manager when no presentation file (#162) 2025-07-16 17:13:00 +02:00
Alex Lion
7638cbd2a6 WIP 2025-07-16 16:14:14 +02:00
Alex Lion
983552772a feat: add configurable language support via LANGUAGES environment variable 2025-07-11 14:46:33 +01:00
Alex Lion
0a8c000ac1 docker: fix image builder and runner from alpine to ubuntu 2025-07-11 12:52:13 +01:00