mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-20 15:06:36 +00:00
feat: add affinity clients hover popover with last active times
- New API: GET /accounts/:id/affinity-clients returns client list with last_active timestamps from Redis ZSET scores - New Lua script: get_affinity_clients_with_scores.lua uses ZREVRANGEBYSCORE WITHSCORES to return both client IDs and their timestamps - New frontend component: AffinityBadge.vue replaces inline badge with hover popover that lazy-loads client details on first hover - Shows client ID (monospace) + relative time (e.g. "3h ago") Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
5f5c41cef6
commit
9b382a2dc7
18 files changed
+338
-24
No files matched your search
@@ -247,6 +247,9 @@ func (m *mockGatewayCacheForPlatform) GetAccountAffinityCountBatch(_ context.Con
|
||||
func (m *mockGatewayCacheForPlatform) GetAccountAffinityClientsBatch(_ context.Context, _ map[int64][]int64, _ time.Duration) (map[int64][]string, error) {
|
||||
return map[int64][]string{}, nil
|
||||
}
|
||||
func (m *mockGatewayCacheForPlatform) GetAccountAffinityClientsWithScores(_ context.Context, _ int64, _ []int64, _ time.Duration) ([]AffinityClient, error) {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
type mockGroupRepoForGateway struct {
|
||||
groups map[int64]*Group
|
||||
|
||||
Reference in new issue
Block a user