Background
The status bar currently displays 5H (5-hour refresh) and 7D (7-day refresh) indicators to inform users about data refresh cycles.
Problem
These refresh intervals only apply to users connected via official subscription. When a user connects using an API key instead:
- API-based access has no scheduled refresh mechanism — data is queried in real time
- Showing 5H / 7D to API users is meaningless and causes confusion
Expected behavior
- Detect whether the current user is on subscription or API key access
- If API access is detected, automatically hide the 5H and 7D indicators from the status bar
- If on official subscription, keep the existing display logic unchanged
Detection approach
We can distinguish access type by checking:
Background
The status bar currently displays 5H (5-hour refresh) and 7D (7-day refresh) indicators to inform users about data refresh cycles.
Problem
These refresh intervals only apply to users connected via official subscription. When a user connects using an API key instead:
Expected behavior
Detection approach
We can distinguish access type by checking: