Skip to content

Commit bcc47a0

Browse files
committed
feat: Improve shared item tracking and display in help transcript
- Add system notes to help transcript when items are shared - Display 'Shared by [user] on [date]' for shared items - Auto-generate taskId for shared items on recipient load - Show user icon indicator on shared items in nav - Highlight both system note and related messages with same taskId - Prevent deletion of system notes - Exclude current user from share dialog - Make system notes clickable to load shared tasks
1 parent 6b604cd commit bcc47a0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/components/HelpPanel.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2048,7 +2048,10 @@ export const HelpPanel = ({
20482048
)}
20492049

20502050
<div
2051-
className={`${message.role === 'system' ? 'bg-gray-100' : 'bg-blue-100'} rounded-lg p-3 overflow-hidden ${isPending ? 'border-2 border-blue-300' : ''} ${message.role !== 'system' && message.taskId && message.taskId === taskId ? 'border-2 border-blue-500' : ''} ${message.taskId && onLoadTaskFromHelp ? `cursor-pointer ${message.role === 'system' ? 'hover:bg-gray-200' : 'hover:bg-blue-200'} transition-colors` : ''}`}
2051+
className={`${message.role === 'system' ? 'bg-gray-100' : 'bg-blue-100'} rounded-lg p-3 overflow-hidden ${isPending ? 'border-2 border-blue-300' : ''} ${
2052+
// Highlight both system notes and user messages if they have the current taskId
2053+
message.taskId && message.taskId === taskId ? 'border-2 border-blue-500' : ''
2054+
} ${message.taskId && onLoadTaskFromHelp ? `cursor-pointer ${message.role === 'system' ? 'hover:bg-gray-200' : 'hover:bg-blue-200'} transition-colors` : ''}`}
20522055
onClick={() => {
20532056
if (message.taskId && onLoadTaskFromHelp) {
20542057
onLoadTaskFromHelp(message.taskId);

0 commit comments

Comments
 (0)