fix: Update note rendering logic to simplify system note display

This commit is contained in:
Chop
2025-07-10 23:02:45 +02:00
parent 33ea8de17e
commit 92f458e59b

View File

@@ -512,11 +512,11 @@ export default function ProjectTasksSection({ projectId }) {
> >
<div className="flex-1"> <div className="flex-1">
<div className="flex items-center gap-2 mb-1"> <div className="flex items-center gap-2 mb-1">
{note.is_system && ( {note.is_system ? (
<span className="px-2 py-1 text-xs bg-blue-100 text-blue-700 rounded-full font-medium"> <span className="px-2 py-1 text-xs bg-blue-100 text-blue-700 rounded-full font-medium">
System System
</span> </span>
)} ) : null}
{note.created_by_name && ( {note.created_by_name && (
<span className="px-2 py-1 text-xs bg-gray-100 text-gray-700 rounded-full font-medium"> <span className="px-2 py-1 text-xs bg-gray-100 text-gray-700 rounded-full font-medium">
{note.created_by_name} {note.created_by_name}
@@ -530,11 +530,6 @@ export default function ProjectTasksSection({ projectId }) {
{formatDate(note.note_date, { {formatDate(note.note_date, {
includeTime: true, includeTime: true,
})} })}
{note.created_by_name && (
<span className="ml-2">
by {note.created_by_name}
</span>
)}
</p> </p>
</div> </div>
{!note.is_system && ( {!note.is_system && (