diff --git a/src/viewer/app/i18n/ru.ts b/src/viewer/app/i18n/ru.ts index 147ed61..6d78c00 100644 --- a/src/viewer/app/i18n/ru.ts +++ b/src/viewer/app/i18n/ru.ts @@ -177,7 +177,6 @@ export const RU: Record = { Income: 'Доход', 'Estimated annual income': 'Ожидаемый годовой доход', 'Per month, on average': 'В месяц, в среднем', - 'Upcoming dividends': 'Ближайшие дивы', 'Ex-dividend dates until': 'Экс-даты до', 'to buy so every listed dividend reinvests': 'докупить, чтобы реинвестировались все выплаты из списка', 'Near its 52-week high': 'Около 52-недельного максимума', @@ -737,7 +736,6 @@ export const RU: Record = { 'Past': 'Прошлые', 'Upcoming': 'Будущие', 'Dividends since': 'Дивы с', - 'Past dividends': 'Прошлые дивы', 'Dividends and interest paid into the shown accounts since the 1st of the month, from the transactions history': 'Дивиденды и проценты, пришедшие на показанные счета с 1-го числа месяца, по истории операций', 'Dividends and interest paid into the shown accounts since the quarter began, from the transactions history': 'Дивиденды и проценты, пришедшие на показанные счета с начала квартала, по истории операций', 'Dividends and interest paid into the shown accounts since January 1, from the transactions history': 'Дивиденды и проценты, пришедшие на показанные счета с 1 января, по истории операций', diff --git a/src/viewer/ui/Summary.tsx b/src/viewer/ui/Summary.tsx index 31999af..110f55b 100644 --- a/src/viewer/ui/Summary.tsx +++ b/src/viewer/ui/Summary.tsx @@ -120,10 +120,8 @@ export const Summary = memo(function Summary({ ds, accounts, title, titleHint, t // left, the order chips on the right (owner 2026-12-01: "intervals move below"); the unit $ or % is the % $ switch by ⤢ const divOrder = (className: string) => (
- {/* Upcoming or Past (owner 2026-12-02), then how far: ahead DTM 1M DTQ 1Q, back MTD 1M QTD 1Q; each side keeps its own */} + {/* how far: ahead DTM 1M DTQ 1Q, back MTD 1M QTD 1Q; each side keeps its own (Upcoming or Past is by the title) */}
- (w === 'past' ? t('Past') : t('Upcoming'))} - onChange={(w) => animate(() => setPrefs({ dividendsWhen: w }))} /> {past ? w} onChange={(w) => animate(() => setPrefs({ dividendsPastWindow: w }))} /> : w} onChange={(w) => animate(() => setPrefs({ dividendsWindow: w }))} />} @@ -201,8 +199,14 @@ export const Summary = memo(function Summary({ ds, accounts, title, titleHint, t {/* like Movers (owner 2026-12-01: "this is inconsistent"): ETFs Stocks in the middle, the % $ switch of the Dividends order chip by ⤢, how far ahead on the line below (MTD by default) */} - [r.u.symbol, r.u.payout, r.due])) : mark(divs.map((p) => [p.symbol, p.payout, p.exDate]))} title={past ? t('Past dividends') : t('Upcoming dividends')} - lead={ animate(() => setPrefs({ dividendsOf: v }))} />} + [r.u.symbol, r.u.payout, r.due])) : mark(divs.map((p) => [p.symbol, p.payout, p.exDate]))} title={t('Dividends')} + lead={<> + {/* Upcoming or Past right after the title (owner 2026-12-02; 2026-12-03: "upcomming / past is wrongly + implemented", "use Dividends and then put this Upcommin / past option"): the title stays one word */} + (w === 'past' ? t('Past') : t('Upcoming'))} + onChange={(w) => animate(() => setPrefs({ dividendsWhen: w }))} /> + animate(() => setPrefs({ dividendsOf: v }))} /> + } tools={ animate(() => { const k = v === 'pct' ? 'yield' : 'payout'; const p = prefs.get(); setPrefs({ dividendsSize: k, dividendsSort: setDivSize(p.dividendsSort, k) }); })} />} bigTools={divOrder('')}