You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Display online user count in pull-to-refresh view (#56)
* feat: Display online user count in pull-to-refresh view
Add real-time online user count display in the Feed page pull-to-refresh indicator, fetched from V2EX homepage.
Changes:
- Add OnlineStatsInfo model to parse online user count from V2EX HTML
- Add /onlineStats API endpoint with desktop UA to fetch homepage data
- Create FetchOnlineStats action and reducer to handle data flow
- Update HeadIndicatorView to display online count (e.g., "2613 人在线")
- Modify UpdatableView to pass onlineStats through to HeadIndicatorView
- Fetch online stats in parallel with feed data on pull-to-refresh
The online user count appears in the pull-to-refresh indicator when users refresh the feed, providing real-time community activity information.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* refactor: Address Copilot review comments
- Remove unused extractNumber helper methods in OnlineStatsInfo
- Use explicit Task syntax for parallel execution instead of async let
Co-Authored-By: GitHub Copilot <noreply@github.com>
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: GitHub Copilot <noreply@github.com>
0 commit comments