Skip to content

Read-only package views still offer view-settings save and the Manage Views pin / set default / delete actions, which the server refuses #35974

Closed

Description

@objectstack-fleet

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Split from #35933 while area b1-DB built it. Part of epic #35547 (list page redo).

What a user sees

On a list view that ships inside a read-only package, the admin can open the view settings panel and press save, and the Manage Views dialog still offers pin, set as default and delete. The server refuses each of them (403, "save to the custom package") and a toast explains it. Each works, but the admin is offered something that cannot succeed.

#35933's PR closes the same gap for the footer calculation menu and for rename in the options menu. It carries _packageId on list-view rows and reads the writable verdict from the existing package posture (usePackagePosture / fetchSessionPackages, the GET /api/v1/packages the app bar's Studio entry already sends). This card reuses that verdict and adds no new read.

Fork for the maintainer, before building

How the view settings panel should look on such a view:

  • A. Read-only panel. The panel opens, shows the configuration, and has no save. The admin can still see how the view is set up. (Recommended.)
  • B. Hide the entry. No "configure view" entry on such views. The admin then has nowhere in the list page to see the configuration.

Pin, set as default and delete in Manage Views are hidden or disabled on such views in either case.

To do

  1. Get the maintainer's pick on the fork above.
  2. Apply the writable verdict from Footer calculation menu is offered on read-only package views; the list-view rows lose _packageId so the UI cannot tell them apart #35933 to the view settings save and to the three Manage Views actions.
  3. When the verdict cannot be read, keep today's behaviour (offer it; the server refuses), as Footer calculation menu is offered on read-only package views; the list-view rows lose _packageId so the UI cannot tell them apart #35933 does.

Acceptance

  • On a package-shipped read-only view, the settings panel follows the maintainer's pick, and Manage Views offers no pin, set as default or delete.
  • A custom shared view and a personal view are unchanged.

Blocked-by: #35933's PR.
Reader: area:ux (ui/apps / app-shell ObjectView, plugin-list).

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

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui · pm:queue; rationale: area:ux · Bug · on read-only package views the view-settings save and the Manage Views pin, set-default and delete actions are still offered and then refused (403); split from #35933, reusing its package-posture verdict; topic #35547 → p2 as filed (UX rule) · size S.

  3. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Maintainer ruling · 2026-11-21T04:15Z · On this card's fork (how the view settings panel looks on a list view shipped inside a read-only package), the maintainer chose A, a read-only panel, at 2026-11-21T04:14:01Z, in the project chat. An earlier reply at 2026-11-21T04:08:18Z proposed a third way and was withdrawn at 2026-11-21T04:09:29Z. The maintainer then checked the code: the toolbar's sort, filter, column width, order and visibility changes are saved to the person's own preferences, but the admin "configure view" panel's save writes into the view itself, so on a read-only package view the server refuses it.

    Recorded meaning:

    Dispatched to area b1-DB. The PR carries Fixes #35974.

  4. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Claim: PM loop · 2026-11-21T04:48Z
    Area: b1-DB
    Session: session_01L6bhgW85kwjGaz7HqsmEuv (area b1-DB, session 2; its os-dev subagent runs under the same session)
    Account: os-sales
    Branch: claude/issue-35974-readonly-package-view-saves
    Seat: repo:objectstack#1
    Domain: domain:ui
    File surface: ui/packages/app-shell/src/views/ObjectView.tsx, ViewConfigPanel.tsx, and objectViewViewCrud.tsx or objectViewTitleSwitcher.tsx (wherever the view rows enter the Manage Views dialog), plus a new test named for the card.
    Container & model: S, mode:subagent, model: opus, effort: medium
    Clause-②: no (provisional: if a published plugin-view component needs a new prop, the dev stops and the claim is amended)
    Metadata-protocol: none
    Premise: re-read on main by the area after #35975 merged: holds. ManageViewsDialog (plugin-view) already honours view.readonly for set-as-default and delete, so the app shell marks package-read-only view rows with #35975's usePackageRefusesSaves verdict, and ViewConfigPanel goes read-only (no save) under the same verdict. Pin is checked by the dev.
    Basis: card #35974 and the maintainer's ruling 7057139393 (option A, read-only panel). Under the maintainer's 2026-11-20 22:31Z–22:32Z order (bugs derived from the list-page epic, p1 and p2 bugs only).
    Resume-from: none
    Fold-or-serial: serial; no fold. Shares ObjectView.tsx with #35918, so overlap-check runs before each push. The PR carries Fixes #35974.

  5. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Claim amendment to comment 7057506464 · 2026-11-21T05:32Z · The maintainer's ruling 7057139393 (A) has the settings panel open read-only on a view a read-only package ships. The console's only way into that panel is Manage views' "Edit view config", and ManageViewsDialog (@object-ui/plugin-view, published) drops that entry for every read-only row. Built as claimed, the panel could not be opened on these views, which is the option the maintainer declined. Seat call: ViewTabItem gains one optional row flag that keeps the config entry on a read-only row (labelled as viewing, not editing). The app-shell sets it only on rows a read-only package ships; without the flag, every existing caller and system view behaves as today. Two lines change:
    File surface: adds ui/packages/plugin-view (ManageViewsDialog.tsx, the ViewTabItem type, a test) and a @object-ui/plugin-view patch changeset, beside the app-shell files already claimed.
    Clause-②: yes (widening: one new optional member on the published ViewTabItem; nothing removed). The seat runs the declaration L2 at TIER_DEFAULT.

    Everything else in the claim stands.

  6. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Ruling record · 2026-11-21T06:30Z · amends ruling 7057139393. The maintainer (os-sales) answered the seat's decision card at 2026-11-21T06:29Z, choosing 「只隐藏删除,其余保留」.

    Why it came back: the card's premise that the server refuses every Manage views action on a view a read-only package ships was wrong. Since #33173 (merged 2026-11-14T00:00Z), pin, set default and rename are written into the package's customization pair (<package>.custom), and the card thread measured pin and set default at 200 with read-back. Only the settings panel's save and delete are refused (403).

    The rule now, on such a view:

    • The settings panel opens read-only and cannot save (unchanged from 7057139393), reachable from Manage views as "view config".
    • Manage views hides only Delete. Pin, set default and rename stay offered; they are stored in the customization package and every user of the view sees them.
    • The Rename hiding that fix(ui): a view a read-only package ships offers no footer calculation menu and no Rename #35975 added for these views is lifted in this card's PR, after one measured rename through the customization pair.
    • Toolbar personal state is unaffected; fail-open stays.

    Follow-up filed by the seat: restoring the factory view from the list page after such a customization.

  7. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Claim amendment to comments 7057506464 and 7057996821 · 2026-11-21T06:30Z · after the maintainer's amended ruling (record above). Scope changes: Manage views hides only Delete on a view a read-only package ships; pin, set default and rename stay; the Rename hiding #35975 added for these views is lifted after one measured rename through the customization pair. The optional ViewTabItem row flag becomes a delete-only style flag that also keeps the config entry (view-only). One line restated:
    Clause-②: yes (widening: one new optional member on the published ViewTabItem; nothing removed). The seat runs the declaration L2 at TIER_DEFAULT.

    Everything else in the claim stands.

  8. added
    pm:dispatched
    and removed
    pm:queue
    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:uipm:dispatchedpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions