From a8a2061eecf3f63c0f0488b632492f34a1592c74 Mon Sep 17 00:00:00 2001 From: ZGaetano Date: Sat, 23 May 2026 09:15:20 -0400 Subject: [PATCH] fix(asset): comment composer shows real user from ZAMPP_DATA.ME, removes dead add-reviewer button --- services/web-ui/public/screens-asset.jsx | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/services/web-ui/public/screens-asset.jsx b/services/web-ui/public/screens-asset.jsx index 1c7ed32..52b20c2 100644 --- a/services/web-ui/public/screens-asset.jsx +++ b/services/web-ui/public/screens-asset.jsx @@ -155,8 +155,8 @@ function AssetDetail({ asset, onClose }) { : 'just now'; return { id: row.id, - who: row.author_name || 'You', - avatar: row.author_initials || (row.author_name ? row.author_name.slice(0, 2).toUpperCase() : 'ZG'), + who: row.author_name || window.ZAMPP_DATA?.ME?.name || 'You', + avatar: row.author_initials || (row.author_name ? row.author_name.slice(0, 2).toUpperCase() : (window.ZAMPP_DATA?.ME?.initials || 'ZG')), time: msToTimecode(frameMs), frame_ms: frameMs, real, @@ -528,16 +528,13 @@ function CommentsList({ comments, onSeek, onResolve, onDelete }) { } function CommentComposer({ asset, currentMs, value, onChange, onSubmit }) { + const me = window.ZAMPP_DATA?.ME; + const myInitials = me?.initials || 'ZG'; return (
- Reviewers -
- {["ZG"].map(function(a, i) { - return
{a}
; - })} - -
+
{myInitials}
+ {me?.name || 'You'}
@ {msToTimecode(currentMs)}