Commit graph

23 commits

Author SHA1 Message Date
Timothy Jaeryang Baek
4e18c8a689 refac 2025-11-06 11:41:20 -05:00
Timothy Jaeryang Baek
2c59a28860 refac: styling 2025-10-04 02:35:15 -05:00
Timothy Jaeryang Baek
51a138aec3 refac: edit user modal 2025-09-29 00:51:06 -05:00
Timothy Jaeryang Baek
aee7aaae68 refac 2025-09-29 00:35:21 -05:00
silentoplayz
16cf973ce5 fix: truncate long usernames in UI
Long usernames were causing layout issues in several parts of the application. This change truncates long usernames with an ellipsis to prevent them from overflowing.

The following areas have been fixed:
- Edit User modal
- User Chats modal
- Edit User Group modal
- Users table in the admin overview

fix: truncate long usernames in UI

Long usernames were causing layout issues in several parts of the application. This change truncates long usernames with an ellipsis to prevent them from overflowing.

The following areas have been fixed:
- Edit User modal
- User Chats modal
- Edit User Group modal
- Users table in the admin overview

Revert "fix: truncate long usernames in UI"

This reverts commit b623fdc95d0c494228b49f9369db3bbb3042cef0.
2025-09-26 18:30:48 -04:00
Athanasios Oikonomou
c11f02662f fix: use prettier to format last commit 2025-08-13 09:36:18 +03:00
Athanasios Oikonomou
5543f30c49 feat: Allow navigating to user group from user edit
This commit allow navigating from user edit to user group, allowing faster updates to groups.
The querystringValue function was moved to lib/utils to reuse it in multiple places.
2025-08-12 01:08:56 +03:00
Timothy Jaeryang Baek
662f3cd1b3 refac 2025-08-10 16:13:13 +04:00
Athanasios Oikonomou
dc453efa5c feat: Display assigned user groups in Admin Panel
Description:
This PR adds the ability to view a user’s assigned groups in the Admin Panel when editing a user.

Backend Changes:
    Added a new endpoint:
    GET /api/v1/users/{user_id}/groups

        Returns the list of groups assigned to a specific user.
        Requires admin privileges.

Frontend Changes:
    Implemented getUserGroupsById API function to call the new backend endpoint, in lib/apis/users.

    Updated EditUserModal.svelte to:
        Load user groups asynchronously when the modal is opened.
        Display the groups inline in the form before the Save button.
        Show a loading state while fetching, and a “No groups assigned” message if none exist.

Result:
Admins can now see which groups a user belongs to directly from the edit user modal,
improving visibility and reducing the need to navigate away for group membership checks.
2025-08-10 14:49:01 +03:00
Timothy Jaeryang Baek
69f6fbe4e7 refac 2025-08-08 18:40:03 +04:00
silentoplayz
56eeed6277 feat: Add password visibility toggle to password fields w SensitiveInput.svelte component 2025-08-03 16:07:12 -04:00
Timothy Jaeryang Baek
c8e8111dd9 refac 2025-06-27 15:44:26 +04:00
Silentoplayz
d1e3940abd refac: Spinner and XMark components 2025-06-25 18:44:45 -04:00
Timothy Jaeryang Baek
bc7defbdd0 refac: allow editing own email 2025-06-16 15:23:03 +04:00
Timothy Jaeryang Baek
ab42a192e6 refac: styling 2025-06-10 17:54:08 +04:00
Timothy Jaeryang Baek
e41e375aab refac: role update ui 2025-05-31 15:00:27 +04:00
Timothy Jaeryang Baek
c1fa989cb8 refac: styling 2025-04-30 16:54:51 +04:00
Timothy Jaeryang Baek
60e322962e refac 2025-02-15 19:35:12 -08:00
Timothy Jaeryang Baek
e3fa48b6ce chore: tailwind v4 migration 2025-02-15 19:27:25 -08:00
Timothy Jaeryang Baek
70b8199030 chore: format 2025-02-03 13:37:29 -08:00
Sharon Fox
dda945f4ad
feat: Localized dates and times 2025-01-26 02:47:23 -05:00
Timothy Jaeryang Baek
a863f98c53 refac: toast error 2025-01-20 22:41:32 -08:00
Timothy Jaeryang Baek
c260274538 refac: admin users page 2024-11-12 21:51:42 -08:00
Renamed from src/lib/components/admin/EditUserModal.svelte (Browse further)