Skip to content

Commit

Permalink
Refactor RevenueForecastPage layout and comment out future consulting…
Browse files Browse the repository at this point in the history
… tables

- Removed the future consulting table from the RevenueForecastPage for clarity and focus on current data.
- Wrapped OneYearAllocation components in divs for improved spacing and layout consistency.
- Commented out the ConsultingTableFuture component to prevent rendering while maintaining code for future reference.
- These changes enhance the readability and organization of the revenue forecast display.
  • Loading branch information
ElemarJR committed Jan 6, 2025
1 parent 6a265b5 commit 4afc80e
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions frontend/src/app/financial/revenue-forecast/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,11 @@ export default function RevenueForecastPage() {
title: "Consulting",
subtitle: "By Consultant",
},
{
id: "consultingFuture",
title: "Consulting",
subtitle: "Next three months",
},
// {
// id: "consultingFuture",
// title: "Consulting",
// subtitle: "Next three months",
// },
{
id: "consultingPre",
title: "Consulting Pre",
Expand All @@ -213,7 +213,9 @@ export default function RevenueForecastPage() {
]}
/>

<OneYearAllocation kind="consulting" hideTotals={true} />
<div className="mt-4">
<OneYearAllocation kind="consulting" hideTotals={true} />
</div>

<ConsultingTable
title="Consulting"
Expand Down Expand Up @@ -245,7 +247,7 @@ export default function RevenueForecastPage() {
setNormalized={setNormalized}
/>

<ConsultingTableFuture
{/* <ConsultingTableFuture
title="Consulting"
tableData={forecastData.consulting}
tableId="consultingFuture"
Expand All @@ -259,7 +261,7 @@ export default function RevenueForecastPage() {
toggleClient={toggleClient}
setNormalized={setNormalized}
setUseHistorical={setUseHistorical}
/>
/> */}

<ConsultingPreTable
title="Consulting Pre"
Expand All @@ -271,6 +273,10 @@ export default function RevenueForecastPage() {
toggleClient={(clientSlug) => toggleClient(clientSlug, "consultingPre")}
/>

<div className="mt-4">
<OneYearAllocation kind="handsOn" hideTotals={true} />
</div>

<OtherTable
title="Hands On"
tableData={forecastData.handsOn}
Expand All @@ -282,6 +288,10 @@ export default function RevenueForecastPage() {
toggleClient={toggleClient}
/>

<div className="mt-4">
<OneYearAllocation kind="squad" hideTotals={true} />
</div>

<OtherTable
title="Squad"
tableData={forecastData.squad}
Expand Down

0 comments on commit 4afc80e

Please sign in to comment.