@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.
- package/package.json +1 -1
- package/src/i18n/de.json +4 -1
- package/src/i18n/en.json +4 -1
- package/src/ui/format/membershipPriceLabel.ts +29 -0
- package/src/ui/headless/membership/_tests/membershipCheckoutRefetch.spec.tsx +136 -0
- package/src/ui/headless/membership/useMembershipCheckout.ts +18 -4
- package/src/ui/headless/work/index.ts +4 -0
- package/src/ui/headless/work/useWorkPortal.ts +125 -10
- package/src/ui/index.ts +1 -0
- package/src/ui/styled/AccountDashboard.tsx +16 -17
- package/src/ui/styled/LoginForm.tsx +15 -1
- package/src/ui/styled/MembershipTierCallout.tsx +91 -0
- package/src/ui/styled/MembershipTiers.tsx +5 -15
- package/src/ui/styled/SignupForm.tsx +10 -0
- package/src/ui/styled/_tests/AccountDashboardCommunity.spec.tsx +49 -34
- package/src/ui/styled/_tests/membershipTierCallout.spec.tsx +126 -0
- package/src/ui/styled/work/WorkProjectDocuments.tsx +224 -0
- package/src/ui/styled/work/WorkProjectReport.tsx +5 -3
- package/src/ui/styled/work/index.ts +1 -0
|
@@ -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
|
|
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
|
|
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";
|