mirror of
https://github.com/penpot/penpot.git
synced 2026-09-15 16:38:41 +00:00
* 🔥 Remove unused comment profiles fan-out in dashboard The dashboard event retrieve-unread-comment-threads issued one get-profiles-for-file-comments call per distinct file id and stored the result in :current-team-comments-users, a state key no one reads. The dashboard renders each thread author from the thread payload via get-owner, so the fan-out was N+1 dead work. Drop the per-file branch and the state write; the event now issues a single get-unread-comment-threads call. AI-assisted-by: deepseek-flash * 🔥 Remove unused file comments users event and state fetch-file-comments-users had no callers and passed a :team-id where get-profiles-for-file-comments requires :file-id. Its only effect was writing :file-comments-users, a viewer state key no one reads. Remove the event and the unused state key. The viewer still loads comment profiles through fetch-profiles. AI-assisted-by: deepseek-flash