@tribe-nest/forge 3.36.0 → 3.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,6 +3,7 @@ import { Loading } from "../Loading";
3
3
  import { useWorkProjectReport } from "../../headless/work/useWorkPortal";
4
4
  import { WorkReportBody } from "./WorkReportBody";
5
5
  import { WorkProjectInvoices } from "./WorkProjectInvoices";
6
+ import { WorkProjectDocuments } from "./WorkProjectDocuments";
6
7
 
7
8
  export interface WorkProjectReportProps {
8
9
  /** The client project id (from the route). */
@@ -17,7 +18,7 @@ export interface WorkProjectReportProps {
17
18
  }
18
19
 
19
20
  /**
20
- * The authenticated client's read-only project report — milestones, task list
21
+ * The authenticated client's read-only project report: milestones, task list
21
22
  * and the billable-only time report. Each task links to its detail/comments
22
23
  * page. Built on `useWorkProjectReport`; theme tokens only.
23
24
  */
@@ -55,11 +56,12 @@ export function WorkProjectReport({ projectId, taskHref, onOpenTask }: WorkProje
55
56
  ? undefined
56
57
  : (taskHref ?? ((taskId: string) => `/i/work/projects/${projectId}/tasks/${taskId}`));
57
58
 
58
- // The invoices section is authed-only (not part of the login-free token
59
- // share, which renders WorkReportBody directly).
59
+ // The documents and invoices sections are authed-only (not part of the
60
+ // login-free token share, which renders WorkReportBody directly).
60
61
  return (
61
62
  <div style={{ display: "flex", flexDirection: "column", gap: 24 }}>
62
63
  <WorkReportBody report={report} taskHref={resolvedTaskHref} onOpenTask={onOpenTask} />
64
+ <WorkProjectDocuments projectId={projectId} />
63
65
  <WorkProjectInvoices projectId={projectId} />
64
66
  </div>
65
67
  );
@@ -8,3 +8,4 @@ export { WorkTaskAttachments, type WorkTaskAttachmentsProps } from "./WorkTaskAt
8
8
  export { WorkTaskDetail, type WorkTaskDetailProps } from "./WorkTaskDetail";
9
9
  export { WorkInviteAccept, type WorkInviteAcceptProps } from "./WorkInviteAccept";
10
10
  export { WorkProjectInvoices, type WorkProjectInvoicesProps } from "./WorkProjectInvoices";
11
+ export { WorkProjectDocuments, type WorkProjectDocumentsProps } from "./WorkProjectDocuments";