feat: Add TeleBot session tracking to LittleShop and fix live activity feed ordering
All checks were successful
Build and Deploy LittleShop / Deploy to Production VPS (Manual Only) (push) Has been skipped
Build and Deploy LittleShop / Deploy to Pre-Production (CT109) (push) Successful in 1m1s

- Add LittleShopSessionId and MessageCount properties to UserSession model
- Integrate SessionManager with BotManagerService for remote session tracking
- Wire up SessionManager.SetBotManagerService() at startup in Program.cs
- Create remote sessions via BotManagerService.StartSessionAsync() when users connect
- Update remote sessions periodically (every 10 messages) via UpdateSessionAsync()
- Fix live activity feed to show newest records at top by reversing array iteration

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-25 20:03:08 +00:00
parent bd0714e920
commit a1af91807e
4 changed files with 62 additions and 5 deletions

View File

@@ -228,7 +228,8 @@
$.get('@Url.Action("GetRecentActivities")', { count: 30 }, function(activities) {
const feed = $('#activityFeed');
activities.forEach(function(activity) {
// Reverse so oldest is prepended first, newest ends up at top
activities.slice().reverse().forEach(function(activity) {
const existingItem = $(`#activity-${activity.id}`);
if (existingItem.length === 0) {
const isNew = lastActivityId && activity.id !== lastActivityId;