feat(panel): add per-pool cycle filter and harden weekly reset anchors

- Add a compact inline quota-pool selector on ConsumptionView when Cycle is active, pre-bundling per-pool cycle slices for instant switching and scoping range labels in exports
- Classify >6h clientModelConfigs resetTime fallbacks as weekly anchors and advance usageRevision when official reset windows arrive or shift
- Deduplicate same-day and same-month date span badges (e.g. Nov 24, Nov 24 ~ 25)
This commit is contained in:
fish
2026-11-24 19:30:53 +09:00
parent 1692599fd8
commit 02237692f7
18 changed files with 1346 additions and 152 deletions
+7 -2
View File
@@ -370,9 +370,14 @@ export function buildOfficialQuotaPools(officialQuota, clientConfigs = []) {
}
const cfgQuota = normalizeQuotaFraction(cfg?.quotaInfo, nowForQuotaMs);
const cfgResetMs = parseIsoMs(cfgQuota?.resetTime);
const isCfgWeekly =
targetIdent.poolKey === 'Argon' ||
targetIdent.poolKey === 'Carbon' ||
cfgResetMs > nowForQuotaMs + 6 * 3600 * 1000;
if (!builder.bucket5h && !builder.bucketWeekly && !builder.fallback5h && cfgQuota) {
if (targetIdent.poolKey === 'Argon' || targetIdent.poolKey === 'Carbon') {
builder.bucketWeekly = cfgQuota;
if (isCfgWeekly) {
builder.bucketWeekly = { ...cfgQuota, window: 'weekly' };
} else {
builder.fallback5h = cfgQuota;
}