mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[PR #7084] feat(clients): tint rows and cards of depleting and ended clients #6638
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#6638
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/7084
Author: @Mo7amadd
Created: 11/5/2026
Status: 🔄 Open
Base:
main← Head:feat/clients-status-tint📝 Commits (1)
130c4b8feat(clients): tint rows and cards of depleting and ended clients📊 Changes
2 files changed (+59 additions, -4 deletions)
View changed files
📝
frontend/src/pages/clients/ClientsPage.css(+42 -0)📝
frontend/src/pages/clients/ClientsPage.tsx(+17 -4)📄 Description
Summary
Clients whose bucket is
expiringget the warning background anddepletedthe error background, on the desktop table rows and on the mobile cards.Why
Both states are already shown, but only as a small tag in one cell. In a list of 100+ clients that is easy to miss when you are scanning for who needs a renewal. A tinted row is visible at a glance without filtering.
What changed
ClientsPage.tsx: arowClassNamecallback on the desktop<Table>and the same two classes on the mobile card, both derived from the existingclientBucket, so the tint always agrees with the Online tag and the summary counters.ClientsPage.css: backgrounds from antd's own tokens (--ant-color-warning-bg/--ant-color-error-bg, their-hovervariants for the table, and the matching-borderfor cards), so light, dark and ultra-dark themes all work without extra rules. Selected rows and cards keep antd's selection colour (:not(.ant-table-row-selected)/:not(.is-selected)).Type of change
Areas affected
How was this tested?
npm run typecheck,npm run lint,npm run format:check,npm run buildandnpm run build-storybookpass; the existing unit and component suites pass.npm run devwith a mocked API covering all four buckets: rows and cards forexpiringanddepletedare tinted,activeanddeactiveare not, hover keeps the tint, selecting a row switches it to the selection colour, and the same holds in the dark and ultra-dark themes.Screenshots / recordings
Breaking changes
None.
Checklist
go build ./...and the test suite pass locally. (Frontend-only change; no Go code touched, so the Go suite was not run.)npm run lint,npm run typecheck, andnpm run buildpass.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.