You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduces a reusable LabelWithHelp and HelpButton component for contextual tooltips across configuration forms. Replaces static labels with LabelWithHelp in rebalance, schedule, and stock selection tabs, providing users with inline explanations for each setting. Enhances login and registration forms with show/hide password toggles. Updates default min/max position size logic and cleans up legacy rebalance settings handling. Also adds onEnterPress support to StockTickerAutocomplete for improved watchlist UX.
<LabelhtmlFor="minPosition">Minimum Position Size ($)</Label>
68
-
<Input
69
-
id="minPosition"
70
-
type="number"
71
-
value={config.minPosition}
72
-
onChange={(e)=>setConfig(prev=>({
73
-
...prev,
74
-
minPosition: Number(e.target.value)
75
-
}))}
76
-
disabled={config.useDefaultSettings}
70
+
<LabelWithHelp
71
+
label="Min Position Size"
72
+
helpContent="Minimum position size as percentage of portfolio. Prevents too many small positions. Lower values allow more positions but may increase trading costs."
Minimum percentage of portfolio per position (currently {config.minPosition}%)
80
98
</p>
81
99
</div>
82
100
83
101
<divclassName="space-y-2">
84
-
<LabelhtmlFor="maxPosition">Maximum Position Size ($)</Label>
85
-
<Input
86
-
id="maxPosition"
87
-
type="number"
88
-
value={config.maxPosition}
89
-
onChange={(e)=>setConfig(prev=>({
90
-
...prev,
91
-
maxPosition: Number(e.target.value)
92
-
}))}
93
-
disabled={config.useDefaultSettings}
102
+
<LabelWithHelp
103
+
label="Max Position Size"
104
+
helpContent="Maximum position size as percentage of portfolio. Ensures diversification by limiting exposure to any single stock. Recommended: 20-30% for balanced diversification."
helpContent="Triggers rebalance when portfolio drifts by this percentage. Lower values (1-5%) result in frequent rebalancing, higher values (10-20%) result in less frequent rebalancing. Recommended: 5-10%"
139
+
/>
106
140
<Slider
107
141
id="threshold"
108
142
min={1}
@@ -136,9 +170,12 @@ export function ConfigurationTab({
helpContent="Add stocks from your watchlist to the rebalancing analysis. These stocks will be considered for potential new positions even though you don't currently own them."
99
+
className="text-sm font-semibold"
100
+
/>
97
101
<pclassName="text-xs text-muted-foreground">
98
102
Add stocks from your watchlist to the rebalancing analysis
helpContent="The time when the rebalance will execute. Choose a time when markets are closed to avoid mid-day volatility. Recommended: Before market open (9:30 AM ET) or after market close (4:00 PM ET)."
helpContent="Your local timezone for scheduling. The rebalance will execute at the specified time in this timezone. Market hours are in Eastern Time (ET)."
helpContent="How often to automatically rebalance your portfolio. Daily for active management, Weekly for regular adjustments, Monthly for long-term investing. Your subscription determines available frequencies."
helpContent="Select which day(s) of the week to run the rebalance. With higher tier subscriptions, you can select multiple days for more frequent rebalancing."
0 commit comments