mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-12-06 00:05:30 +00:00
E17: account for ollama_cloud explicitly in both usage-cell computeds. Empirically the cell already renders via the generic api-key root branch (eligible -> OllamaCloudUsageCell + today-stats, ineligible -> '-' placeholder), because eligibility itself is server-driven (ollama_cloud_usage.eligible, fixed backend-side in the previous commit); so the computeds pin that behavior instead of flipping to the scrolling-window root branch, which would drop today-stats rows and fire /usage calls the backend rejects for api-key accounts. - showUsageWindows: explicit ollama_cloud api-key branch -> false (generic api-key branch renders the Ollama cell) - shouldFetchUsage: document why ollama_cloud stays unfetched (backend /usage rejects api-key accounts; data arrives via account payload and the dedicated refresh endpoint, same shape as CN platforms) - tests: eligible renders OllamaCloudUsageCell without /usage fetch; missing/eligible=false renders placeholder, never CN quota cells