diff --git a/src/pages/webapp/Dashboard.tsx b/src/pages/webapp/Dashboard.tsx index 9e7a14d..7025ecf 100644 --- a/src/pages/webapp/Dashboard.tsx +++ b/src/pages/webapp/Dashboard.tsx @@ -52,7 +52,7 @@ const decisionHttpService = new DecisionHttpService(); function Dashboard() { return ( -
+
@@ -384,8 +384,14 @@ function Portfolio() { return ( <> - -
+ + + Portfolio management + + Manage the holdings of your portfolio + + + @@ -464,11 +470,12 @@ function Portfolio() {
-
+
- + Add new asset to portfolio + Choose an asset and specify how many shares you bought and at what price diff --git a/src/pages/webapp/Simulation.tsx b/src/pages/webapp/Simulation.tsx index 3853a07..d928f90 100644 --- a/src/pages/webapp/Simulation.tsx +++ b/src/pages/webapp/Simulation.tsx @@ -17,7 +17,6 @@ import {DatePickerRange} from "@/components/DatePickerRange.tsx"; import {DateRange} from "react-day-picker"; import {addDays, endOfDay, isWithinInterval, startOfDay} from "date-fns"; import {ToggleGroup, ToggleGroupItem} from "@/components/ui/toggle-group.tsx"; -import {LoadingLayer} from "@/components/LoadingLayer.tsx"; const portfolioHttpService = new PortfolioHttpService(); const assetsHttpService = new AssetsHttpService(); @@ -84,14 +83,51 @@ function SimulationConfig({setSimulationConfig}: { } return ( - -
-
-

Time period

+
+ + + Time period + Select the start and end dates for the simulation + + -
-
-

Risk profile

+ + + + + Assets selection + Select the assets to be included in the simulation + + +
+
+
+ +
+
+

Current portfolio

+

All assets in your current + portfolio

+
+
+ event ? addPortfolioHoldings() : removePortfolioHoldings()}/> +
+
+
+ {simulationItems.length > 0 && ( + + {simulationItems.length} assets selected + + )} +
+
+ + + Risk profile + Select the risk profile to use in the simulation + + -
-
-

Assets selection

-
-
-
- -
-
-

Current portfolio

-

All assets in your current portfolio

-
-
- event ? addPortfolioHoldings() : removePortfolioHoldings()}/> -
-
-
-
-
- - {simulationItems.length > 0 && ( - - {simulationItems.length} assets selected - - )} -
-
- + + +
+ +
) } @@ -285,19 +297,26 @@ function SimulationResults({simulationConfig}: { return ( <> - {isLoading && } - {simulationConfig &&
- { - return item.select - }} - sortByFilterBy={(a, b) => { - if (a === "Overview") return -1; - if (b === "Overview") return 1; - return a.localeCompare(b); - }}/> -
} + {isLoading && +
+
+
+ } + {simulationConfig && !isLoading && +
+ { + return item.select + }} + sortByFilterBy={(a, b) => { + if (a === "Overview") return -1; + if (b === "Overview") return 1; + return a.localeCompare(b); + }}/> +
+ } ) } @@ -408,7 +427,7 @@ function DataChart axisLine={false} tickMargin={8} domain={([dataMin, dataMax]) => { - const margin = (dataMax - dataMin)/10; + const margin = (dataMax - dataMin) / 10; return [Math.max(0, dataMin - margin), dataMax + margin] }} tickFormatter={(value) => {