mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[PR #5150] [MERGED] feat(clients): restore traffic usage progress bars on Clients page #5795
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#5795
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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/MHSanaei/3x-ui/pull/5150
Author: @nima1024m
Created: 6/9/2026
Status: ✅ Merged
Merged: 6/11/2026
Merged by: @MHSanaei
Base:
main← Head:feature/client-traffic-progress-bar📝 Commits (3)
e217850feat(clients): restore traffic usage progress bars on Clients pagea1b940dMerge branch 'main' into feature/client-traffic-progress-bar3abfad7Merge branch 'main' into feature/client-traffic-progress-bar📊 Changes
5 files changed (+314 additions, -11 deletions)
View changed files
➕
frontend/src/components/clients/ClientTrafficCell.css(+90 -0)➕
frontend/src/components/clients/ClientTrafficCell.tsx(+85 -0)➕
frontend/src/lib/clients/traffic-display.ts(+64 -0)📝
frontend/src/pages/clients/ClientsPage.tsx(+20 -11)➕
frontend/src/test/client-traffic-display.test.ts(+55 -0)📄 Description
Summary
Why
The React v3 rewrite replaced progress bars with plain text (
401 MB / 94 GB), making quota usage harder to scan at a glance. This brings back the familiar visual pattern from v2.9.x without backend changes.Screenshots
Files affected
frontend/src/components/clients/ClientTrafficCell.tsx— reusable traffic cell + popoverfrontend/src/components/clients/ClientTrafficCell.css— pill layout stylingfrontend/src/lib/clients/traffic-display.ts— percent/color/status helpersfrontend/src/pages/clients/ClientsPage.tsx— wire into desktop table + mobile cardsfrontend/src/test/client-traffic-display.test.ts— unit testsTest plan
npx tsc --noEmitnpx vitest run src/test/client-traffic-display.test.ts(5 passed)Risks
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.