Rename search-history block 'Вы искали' → 'Ранее искали' (TIRREDESIGN-5)
Spec calls out the exact label change for the recent-searches sidebar on Schedule and Online-Board start pages. RU was the literal 'Вы искали' (You searched) — switch to 'Ранее искали' (Previously searched), matching the section heading and the inline 'Ранее искали в Онлайн-Табло' / 'Ранее искали в Расписании' captions. Other locales already used 'Previous searches' / 'Search history' wording and stay unchanged. Add 2-spec e2e seeding sessionStorage with a valid history item and asserting the new label appears.
This commit is contained in:
@@ -210,7 +210,7 @@ export const OnlineBoardSearchPage: FC<OnlineBoardSearchPageProps> = ({
|
||||
const { dictionaries } = useDictionaries(language);
|
||||
const { add: addHistory } = useSearchHistory(language);
|
||||
|
||||
// Persist this online-board search into the `Вы искали` sidebar
|
||||
// Persist this online-board search into the `Ранее искали` sidebar
|
||||
// history. The hook dedupes by URL, so re-renders / day-tab clicks
|
||||
// don't bloat storage.
|
||||
useEffect(() => {
|
||||
|
||||
@@ -167,7 +167,7 @@ export const ScheduleSearchPage: FC<ScheduleSearchPageProps> = ({ params }) => {
|
||||
const activeKind: "outbound" | "inbound" =
|
||||
direction === "inbound" && inbound ? "inbound" : "outbound";
|
||||
|
||||
// Persist this search into the `Вы искали` sidebar history. The hook
|
||||
// Persist this search into the `Ранее искали` sidebar history. The hook
|
||||
// dedupes by URL so re-renders / week-tab clicks won't bloat storage.
|
||||
useEffect(() => {
|
||||
const url = `/${locale}/${buildScheduleUrl(params)}`;
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
"STATUS-PLANNED": "Запланирован",
|
||||
"TIME_DEPARTURE": "Время отправления",
|
||||
"TITLE": "Онлайн-Табло",
|
||||
"YOU_SEARCH": "Вы искали",
|
||||
"YOU_SEARCH": "Ранее искали",
|
||||
"LEG": "Перелет",
|
||||
"TOTAL-FLYING-TIME": "Общее время в пути",
|
||||
"DETAILS-TITLE": "Детали рейса",
|
||||
@@ -370,8 +370,8 @@
|
||||
"INTERMEDIATE-LANDING-PLURAL-OTHER": "Промежуточных посадок",
|
||||
"LANDING": "Посадка",
|
||||
"LANDING-TRANSFER": "Трансфер",
|
||||
"LAST-SEARCH-BOARD": "Вы искали в Онлайн-Табло",
|
||||
"LAST-SEARCH-SCHEDULE": "Вы искали в Расписании",
|
||||
"LAST-SEARCH-BOARD": "Ранее искали в Онлайн-Табло",
|
||||
"LAST-SEARCH-SCHEDULE": "Ранее искали в Расписании",
|
||||
"LAST-UPDATE": "Последнее обновление",
|
||||
"MAIN": "Главная",
|
||||
"NOTE-SYMBOL": "*",
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
/**
|
||||
* Search history sidebar — `Вы искали` accordion.
|
||||
* Search history sidebar — `Ранее искали` accordion (TIRREDESIGN-5).
|
||||
*
|
||||
* Mirrors Angular's `search-history` component: a collapsible
|
||||
* frame with a `Вы искали` header and a list of recent searches.
|
||||
* Each row shows a plane icon (online-board) or alarm-clock icon
|
||||
* Mirrors Angular's `search-history` component: a collapsible frame
|
||||
* with a `Ранее искали` header and a list of recent searches. Each
|
||||
* row shows a plane icon (online-board) or alarm-clock icon
|
||||
* (schedule), the city pair (`Москва — Самара`) and a date row
|
||||
* (`20.04.2026 - 26.04.2026`, plus inbound dates for round-trip).
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user