mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-09-24 16:05:44 +08:00
Backend: Add AffinityZone type with GetAffinityBase/GetAffinityBuffer/GetAffinityZone methods. Integrate classifyByAffinityZone into Layer 2 scheduling and red zone check into Layer 1.6 affinity hit path. 17 unit tests covering all zone boundaries. Frontend: Add AffinityConfigCard for base/buffer configuration in EditAccountModal. Move affinity badge from status column to capacity column with zone-based coloring (count/limit format). Extract CapacityBadge and QuotaBadge components to reduce AccountCapacityCell from 444 to 215 lines. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>