forked from aws-samples/amplify-next-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #266 from cabcookie:fix-weekly-planning
chore: clean up
- Loading branch information
Showing
9 changed files
with
106 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import useMrrLatestUpload from "@/api/useLatestUploadsWork"; | ||
import ImportProjectData from "@/components/crm/import-project-data"; | ||
import PlanWeekAction from "@/components/planning/week/PlanWeekAction"; | ||
import { FC } from "react"; | ||
|
||
interface ProcessCrmUpdatesProps { | ||
mutateSfdc: ReturnType<typeof useMrrLatestUpload>["mutateSfdc"]; | ||
} | ||
|
||
const ProcessCrmUpdates: FC<ProcessCrmUpdatesProps> = ({ mutateSfdc }) => ( | ||
<> | ||
<PlanWeekAction label="Upload Salesforce Opportunities" /> | ||
<ImportProjectData reloader={mutateSfdc} /> | ||
</> | ||
); | ||
|
||
export default ProcessCrmUpdates; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import useMrrLatestUpload from "@/api/useLatestUploadsWork"; | ||
import InstructionsUploadMrr from "@/components/analytics/instructions/instructions-upload-mrr"; | ||
import { MrrFilterProvider } from "@/components/analytics/useMrrFilter"; | ||
import PlanWeekAction from "@/components/planning/week/PlanWeekAction"; | ||
import { Accordion } from "@/components/ui/accordion"; | ||
import { FC } from "react"; | ||
|
||
interface ProcessFinancialUpdatesProps { | ||
mutateMrr: ReturnType<typeof useMrrLatestUpload>["mutateMrr"]; | ||
} | ||
|
||
const ProcessFinancialUpdates: FC<ProcessFinancialUpdatesProps> = ({ | ||
mutateMrr, | ||
}) => ( | ||
<> | ||
<PlanWeekAction label="Upload Customer Financials" /> | ||
<MrrFilterProvider> | ||
<Accordion type="single" collapsible> | ||
<InstructionsUploadMrr reloader={mutateMrr} /> | ||
</Accordion> | ||
</MrrFilterProvider> | ||
</> | ||
); | ||
|
||
export default ProcessFinancialUpdates; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import ProcessInboxItem from "@/components/inbox/ProcessInboxItem"; | ||
import PlanWeekAction from "@/components/planning/week/PlanWeekAction"; | ||
|
||
const ProcessInbox = () => ( | ||
<> | ||
<PlanWeekAction label="Process Inbox Items" /> | ||
<ProcessInboxItem /> | ||
</> | ||
); | ||
|
||
export default ProcessInbox; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import useWeekPlan from "@/api/useWeekPlan"; | ||
import { PlanningProjectFilterProvider } from "@/components/planning/usePlanningProjectFilter"; | ||
import PlanWeekAction from "@/components/planning/week/PlanWeekAction"; | ||
import PlanWeekContextNotWork from "@/components/planning/week/PlanWeekContextNotWork"; | ||
import PlanWeekContextWork from "@/components/planning/week/PlanWeekContextWork"; | ||
import PlanWeekFilter from "@/components/planning/week/PlanWeekFilter"; | ||
import PlanWeekStatistics from "@/components/planning/week/PlanWeekStatistics"; | ||
import { useContextContext } from "@/contexts/ContextContext"; | ||
|
||
const ProcessProjects = () => { | ||
const { context } = useContextContext(); | ||
const { weekPlan } = useWeekPlan(); | ||
|
||
return ( | ||
weekPlan && ( | ||
<> | ||
<PlanWeekAction label="Review Projects" /> | ||
<PlanningProjectFilterProvider> | ||
<PlanWeekStatistics /> | ||
|
||
<PlanWeekFilter /> | ||
|
||
{context !== "work" && <PlanWeekContextNotWork />} | ||
{context === "work" && <PlanWeekContextWork />} | ||
</PlanningProjectFilterProvider> | ||
</> | ||
) | ||
); | ||
}; | ||
|
||
export default ProcessProjects; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters