Skip to content

Kanban, Calendar, Timeline and Map show a refused read's raw error instead of the no-access state #36010

Closed

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ

Family close-out of #35317 (PR #36006, Gantt). The #35317 dev found this out of scope. It was read in code only on origin/main 98b3f87e, and no live 403 was measured.

What happens

When a view's data load fails, four more views print the raw error message:

  • ui/packages/plugin-kanban/src/ObjectKanban.tsx ~1959: "Error loading kanban data: {error.message}"
  • ui/packages/plugin-calendar/src/ObjectCalendar.tsx ~1521: calendar.loadError with message: error.message
  • ui/packages/plugin-timeline/src/ObjectTimeline.tsx ~1013: "Error loading timeline: {error.message}"
  • ui/packages/plugin-map/src/ObjectMap.tsx ~1393: "Error: {error.message}"

A reader who can open the page but not read the view's object would therefore see the raw transport string, as the Gantt did before #36006.

Expected

Each view classifies a failed load with the shared classifyLoadError (@object-ui/react). A forbidden result draws the shared DataEmptyState no-access panel with the existing list.loadErrorForbiddenTitle / list.loadErrorForbiddenMessage keys, the same pattern as #36006, ListView and RelatedList. Other failures keep their current error screen.

Done when

For each of the four views, a pin shows that a 403 draws the no-access state with no raw text, and that a 500 is unchanged (CONTROL). The fix is one PR.

Activity

  1. added
    bug
    priority:p2
    pm:queue
    domain:ui
    on Nov 21, 2026
  2. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ

    Claim: area ux-2 (lease:ux-2, leased by seat 5 at 11-21 03:28Z under Bill 11-21 03:25Z 「你继续处理 ux 非专题下的 p2 任务,并发3」; picked by ux-2 per seat 05:26Z) · 2026-11-21T06:24Z
    Area: ux-2
    Session: session_01Utp6CZrgaiMgTJCnswR6jQ
    Account: os-bill
    Seat: repo:objectstack#5
    Branch: claude/issue-36010-views-no-access-state
    Domain: domain:ui
    File surface: the data-load error path of ui/packages/plugin-kanban/src/ObjectKanban.tsx, ui/packages/plugin-calendar/src/ObjectCalendar.tsx, ui/packages/plugin-timeline/src/ObjectTimeline.tsx and ui/packages/plugin-map/src/ObjectMap.tsx; each plugin's translation-fallback table if it has one; their tests; and a changeset. Reuse classifyLoadError and DataEmptyState and the existing list.loadErrorForbidden* keys, as PR #36006 did. ⛔ No packages/spec/**, no server change, no new i18n key, and nothing outside the load-error branch. Stop and report on any breach.
    Clause-②: no
    Metadata-protocol: none
    Premise: holds on origin/main, read in code. The four views print error.message on a failed load (ObjectKanban ~1959, ObjectCalendar ~1521, ObjectTimeline ~1013, ObjectMap ~1393).
    Hierarchy: no parent issue. This is the family close-out of #35317, filed by this area under the seat's standing permission.
    Serial constraints cleared: os-sales draft PR #35994 touches ObjectKanban.tsx. The hunk here stays inside the load-error branch, and whichever lands later merges main. No other open PR touches these four files.
    Pre-claim deps: PR #36006 (#35317) is in the merge queue. This order reuses only components already on main.
    Review path: L1-a. Approver handoff if Tier H or over 3,000 lines.

  3. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 21, 2026
  4. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui (kanban, calendar, timeline, map plugins) · pm:dispatched (claimed by area ux-2); rationale: area:ux · Bug · when a view's data read is refused, Kanban, Calendar, Timeline and Map print the raw transport error instead of the shared no-access panel (classifyLoadError → DataEmptyState), the same defect #36006 fixes for Gantt; read in code, no live 403 measured; family close-out of #35317, nested under it → p2 as filed (UX rule; the parent's grade) · size S.

  5. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ
    os-dev-report
    Posted 2026-11-21T07:14Z.

    {
     "issue": 36010,
     "status": "done",
     "branch": "claude/issue-36010-views-no-access-state",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/36016",
     "head": "37a06922",
     "session": "session_01Utp6CZrgaiMgTJCnswR6jQ",
     "premise_still_valid": true,
     "summary": "ObjectKanban, ObjectCalendar, ObjectTimeline and ObjectMap now classify a failed data load with classifyLoadError; a forbidden verdict draws DataEmptyState (role=status, Lock icon) with list.loadErrorForbiddenTitle/Message and none of the server text, every other failure keeps each view's current screen. Pattern copied per view (no shared helper: none exists and adding one to @object-ui/components would be a new public export outside the claim's file surface). Kanban and timeline got English fallback rows in their default-translation tables; calendar and map (no table) carry defaultValue; timeline and map use the shared LazyIcon name=lock since they declare no lucide-react. mapStyleError untouched.",
     "shared_vs_copied": "copied per view",
     "a1_readings": {
      "kanban": "403 -> kanban-no-access (red on base ec243639, green on 37a06922); 500 CONTROL green both",
      "calendar": "403 -> calendar-no-access (red on base, green on head); 500 CONTROL green both",
      "timeline": "403 -> timeline-no-access (red on base, green on head); 500 CONTROL green both",
      "map": "403 -> map-no-access (red on base, green on head); 500 CONTROL green both",
      "ablation": "kanban: ablation-replace anchor 1->0, 403 pin red (1 failed | 1 passed), restored blob == HEAD 8bd927f5cdf5"
     },
     "a2_browser": "not done; stated in the PR body",
     "tests": "cd ui && vitest run 4 files at 37a06922: Test Files 4 passed (4), Tests 24 passed (24), lock VERDICT command-exit 0. Red on base (sources reverted to ec243639, tests kept): Tests 4 failed | 20 passed (24), the four failures are exactly the four 403 pins. type-check of the four plugins (tsc --noEmit && tsc -p tsconfig.test.json): VERDICT command-exit 0.",
     "gates": "local: dispatch-gates --commands derived 38 families at 37a06922, all 38 run, each exit 0; --ran reconciliation: 38 derived, 38 run, 0 NOT-MEASURED (derived zero). check:query-options-erasure and check:type-check-debt hit the 300s timeout of the first loop (exit 124), rerun with no timeout exit 0. CI at report time: Governed Surface Queue Guard success; Check Changeset, Lint lanes, Type Check lanes, PR-body guards in_progress; UI lanes not yet listed.",
     "dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm",
     "line_budget": "372 changed lines (+368/-4) over 10 files; under the 3000 threshold; no skills/** touched",
     "files_changed": [
      ".changeset/36010-views-refused-read-no-access.md",
      "ui/packages/plugin-kanban/src/ObjectKanban.tsx",
      "ui/packages/plugin-kanban/src/ObjectKanban.errorClears-10663.test.tsx",
      "ui/packages/plugin-calendar/src/ObjectCalendar.tsx",
      "ui/packages/plugin-calendar/src/ObjectCalendar.errorClears-10663.test.tsx",
      "ui/packages/plugin-timeline/src/ObjectTimeline.tsx",
      "ui/packages/plugin-timeline/src/useTimelineTranslation.ts",
      "ui/packages/plugin-timeline/src/ObjectTimeline.errorClears-10663.test.tsx",
      "ui/packages/plugin-map/src/ObjectMap.tsx",
      "ui/packages/plugin-map/src/ObjectMap.test.tsx"
     ],
     "deviations": [
      "Built @objectstack/spec, formula, sdui-parser, client closures and the ui dependency closure of the four plugins so the tests and type-check could resolve; not part of the diff.",
      "ObjectKanban.tsx hunks: import lines and two fallback-table rows in addition to the load-error branch (needed for the branch); PR #35994 overlap is limited to those."
     ],
     "mcp_calls": "0",
     "api_writes": "2 relay writes: pr_create (POST pulls, assignee os-bill) and this os-dev-report comment (POST issues/36010/comments); plus git push x3",
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": []
    }
  6. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ

    Closed-out · area ux-2 · 2026-11-21T07:57Z

    reading value
    PR #36016 MERGED as be91bfc2f1 (Fixes #36010; this card closed completed)
    review record L1-a ACCEPT 7059353668; no L2 owed (no packages/spec path)

    Delivered:

    • Kanban, Calendar, Timeline and Map no longer show a refused read's raw server error. They show the same calm "no access" panel as the Gantt, lists and related lists, in the reader's language.
    • Other failures keep each view's current error screen, and a map tile-style failure is unaffected.

    State: pm:dispatched removed.

  7. removed
    pm:dispatched
    on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions