Skip to content

console: the project page's Gantt shows a raw no-permission error to a user who can read the project but not its tasks #35317

Closed
1 of 1 issue completed

Description

@objectstack-fleet

repo:hotcrm#2 · os-mickey · session_01ASNY8XiE8ZJYbrmzFDtS9g

Filing gate ①: a user-visible defect, measured once.

Business reason. A sales manager opening a project (they may read projects but not project tasks) sees a raw permission error where the Gantt chart would be, in both en and zh-CN. A component the viewer cannot read should show a calm empty or no-access state, not an error.

Reach. objectstack-ai/hotcrm#2665 (comment 6988592923, row 6), @objectstack/* 18.6.0: sales.manager on a HotCRM project page.

Expected: the Gantt, like other related views, renders a friendly no-access or empty state.

Seam. renderer: the project Gantt block's error path on a 403 from the task query.

Dedupe: gantt raw permission error project tasks returned 38 hits, none on point.

Reader. objectstack triage grades it and routes it to the owning lane. Not a claim; awaits triage. Filed on the maintainer's word in hotcrm seat 2's session (2026-11-19): 「平台缺口全部立卡」, after an independent fable-tier review of HotCRM's pending decisions surfaced it.

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui; rationale: area:ux · Bug · Cosmetic (a raw no-permission error where the Gantt would be) · end users → p2 (UX rule).

  2. added
    domain:ui
    pm:queue
    priority:p2
    on Nov 19, 2026
  3. 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」; re-picked by ux-2 per seat 05:29Z after releasing #35645) · 2026-11-21T05:31Z
    Area: ux-2
    Session: session_01Utp6CZrgaiMgTJCnswR6jQ
    Account: os-bill
    Seat: repo:objectstack#5
    Branch: claude/issue-35317-gantt-no-access-state
    Domain: domain:ui
    File surface: ui/packages/plugin-gantt/src/ (the ObjectGantt data-load error path), its tests, existing shared empty / no-access state components and i18n keys reused where they exist (a new key only if none fits), and a changeset. ⛔ No packages/spec/**, no server change, and no change to other views' error paths. Stop and report on any breach.
    Clause-②: no
    Metadata-protocol: none
    Premise: to verify on origin/main. When the task query answers 403, ObjectGantt shows the raw permission error instead of the calm no-access or empty state other related views draw.
    Hierarchy: no parent issue, and the body names no epic.
    Serial constraints cleared: none. A live read of all open PRs' files at claim time found none touching ui/packages/plugin-gantt/.
    Prior rulings read: card thread → triage only (p2, UX rule).
    Review path: L1-a. Approver handoff if Tier H or over 3,000 lines.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6CZrgaiMgTJCnswR6jQ

    os-dev-report

    {
      "issue": 35317,
      "status": "done",
      "branch": "claude/issue-35317-gantt-no-access-state",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36006",
      "head": "bd75c1b9",
      "session": "session_01Utp6CZrgaiMgTJCnswR6jQ",
      "premise_still_valid": true,
      "summary": "Premise confirmed on origin/main 98b3f87e: ObjectGantt drew every failed task load as 'Error: ERROR_MESSAGE', so a 403 showed the raw transport string. A failed load is now classified with the shared classifyLoadError (@object-ui/react, the verdict ListView and RelatedList use). The forbidden kind draws the shared DataEmptyState (@object-ui/components) as a role=status panel with a Lock glyph and the existing list.loadErrorForbiddenTitle / list.loadErrorForbiddenMessage keys, which all 10 locale packs already carry. No server text is shown, and no new key was added. The two rows were added to GANTT_DEFAULT_TRANSLATIONS as the provider-less fallback, value-equal to en. A 500 or network failure keeps the old error screen. The error is caught in ObjectGantt's own reload and drawn by its own early return, and no block error boundary is involved, so ObjectGantt is the lowest layer that covers both the project page and every other host. Browser reading (A2) was not measured: no cheap fixture exists, and the PR body says so.",
      "shared_component_reused": "DataEmptyState (@object-ui/components) + classifyLoadError (@object-ui/react) + i18n keys list.loadErrorForbiddenTitle / list.loadErrorForbiddenMessage (all 10 packs), the same pattern RelatedListLoadFailed uses",
      "a1_readings": {
        "red_on_main": "pins-only commit, harness -t refusedRead: Tests 2 failed | 2 passed | 58 skipped (62). Both 403 cases failed with 'Unable to find an element by: [data-testid=\"gantt-no-access\"]'; both CONTROLs (500, rows load) passed",
        "green_after": "harness file: Tests 63 passed (63) (5 refusedRead cases incl. the zh pin '无权访问'); whole package (vitest run packages/plugin-gantt/): Test Files 96 passed | 1 skipped (97), Tests 799 passed | 114 skipped (913), lock VERDICT command-exit 0",
        "ablation": "scripts/ablation-replace.mjs anchor `=== 'forbidden') {` to `=== ('ABLATED' as string)) {`, anchor 1 to 0, blob 24cf7bda to 77e0df58: Tests 3 failed | 2 passed (the 3 refusal cases red, the 2 CONTROLs green). The tool restored the file: blob == HEAD 24cf7bda, git diff HEAD empty. No dist step needed: the test imports ./ObjectGantt from src"
      },
      "tests": "head bd75c1b9 · cd ui && pnpm exec vitest run --maxWorkers=2 packages/plugin-gantt/ to lock VERDICT command-exit 0, Test Files 96 passed | 1 skipped (97), Tests 799 passed | 114 skipped (913) · pnpm --filter @object-ui/plugin-gantt run type-check (tsc --noEmit && tsc -p tsconfig.test.json) to lock VERDICT command-exit 0 · ui node scripts/check-i18n-call-site-keys.mjs to exit 0 (hand-rolled tables 248/248 rows match en)",
      "gates": "local: 37 of 38 derived families run with exit codes captured before any pipe, all 37 exit 0 (incl. check:nul-bytes, check:test-source-alias, check:cross-package-test-inputs, check:type-check-coverage/debt, check:published-files, check-empty-changeset, check-changeset-no-major, check:changeset-gate-self-tests, check-sdui-manifest). --ran reconciliation: '1 of 38 derived famil(ies) UNRUN' = `pnpm --dir ui exec vitest run scripts/`. NOT MEASURED: ui scripts vitest, reason: ran past the 560s foreground timeout (exit 124) on a shared box, declared narrowing, left to CI Test UI. PR check-runs on bd75c1b9 at report time: Lint & Repo Gates success, Lint UI success, Type Check UI success, Test Core success, Build & E2E UI success, Live E2E UI success, Governed Surface Queue Guard success, Dogfood Regression Gate success, Check Changeset success, Build Core skipped, Test UI shards in_progress",
      "dogfood_battery": "n/a: no `!` in the PR title and no (narrowing) arm",
      "line_budget": "4 files, +162/-0 (ObjectGantt.tsx +25, useGanttTranslation.ts +6, harness test +121, changeset +10)",
      "files_changed": [
        "ui/packages/plugin-gantt/src/ObjectGantt.tsx",
        "ui/packages/plugin-gantt/src/useGanttTranslation.ts",
        "ui/packages/plugin-gantt/src/ObjectGantt.harness.test.tsx",
        ".changeset/35317-gantt-refused-read-no-access.md"
      ],
      "deviations": "Test pins added as a top-level describe in the existing shared harness ObjectGantt.harness.test.tsx (ruling record 6583487846), not as a new file. Built @objectstack/spec, formula, client, sdui-parser, types and the ui closure of plugin-gantt locally only so vitest and tsc could resolve them; no tracked file changed. The PR's ui scripts vitest family was not measured locally (see gates).",
      "mcp_calls": "0",
      "api_writes": "2: relay pr_create (POST pulls + assignee leg, objectstack-ai/objectstack#36006) and relay comment os-dev-report on issue #35317 via post-stamped.mjs; git push is not a REST write",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: a (same family, unfiled) · reach: NOT measured at a public door, code read only on origin/main 98b3f87e · evidence: ObjectKanban.tsx 'Error loading kanban data: {error.message}', ObjectCalendar.tsx t('calendar.loadError', { message: error.message }), ObjectTimeline.tsx 'Error loading timeline: {error.message}', ObjectMap.tsx 'Error: {error.message}' draw a failed load's raw message, so a 403 would leak the transport string the same way · if the seat measures one, file one family close-out card covering the four views, not single-point cards · dedupe words: raw permission error view load 403, kanban calendar timeline map no-access state, classifyLoadError forbidden",
        "carrier: none · noted in Acceptance notes, not filed: the 'Loading Gantt chart...' placeholder is an untranslated literal (polish)"
      ]
    }
  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-21T06:43Z

    reading value
    PR #36006 MERGED as c2922e4e46 (Fixes #35317; this card closed completed)
    review record L1-a ACCEPT 7058554174; no L2 owed (no packages/spec path)
    follow-up #36010 (Kanban, Calendar, Timeline and Map), nested here and claimed by ux-2

    Delivered:

    • When a reader can open a record but may not read its Gantt tasks, the chart area shows the same calm "no access" panel as lists and related lists, in the reader's language and with no server text. Other failures keep the old error screen.

    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:uxdomain:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions