Luca448 commited on
Commit
c9de332
·
1 Parent(s): 5723314

Fix: Correct message_id parsing in search results so jump & highlight triggers successfully (BUILD 1.5.31)

Browse files
Files changed (2) hide show
  1. index.html +1 -1
  2. src/views/chat/chat-view.js +2 -2
index.html CHANGED
@@ -51,7 +51,7 @@
51
  </head>
52
  <body class="dark-theme in-chat-view">
53
 
54
- <div id="live-version-badge" style="position: fixed; top: 50px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--text-secondary); opacity: 0.6; z-index: 99999; pointer-events: none; font-weight: 500; font-family: monospace; letter-spacing: 1px; background: rgba(0,0,0,0.2); padding: 2px 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05);">BUILD 1.5.30</div>
55
 
56
  <!-- SVG Filters for Liquid Glass Refraction -->
57
  <svg width="0" height="0" style="position: absolute; pointer-events: none;">
 
51
  </head>
52
  <body class="dark-theme in-chat-view">
53
 
54
+ <div id="live-version-badge" style="position: fixed; top: 50px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--text-secondary); opacity: 0.6; z-index: 99999; pointer-events: none; font-weight: 500; font-family: monospace; letter-spacing: 1px; background: rgba(0,0,0,0.2); padding: 2px 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05);">BUILD 1.5.31</div>
55
 
56
  <!-- SVG Filters for Liquid Glass Refraction -->
57
  <svg width="0" height="0" style="position: absolute; pointer-events: none;">
src/views/chat/chat-view.js CHANGED
@@ -2654,7 +2654,7 @@ body { margin: 0; padding: 0; background: #000; overflow: hidden; display: flex;
2654
  const othersItems = others.map(m => {
2655
  const snip = getSnippet(m.content, query);
2656
  const dateStr = new Date(m.created_at).toLocaleDateString('de-DE', { day: '2-digit', month: '2-digit', year: '2-digit', hour: '2-digit', minute: '2-digit' });
2657
- return `<div class="additional-match" data-msg-id="${m.id}" style="margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.05); padding-bottom: 4px; padding-left: 4px; border-radius: 4px; cursor: pointer; transition: background 0.2s;" onmouseover="this.style.background='rgba(255,255,255,0.1)'" onmouseout="this.style.background='transparent'">
2658
  <div style="font-size: 10px; color: #888; margin-bottom: 2px;">${m.role === 'user' ? '👤 Du' : '🤖 KI'} • ${dateStr}</div>
2659
  <div>${snip}</div>
2660
  </div>`;
@@ -2703,7 +2703,7 @@ body { margin: 0; padding: 0; background: #000; overflow: hidden; display: flex;
2703
  return;
2704
  }
2705
  if (e.target.closest('summary')) return;
2706
- this.switchChat(res.conversation_id, firstMatch.id, query);
2707
  };
2708
  listContainer.appendChild(item);
2709
  });
 
2654
  const othersItems = others.map(m => {
2655
  const snip = getSnippet(m.content, query);
2656
  const dateStr = new Date(m.created_at).toLocaleDateString('de-DE', { day: '2-digit', month: '2-digit', year: '2-digit', hour: '2-digit', minute: '2-digit' });
2657
+ return `<div class="additional-match" data-msg-id="${m.message_id}" style="margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.05); padding-bottom: 4px; padding-left: 4px; border-radius: 4px; cursor: pointer; transition: background 0.2s;" onmouseover="this.style.background='rgba(255,255,255,0.1)'" onmouseout="this.style.background='transparent'">
2658
  <div style="font-size: 10px; color: #888; margin-bottom: 2px;">${m.role === 'user' ? '👤 Du' : '🤖 KI'} • ${dateStr}</div>
2659
  <div>${snip}</div>
2660
  </div>`;
 
2703
  return;
2704
  }
2705
  if (e.target.closest('summary')) return;
2706
+ this.switchChat(res.conversation_id, firstMatch.message_id, query);
2707
  };
2708
  listContainer.appendChild(item);
2709
  });