diff --git a/.changeset/36286-palette-current-page.md b/.changeset/36286-palette-current-page.md new file mode 100644 index 00000000000..4800b07f519 --- /dev/null +++ b/.changeset/36286-palette-current-page.md @@ -0,0 +1,18 @@ +--- +'@object-ui/app-shell': patch +'@object-ui/i18n': patch +--- + +feat(console): the empty ⌘K palette leads with a "Current page" group: the page's favorites entry + +Clause-②: yes (widening) — one new published language-pack key, in all eleven packs: console.commandPalette.currentPage +Metadata-protocol: none + +Opened with nothing typed, the command palette inside an app now starts with a "Current page" group, above the recently viewed records, when the page behind it is an object's list or a record page: + +- **On an object's list** (`/apps/APP/OBJECT`, or one of its views): "Add to favorites" (or "Remove from favorites"), the list's own favorites entry from its ⋮ More menu. It pins the app's navigation entry for the list where the app has one, and keeps an object favorite otherwise, exactly as that menu does. +- **On a record page**: the record's star — the same `record` favorite the star beside the record's name toggles, named by the title the record was last visited under. + +The row is first, so Enter on the empty palette now runs it; the footer says so ("Add to favorites ↵" / "Remove from favorites ↵", the menu's own words). Typing takes the group away. On every other page (an app's landing, a dashboard, the search page, a create form) the palette is unchanged. Which records the palette searches and how it ranks them, the full search page, and the phone's search are unchanged. + +New locale key, in every pack: `console.commandPalette.currentPage`. No props or package exports change. diff --git a/ui/packages/app-shell/src/chrome/CommandPalette.previewCreate-36286.test.tsx b/ui/packages/app-shell/src/chrome/CommandPalette.previewCreate-36286.test.tsx index 8ae429c0b36..f5df22f1e91 100644 --- a/ui/packages/app-shell/src/chrome/CommandPalette.previewCreate-36286.test.tsx +++ b/ui/packages/app-shell/src/chrome/CommandPalette.previewCreate-36286.test.tsx @@ -58,6 +58,12 @@ import { CommandPalette } from './CommandPalette'; import { CommandPaletteProvider } from '../context/CommandPaletteProvider'; import { paletteEnterAction } from './PaletteEnterHint'; import { paletteCreateTargets, palettePrefillField, routeObjectName } from './paletteCreate'; +import { paletteCurrentPage } from './PaletteCurrentPage'; +import { FavoritesProvider, recordFavoriteItem, type FavoriteItem } from '../context/FavoritesProvider'; +import { RecentItemsProvider, useRecentItems } from '../context/RecentItemsProvider'; +import { useFavorites } from '../hooks/useFavorites'; +import { scopedKey } from '../context/UserStateAdapters'; +import { useObjectListFavorite } from '../layout/SidebarItemMenu'; const CUSTOMER = 'customer_36286'; const CONTACT = 'contact_36286'; @@ -331,3 +337,147 @@ describe('objectstack#36286 — which objects a create row offers', () => { expect(routeObjectName('/apps/crm', names)).toBeUndefined(); }); }); + +describe('objectstack#36286 — the empty palette leads with the current page\'s entries', () => { + /** The list's own favorites entry, as `ObjectView`'s ⋮ More reads it. */ + let listFavorite: { isFavorite: boolean } | null = null; + let favorites: FavoriteItem[] = []; + function PageProbe({ objectName }: { objectName?: string }) { + const list = useObjectListFavorite({ appSegment: 'crm', objectName, label: 'Customers' }); + const stored = useFavorites().favorites; + React.useEffect(() => { + listFavorite = list; + favorites = stored; + }); + return null; + } + /** The visit the record page records once its title is known. */ + function SeedVisit({ recordId, title }: { recordId: string; title: string }) { + const { addRecentItem } = useRecentItems(); + React.useEffect(() => { + addRecentItem({ id: `record:${CUSTOMER}:${recordId}`, label: title, href: `/apps/crm/${CUSTOMER}/record/${recordId}`, type: 'record' }); + }, [addRecentItem, recordId, title]); + return null; + } + + function mountPage(path: string, { visit, listObject }: { visit?: { recordId: string; title: string }; listObject?: string } = {}) { + const metadata = { ...metadataValue(), apps: [CRM] }; + const ds = { find: vi.fn(async () => ({ data: [] })), findOne: vi.fn(async () => null) }; + const view = render( + + + + + + + + {visit && } + {}} dataSource={ds} /> + + + + + , + ); + return view; + } + const input = () => document.querySelector('[cmdk-input]') as HTMLInputElement | null; + const heading = () => document.querySelector('[cmdk-group-heading]')?.textContent; + const row = () => screen.queryByTestId('palette-current-page-favorite'); + + afterEach(() => { + localStorage.clear(); + listFavorite = null; + favorites = []; + }); + + it('on an object\'s list: first, selected, and Enter runs the list\'s own favorites entry', async () => { + mountPage(`/apps/crm/${CUSTOMER}`, { listObject: CUSTOMER }); + await waitFor(() => expect(row()).not.toBeNull()); + expect(heading()).toBe('Current page'); + expect(row()).toHaveTextContent('Add to favorites'); + await waitFor(() => expect(selected()).toBe(`favorite-add current page list ${CUSTOMER}`)); + expect(hint()).toBe('addFavorite'); + expect(screen.getByTestId('palette-enter-hint')).toHaveTextContent('Add to favorites'); + expect(listFavorite?.isFavorite).toBe(false); + + press(input()!, 'Enter'); + // The page's own entry turned on: the app lists the object, so its navigation entry is pinned. + await waitFor(() => expect(listFavorite?.isFavorite).toBe(true)); + expect(favorites.map((f) => f.id)).toEqual(['nav:n_customer']); + expect(location()).toBe(`/apps/crm/${CUSTOMER}`); + expect(input()).toBeNull(); + }); + + it('a named view of the list is the list too', async () => { + mountPage(`/apps/crm/${CUSTOMER}/view/all`); + await waitFor(() => expect(row()).not.toBeNull()); + expect(row()?.getAttribute('data-value')).toBe(`favorite-add current page list ${CUSTOMER}`); + }); + + it('on a record page: Enter stars the record, named by the title it was visited under', async () => { + mountPage(`/apps/crm/${CUSTOMER}/record/C1`, { visit: { recordId: 'C1', title: 'Qingdao Haichen Foods' } }); + await waitFor(() => expect(row()).not.toBeNull()); + expect(heading()).toBe('Current page'); + await waitFor(() => expect(selected()).toBe(`favorite-add current page record ${CUSTOMER}`)); + + press(input()!, 'Enter'); + await waitFor(() => expect(favorites).toHaveLength(1)); + // The very entry the record page's star toggles. + expect(favorites[0]).toMatchObject(recordFavoriteItem('crm', CUSTOMER, 'C1', 'Qingdao Haichen Foods')); + }); + + it('a record already starred offers to take the star off', async () => { + const starred = { ...recordFavoriteItem('crm', CUSTOMER, 'C1', 'Qingdao Haichen Foods'), favoritedAt: '2026-11-22T00:00:00.000Z' }; + localStorage.setItem(scopedKey('objectui-favorites', 'u1'), JSON.stringify([starred])); + mountPage(`/apps/crm/${CUSTOMER}/record/C1`); + await waitFor(() => expect(row()).toHaveTextContent('Remove from favorites')); + await waitFor(() => expect(hint()).toBe('removeFavorite')); + press(input()!, 'Enter'); + await waitFor(() => expect(favorites).toEqual([])); + }); + + it('typing takes the group away; clearing brings it back', async () => { + mountPage(`/apps/crm/${CUSTOMER}`); + await waitFor(() => expect(row()).not.toBeNull()); + type(input()!, 'zhang'); + await waitFor(() => expect(row()).toBeNull()); + type(input()!, ''); + await waitFor(() => expect(row()).not.toBeNull()); + }); + + it.each([ + ['the app\'s landing', '/apps/crm'], + ['a dashboard', '/apps/crm/dashboard/sales'], + ['the full search page', '/apps/crm/search'], + ['a create form', `/apps/crm/${CUSTOMER}/new`], + ['an object the console does not serve', '/apps/crm/no_such_object'], + ])('CONTROL: no group on %s', async (_name, path) => { + mountPage(path); + await waitFor(() => expect(input()).not.toBeNull()); + await act(async () => {}); + expect(row()).toBeNull(); + expect(screen.queryByText('Current page')).toBeNull(); + }); + + it('reads the page off the address, by the console\'s own route table', () => { + const served = (name: string) => name === CUSTOMER; + expect(paletteCurrentPage(`/apps/crm/${CUSTOMER}`, served)).toEqual({ kind: 'list', appSegment: 'crm', objectName: CUSTOMER }); + expect(paletteCurrentPage(`/apps/crm/${CUSTOMER}/view/all`, served)?.kind).toBe('list'); + expect(paletteCurrentPage(`/apps/crm/${CUSTOMER}/record/C1/page/print`, served)).toEqual({ + kind: 'record', + appSegment: 'crm', + objectName: CUSTOMER, + recordId: 'C1', + }); + expect(paletteCurrentPage(`/apps/crm/${CUSTOMER}/record/C1/edit`, served)).toBeNull(); + expect(paletteCurrentPage(`/apps/crm/${CUSTOMER}/data`, served)).toBeNull(); + expect(paletteCurrentPage('/apps/crm/reports', served)).toBeNull(); + expect(paletteCurrentPage('/home', served)).toBeNull(); + }); + + it('the footer reads the favorites rows\' kind', () => { + expect(paletteEnterAction(`favorite-add current page list ${CUSTOMER}`)).toBe('addFavorite'); + expect(paletteEnterAction(`favorite-remove current page record ${CUSTOMER}`)).toBe('removeFavorite'); + }); +}); diff --git a/ui/packages/app-shell/src/chrome/CommandPalette.tsx b/ui/packages/app-shell/src/chrome/CommandPalette.tsx index b2c51c49b6b..9920f4c8268 100644 --- a/ui/packages/app-shell/src/chrome/CommandPalette.tsx +++ b/ui/packages/app-shell/src/chrome/CommandPalette.tsx @@ -95,6 +95,7 @@ import { } from './paletteCreate.js'; import { PalettePreviewPane, type PalettePreviewTarget } from './PalettePreviewPane.js'; import { PaletteEnterHint } from './PaletteEnterHint.js'; +import { PaletteCurrentPageGroup, paletteCurrentPage } from './PaletteCurrentPage.js'; /** A recent row names its object by name (objectstack#29121). */ const RECENT_ROW_LABELS: NavTargetLabelOptions = { byName: true }; @@ -517,6 +518,14 @@ function CommandPaletteBody(props: CommandPaletteProps & { gates: NavMemberGates if (firstHitValue !== '') setSelectedValue(firstHitValue); } + // objectstack#36286 — what the page behind the palette offers (its list's + // or its record's favorites entry), above everything else on the empty + // palette; nothing once something is typed. + const currentPage = + open && !inStudio && inputValue.trim() === '' + ? paletteCurrentPage(location.pathname, (name) => objectsByName.has(name)) + : null; + // objectstack#36286 — the app's objects the member may create a record of, // the object of the page the palette was opened on first. Only once // something is typed: the empty palette is the recent records' screen. @@ -589,6 +598,14 @@ function CommandPaletteBody(props: CommandPaletteProps & { gates: NavMemberGates )} + {currentPage && ( + + )} + {/* Recently visited records (cloud-synced via sys_user_preference). Only renders when the input is empty so search results don't compete with this fallback list. */} diff --git a/ui/packages/app-shell/src/chrome/PaletteCurrentPage.tsx b/ui/packages/app-shell/src/chrome/PaletteCurrentPage.tsx new file mode 100644 index 00000000000..b6ae734d502 --- /dev/null +++ b/ui/packages/app-shell/src/chrome/PaletteCurrentPage.tsx @@ -0,0 +1,142 @@ +/** + * ObjectUI + * Copyright (c) 2024-present ObjectStack Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** + * The ⌘K palette's "Current page" group (objectstack#36286): drawn at the top + * of the empty palette, it offers what the page behind the palette offers. + * + * Each row runs the page's own entry, behind the page's own condition, and is + * drawn only where the page draws that entry: + * + * - On an object's list (`ObjectView`), the list's favorites entry of its ⋮ + * More menu: `useObjectListFavorite`, with the plural label the list is + * titled by. + * - On a record page (`RecordDetailView`), the star beside the record's name: + * the `record` favorite `recordFavoriteItem` builds, named by the title the + * record was last visited under. + * + * The page is read off the address, matched against the route table the + * console's own route reads are matched against (`APP_ROUTE_METADATA_READS`), + * so a static route that shadows `:objectName` (`search`, `reports`) is not a + * list. An object the console does not serve opens the not-found state, which + * offers neither entry, so it has no group either. + */ + +import { matchPath, matchRoutes } from 'react-router-dom'; +import { CommandGroup, CommandItem } from '@object-ui/components'; +import { Star, StarOff } from 'lucide-react'; +import { useObjectLabel, useObjectTranslation } from '@object-ui/i18n'; +import { APP_ROUTE_METADATA_READS } from '../console/appRouteMetadataReads.js'; +import { objectViewRouteObject } from '../console/appObjectScope.js'; +import { recordFavoriteItem } from '../context/FavoritesProvider.js'; +import { useFavorites } from '../hooks/useFavorites.js'; +import { useRecentItems } from '../context/RecentItemsProvider.js'; +import { useRecentItemLabel } from '../hooks/useRecentItemLabel.js'; +import { useObjectListFavorite } from '../layout/SidebarItemMenu.js'; +import { servedObjectPluralLabel } from '../hooks/servedObjectLabel.js'; +import { FAVORITE_ADD_KIND, FAVORITE_REMOVE_KIND } from './PaletteEnterHint.js'; + +/** The page behind the palette, when it is one the group offers entries for. */ +export type PaletteCurrentPage = + | { kind: 'list'; appSegment: string; objectName: string } + | { kind: 'record'; appSegment: string; objectName: string; recordId: string }; + +/** The route paths (below `/apps/:appName`) whose element is `RecordDetailView`. */ +const RECORD_PAGE_ROUTES: readonly string[] = [ + ':objectName/record/:recordId', + ':objectName/record/:recordId/page/:pageName', +]; + +/** + * The page at `pathname`: an object's list or a record page, of an object + * `isServedObject` knows; `null` on every other page. + */ +export function paletteCurrentPage( + pathname: string, + isServedObject: (objectName: string) => boolean, +): PaletteCurrentPage | null { + const app = matchPath('/apps/:appSegment/*', pathname); + const appSegment = app?.params.appSegment; + if (!appSegment) return null; + const subPath = app.params['*'] ?? ''; + + const listObject = objectViewRouteObject(subPath); + if (listObject) return isServedObject(listObject) ? { kind: 'list', appSegment, objectName: listObject } : null; + + const matches = matchRoutes( + APP_ROUTE_METADATA_READS.map(({ path }) => ({ path })), + `/${subPath.replace(/^\/+/, '')}`, + ); + const match = matches?.[matches.length - 1]; + if (!match || !RECORD_PAGE_ROUTES.includes(match.route.path ?? '')) return null; + const { objectName, recordId } = match.params; + if (!objectName || !recordId || !isServedObject(objectName)) return null; + return { kind: 'record', appSegment, objectName, recordId }; +} + +/** The object definition keys the group reads. */ +interface CurrentPageObjectDef { + name: string; + label?: unknown; + pluralLabel?: unknown; +} + +/** + * The group's rows for `page`. `run` closes the palette and runs the entry, + * as every palette command does. + */ +export function PaletteCurrentPageGroup({ + page, + objectDef, + run, +}: { + page: PaletteCurrentPage; + objectDef: CurrentPageObjectDef; + run: (command: () => void) => void; +}) { + const { t, language } = useObjectTranslation(); + const { objectPluralLabel } = useObjectLabel(); + const onList = page.kind === 'list'; + // The list's ⋮ More entry, with the title the list is drawn under. + const listFavorite = useObjectListFavorite({ + appSegment: onList ? page.appSegment : undefined, + objectName: onList ? page.objectName : undefined, + label: servedObjectPluralLabel(objectDef, language, objectPluralLabel), + }); + const { isFavorite, toggleFavorite } = useFavorites(); + const { recentItems } = useRecentItems(); + const recentLabel = useRecentItemLabel(); + + let favorite: { isFavorite: boolean; toggle: () => void } | null = listFavorite; + if (page.kind === 'record') { + const id = recordFavoriteItem(page.appSegment, page.objectName, page.recordId, undefined).id; + // The record page records its visit under the favorite's id, with its title. + const visit = recentItems.find((item) => item.type === 'record' && item.id === id); + const item = recordFavoriteItem(page.appSegment, page.objectName, page.recordId, visit ? recentLabel(visit) : undefined); + favorite = { isFavorite: isFavorite(item.id), toggle: () => toggleFavorite(item) }; + } + if (!favorite) return null; + + const { isFavorite: starred, toggle } = favorite; + return ( + + run(toggle)} + > + {starred ? : } + + {starred + ? t('common.removeFromFavorites', { defaultValue: 'Remove from favorites' }) + : t('common.addToFavorites', { defaultValue: 'Add to favorites' })} + + + + ); +} diff --git a/ui/packages/app-shell/src/chrome/PaletteEnterHint.tsx b/ui/packages/app-shell/src/chrome/PaletteEnterHint.tsx index 5597cd4321c..5afbd5ed6d4 100644 --- a/ui/packages/app-shell/src/chrome/PaletteEnterHint.tsx +++ b/ui/packages/app-shell/src/chrome/PaletteEnterHint.tsx @@ -9,7 +9,8 @@ /** * The ⌘K palette's footer (objectstack#36286): what Enter does to the entry * the keyboard is on — open the record, create one, switch app, apply a - * theme, or open the page the entry names. + * theme, add the current page to the favorites or take it off, or open the + * page the entry names. * * The entry is named by its cmdk `value`, and every palette entry's value * starts with the word for its kind (`record …`, `create …`, `app …`); the @@ -21,7 +22,18 @@ import { Kbd } from '@object-ui/components'; import { useObjectTranslation } from '@object-ui/i18n'; /** What Enter does, by the leading word of the selected entry's value. */ -export type PaletteEnterAction = 'openRecord' | 'create' | 'switchApp' | 'applyTheme' | 'open'; +export type PaletteEnterAction = + | 'openRecord' + | 'create' + | 'switchApp' + | 'applyTheme' + | 'addFavorite' + | 'removeFavorite' + | 'open'; + +/** The leading word of a current-page favorites row's value (`PaletteCurrentPage`). */ +export const FAVORITE_ADD_KIND = 'favorite-add'; +export const FAVORITE_REMOVE_KIND = 'favorite-remove'; const ACTION_BY_KIND: Record = { record: 'openRecord', @@ -29,6 +41,8 @@ const ACTION_BY_KIND: Record = { create: 'create', app: 'switchApp', theme: 'applyTheme', + [FAVORITE_ADD_KIND]: 'addFavorite', + [FAVORITE_REMOVE_KIND]: 'removeFavorite', }; /** The action Enter runs on the entry whose cmdk value is `value`; `null` when nothing is selected. */ @@ -52,6 +66,11 @@ export function PaletteEnterHint({ value }: { value: string | null | undefined } return t('console.commandPalette.enterSwitchApp', { defaultValue: 'Switch app' }); case 'applyTheme': return t('console.commandPalette.enterApplyTheme', { defaultValue: 'Apply theme' }); + // The favorites entry's own words, as the page's menu shows them. + case 'addFavorite': + return t('common.addToFavorites', { defaultValue: 'Add to favorites' }); + case 'removeFavorite': + return t('common.removeFromFavorites', { defaultValue: 'Remove from favorites' }); default: return t('console.commandPalette.enterOpen', { defaultValue: 'Open' }); } diff --git a/ui/packages/app-shell/src/context/FavoritesProvider.tsx b/ui/packages/app-shell/src/context/FavoritesProvider.tsx index cfe3d034e5e..fac49ba94fe 100644 --- a/ui/packages/app-shell/src/context/FavoritesProvider.tsx +++ b/ui/packages/app-shell/src/context/FavoritesProvider.tsx @@ -220,6 +220,27 @@ export function withFavoriteOrder(items: FavoriteItem[], ids: string[]): Favorit return withNamedOrder(items, ids, byId); } +/** + * The `record` favorite of record `recordId` of `objectName`, opened under the + * app at `appSegment` and named `title` (the record id until its title is + * known; the record page heals the label on its next visit). The record page's + * star and the ⌘K palette's current-page row (objectstack#36286) both toggle + * this one entry. + */ +export function recordFavoriteItem( + appSegment: string | undefined, + objectName: string, + recordId: string, + title: string | undefined, +): Omit { + return { + id: `record:${objectName}:${recordId}`, + label: title || recordId || '', + href: `/apps/${appSegment}/${objectName}/record/${recordId}`, + type: 'record', + }; +} + /** `items` with the entries `byKey` finds for `keys` put in that order, in the positions they hold. */ function withNamedOrder( items: FavoriteItem[], diff --git a/ui/packages/app-shell/src/views/RecordDetailView.tsx b/ui/packages/app-shell/src/views/RecordDetailView.tsx index 6bdeefe761d..775e1793847 100644 --- a/ui/packages/app-shell/src/views/RecordDetailView.tsx +++ b/ui/packages/app-shell/src/views/RecordDetailView.tsx @@ -110,6 +110,7 @@ import './record-approvals-renderer.js'; import { getRecordDisplayName } from '../utils/index.js'; import { parseAuditValue, collectAuditChanges, collectLookupIds, formatAuditValue, auditImpersonatorId } from '../utils/auditHistoryDisplay.js'; import { useFavorites } from '../hooks/useFavorites.js'; +import { recordFavoriteItem } from '../context/FavoritesProvider.js'; import { RECORD_DETAILS_WIDTH_PREFERENCE, RECORD_RELATED_ARRANGEMENT_PREFERENCE, @@ -1198,12 +1199,7 @@ export function RecordDetailView({ dataSource, objects, onEdit, objectNameOverri const favoriteRecord = useMemo(() => { if (!objectName || !pureRecordId) return null; - return { - id: `record:${objectName}:${pureRecordId}`, - label: recordTitle || pureRecordId || '', - href: `/apps/${appName}/${objectName}/record/${pureRecordId}`, - type: 'record' as const, - }; + return recordFavoriteItem(appName, objectName, pureRecordId, recordTitle); }, [appName, objectName, pureRecordId, recordTitle]); const isRecordFavorite = favoriteRecord ? isFavorite(favoriteRecord.id) : false; const handleToggleRecordFavorite = useCallback(() => { diff --git a/ui/packages/i18n/src/locales/ar.ts b/ui/packages/i18n/src/locales/ar.ts index 3dc5280dbf1..4d93fa72194 100644 --- a/ui/packages/i18n/src/locales/ar.ts +++ b/ui/packages/i18n/src/locales/ar.ts @@ -2945,6 +2945,7 @@ const ar = { enterSwitchApp: "تبديل التطبيق", enterApplyTheme: "تطبيق المظهر", enterOpen: "فتح", + currentPage: "الصفحة الحالية", searching: "جارٍ البحث…", records: "السجلات", recentRecords: "شوهد مؤخراً", diff --git a/ui/packages/i18n/src/locales/de.ts b/ui/packages/i18n/src/locales/de.ts index 0385affdc43..34385992390 100644 --- a/ui/packages/i18n/src/locales/de.ts +++ b/ui/packages/i18n/src/locales/de.ts @@ -2657,6 +2657,7 @@ const de = { enterSwitchApp: "App wechseln", enterApplyTheme: "Design anwenden", enterOpen: "Öffnen", + currentPage: "Aktuelle Seite", searching: "Suche…", records: "Datensätze", recentRecords: "Zuletzt angesehen", diff --git a/ui/packages/i18n/src/locales/en.ts b/ui/packages/i18n/src/locales/en.ts index bc7041bd71c..0e53619b553 100644 --- a/ui/packages/i18n/src/locales/en.ts +++ b/ui/packages/i18n/src/locales/en.ts @@ -2847,6 +2847,7 @@ const en = { enterSwitchApp: 'Switch app', enterApplyTheme: 'Apply theme', enterOpen: 'Open', + currentPage: 'Current page', }, ai: { pendingDrafts: { diff --git a/ui/packages/i18n/src/locales/es.ts b/ui/packages/i18n/src/locales/es.ts index b817784cfb3..0320e4c559b 100644 --- a/ui/packages/i18n/src/locales/es.ts +++ b/ui/packages/i18n/src/locales/es.ts @@ -2731,6 +2731,7 @@ const es = { enterSwitchApp: "Cambiar aplicación", enterApplyTheme: "Aplicar tema", enterOpen: "Abrir", + currentPage: "Página actual", searching: "Buscando…", records: "Registros", recentRecords: "Visto recientemente", diff --git a/ui/packages/i18n/src/locales/fr.ts b/ui/packages/i18n/src/locales/fr.ts index 538ee4dafee..5faadeaa3b1 100644 --- a/ui/packages/i18n/src/locales/fr.ts +++ b/ui/packages/i18n/src/locales/fr.ts @@ -2727,6 +2727,7 @@ const fr = { enterSwitchApp: "Changer d'application", enterApplyTheme: "Appliquer le thème", enterOpen: "Ouvrir", + currentPage: "Page actuelle", searching: "Recherche…", records: "Enregistrements", recentRecords: "Récemment consultés", diff --git a/ui/packages/i18n/src/locales/ja.ts b/ui/packages/i18n/src/locales/ja.ts index 60cae6bbfa4..07d9855484d 100644 --- a/ui/packages/i18n/src/locales/ja.ts +++ b/ui/packages/i18n/src/locales/ja.ts @@ -2659,6 +2659,7 @@ const ja = { enterSwitchApp: "アプリを切り替え", enterApplyTheme: "テーマを適用", enterOpen: "開く", + currentPage: "現在のページ", searching: "検索中…", records: "レコード", recentRecords: "最近閲覧", diff --git a/ui/packages/i18n/src/locales/ko.ts b/ui/packages/i18n/src/locales/ko.ts index efe82544335..bb5c1220829 100644 --- a/ui/packages/i18n/src/locales/ko.ts +++ b/ui/packages/i18n/src/locales/ko.ts @@ -2657,6 +2657,7 @@ const ko = { enterSwitchApp: "앱 전환", enterApplyTheme: "테마 적용", enterOpen: "열기", + currentPage: "현재 페이지", searching: "검색 중…", records: "레코드", recentRecords: "최근 본 항목", diff --git a/ui/packages/i18n/src/locales/pt-BR.ts b/ui/packages/i18n/src/locales/pt-BR.ts index ab404523032..3ef33251e7c 100644 --- a/ui/packages/i18n/src/locales/pt-BR.ts +++ b/ui/packages/i18n/src/locales/pt-BR.ts @@ -2726,6 +2726,7 @@ const pt = { enterSwitchApp: "Trocar aplicativo", enterApplyTheme: "Aplicar tema", enterOpen: "Abrir", + currentPage: "Página atual", searching: "Pesquisando…", records: "Registros", recentRecords: "Vistos recentemente", diff --git a/ui/packages/i18n/src/locales/ru.ts b/ui/packages/i18n/src/locales/ru.ts index 635df3d428f..97f11c4f610 100644 --- a/ui/packages/i18n/src/locales/ru.ts +++ b/ui/packages/i18n/src/locales/ru.ts @@ -2807,6 +2807,7 @@ const ru = { enterSwitchApp: "Переключить приложение", enterApplyTheme: "Применить тему", enterOpen: "Открыть", + currentPage: "Текущая страница", searching: "Поиск…", records: "Записи", recentRecords: "Недавно просмотренные", diff --git a/ui/packages/i18n/src/locales/zh-Hans.ts b/ui/packages/i18n/src/locales/zh-Hans.ts index c18b9b95cce..25916c9fbbd 100644 --- a/ui/packages/i18n/src/locales/zh-Hans.ts +++ b/ui/packages/i18n/src/locales/zh-Hans.ts @@ -2400,6 +2400,7 @@ const zh = { enterSwitchApp: '切换应用', enterApplyTheme: '应用主题', enterOpen: '打开', + currentPage: '当前页面', }, ai: { pendingDrafts: { diff --git a/ui/packages/i18n/src/locales/zh-Hant.ts b/ui/packages/i18n/src/locales/zh-Hant.ts index c18765668e1..2c2e13d55fa 100644 --- a/ui/packages/i18n/src/locales/zh-Hant.ts +++ b/ui/packages/i18n/src/locales/zh-Hant.ts @@ -2400,6 +2400,7 @@ const zhHant = { enterSwitchApp: '切換應用', enterApplyTheme: '應用主題', enterOpen: '開啟', + currentPage: '當前頁面', }, ai: { pendingDrafts: {