Commit Graph

191 Commits

Author SHA1 Message Date
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
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
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
Alex Lion
c8bf32542f feat: add hu and lv locales to airpicker and moment 2025-08-24 09:55:09 +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
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
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
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
c92edbb885 chore: refactor toggle interaction modal 2025-07-07 23:17:02 +02:00
Alex Lion
afb989485e fix: avoid quick event empty name 2025-07-07 23:16:22 +02:00
Alex Lion
9c1c3d01c1 deps: upgrade to tailwind 4+
commit e5905358dc20cea2fcc41b3580c4985e8ac53217
Author: Alex Lion <dev@alexandrelion.com>
Date:   Mon Jul 7 22:56:14 2025 +0200

    chore: update changelog

commit 2696a29ffdc6deb930b8ffb6f92cae21b176e853
Author: Alex Lion <dev@alexandrelion.com>
Date:   Mon Jul 7 22:52:11 2025 +0200

    Change js file to css and migrate css classes

commit 19093360ed2404f956d799c0a9ec1656c9fa1a74
Author: Alex Lion <dev@alexandrelion.com>
Date:   Sat Jul 5 19:28:34 2025 +0200

    chore: upgrade to tailwind 4+

commit 75312e8b3d3c9fd25137189e7020994640a0f901
Author: Alex Lion <dev@alexandrelion.com>
Date:   Thu Jul 3 16:59:58 2025 +0200

    chore: remove useless files
2025-07-07 23:00:30 +02:00
Alex Lion
b61c82fe55 chore: change gettext backend syntax 2025-07-03 15:38:53 +02:00
Alex Lion
827c6c77da deps: upgrade to live view 1.0 2025-07-03 14:55:23 +02:00
Alex Lion
761e765112 fix: File upload progress when edit event 2025-06-12 19:36:35 +02:00
Alex Lion
b4b5cfb756 add length validation for event name and code fields 2025-05-30 17:20:11 +02:00
Alex Lion
8e648451eb Hide settings on tablet size (#121) 2025-03-23 18:56:07 +01:00
David Anyatonwu
bdddf2c376 feat: add PKCE support to OIDC flow (#134) (#129) 2025-03-23 18:49:13 +01:00
Alex Lion
3f59f52dbf Format 2025-03-08 09:39:17 +01:00