diff --git a/.changeset/29771-app-landing-menu-only.md b/.changeset/29771-app-landing-menu-only.md new file mode 100644 index 00000000000..622d1c420e7 --- /dev/null +++ b/.changeset/29771-app-landing-menu-only.md @@ -0,0 +1,14 @@ +--- +'@object-ui/app-shell': patch +'@object-ui/i18n': patch +--- + +Clause-②: yes +Metadata-protocol: none + +An app whose entries live only under `areas` now opens on its first entry there, and an app whose menu holds only links or actions now says it opens from its menu, instead of an empty page (#29771). + +- The app root walks the top-level navigation, then each area's navigation in order. It opens the first object, page, dashboard, report or component entry the member is shown in any of them, and only then the first doc entry. A working entry in an area therefore outranks a doc in the top-level navigation. +- When every entry the member is shown is a `url` or `action` link, the root draws an empty state that says the app opens from its menu (`AppNoAccessEmptyState`, reason `menu-only`). It offers no Setup link: the member has access. +- `@object-ui/i18n` adds `empty.appOpensFromMenu` and `empty.appOpensFromMenuDescription` to all ten locale packs. +- The app designer's preview names the same landing as the console, areas included. diff --git a/ui/packages/app-shell/src/console/AppContent.tsx b/ui/packages/app-shell/src/console/AppContent.tsx index f0cc8dd07e5..7b009358a7c 100644 --- a/ui/packages/app-shell/src/console/AppContent.tsx +++ b/ui/packages/app-shell/src/console/AppContent.tsx @@ -1825,6 +1825,9 @@ function buildItemRoute(item: any, ctx?: NavTemplateContext): string { * walks groups and lands on an `object`, `page`, `dashboard`, `report` or * `component` entry (objectui#12113 added `component`). It skips the item * types that address nothing inside the app (`url`, `separator`, `action`). + * The walk covers every tree the member is shown: the top-level `navigation` + * first, then each `areas[].navigation` in order, so an app whose entries live + * only under `areas` lands too (objectstack-ai/objectstack#29771). * A `doc` entry is passed over there: a working entry outranks reading * material, so an app whose first entry is its manual still opens on its first * working entry. Only when no entry lands does the root open the FIRST `doc` @@ -1850,8 +1853,28 @@ function resolveLandingRoute( const declared = resolveDeclaredLandingRoute(app?.landing, shownTrees, evaluateVisibility, (item) => buildItemRoute(item, ctx), ); - const tree = shownTrees[0] ?? []; - return declared || findFirstRoute(tree, ctx) || findFirstRoute(tree, ctx, DOC_LANDING_TYPES); + return declared || firstRouteAcross(shownTrees, ctx) || firstRouteAcross(shownTrees, ctx, DOC_LANDING_TYPES); +} + +/** + * objectstack-ai/objectstack#29771 — the first route of `types` across every + * tree the member is shown, in order: the top-level `navigation`, then each + * `areas[].navigation` as authored. The preference holds across the trees, not + * per tree: a working entry in any area outranks a `doc` entry in the + * top-level navigation, as it does inside one tree (#29678). The sidebar elects + * the area that holds the landed entry (`electSidebarArea`), so a landing in a + * later area opens with that area active. + */ +function firstRouteAcross( + shownTrees: readonly NavigationItem[][], + ctx?: NavTemplateContext, + types: ReadonlySet = WORKING_LANDING_TYPES, +): string { + for (const tree of shownTrees) { + const route = findFirstRoute(tree ?? [], ctx, types); + if (route) return route; + } + return ''; } /** @@ -1981,13 +2004,14 @@ function AppRootLanding({ if (appServesNoNavigation(shownApp)) { return ; } - // A navigation with no landing: every entry the sidebar draws is a `url` or - // `action` link, or the items live only under `areas`, which the resolver - // does not walk (a `doc` entry lands, objectstack-ai/objectstack#29678). The - // root renders no page of its own and the sidebar offers the entries. It used - // to render the Studio app's overview, `StudioHomePage`, which objectui#12113 - // retired. - return null; + // objectstack-ai/objectstack#29771 — a navigation with no in-app landing: + // every entry the member is shown, in `navigation` and in every area, is a + // `url` or `action` link (a working or `doc` entry anywhere would have + // landed). The root has no page of its own to open, so it says the app opens + // from its menu, instead of the empty `main` it used to render. The member + // does have access here, so the screen offers no Setup link. Before + // objectui#12113 this fell through to the Studio app's overview. + return ; } /** diff --git a/ui/packages/app-shell/src/console/AppNoAccessEmptyState.tsx b/ui/packages/app-shell/src/console/AppNoAccessEmptyState.tsx index 75f26245eb3..84bbf0047b3 100644 --- a/ui/packages/app-shell/src/console/AppNoAccessEmptyState.tsx +++ b/ui/packages/app-shell/src/console/AppNoAccessEmptyState.tsx @@ -23,10 +23,17 @@ * still draws its dashboards and pages, but every tile on them would refuse, * so the description says the caller can read nothing here yet and asks for a * permission set, instead of claiming the app has no pages. + * + * objectstack-ai/objectstack#29771 — and a third: an app that shows the caller + * entries, none of which opens a page inside the app (every one is a `url` or + * `action` link, in `navigation` and in every area). The caller has access; + * the app simply has no page of its own. So this reason has its own title and + * description, which point at the menu, a menu icon instead of the lock, and + * no Setup link: there is nothing to grant. */ import { Link } from 'react-router-dom'; -import { Lock } from 'lucide-react'; +import { Lock, PanelLeft } from 'lucide-react'; // The shared empty state (objectstack#25915): it draws the muted icon square // this screen used to hand-copy, and it is `role="status"`, so "nothing here // for you" is announced instead of being an unlabelled block. `AppContent.tsx` @@ -47,9 +54,13 @@ export interface AppNoAccessEmptyStateProps { /** * Why the app has nothing for this caller: it shows them no navigation * (`'no-navigation'`, the default), or it names only objects they may not - * read (`'no-readable-object'`, objectstack#25338). + * read (`'no-readable-object'`, objectstack#25338), or every entry it + * shows them is a `url` or `action` link, so the app opens from its menu + * and has no page of its own (`'menu-only'`, + * objectstack-ai/objectstack#29771). `setupPath` is not read for + * `'menu-only'`: the caller has access, so there is nothing to grant. */ - reason?: 'no-navigation' | 'no-readable-object'; + reason?: 'no-navigation' | 'no-readable-object' | 'menu-only'; } export function AppNoAccessEmptyState({ app, setupPath, reason = 'no-navigation' }: AppNoAccessEmptyStateProps) { @@ -58,6 +69,24 @@ export function AppNoAccessEmptyState({ app, setupPath, reason = 'no-navigation' // The same label the header's app switcher shows for this app. const label = appLabel({ name: app.name, label: resolveKeyedI18nLabel(app.label, t) }); + if (reason === 'menu-only') { + return ( +
+
+ ); + } + const description = reason === 'no-readable-object' ? setupPath diff --git a/ui/packages/app-shell/src/console/__tests__/AppContent.docOnlyLanding-29678.test.tsx b/ui/packages/app-shell/src/console/__tests__/AppContent.docOnlyLanding-29678.test.tsx index 2ac5d1b17c0..93cbcae82e7 100644 --- a/ui/packages/app-shell/src/console/__tests__/AppContent.docOnlyLanding-29678.test.tsx +++ b/ui/packages/app-shell/src/console/__tests__/AppContent.docOnlyLanding-29678.test.tsx @@ -23,6 +23,15 @@ * - CONTROL: a pending read ahead of the doc still holds the skeleton, and * the doc is landed on only once that read fails. * + * objectstack-ai/objectstack#29771 — the rest of that blank page, pinned in + * its own `describe` below on the same harness: + * - an app whose entries live only under `areas` lands on the first working + * entry across the area trees, and a working entry in an area outranks a + * `doc` entry in the top-level navigation; + * - an app whose every shown entry is a `url` or `action` link draws the + * menu-only empty state (`data-reason="menu-only"`), with no Setup link; + * - CONTROL: a pending read in an area still holds the skeleton. + * * NOTE ON SCOPE: routing only. `ConsoleLayout`, the lazily imported pages and * the host's docs portal are stubbed. */ @@ -326,3 +335,117 @@ describe('objectstack-ai/objectstack#29678 — a doc-only app opens its first do expect(pathname()).toBe('/apps/crm/docs/crm_manual'); }); }); + +const urlEntry = (id: string) => ({ id, type: 'url', label: id, url: 'https://example.com' }); +const actionEntry = (id: string) => ({ id, type: 'action', label: id, actionDef: { actionName: 'export_data' } }); + +describe('objectstack-ai/objectstack#29771 — an areas-only app lands; a url/action-only app says it opens from its menu', () => { + beforeEach(() => { + metadataApps = []; + }); + + it('lands on the first working entry of its areas when the top-level navigation is empty', async () => { + metadataApps = [ + { + name: 'crm', + label: 'CRM', + navigation: [], + areas: [ + { id: 'area_links', label: 'Links', navigation: [urlEntry('nav_site')] }, + { id: 'area_sales', label: 'Sales', navigation: [docEntry('nav_manual', { book: 'crm_manual' }), plainEntry('nav_deals', 'crm_deal')] }, + ], + }, + ]; + const { apiFetch } = heldApiFetch(); + renderConsoleAt('/apps/crm', apiFetch); + + expect(await screen.findByTestId('object-view')).toBeInTheDocument(); + expect(pathname()).toBe('/apps/crm/crm_deal'); + expect(screen.queryByTestId('app-no-access-empty-state')).not.toBeInTheDocument(); + }); + + it('prefers a working entry in an area over a doc entry in the top-level navigation', async () => { + metadataApps = [ + { + name: 'crm', + label: 'CRM', + navigation: [docEntry('nav_manual', { book: 'crm_manual' })], + areas: [{ id: 'area_sales', label: 'Sales', navigation: [plainEntry('nav_deals', 'crm_deal')] }], + }, + ]; + const { apiFetch } = heldApiFetch(); + renderConsoleAt('/apps/crm', apiFetch); + + expect(await screen.findByTestId('object-view')).toBeInTheDocument(); + expect(pathname()).toBe('/apps/crm/crm_deal'); + expect(screen.queryByTestId('docs-probe')).not.toBeInTheDocument(); + }); + + it('lands on a doc in an area when no tree holds a working entry', async () => { + metadataApps = [ + { + name: 'crm_help', + label: 'CRM Help', + navigation: [urlEntry('nav_site')], + areas: [{ id: 'area_help', label: 'Help', navigation: [docEntry('nav_manual', { book: 'crm_manual' })] }], + }, + ]; + const { apiFetch } = heldApiFetch(); + renderConsoleAt('/apps/crm_help', apiFetch); + + expect(await screen.findByTestId('docs-probe')).toHaveTextContent('crm_manual'); + expect(pathname()).toBe('/apps/crm_help/docs/crm_manual'); + }); + + it('draws the menu-only empty state when every shown entry is a `url` or `action` link', async () => { + metadataApps = [ + { + name: 'links', + label: 'Links', + navigation: [urlEntry('nav_site'), { id: 'group_tools', type: 'group', label: 'Tools', children: [actionEntry('nav_run')] }], + areas: [{ id: 'area_more', label: 'More', navigation: [urlEntry('nav_wiki')] }], + }, + ]; + const { apiFetch } = heldApiFetch(); + renderConsoleAt('/apps/links', apiFetch); + + const status = await screen.findByRole('status'); + expect(status).toHaveAttribute('data-reason', 'menu-only'); + expect(screen.getByTestId('app-no-access-empty-state')).toContainElement(status); + expect(status).toHaveTextContent('Links opens from its menu'); + expect(status).not.toHaveTextContent('available to you yet'); + expect(screen.queryByTestId('app-no-access-open-setup')).not.toBeInTheDocument(); + expect(pathname()).toBe('/apps/links'); + }); + + it('CONTROL: an app that shows the member no navigation keeps the no-access reason', async () => { + metadataApps = [{ name: 'links', label: 'Links', navigation: [], areas: [{ id: 'area_empty', label: 'Empty', navigation: [] }] }]; + const { apiFetch } = heldApiFetch(); + renderConsoleAt('/apps/links', apiFetch); + + expect(await screen.findByRole('status')).toHaveAttribute('data-reason', 'no-navigation'); + expect(screen.getByRole('status')).toHaveTextContent('Nothing in Links is available to you yet'); + }); + + it('CONTROL: a pending read in an area holds the skeleton, then lands on the bound entry once shown', async () => { + const envUrl = freshUrl(); + metadataApps = [ + { + name: 'crm', + label: 'CRM', + navigation: [urlEntry('nav_site')], + areas: [{ id: 'area_ops', label: 'Ops', navigation: [boundEntry('nav_env', 'crm_env', envUrl), docEntry('nav_manual', { book: 'crm_manual' })] }], + }, + ]; + const { apiFetch, answer } = heldApiFetch(); + renderConsoleAt('/apps/crm', apiFetch); + + await waitFor(() => expect(apiFetch).toHaveBeenCalledWith(envUrl, expect.objectContaining({ method: 'GET' }))); + expect(screen.getByTestId('app-landing-pending')).toBeInTheDocument(); + expect(pathname()).toBe('/apps/crm'); + + await answer(envUrl, 200, SHOWN); + expect(await screen.findByTestId('object-view')).toBeInTheDocument(); + expect(pathname()).toBe('/apps/crm/crm_env'); + }); +}); diff --git a/ui/packages/app-shell/src/console/__tests__/AppContent.studioRootLanding-12113.test.tsx b/ui/packages/app-shell/src/console/__tests__/AppContent.studioRootLanding-12113.test.tsx index 76a1663476c..da200be276b 100644 --- a/ui/packages/app-shell/src/console/__tests__/AppContent.studioRootLanding-12113.test.tsx +++ b/ui/packages/app-shell/src/console/__tests__/AppContent.studioRootLanding-12113.test.tsx @@ -23,7 +23,8 @@ * - control: an app whose first entry is an `object` lands where it did; * - control: an app that serves no navigation still gets the empty state; * - an app whose entries address no page in the app (only `url` links) - * stays on its root with neither the empty state nor any page. + * stays on its root with no page, and says it opens from its menu + * (objectstack-ai/objectstack#29771; it used to draw nothing at all). * * NOTE ON SCOPE: routing only. `ConsoleLayout` and the lazily imported pages * are stubbed, as in `AppContent.emptyNavigationLanding-12079.test.tsx`. @@ -243,7 +244,7 @@ describe('AppContent — the Studio app root lands on its first navigation entry expect(screen.getByTestId('pathname').textContent).toBe('/apps/clm'); }); - it('an app whose entries address no page in the app stays on its root, with no empty state and no page', async () => { + it('an app whose entries address no page in the app stays on its root, with the menu-only empty state and no page', async () => { metadataApps = [ { name: 'links', @@ -255,7 +256,10 @@ describe('AppContent — the Studio app root lands on its first navigation entry expect(await screen.findByTestId('console-layout')).toHaveAttribute('data-active-app', 'links'); expect(screen.getByTestId('pathname').textContent).toBe('/apps/links'); - expect(screen.queryByTestId('app-no-access-empty-state')).not.toBeInTheDocument(); + // objectstack-ai/objectstack#29771 — the root says the app opens from its + // menu, never the "no access" sentence. + expect(screen.getByTestId('app-no-access-empty-state')).toContainElement(screen.getByRole('status')); + expect(screen.getByRole('status')).toHaveAttribute('data-reason', 'menu-only'); expect(screen.queryByTestId('component-nav-view')).not.toBeInTheDocument(); expect(screen.queryByTestId('metadata-directory-page')).not.toBeInTheDocument(); }); diff --git a/ui/packages/app-shell/src/console/__tests__/AppNoAccessEmptyState.sharedState-25915.test.tsx b/ui/packages/app-shell/src/console/__tests__/AppNoAccessEmptyState.sharedState-25915.test.tsx index 6097b97a121..7583eb9f0d2 100644 --- a/ui/packages/app-shell/src/console/__tests__/AppNoAccessEmptyState.sharedState-25915.test.tsx +++ b/ui/packages/app-shell/src/console/__tests__/AppNoAccessEmptyState.sharedState-25915.test.tsx @@ -60,6 +60,7 @@ describe('AppNoAccessEmptyState draws the shared empty state (objectstack#25915) it.each([ ['no-navigation', undefined], ['no-readable-object', 'no-readable-object' as const], + ['menu-only', 'menu-only' as const], ])('carries data-reason=%s on the status node', (expected, reason) => { renderState(reason ? { reason } : {}); @@ -74,3 +75,21 @@ describe('AppNoAccessEmptyState draws the shared empty state (objectstack#25915) expect(link).toHaveAttribute('href', '/setup/permissions'); }); }); + +describe("AppNoAccessEmptyState's menu-only reason (objectstack-ai/objectstack#29771)", () => { + it('says the app opens from its menu, never the no-access sentence', () => { + renderState({ reason: 'menu-only' }); + + const status = screen.getByRole('status'); + expect(status).toHaveTextContent('{{app}} opens from its menu'); + expect(status).toHaveTextContent('Choose an entry in its menu to open a link or run an action.'); + expect(status).not.toHaveTextContent('available to you yet'); + }); + + it('offers no Setup link even when a setup path is given: the member has access', () => { + renderState({ reason: 'menu-only', setupPath: '/setup/permissions' }); + + expect(screen.getByRole('status')).toHaveAttribute('data-reason', 'menu-only'); + expect(screen.queryByTestId('app-no-access-open-setup')).not.toBeInTheDocument(); + }); +}); diff --git a/ui/packages/app-shell/src/console/appServesNoNavigation.ts b/ui/packages/app-shell/src/console/appServesNoNavigation.ts index c8bf00d81ae..99294b5dd54 100644 --- a/ui/packages/app-shell/src/console/appServesNoNavigation.ts +++ b/ui/packages/app-shell/src/console/appServesNoNavigation.ts @@ -28,13 +28,15 @@ interface AppNavigationLike { * sidebar wires an action dispatcher, so an `action` item counts as content. * * ⛔ This is NOT "no landing route". The landing resolver walks the top-level - * `navigation` only and lands on an `object`, `page`, `dashboard`, `report` or - * `component` entry, so an app can serve entries and still have no landing: - * one whose entries are all `url`, `action` or `doc` links, or one that serves - * them only under `areas`. Such an app is not one the caller has no access in, - * and this answers no for it. The Studio app is not that case: its navigation - * is all `component` entries, and its root lands on the first one - * (objectui#12113). + * `navigation`, then every `areas[].navigation` in order + * (objectstack-ai/objectstack#29771), and lands on the first `object`, `page`, + * `dashboard`, `report` or `component` entry, else on the first `doc` entry + * (objectstack-ai/objectstack#29678). So an app can serve entries and still + * have no landing: one whose entries are all `url` or `action` links. Such an + * app is not one the caller has no access in, and this answers no for it; the + * root says the app opens from its menu instead (`AppNoAccessEmptyState`'s + * `'menu-only'` reason). The Studio app is not that case: its navigation is all + * `component` entries, and its root lands on the first one (objectui#12113). */ export function appServesNoNavigation(app: AppNavigationLike | null | undefined): boolean { const options = { hasActionHandler: true }; diff --git a/ui/packages/app-shell/src/views/metadata-admin/previews/AppPreview.areas-11027.test.tsx b/ui/packages/app-shell/src/views/metadata-admin/previews/AppPreview.areas-11027.test.tsx index fb87a10f48f..75baf0bcbd5 100644 --- a/ui/packages/app-shell/src/views/metadata-admin/previews/AppPreview.areas-11027.test.tsx +++ b/ui/packages/app-shell/src/views/metadata-admin/previews/AppPreview.areas-11027.test.tsx @@ -16,6 +16,11 @@ * - locale map: both keys resolve in the designer `locale`, never as * `[object Object]`; * - the list's heading is designer chrome, read in the designer `locale`. + * + * objectstack-ai/objectstack#29771, in its own `describe`: the landing the + * preview names walks the areas' trees after the top-level one, as the + * console's `firstRouteAcross` does, so an areas-only app names the entry it + * opens on, and a working entry in an area outranks a top-level `doc`. */ import { describe, it, expect, afterEach } from 'vitest'; @@ -113,3 +118,32 @@ describe('AppPreview renders each area with its description (objectui#11027)', ( expect(areaItem('Sales').textContent).toContain('Pipeline work'); }); }); + +describe('AppPreview names the landing across the area trees (objectstack-ai/objectstack#29771)', () => { + it('names the first working entry of the areas for an app with no top-level navigation', () => { + renderApp({ + areas: [ + { id: 'area_links', label: 'Links', navigation: [{ id: 'site', type: 'url', label: 'Website', url: 'https://example.com' }] }, + { id: 'area_sales', label: 'Sales', navigation: [{ id: 'deals', type: 'object', label: 'Deals', objectName: 'deal' }] }, + ], + }); + expect(screen.getByText('→ Deals')).toBeTruthy(); + }); + + it('prefers a working entry in an area over a top-level doc entry', () => { + renderApp({ + navigation: [{ id: 'manual', type: 'doc', label: 'Manual', book: 'crm_manual' }], + areas: [{ id: 'area_sales', label: 'Sales', navigation: [{ id: 'deals', type: 'object', label: 'Deals', objectName: 'deal' }] }], + }); + expect(screen.getByText('→ Deals')).toBeTruthy(); + expect(screen.queryByText('→ Manual')).toBeNull(); + }); + + it('CONTROL: a top-level working entry still wins over an area entry', () => { + renderApp({ + navigation: NAV, + areas: [{ id: 'area_sales', label: 'Sales', navigation: [{ id: 'deals', type: 'object', label: 'Deals', objectName: 'deal' }] }], + }); + expect(screen.getByText('→ Accounts')).toBeTruthy(); + }); +}); diff --git a/ui/packages/app-shell/src/views/metadata-admin/previews/AppPreview.tsx b/ui/packages/app-shell/src/views/metadata-admin/previews/AppPreview.tsx index 0c63caf880f..43d51814833 100644 --- a/ui/packages/app-shell/src/views/metadata-admin/previews/AppPreview.tsx +++ b/ui/packages/app-shell/src/views/metadata-admin/previews/AppPreview.tsx @@ -274,6 +274,20 @@ function findFirstLanding(items: NavItem[], docs = false): NavItem | undefined { return undefined; } +/** + * `findFirstLanding` across every tree, in order: the top-level navigation, + * then each area's, as `firstRouteAcross` walks them in `console/AppContent.tsx` + * (objectstack-ai/objectstack#29771). The pass holds across the trees: a + * working entry in any area outranks a `doc` entry anywhere. + */ +function findFirstLandingAcross(trees: NavItem[][], docs = false): NavItem | undefined { + for (const tree of trees) { + const hit = findFirstLanding(tree, docs); + if (hit) return hit; + } + return undefined; +} + export function AppPreview({ name, draft, editing, selection, onSelectionChange, onPatch, locale }: MetadataPreviewProps) { const appName = String((draft as any).name ?? name ?? ''); // `label` is `I18nLabel` too: resolved in the designer locale, the app's own @@ -310,11 +324,27 @@ export function AppPreview({ name, draft, editing, selection, onSelectionChange, // console shell, so the author sees WHICH entry the app will open on: // depth-first, first item that yields a route (`group` recurses; `url`, // `separator` and `action` address nothing inside the app; a `doc` entry - // only when nothing else lands). - const homeItem = React.useMemo( - () => findFirstLanding(navItems) ?? findFirstLanding(navItems, true), - [navItems], + // only when nothing else lands). The areas' trees follow the top-level one + // (objectstack-ai/objectstack#29771), so an areas-only app names its landing. + const areaNavItems = React.useMemo( + () => + Array.isArray(draft.areas) + ? draft.areas.map((area: unknown) => + normalizeNav( + area && typeof area === 'object' ? (area as Record).navigation : undefined, + appName, + unnamed, + locale, + targetLabel, + ), + ) + : [], + [draft.areas, appName, unnamed, locale, targetLabel], ); + const homeItem = React.useMemo(() => { + const trees = [navItems, ...areaNavItems]; + return findFirstLandingAcross(trees) ?? findFirstLandingAcross(trees, true); + }, [navItems, areaNavItems]); const areas = readAreas(draft.areas, locale); diff --git a/ui/packages/i18n/src/locales/ar.ts b/ui/packages/i18n/src/locales/ar.ts index 1d926f82800..86ed0aef2b1 100644 --- a/ui/packages/i18n/src/locales/ar.ts +++ b/ui/packages/i18n/src/locales/ar.ts @@ -3573,6 +3573,8 @@ const ar = { appNothingAvailableGrantDescription: "لا يحتوي هذا التطبيق على صفحات يمكن لحسابك فتحها. يمكنك منح حق الوصول من الإعداد.", appNoReadableObjectDescription: "لا يمكن لحسابك قراءة أي سجلات في هذا التطبيق بعد. اطلب من المسؤول تعيين مجموعة أذونات لك.", appNoReadableObjectGrantDescription: "لا يمكن لحسابك قراءة أي سجلات في هذا التطبيق بعد. يمكنك منح حق الوصول من الإعداد.", + appOpensFromMenu: "يُستخدم {{app}} من قائمته", + appOpensFromMenuDescription: "لا يحتوي هذا التطبيق على صفحة خاصة به. اختر عنصرًا من قائمته لفتح رابط أو تنفيذ إجراء.", openSetup: "فتح الإعداد", createFirstApp: "إنشاء أول تطبيق", systemSettings: "إعدادات النظام", diff --git a/ui/packages/i18n/src/locales/de.ts b/ui/packages/i18n/src/locales/de.ts index 6b63fa7ab0d..e45a045bea0 100644 --- a/ui/packages/i18n/src/locales/de.ts +++ b/ui/packages/i18n/src/locales/de.ts @@ -3308,6 +3308,8 @@ const de = { appNothingAvailableGrantDescription: "Diese App enthält keine Seiten, die Ihr Konto öffnen kann. Sie können den Zugriff in der Einrichtung gewähren.", appNoReadableObjectDescription: "Ihr Konto kann noch keine Datensätze in dieser App lesen. Bitten Sie einen Administrator, Ihnen einen Berechtigungssatz zuzuweisen.", appNoReadableObjectGrantDescription: "Ihr Konto kann noch keine Datensätze in dieser App lesen. Sie können den Zugriff in der Einrichtung gewähren.", + appOpensFromMenu: "{{app}} wird über das Menü bedient", + appOpensFromMenuDescription: "Diese App hat keine eigene Seite. Wählen Sie einen Eintrag im Menü, um einen Link zu öffnen oder eine Aktion auszuführen.", openSetup: "Einrichtung öffnen", createFirstApp: "Erste App erstellen", systemSettings: "Systemeinstellungen", diff --git a/ui/packages/i18n/src/locales/en.ts b/ui/packages/i18n/src/locales/en.ts index a12caaf8ed9..9fa146ba15e 100644 --- a/ui/packages/i18n/src/locales/en.ts +++ b/ui/packages/i18n/src/locales/en.ts @@ -3923,6 +3923,9 @@ const en = { appNothingAvailableGrantDescription: 'This app has no pages your account can open. You can grant access in Setup.', appNoReadableObjectDescription: 'Your account cannot read any of the records in this app yet. Ask an administrator to assign you a permission set.', appNoReadableObjectGrantDescription: 'Your account cannot read any of the records in this app yet. You can grant access in Setup.', + // objectstack-ai/objectstack#29771 — the app root when every entry it shows is a `url` or `action` link (`AppNoAccessEmptyState`, reason `menu-only`). + appOpensFromMenu: '{{app}} opens from its menu', + appOpensFromMenuDescription: 'This app has no page of its own. Choose an entry in its menu to open a link or run an action.', openSetup: 'Open Setup', createFirstApp: 'Create Your First App', systemSettings: 'System Settings', diff --git a/ui/packages/i18n/src/locales/es.ts b/ui/packages/i18n/src/locales/es.ts index 6b510adc24a..3eaeb146370 100644 --- a/ui/packages/i18n/src/locales/es.ts +++ b/ui/packages/i18n/src/locales/es.ts @@ -3375,6 +3375,8 @@ const es = { appNothingAvailableGrantDescription: "Esta aplicación no tiene páginas que su cuenta pueda abrir. Puede conceder el acceso en la configuración.", appNoReadableObjectDescription: "Su cuenta aún no puede leer ningún registro de esta aplicación. Pida a un administrador que le asigne un conjunto de permisos.", appNoReadableObjectGrantDescription: "Su cuenta aún no puede leer ningún registro de esta aplicación. Puede conceder el acceso en la configuración.", + appOpensFromMenu: "{{app}} se usa desde su menú", + appOpensFromMenuDescription: "Esta aplicación no tiene una página propia. Elija una entrada de su menú para abrir un enlace o ejecutar una acción.", openSetup: "Abrir la configuración", createFirstApp: "Crear primera aplicación", systemSettings: "Configuración del sistema", diff --git a/ui/packages/i18n/src/locales/fr.ts b/ui/packages/i18n/src/locales/fr.ts index 8615213b4c4..523bebab6e3 100644 --- a/ui/packages/i18n/src/locales/fr.ts +++ b/ui/packages/i18n/src/locales/fr.ts @@ -3371,6 +3371,8 @@ const fr = { appNothingAvailableGrantDescription: "Cette application ne contient aucune page que votre compte peut ouvrir. Vous pouvez accorder l'accès dans la configuration.", appNoReadableObjectDescription: "Votre compte ne peut encore lire aucun enregistrement de cette application. Demandez à un administrateur de vous attribuer un ensemble d'autorisations.", appNoReadableObjectGrantDescription: "Votre compte ne peut encore lire aucun enregistrement de cette application. Vous pouvez accorder l'accès dans la configuration.", + appOpensFromMenu: "{{app}} s'utilise depuis son menu", + appOpensFromMenuDescription: "Cette application n'a pas de page propre. Choisissez une entrée de son menu pour ouvrir un lien ou lancer une action.", openSetup: "Ouvrir la configuration", createFirstApp: "Créer la première application", systemSettings: "Paramètres système", diff --git a/ui/packages/i18n/src/locales/ja.ts b/ui/packages/i18n/src/locales/ja.ts index 9137eb3bdaa..ae1b746036c 100644 --- a/ui/packages/i18n/src/locales/ja.ts +++ b/ui/packages/i18n/src/locales/ja.ts @@ -3310,6 +3310,8 @@ const ja = { appNothingAvailableGrantDescription: "このアプリには、お使いのアカウントで開けるページがありません。設定でアクセス権を付与できます。", appNoReadableObjectDescription: "お使いのアカウントでは、このアプリのレコードをまだ読み取れません。管理者に権限セットの割り当てを依頼してください。", appNoReadableObjectGrantDescription: "お使いのアカウントでは、このアプリのレコードをまだ読み取れません。設定でアクセス権を付与できます。", + appOpensFromMenu: "{{app}} はメニューから使います", + appOpensFromMenuDescription: "このアプリには専用のページがありません。メニューの項目を選んで、リンクを開くか操作を実行してください。", openSetup: "設定を開く", createFirstApp: "最初のアプリを作成", systemSettings: "システム設定", diff --git a/ui/packages/i18n/src/locales/ko.ts b/ui/packages/i18n/src/locales/ko.ts index a31503a9014..fff3613ad76 100644 --- a/ui/packages/i18n/src/locales/ko.ts +++ b/ui/packages/i18n/src/locales/ko.ts @@ -3307,6 +3307,8 @@ const ko = { appNothingAvailableGrantDescription: "이 앱에는 계정으로 열 수 있는 페이지가 없습니다. 설정에서 접근 권한을 부여할 수 있습니다.", appNoReadableObjectDescription: "계정으로 아직 이 앱의 레코드를 읽을 수 없습니다. 관리자에게 권한 세트 할당을 요청하세요.", appNoReadableObjectGrantDescription: "계정으로 아직 이 앱의 레코드를 읽을 수 없습니다. 설정에서 접근 권한을 부여할 수 있습니다.", + appOpensFromMenu: "{{app}}은(는) 메뉴에서 사용합니다", + appOpensFromMenuDescription: "이 앱에는 자체 페이지가 없습니다. 메뉴에서 항목을 선택해 링크를 열거나 작업을 실행하세요.", openSetup: "설정 열기", createFirstApp: "첫 번째 앱 만들기", systemSettings: "시스템 설정", diff --git a/ui/packages/i18n/src/locales/pt.ts b/ui/packages/i18n/src/locales/pt.ts index 023c30e6e46..40fa0b9f6f4 100644 --- a/ui/packages/i18n/src/locales/pt.ts +++ b/ui/packages/i18n/src/locales/pt.ts @@ -3370,6 +3370,8 @@ const pt = { appNothingAvailableGrantDescription: "Este aplicativo não tem páginas que sua conta possa abrir. Você pode conceder acesso na configuração.", appNoReadableObjectDescription: "Sua conta ainda não pode ler nenhum registro deste aplicativo. Peça a um administrador que atribua um conjunto de permissões a você.", appNoReadableObjectGrantDescription: "Sua conta ainda não pode ler nenhum registro deste aplicativo. Você pode conceder acesso na configuração.", + appOpensFromMenu: "{{app}} é usado pelo menu", + appOpensFromMenuDescription: "Este aplicativo não tem uma página própria. Escolha uma entrada no menu para abrir um link ou executar uma ação.", openSetup: "Abrir a configuração", createFirstApp: "Criar primeiro aplicativo", systemSettings: "Configurações do sistema", diff --git a/ui/packages/i18n/src/locales/ru.ts b/ui/packages/i18n/src/locales/ru.ts index ea68016db06..f95cfe6aa68 100644 --- a/ui/packages/i18n/src/locales/ru.ts +++ b/ui/packages/i18n/src/locales/ru.ts @@ -3451,6 +3451,8 @@ const ru = { appNothingAvailableGrantDescription: "В этом приложении нет страниц, которые может открыть ваша учётная запись. Доступ можно предоставить в разделе настройки.", appNoReadableObjectDescription: "Ваша учётная запись пока не может читать записи в этом приложении. Попросите администратора назначить вам набор разрешений.", appNoReadableObjectGrantDescription: "Ваша учётная запись пока не может читать записи в этом приложении. Доступ можно предоставить в разделе настройки.", + appOpensFromMenu: "{{app}} работает через меню", + appOpensFromMenuDescription: "У этого приложения нет собственной страницы. Выберите пункт в его меню, чтобы открыть ссылку или выполнить действие.", openSetup: "Открыть настройку", createFirstApp: "Создать приложение", systemSettings: "Системные настройки", diff --git a/ui/packages/i18n/src/locales/zh.ts b/ui/packages/i18n/src/locales/zh.ts index 0bfbf9fe45f..57197cb8bd5 100644 --- a/ui/packages/i18n/src/locales/zh.ts +++ b/ui/packages/i18n/src/locales/zh.ts @@ -3393,6 +3393,8 @@ const zh = { appNothingAvailableGrantDescription: '此应用中没有你的账号可以打开的页面。你可以在 Setup 中授予访问权限。', appNoReadableObjectDescription: '你的账号暂时无法读取此应用中的任何记录。请联系管理员为你分配权限集。', appNoReadableObjectGrantDescription: '你的账号暂时无法读取此应用中的任何记录。你可以在 Setup 中授予访问权限。', + appOpensFromMenu: '{{app}} 的内容都在菜单里', + appOpensFromMenuDescription: '此应用没有自己的页面。请在菜单中选择一个条目,打开链接或执行操作。', openSetup: '打开 Setup', createFirstApp: '创建您的第一个应用', systemSettings: '系统设置',