Skip to content

[repo:objectui] Page object-grid block renders the row-hover 「打开 ›」 button but clicking it does nothing — same control navigates to the record on the standard list view #16276

Description

@baozhoutao

Summary

An object-grid block placed on a structured page renders the same per-row hover affordance as the standard object list — the row number turns into a 「打开 ›」 button on hover — but clicking it does nothing: no navigation, no drawer, no console error, no network request. On the standard list page (/_console/apps/<app>/<object>) the identical button navigates to /_console/apps/<app>/<object>/record/<id>.

Users read the affordance as "open this record" (it is the only visible way out of the row), click it, and conclude the page is broken. This surfaced the first time a real user touched the page.

Minimal reproduction

Platform 17.2.0 console.

Page (definePage, type: 'home', kind: 'full') with a component:

{ type: 'object-grid', properties: { objectName: 'kpi_entry_line', editable: true, columns: [...] } }
  1. Open the page as any user; hover a row → the # cell shows the button absolute inset-0 hidden group-hover/row:flex … 打开 › (it has an onclick).
  2. Click it.

Observed (measured via script on the page): location.pathname unchanged, [role=dialog] count 0, no error events, no new requests. Four such buttons exist for four rows; all inert.

Control: same object, standard list page, same button → location.pathname becomes /_console/apps/com.objectstack.kpi/kpi_entry_line/record/<id>.

Expected

  • Either the button navigates to the record (page or drawer) with the page as the from breadcrumb, like the list view does, or
  • the block does not render the affordance when it has no open handler (and exposes a property such as rowClick: 'record' | 'none' so the author can choose).

Environment

@objectstack/console 17.2.0 · objectstack dev · Chromium 1440×900 · zh-CN. App: objectstack-ai/kpi, page kpi_home, block on kpi_entry_line (also reproduced on the second block bound to kpi_entry_sheet).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions