feat: Add TeleBot session tracking to LittleShop and fix live activity feed ordering
- 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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user