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)}`;
|
||||
|
||||
Reference in New Issue
Block a user