Commit graph

117 commits

Author SHA1 Message Date
Timothy Jaeryang Baek
887772db22 fix: default permissions not being loaded 2025-09-29 21:36:07 -05:00
Timothy Jaeryang Baek
e7fa86aa26 chore: format 2025-09-29 00:58:21 -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
Timothy Jaeryang Baek
8656bfc5f4 refac 2025-09-29 00:03:03 -05:00
Tim Jaeryang Baek
d37f108ccd
Merge pull request #17848 from Classic298/feat/group-permission-warning
Feat/chore: Add warning for conflicting group permissions / Refactored Permissions.svelte
2025-09-28 23:51:52 -05:00
Classic298
cf20f04bdc
Update Permissions.svelte 2025-09-28 21:33:40 +02:00
Classic298
a4e0c10f34
Delete src/lib/components/admin/Users/Groups/PermissionSwitch.svelte 2025-09-28 21:27:06 +02:00
Classic298
fb3eeaa126
Update Groups.svelte 2025-09-28 16:56:04 +02:00
google-labs-jules[bot]
30550d9190 Feat: Add warning for conflicting group permissions
This change introduces a visual warning in the group settings page. The warning appears when an admin attempts to disable a permission for a group that is already enabled in the default 'user' group. This is necessary because permissions are additive, and disabling a permission in a specific group will not revoke it if it's enabled in the default group.

To achieve this, the following changes were made:
- A new `PermissionSwitch.svelte` component was created to encapsulate the permission switch and its warning logic, avoiding redundant code.
- The `Groups.svelte` component was updated to correctly fetch the default user group's permissions.
- The `Permissions.svelte` component was refactored to use the new `PermissionSwitch.svelte` component, making the code cleaner and more maintainable.
2025-09-28 13:42:10 +00:00
google-labs-jules[bot]
cafe748b1b feat(groups): Clone default group permissions for new groups
When creating a new user group, the permissions for the new group will now be pre-populated with the same permissions as the "default user group".

This is achieved by removing the separate `AddGroupModal` and instead using the `EditGroupModal` for both creating and editing groups. When creating a new group, the `EditGroupModal` is now pre-populated with the default permissions, saving administrators from having to manually configure them each time.

This change simplifies the codebase by removing a redundant component and directly addresses the user's request to streamline the group creation process.
2025-09-28 12:56:39 +00: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
google-labs-jules[bot]
41e4e7395c feat: add permission toggle for public sharing of notes
This commit introduces a new permission toggle that allows administrators to control whether users can publicly share their notes.

- Adds a new environment variable `USER_PERMISSIONS_NOTES_ALLOW_PUBLIC_SHARING` to control the default setting.
- Adds a `public_notes` permission to the `sharing` section of the user permissions.
- Adds a toggle switch to the admin panel for managing this permission.
- Implements backend logic to enforce the permission when a user attempts to share a note publicly.
2025-09-26 20:48:01 +00:00
Timothy Jaeryang Baek
94770f6059 refac 2025-09-20 01:33:36 -05:00
Timothy Jaeryang Baek
c07086401e refac 2025-09-18 17:47:32 -05:00
Timothy Jaeryang Baek
bbd1d2b58c enh: channel suggestions 2025-09-16 21:41:47 -05:00
Timothy Jaeryang Baek
c870b2ea29 refac: styling 2025-09-16 15:57:20 -05:00
Timothy Jaeryang Baek
f0bd74b75b refac 2025-09-16 15:47:43 -05:00
Timothy Jaeryang Baek
218920f0c3 refac: styling 2025-09-15 15:53:11 -05:00
Timothy Jaeryang Baek
eb10ff2ae6 refac: rm substandard code 2025-09-07 00:16:07 +04:00
Timothy Jaeryang Baek
f6637cc78e refac 2025-08-27 04:18:18 +04:00
Timothy Jaeryang Baek
dced9e4094 refac 2025-08-26 15:06:50 +04:00
Timothy Jaeryang Baek
803b2e35be enh: delete_message, continue_response, regenerate_response, rate_response user permissions
Co-Authored-By: G30 <50341825+silentoplayz@users.noreply.github.com>
2025-08-26 15:05:35 +04:00
Timothy Jaeryang Baek
1a15a62b73 chore: format 2025-08-21 04:47:28 +04:00
Peter Dave Hello
45180e829a i18n: add missing translations 2025-08-20 22:14:23 +08:00
silentoplayz
82ed9b0a97 i18n.t: updates 2025-08-13 20:15:16 -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
Timothy Jaeryang Baek
173fa62af3 refac 2025-08-04 17:28:26 +04:00
Timothy Jaeryang Baek
2d2fbdb341 fix: styling 2025-08-04 16:02:48 +04:00
Timothy Jaeryang Baek
8562e3e438 refac: styling 2025-08-04 15:04:16 +04:00
Tim Jaeryang Baek
6ce1166b98
Merge pull request #16033 from silentoplayz/sticky-search
refac: sticky headers & smarter pagination on users list page
2025-08-04 15:03:02 +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
56af3e7357 refac: granular chat controls permissions 2025-07-31 18:59:37 +04:00
Timothy Jaeryang Baek
708e0ed05e refac/enh: chat controls permissions 2025-07-31 18:58:58 +04:00
Timothy Jaeryang Baek
73a38aca72 refac 2025-07-30 14:09:33 +04:00
silentoplayz
67baecdc8e fix 2025-07-25 16:05:42 -04:00
silentoplayz
92fe7544c8 Sticky top bars for Leaderboard and UserList pages 2025-07-25 15:57:03 -04:00
Timothy Jaeryang Baek
95b11207a1 fix: group user load 2025-07-19 23:16:44 +04:00
Timothy Jaeryang Baek
b1752cfb6a refac: styling 2025-07-14 21:24:31 +04:00
Timothy Jaeryang Baek
288fba874e refac: styling 2025-07-14 20:08:49 +04:00
Timothy Jaeryang Baek
af59bee2ea refac 2025-07-12 17:17:31 +04:00
guenhter
196af9eaf7 chore: streamline the URL used for resources like favicon.png 2025-07-09 09:14:51 +02:00
Timothy Jaeryang Baek
d2485bbf09 refac 2025-07-03 18:13:23 +04:00
Timothy Jaeryang Baek
90257442e3 refac: styling 2025-06-27 16:15:16 +04:00
Timothy Jaeryang Baek
c8e8111dd9 refac 2025-06-27 15:44:26 +04:00
Tim Jaeryang Baek
276bfa02d0
Merge pull request #15314 from silentoplayz/spinner-and-xmark-icon-components
refac: Spinner and XMark components
2025-06-27 15:23:29 +04:00