aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/src/meshbay_hub/static/transport.js
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-08-11 15:39:09 +0200
committerChristophe Besson <cbesson@gmail.com>2026-08-11 15:39:09 +0200
commit3ee7f817d532208df1d95ecd86def12e5bd53a18 (patch)
tree2778dc1a64220e75662b9aceeafe4e8e384cf06b /packages/meshbay-hub/src/meshbay_hub/static/transport.js
parentcc90dc943fcd0e7bbf52674fb3f95ff097026f4a (diff)
downloadmeshbay-3ee7f817d532208df1d95ecd86def12e5bd53a18.tar.gz
fix(ui): group creation error, chat UUIDs, file preview, action menu
Bug fixes: - Group creation "[object Object]" error: removed dead pkcs8 import code that threw before GEK wrapping, added array detail handling in hubFetch - Chat shows usernames instead of UUIDs (sender_name passed through node) - Join button: navigate to group on "Already a member" instead of error UI improvements: - Loading spinner animation for async states (connecting, fetching) - File action menu (3-dot dropdown: View, Download, Play) - Click filename to preview inline (images, text/code files) - FilePreview overlay for images and text files - Chat file attachment button (upload to node + structured message) - Chat attachment display (icon, filename, size) - Member panel: "Group admin" badge instead of plain "Admin" text Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-hub/src/meshbay_hub/static/transport.js')
-rw-r--r--packages/meshbay-hub/src/meshbay_hub/static/transport.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/meshbay-hub/src/meshbay_hub/static/transport.js b/packages/meshbay-hub/src/meshbay_hub/static/transport.js
index 2f6680e..6cbcc3c 100644
--- a/packages/meshbay-hub/src/meshbay_hub/static/transport.js
+++ b/packages/meshbay-hub/src/meshbay_hub/static/transport.js
@@ -164,13 +164,14 @@ class MeshBayTransport {
return msg.messages || [];
}
- async sendChat(payload, iteration, threadId) {
+ async sendChat(payload, iteration, threadId, senderName) {
const msg = await this._sendAndWait({
type: 'chat_msg',
v: '0.1',
payload: payload,
iteration: iteration || 0,
thread_id: threadId || null,
+ sender_name: senderName || null,
});
return msg;
}