From ae419c2c67288c50b6c33581fd3d6d8d57aab1eb Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 21 Nov 2026 06:30:44 +0000 Subject: [PATCH 1/2] fix(ui): kanban, calendar, timeline and map draw the no-access state for a refused read Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ --- .../ObjectCalendar.errorClears-10663.test.tsx | 61 +++++++++++++++++++ .../plugin-calendar/src/ObjectCalendar.tsx | 29 ++++++++- .../ObjectKanban.errorClears-10663.test.tsx | 61 +++++++++++++++++++ .../plugin-kanban/src/ObjectKanban.tsx | 28 +++++++++ ui/packages/plugin-map/src/ObjectMap.test.tsx | 57 +++++++++++++++++ ui/packages/plugin-map/src/ObjectMap.tsx | 31 +++++++++- .../ObjectTimeline.errorClears-10663.test.tsx | 61 +++++++++++++++++++ .../plugin-timeline/src/ObjectTimeline.tsx | 25 +++++++- .../src/useTimelineTranslation.ts | 6 ++ 9 files changed, 355 insertions(+), 4 deletions(-) diff --git a/ui/packages/plugin-calendar/src/ObjectCalendar.errorClears-10663.test.tsx b/ui/packages/plugin-calendar/src/ObjectCalendar.errorClears-10663.test.tsx index 97d0c2e2c95..516a2e85da3 100644 --- a/ui/packages/plugin-calendar/src/ObjectCalendar.errorClears-10663.test.tsx +++ b/ui/packages/plugin-calendar/src/ObjectCalendar.errorClears-10663.test.tsx @@ -101,6 +101,29 @@ async function invalidate() { }); } +/** The shape the ObjectStack adapter throws: status + code decorated on the Error. */ +function refusal(): Error { + const err = new Error( + 'ApiDataSource: HTTP 403 Forbidden — {"error":"PERMISSION_DENIED: no read access to event"}', + ) as Error & { httpStatus?: number; code?: string }; + err.httpStatus = 403; + err.code = 'PERMISSION_DENIED'; + return err; +} + +function serverError(): Error { + const err = new Error('ApiDataSource: HTTP 500 Internal Server Error') as Error & { httpStatus?: number }; + err.httpStatus = 500; + return err; +} + +async function failWith(d: Deferred, err: Error) { + await act(async () => { + d.reject(err); + await Promise.resolve(); + }); +} + const CALENDAR = { startDateField: 'due', titleField: 'name' }; const BLOCK = { type: 'object-calendar', objectName: 'event', calendar: CALENDAR }; @@ -211,3 +234,41 @@ describe('object-calendar clears its error when a later load commits rows (objec expect(screen.getByText('Handed over')).toBeTruthy(); }); }); + +/** + * A refused read draws the calm no-access state, not the raw error. + * + * A reader who may open the page but not read the calendar's object used to see + * the transport's own string ("ApiDataSource: HTTP 403 Forbidden — ..."). The + * calendar now classifies a failed load with the shared `classifyLoadError` and, + * for a `forbidden` read, draws the shared `list.loadErrorForbidden*` sentence + * as a neutral `role="status"` panel. Every other failure keeps the existing + * error screen (CONTROL). + */ +describe('object-calendar: a refused read draws the no-access state', () => { + it('a 403 read draws the no-access state, with none of the server text', async () => { + const { dataSource, finds } = makeDeferredDataSource(); + const { container } = mount(dataSource); + await waitFor(() => expect(finds).toHaveLength(1)); + await failWith(finds[0], refusal()); + + const panel = await screen.findByTestId('calendar-no-access'); + expect(panel.getAttribute('role')).toBe('status'); + expect(panel.textContent).toContain('You don\u2019t have access'); + expect(panel.textContent).toContain('You don\u2019t have permission to view these records.'); + const text = container.textContent ?? ''; + expect(text).not.toContain('Error'); + expect(text).not.toContain('PERMISSION_DENIED'); + expect(text).not.toContain('HTTP 403'); + }); + + it('CONTROL: a 500 keeps the existing error screen', async () => { + const { dataSource, finds } = makeDeferredDataSource(); + mount(dataSource); + await waitFor(() => expect(finds).toHaveLength(1)); + await failWith(finds[0], serverError()); + + expect(errorShown('ApiDataSource: HTTP 500 Internal Server Error')).toBe(true); + expect(screen.queryByTestId('calendar-no-access')).toBeNull(); + }); +}); diff --git a/ui/packages/plugin-calendar/src/ObjectCalendar.tsx b/ui/packages/plugin-calendar/src/ObjectCalendar.tsx index 8e0352a2bba..7e60adc5fa2 100644 --- a/ui/packages/plugin-calendar/src/ObjectCalendar.tsx +++ b/ui/packages/plugin-calendar/src/ObjectCalendar.tsx @@ -49,6 +49,7 @@ import { useDataInvalidation, useFilterScope, useResolvedFilter, + classifyLoadError, } from '@object-ui/react'; import { RECORD_OVERLAY_DEFAULT_WIDTH, @@ -56,7 +57,7 @@ import { deriveRecordPageHref, } from '@object-ui/plugin-detail'; import { usePermissions } from '@object-ui/permissions'; -import { ChevronRight } from 'lucide-react'; +import { ChevronRight, Lock } from 'lucide-react'; import { cn, useIsMobile, @@ -70,6 +71,7 @@ import { Input, Label, NavigationOverlay, + DataEmptyState, legacyRecordDrawerWidthKey, recordOverlayWidthStorageKey, toast, @@ -1508,6 +1510,31 @@ export const ObjectCalendar: React.FC = ({ ); } + // A refused read (403 / PERMISSION_DENIED, by the shared `classifyLoadError` + // verdict the list page, the related list and the gantt use) is not a + // failure of anything the reader did: they may open the page without being + // granted the records this calendar reads. It is drawn as the calm no-access + // state (`role="status"`, the shared `list.loadErrorForbidden*` sentence in + // the reader's language), never the server's text. Every other failure + // keeps the error screen below. + // This package has no default-translation table: the `defaultValue`s are the + // provider-less fallback and say exactly what the `en` pack says. + if (error && classifyLoadError(error) === 'forbidden') { + return ( +
+ } + title={t('list.loadErrorForbiddenTitle', { defaultValue: 'You don’t have access' })} + description={t('list.loadErrorForbiddenMessage', { + defaultValue: 'You don’t have permission to view these records. Contact your administrator if you think you should have access.', + })} + /> +
+ ); + } + if (error) { return (
diff --git a/ui/packages/plugin-kanban/src/ObjectKanban.errorClears-10663.test.tsx b/ui/packages/plugin-kanban/src/ObjectKanban.errorClears-10663.test.tsx index ec2095b0972..6e9dd1f7190 100644 --- a/ui/packages/plugin-kanban/src/ObjectKanban.errorClears-10663.test.tsx +++ b/ui/packages/plugin-kanban/src/ObjectKanban.errorClears-10663.test.tsx @@ -98,6 +98,29 @@ async function invalidate() { }); } +/** The shape the ObjectStack adapter throws: status + code decorated on the Error. */ +function refusal(): Error { + const err = new Error( + 'ApiDataSource: HTTP 403 Forbidden — {"error":"PERMISSION_DENIED: no read access to deal"}', + ) as Error & { httpStatus?: number; code?: string }; + err.httpStatus = 403; + err.code = 'PERMISSION_DENIED'; + return err; +} + +function serverError(): Error { + const err = new Error('ApiDataSource: HTTP 500 Internal Server Error') as Error & { httpStatus?: number }; + err.httpStatus = 500; + return err; +} + +async function failWith(d: Deferred, err: Error) { + await act(async () => { + d.reject(err); + await Promise.resolve(); + }); +} + const BLOCK = { type: 'object-kanban', objectName: 'deal', groupBy: 'status', columns: [{ id: 'open', title: 'Open' }] }; function mount(dataSource: ReturnType['dataSource']) { @@ -191,3 +214,41 @@ describe('object-kanban clears its error when a later load commits cards (object expect(errorShown('current run failed'), 'a superseded answer cleared the current error').toBe(true); }); }); + +/** + * A refused read draws the calm no-access state, not the raw error. + * + * A reader who may open the page but not read the kanban's object used to see + * the transport's own string ("ApiDataSource: HTTP 403 Forbidden — ..."). The + * kanban now classifies a failed load with the shared `classifyLoadError` and, + * for a `forbidden` read, draws the shared `list.loadErrorForbidden*` sentence + * as a neutral `role="status"` panel. Every other failure keeps the existing + * error screen (CONTROL). + */ +describe('object-kanban: a refused read draws the no-access state', () => { + it('a 403 read draws the no-access state, with none of the server text', async () => { + const { dataSource, finds } = makeDeferredDataSource(); + const { container } = mount(dataSource); + await waitFor(() => expect(finds).toHaveLength(1)); + await failWith(finds[0], refusal()); + + const panel = await screen.findByTestId('kanban-no-access'); + expect(panel.getAttribute('role')).toBe('status'); + expect(panel.textContent).toContain('You don\u2019t have access'); + expect(panel.textContent).toContain('You don\u2019t have permission to view these records.'); + const text = container.textContent ?? ''; + expect(text).not.toContain('Error'); + expect(text).not.toContain('PERMISSION_DENIED'); + expect(text).not.toContain('HTTP 403'); + }); + + it('CONTROL: a 500 keeps the existing error screen', async () => { + const { dataSource, finds } = makeDeferredDataSource(); + mount(dataSource); + await waitFor(() => expect(finds).toHaveLength(1)); + await failWith(finds[0], serverError()); + + expect(errorShown('ApiDataSource: HTTP 500 Internal Server Error')).toBe(true); + expect(screen.queryByTestId('kanban-no-access')).toBeNull(); + }); +}); diff --git a/ui/packages/plugin-kanban/src/ObjectKanban.tsx b/ui/packages/plugin-kanban/src/ObjectKanban.tsx index 9965fee9064..8bd927f5cdf 100644 --- a/ui/packages/plugin-kanban/src/ObjectKanban.tsx +++ b/ui/packages/plugin-kanban/src/ObjectKanban.tsx @@ -22,14 +22,17 @@ import { useFilterScope, useResolvedFilter, usePredicateScope, + classifyLoadError, } from '@object-ui/react'; import { NavigationOverlay, + DataEmptyState, legacyRecordDrawerWidthKey, recordOverlayWidthStorageKey, toast, } from '@object-ui/components'; import { createSafeTranslation } from '@object-ui/i18n'; +import { Lock } from 'lucide-react'; import { RECORD_OVERLAY_DEFAULT_WIDTH, RecordDetailPanel, @@ -91,6 +94,12 @@ import { lanesFromOptions, type LaneLifecycleKind } from './kanbanLaneLifecycle' const KANBAN_DEFAULT_TRANSLATIONS: Record = { 'detail.recordDetail': 'Record Detail', 'detail.recordDetailWithLabel': '{{label}} Detail', + // The refused-read state reuses the shared no-access sentence the list page + // and the related list draw, so a host pack that translates them translates + // this board too; these rows are the provider-less fallback and say exactly + // what the `en` pack says. + 'list.loadErrorForbiddenTitle': 'You don’t have access', + 'list.loadErrorForbiddenMessage': 'You don’t have permission to view these records. Contact your administrator if you think you should have access.', }; /** @@ -1953,6 +1962,25 @@ export const ObjectKanban: React.FC = ({ // Error branch renders only after every hook above has run, so hook order // stays stable across renders (no early return before the hooks). + // A refused read (403 / PERMISSION_DENIED, by the shared `classifyLoadError` + // verdict the list page, the related list and the gantt use) is not a + // failure of anything the reader did: they may open the page without being + // granted the records this board reads. It is drawn as the calm no-access + // state (`role="status"`, the shared `list.loadErrorForbidden*` sentence in + // the reader's language), never the server's text. Every other failure + // keeps the error screen below. + if (error && classifyLoadError(error) === 'forbidden') { + return ( + } + title={t('list.loadErrorForbiddenTitle')} + description={t('list.loadErrorForbiddenMessage')} + /> + ); + } + if (error) { return (
diff --git a/ui/packages/plugin-map/src/ObjectMap.test.tsx b/ui/packages/plugin-map/src/ObjectMap.test.tsx index e15696a07b6..fe6e19d758b 100644 --- a/ui/packages/plugin-map/src/ObjectMap.test.tsx +++ b/ui/packages/plugin-map/src/ObjectMap.test.tsx @@ -109,3 +109,60 @@ describe('ObjectMap', () => { }); }); }); + +/** + * A refused read draws the calm no-access state, not the raw error. + * + * A reader who may open the page but not read the map's object used to see + * the transport's own string ("Error: ApiDataSource: HTTP 403 Forbidden — ..."). + * The map now classifies a failed load with the shared `classifyLoadError` and, + * for a `forbidden` read, draws the shared `list.loadErrorForbidden*` sentence + * as a neutral `role="status"` panel. Every other failure keeps the existing + * error screen (CONTROL). + */ +describe('ObjectMap: a refused read draws the no-access state', () => { + const schema: any = { + type: 'map', + map: { latitudeField: 'latitude', longitudeField: 'longitude', titleField: 'name' }, + data: { provider: 'object', object: 'locations' }, + }; + + function failingSource(err: Error): DataSource { + return { + find: vi.fn(async () => { throw err; }), + findOne: vi.fn(), + create: vi.fn(), + update: vi.fn(), + delete: vi.fn(), + getObjectSchema: vi.fn(), + } as unknown as DataSource; + } + + it('a 403 read draws the no-access state, with none of the server text', async () => { + const err = new Error( + 'ApiDataSource: HTTP 403 Forbidden — {"error":"PERMISSION_DENIED: no read access to locations"}', + ) as Error & { httpStatus?: number; code?: string }; + err.httpStatus = 403; + err.code = 'PERMISSION_DENIED'; + const { container } = render(); + + const panel = await screen.findByTestId('map-no-access'); + expect(panel.getAttribute('role')).toBe('status'); + expect(panel.textContent).toContain('You don’t have access'); + expect(panel.textContent).toContain('You don’t have permission to view these records.'); + const text = container.textContent ?? ''; + expect(text).not.toContain('Error'); + expect(text).not.toContain('PERMISSION_DENIED'); + expect(text).not.toContain('HTTP 403'); + expect(screen.queryByLabelText('Map')).toBeNull(); + }); + + it('CONTROL: a 500 keeps the existing error screen', async () => { + const err = new Error('ApiDataSource: HTTP 500 Internal Server Error') as Error & { httpStatus?: number }; + err.httpStatus = 500; + render(); + + expect(await screen.findByText('Error: ApiDataSource: HTTP 500 Internal Server Error')).toBeTruthy(); + expect(screen.queryByTestId('map-no-access')).toBeNull(); + }); +}); diff --git a/ui/packages/plugin-map/src/ObjectMap.tsx b/ui/packages/plugin-map/src/ObjectMap.tsx index 4a419ea10b4..84b083f43e0 100644 --- a/ui/packages/plugin-map/src/ObjectMap.tsx +++ b/ui/packages/plugin-map/src/ObjectMap.tsx @@ -32,8 +32,9 @@ import { useResolvedFilter, useObjectTranslation, useHostMapStyle, + classifyLoadError, } from '@object-ui/react'; -import { NavigationOverlay, cn, useIsMobile } from '@object-ui/components'; +import { NavigationOverlay, DataEmptyState, LazyIcon, cn, useIsMobile } from '@object-ui/components'; import { usePermissions } from '@object-ui/permissions'; import { RecordDetailPanel } from '@object-ui/plugin-detail'; import { @@ -1386,6 +1387,34 @@ export const ObjectMap: React.FC = ({ ); } + // A refused read (403 / PERMISSION_DENIED, by the shared `classifyLoadError` + // verdict the list page, the related list and the gantt use) is not a + // failure of anything the reader did: they may open the page without being + // granted the records this map reads. It is drawn as the calm no-access + // state (`role="status"`, the shared `list.loadErrorForbidden*` sentence in + // the reader's language), never the server's text. Every other failure + // keeps the error screen below. + // This package has no default-translation table, so the `defaultValue`s are + // the provider-less fallback (they say exactly what the `en` pack says), and + // the Lock glyph comes through the shared `LazyIcon`: it declares no icon + // library of its own. The style/tile failure (`mapStyleError`) is not a data + // load and is not routed here. + if (error && classifyLoadError(error) === 'forbidden') { + return ( +
+ } + title={t('list.loadErrorForbiddenTitle', { defaultValue: 'You don’t have access' })} + description={t('list.loadErrorForbiddenMessage', { + defaultValue: 'You don’t have permission to view these records. Contact your administrator if you think you should have access.', + })} + /> +
+ ); + } + if (error) { return (
diff --git a/ui/packages/plugin-timeline/src/ObjectTimeline.errorClears-10663.test.tsx b/ui/packages/plugin-timeline/src/ObjectTimeline.errorClears-10663.test.tsx index 92823a76396..4ce706e6f73 100644 --- a/ui/packages/plugin-timeline/src/ObjectTimeline.errorClears-10663.test.tsx +++ b/ui/packages/plugin-timeline/src/ObjectTimeline.errorClears-10663.test.tsx @@ -98,6 +98,29 @@ async function invalidate() { }); } +/** The shape the ObjectStack adapter throws: status + code decorated on the Error. */ +function refusal(): Error { + const err = new Error( + 'ApiDataSource: HTTP 403 Forbidden — {"error":"PERMISSION_DENIED: no read access to task"}', + ) as Error & { httpStatus?: number; code?: string }; + err.httpStatus = 403; + err.code = 'PERMISSION_DENIED'; + return err; +} + +function serverError(): Error { + const err = new Error('ApiDataSource: HTTP 500 Internal Server Error') as Error & { httpStatus?: number }; + err.httpStatus = 500; + return err; +} + +async function failWith(d: Deferred, err: Error) { + await act(async () => { + d.reject(err); + await Promise.resolve(); + }); +} + const BLOCK = { type: 'object-timeline', objectName: 'task', timeline: { titleField: 'name', startDateField: 'due' } }; function mount(dataSource: ReturnType['dataSource']) { @@ -207,3 +230,41 @@ describe('object-timeline clears its error when a later load commits rows (objec expect(screen.getByText('Current rows')).toBeTruthy(); }); }); + +/** + * A refused read draws the calm no-access state, not the raw error. + * + * A reader who may open the page but not read the timeline's object used to see + * the transport's own string ("ApiDataSource: HTTP 403 Forbidden — ..."). The + * timeline now classifies a failed load with the shared `classifyLoadError` and, + * for a `forbidden` read, draws the shared `list.loadErrorForbidden*` sentence + * as a neutral `role="status"` panel. Every other failure keeps the existing + * error screen (CONTROL). + */ +describe('object-timeline: a refused read draws the no-access state', () => { + it('a 403 read draws the no-access state, with none of the server text', async () => { + const { dataSource, finds } = makeDeferredDataSource(); + const { container } = mount(dataSource); + await waitFor(() => expect(finds).toHaveLength(1)); + await failWith(finds[0], refusal()); + + const panel = await screen.findByTestId('timeline-no-access'); + expect(panel.getAttribute('role')).toBe('status'); + expect(panel.textContent).toContain('You don\u2019t have access'); + expect(panel.textContent).toContain('You don\u2019t have permission to view these records.'); + const text = container.textContent ?? ''; + expect(text).not.toContain('Error'); + expect(text).not.toContain('PERMISSION_DENIED'); + expect(text).not.toContain('HTTP 403'); + }); + + it('CONTROL: a 500 keeps the existing error screen', async () => { + const { dataSource, finds } = makeDeferredDataSource(); + mount(dataSource); + await waitFor(() => expect(finds).toHaveLength(1)); + await failWith(finds[0], serverError()); + + expect(errorShown('ApiDataSource: HTTP 500 Internal Server Error')).toBe(true); + expect(screen.queryByTestId('timeline-no-access')).toBeNull(); + }); +}); diff --git a/ui/packages/plugin-timeline/src/ObjectTimeline.tsx b/ui/packages/plugin-timeline/src/ObjectTimeline.tsx index 2319e6fed9c..0575aebc219 100644 --- a/ui/packages/plugin-timeline/src/ObjectTimeline.tsx +++ b/ui/packages/plugin-timeline/src/ObjectTimeline.tsx @@ -8,8 +8,8 @@ import React, { useEffect, useState, useCallback, useMemo, useRef } from 'react'; import type { DataSource, TimelineSchema, ListViewTimelineConfig, ViewNavigationConfig } from '@object-ui/types'; -import { useDataScope, useNavigationOverlay, useSafeFieldLabel, useSettledSchema, useDataInvalidation, useFilterScope, useResolvedFilter } from '@object-ui/react'; -import { NavigationOverlay } from '@object-ui/components'; +import { useDataScope, useNavigationOverlay, useSafeFieldLabel, useSettledSchema, useDataInvalidation, useFilterScope, useResolvedFilter, classifyLoadError } from '@object-ui/react'; +import { NavigationOverlay, DataEmptyState, LazyIcon } from '@object-ui/components'; import { extractRecords, buildExpandFields, convertSortToQueryParams, createFieldColorResolver, recordDisplayValueAt, toDisplayDate } from '@object-ui/core'; import { usePermissions } from '@object-ui/permissions'; import { firstDayOfWeek, useDisplayLocale } from '@object-ui/i18n'; @@ -1007,6 +1007,27 @@ export const ObjectTimeline: React.FC = ({ }, }; + // A refused read (403 / PERMISSION_DENIED, by the shared `classifyLoadError` + // verdict the list page, the related list and the gantt use) is not a + // failure of anything the reader did: they may open the page without being + // granted the records this timeline reads. It is drawn as the calm no-access + // state (`role="status"`, the shared `list.loadErrorForbidden*` sentence in + // the reader's language), never the server's text. Every other failure + // keeps the error screen below. + // The Lock glyph comes through the shared `LazyIcon`: this package declares + // no icon library of its own. + if (error && classifyLoadError(error) === 'forbidden') { + return ( + } + title={t('list.loadErrorForbiddenTitle')} + description={t('list.loadErrorForbiddenMessage')} + /> + ); + } + if (error) { return (
diff --git a/ui/packages/plugin-timeline/src/useTimelineTranslation.ts b/ui/packages/plugin-timeline/src/useTimelineTranslation.ts index 9806e88f469..e0c73302c7d 100644 --- a/ui/packages/plugin-timeline/src/useTimelineTranslation.ts +++ b/ui/packages/plugin-timeline/src/useTimelineTranslation.ts @@ -97,6 +97,12 @@ export const TIMELINE_DEFAULT_TRANSLATIONS: Record = { // twin of `en.ts`'s, as the strings above are. 'timeline.unconfigured.noDateAxis': 'Timeline date axis required — this view declares no date field, and an object-bound timeline will not invent one. Declare one of: {{fields}}. The first is the spec spelling; the rest are legacy aliases.', + // The refused-read state reuses the shared no-access sentence the list page + // and the related list draw, so a host pack that translates them translates + // this timeline too; these rows are the provider-less fallback and say exactly + // what the `en` pack says. + 'list.loadErrorForbiddenTitle': 'You don’t have access', + 'list.loadErrorForbiddenMessage': 'You don’t have permission to view these records. Contact your administrator if you think you should have access.', }; const TEST_KEY = 'timeline.bucket.today'; From 37a0692251a1813d729320cbc18fbaec3bc339c4 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 21 Nov 2026 06:37:56 +0000 Subject: [PATCH 2/2] chore(changeset): refused read draws the no-access state in four views Co-authored-by: Claude Claude-Session: https://claude.ai/code/session_01Utp6CZrgaiMgTJCnswR6jQ --- .changeset/36010-views-refused-read-no-access.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .changeset/36010-views-refused-read-no-access.md diff --git a/.changeset/36010-views-refused-read-no-access.md b/.changeset/36010-views-refused-read-no-access.md new file mode 100644 index 00000000000..d0f6921a955 --- /dev/null +++ b/.changeset/36010-views-refused-read-no-access.md @@ -0,0 +1,13 @@ +--- +'@object-ui/plugin-kanban': patch +'@object-ui/plugin-calendar': patch +'@object-ui/plugin-timeline': patch +'@object-ui/plugin-map': patch +--- + +fix(ui): the kanban, calendar, timeline and map views draw the no-access state for a refused read, not the raw error + +Clause-②: no +Metadata-protocol: none + +A reader who may open a page but is not granted the records its kanban board, calendar, timeline or map reads saw the transport's own string where the view would be, untranslated (for example `Error loading kanban data: ApiDataSource: HTTP 403 Forbidden — {…}`). Each of the four views now classifies a failed load with the shared load-error verdict the list page, the related list and the Gantt chart use, and for a permission refusal (a 403, or a `PERMISSION_DENIED` / `FORBIDDEN` code) draws the calm no-access state those surfaces draw: a neutral status panel with the shared `list.loadErrorForbiddenTitle` / `list.loadErrorForbiddenMessage` sentence in the reader's language, and none of the server's text. Every other failure (a 500, a dropped connection) keeps each view's existing error screen. The map's tile-style failure is not a data load and is unchanged.