Remove Vendor tab from Activity section

- Vendor communication now lives in the dispatch detail modal
- Activity tabs: Customer, Internal, Audit Log
- Comment input only shows on Internal tab
This commit is contained in:
Adam Moussa 2026-04-17 14:03:41 -04:00
parent 2a23febcec
commit 27fb70724b

View file

@ -675,18 +675,16 @@ export default function WorkOrderViewPage() {
const allComments = wo.comments || [];
const customerComments = allComments.filter((c) => c.commentType === "customer");
const vendorComments = allComments.filter((c) => c.commentType === "vendor");
const internalComments = allComments.filter((c) => c.commentType === "internal");
const auditLog = wo.auditLog || [];
const tabs = [
{ key: "customer", label: "Customer", count: customerComments.length },
{ key: "vendor", label: "Vendor", count: vendorComments.length },
{ key: "internal", label: "Internal", count: internalComments.length },
{ key: "audit", label: "Audit Log", count: auditLog.length },
];
const showInput = activeTab === "internal" || activeTab === "vendor";
const showInput = activeTab === "internal";
return (
<div className="woViewPage">
@ -864,7 +862,6 @@ export default function WorkOrderViewPage() {
</div>
<div className="woTabContainer">
{activeTab === "customer" && <CommentTimeline comments={customerComments} />}
{activeTab === "vendor" && <CommentTimeline comments={vendorComments} />}
{activeTab === "internal" && <CommentTimeline comments={internalComments} />}
{activeTab === "audit" && <AuditTimeline entries={auditLog} />}
{showInput && (