- {annotations.length === 0 ? (
+ {totalCount === 0 ? (
)}
+
+ {/* Editor annotations (VS Code) */}
+ {editorAnnotations && editorAnnotations.length > 0 && (
+ <>
+ {annotations.length > 0 && (
+
+ )}
+ {editorAnnotations.map(ann => (
+
onDeleteEditorAnnotation?.(ann.id)}
+ />
+ ))}
+ >
+ )}
{/* Quick Copy Footer */}
- {feedbackMarkdown && annotations.length > 0 && (
+ {feedbackMarkdown && totalCount > 0 && (
{/* List */}
- {sortedAnnotations.length === 0 ? (
+ {totalCount === 0 ? (
) : (
- sortedAnnotations.map(ann => (
-
onSelect(ann.id)}
- onDelete={() => onDelete(ann.id)}
- onEdit={onEdit ? (updates: Partial) => onEdit(ann.id, updates) : undefined}
- />
- ))
+ <>
+ {sortedAnnotations.map(ann => (
+ onSelect(ann.id)}
+ onDelete={() => onDelete(ann.id)}
+ onEdit={onEdit ? (updates: Partial) => onEdit(ann.id, updates) : undefined}
+ />
+ ))}
+ {editorAnnotations && editorAnnotations.length > 0 && (
+ <>
+ {sortedAnnotations.length > 0 && (
+
+ )}
+ {editorAnnotations.map(ann => (
+ onDeleteEditorAnnotation?.(ann.id)}
+ />
+ ))}
+ >
+ )}
+ >
)}
{/* Quick Share Footer */}
- {sharingEnabled && shareUrl && annotations.length > 0 && (
+ {sharingEnabled && shareUrl && totalCount > 0 && (