mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[PR #14617] [CLOSED] feat: Implement URL-Based Tabs for Admin Users & Evaluations Pages #46571
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/14617
Author: @silentoplayz
Created: 6/3/2025
Status: ❌ Closed
Base:
dev← Head:route-for-settings-tabs📝 Commits (1)
15bce43feat: route for users and evaluations tabs📊 Changes
9 files changed (+62 additions, -12 deletions)
View changed files
📝
src/lib/components/admin/Evaluations.svelte(+12 -4)📝
src/lib/components/admin/Users.svelte(+10 -3)📝
src/routes/(app)/admin/+layout.svelte(+8 -5)📝
src/routes/(app)/admin/evaluations/+page.svelte(+6 -0)➕
src/routes/(app)/admin/evaluations/feedbacks/+page.svelte(+5 -0)➕
src/routes/(app)/admin/evaluations/leaderboard/+page.svelte(+5 -0)📝
src/routes/(app)/admin/users/+page.svelte(+6 -0)➕
src/routes/(app)/admin/users/groups/+page.svelte(+5 -0)➕
src/routes/(app)/admin/users/overview/+page.svelte(+5 -0)📄 Description
Pull Request Checklist
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
Added
src/routes/(app)/admin/users/overview/+page.svelte: New file to define the/admin/users/overviewroute.src/routes/(app)/admin/users/groups/+page.svelte: New file to define the/admin/users/groupsroute.src/routes/(app)/admin/evaluations/leaderboard/+page.svelte: New file to define the/admin/evaluations/leaderboardroute.src/routes/(app)/admin/evaluations/feedbacks/+page.svelte: New file to define the/admin/evaluations/feedbacksroute.Changed
src/lib/components/admin/Users.svelte:selectedTabfrom the URL pathname using$page.url.pathname.on:clickhandlers to usegoto('/admin/users/tab-name')for URL navigation instead of directly settingselectedTab.import { page } from '$app/stores';.src/routes/(app)/admin/users/+page.svelte:onMounthook to redirect from/admin/usersto/admin/users/overviewby default.import { goto, onMount } from '$app/navigation';.src/lib/components/admin/Evaluations.svelte:selectedTabfrom the URL pathname using$page.url.pathname.on:clickhandlers to usegoto('/admin/evaluations/tab-name')for URL navigation instead of directly settingselectedTab.import { goto } from '$app/navigation';andimport { page } from '$app/stores';.src/routes/(app)/admin/evaluations/+page.svelte:onMounthook to redirect from/admin/evaluationsto/admin/evaluations/leaderboardby default.import { goto, onMount } from 'svelte';.src/routes/(app)/admin/+layout.svelte:hreffrom/adminto/admin/usersto reflect the new routing structure.startsWithfor path matching (e.g.,$page.url.pathname.startsWith('/admin/users')) to correctly highlight parent links when on any of their sub-tabs. Also added specific handling for/adminfor the 'Users' link.Fixed
/adminpath to now correctly land on/admin/users/overview.Breaking Changes
This is an enhancement and not expected to break existing functionality, as old
/adminpaths redirect gracefully.Additional Information
/admin/users/groups,/admin/evaluations/feedbacks).Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.