Skip to content

列表页左侧一条线对齐:勾选列在列多时被压到 16 宽并贴住屏幕左边;页面栏、视图栏、表格、页脚的左起点各不相同 #35663

Closed
1 of 1 issue completed

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:④ 协调节点的子单,承父单 #35547(专题:列表页重做,维护者直派)。⛔ 不是认领。

维护者 2026-11-20 原话:「再看看列表页的布局,左侧一列没有对齐是不是很奇怪,左侧边距也很小」;「还有行号好像也不是很有必要,默认是不是可以不开,甚至去掉这个选项」;「不显示行号,checkbox 应该始终显示。」

现状(主干 d96c878e33,本机环境,视口 1280 宽,浏览器实测)

「联系人」列表(列多,表格总宽 1410,超出视口,要横向滚动):

位置 内容的左起点(像素)
页面栏的对象图标 16
视图栏的视图图标 22
表头的全选框 0,贴住屏幕左边
每行的行号 4;两位数的行号(10、11、12)从 0.6 开始,几乎顶到边
第一列数据的文字 28
页脚「12 条记录」 16
  • 同一页左侧出现 0、4、16、22、28 五条线。

  • 勾选列声明的宽度是 40(w-10,左右内边距 0),实际被压到 16:表格是自动布局,列宽只是参考值,列总宽超出视口时这一列最先被压缩。ui/packages/components/src/renderers/complex/data-table.tsx:1707-1713 的注释已经写到这一列会塌到最小内容宽度,当时只修了冻结列的偏移,没有保住宽度。

  • 不需要横向滚动的列表上程度轻一些:「客户」列表里勾选框的左起点是 11,仍然和页面栏的 16、视图栏的 22 不在一条线上。

  • 行号:是界面上的一个显示开关,默认开(ui/packages/plugin-list/src/ListView.tsx:2095 的 defaultRowNumbers = true,ui/packages/plugin-grid/src/ObjectGrid.tsx:3041),开关在「选项」里(ui/packages/plugin-list/src/components/ViewSettingsPopover.tsx:746)。开着时这一格平时显示行号,悬停或选中才换成勾选框。规范(packages/spec)里没有这个键。

要做的

  • 不显示行号,勾选框始终显示(维护者裁决)。列表首格只放勾选框,不再悬停才出现。

  • 「选项」里去掉「行号」开关;defaultRowNumbers 的默认值改为关。个人偏好里已经存的行号设置不再生效,「已个性化」标记里对应的一项一并去掉。组件上的 showRowNumbers 属性是否保留给其他宿主,由实现方定,列表页不再打开它。

  • 定一条左基线:16。页面栏图标、视图栏图标、全选框、每行的勾选框、页脚文字都从这条线起。

  • 勾选列固定宽度,不随列数和视口宽度变化,横向滚动时也不变。建议 16 左边距 + 16 勾选框 + 8 间隔,共 40。

  • 第一列数据的文字紧跟其后,表头文字和单元格文字左对齐。

  • 右侧同样核对一次:页面栏和视图栏右端的按钮、表格最后一列、页脚右端在同一条线上(现在页面栏是 16)。

不做的

验收

  • 1280 宽,「联系人」这类要横向滚动的列表和「客户」这类不用滚动的列表:页面栏图标、视图栏图标、全选框、每行的勾选框、页脚文字的左起点都是 16,实测相差不超过 1 像素。
  • 勾选列在两类列表上宽度相同;横向滚动到最右再回来,宽度和冻结位置不变,冻结列之间没有透出下面内容的缝。
  • 列表上没有行号;每行的勾选框不用悬停就看得见。「选项」里没有「行号」开关;之前打开过行号的用户,刷新后也不显示行号。
  • 窄屏(视口 375 宽)下左边距不小于 12。

Reader: domain:ui 车道。ui/packages/components/src/renderers/complex/data-table.tsx(勾选列和行号列的宽度、冻结偏移)、ui/packages/app-shell/src/views/objectViewPageHeader.tsx、视图栏所在组件。

Dedupe: 列表 左边距 对齐、勾选列 宽度 贴边、selection column collapse(objectstack,open)→ 0;相关:#35548(已关,列表框架)。

正文最后更新:2026-11-19T22:13Z

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    bug
    priority:p1
    domain:ui
    on Nov 19, 2026
  2. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

    范围追加,正文已同步。

    维护者 2026-11-20 原话:「还有行号好像也不是很有必要,默认是不是可以不开,甚至去掉这个选项」;「不显示行号,checkbox 应该始终显示。」

  3. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui · pm:queue; rationale: area:ux · Bug (the list page has no common left edge; the checkbox column is squeezed to 16 px against the screen) · a child of the maintainer's list-page topic #35547, from his own walkthrough → p1 as the coordinator set it on his topic.

  4. added
    pm:queue
    on Nov 19, 2026
  5. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

    Claim: area ux-4 round 3 · epic #35547 (p1; the maintainer, verbatim, 2026-11-20: 「再看看列表页的布局,左侧一列没有对齐是不是很奇怪,左侧边距也很小」「不显示行号,checkbox 应该始终显示。」); seat routed it to ux-4 as builder of #35548 · 2026-11-19T23:14Z
    Area: ux-4
    Session: session_01Utp6Cb8qTxAVaE2QKwquQU
    Account: os-bill
    Branch: pending — mode:thread: the card thread pushes only the branch the platform assigns it; the area posts a Branch: amendment here when the thread opens
    Worktree: the card thread's own checkout
    Domain: domain:ui
    Seat: repo:objectstack#5
    File surface: ui/packages/components/src/renderers/complex/data-table.tsx (selection / row-number column width, frozen offsets, left padding), ui/packages/plugin-grid/src/ObjectGrid.tsx (row numbers off on the list page), ui/packages/plugin-list/src/ListView.tsx (defaultRowNumbers and the personalized-marker entry only; ⛔ the 筛选/排序 triggers and list-condition-row — ux-1's #35643), ui/packages/plugin-list/src/components/ViewSettingsPopover.tsx (the 行号 switch only, after #35646 merges), ui/packages/app-shell/src/views/objectViewPageHeader.tsx, ui/packages/app-shell/src/layout/PageHeader.tsx, ui/packages/plugin-list/src/listToolbarRow.ts (left/right padding to the 16 baseline), i18n removals in ui/packages/i18n/src/locales/*.ts, docs/qa/platform-checklist/areas/*.json list items, their tests, a new e2e spec under ui/e2e/ named for the card, root .changeset/. ⛔ packages/spec/** (no row-number key exists there). Stop on any other breach and report.
    Container & model: M, mode:thread, model: default, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the list page draws five different left edges and squeezes the checkbox column to 16 px against the screen | the auto-layout table lets the 40 px selection column collapse to its min content width when the columns overflow (data-table.tsx ~1707-1713 fixed the frozen offset, not the width) and the toolbar rows use different paddings | every user on every list
    Thread-read: 7024371989
    Premise: holds at origin/main — defaultRowNumbers = true (ListView.tsx ~2095), ObjectGrid.tsx ~3041, switch in ViewSettingsPopover.tsx ~746; no row-number key in packages/spec. The card's pixel readings were taken at d96c878e33; the thread re-measures on origin/main before code.
    Pre-claim lane: ui/packages/components/**, ui/packages/plugin-grid/**, ui/packages/plugin-list/**, ui/packages/app-shell/** → domain:ui, area ux-4.
    Pre-claim deps: none named. Hot files: ux-3's PR #35646 (#35551+#35553, awaiting merge) rewrites ViewSettingsPopover.tsx and touches ListView.tsx; ux-1's PR #35643 touches ListView.tsx. The 行号 switch removal lands after #35646 merges (one copy only, coordinator 7023657319); ListView.tsx edits stay off #35643's regions; overlap-check before each push decides the order.
    Prior rulings read: row numbers,showrownumbers,selection column,checkbox column,left edge,defaultrownumbers → 0 hits; none; thread: none; repo: objectstack-ai/objectstack.
    Serial constraints cleared: open-PR scan of 56 open PRs: only #35646 and #35643 (above) touch the surface.
    Scope: card items — no row numbers, checkbox always visible; 行号 switch removed, default off, stored personal row-number setting ignored and dropped from the 「已个性化」 marker; one 16 px left baseline for page-bar icon, view-bar icon, header and row checkboxes, footer text; fixed-width selection column (16 + 16 + 8) at every width and under horizontal scroll, no gap between frozen columns; right edges checked the same way; ≥12 px at 375. Fixes #35663.

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 19, 2026
  7. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

    Claim amendment to comment 7024890880 (area ux-4) · 2026-11-19T23:16Z
    Branch: claude/project-thread-pmy7f9 (mode:thread: the platform-assigned branch of the card thread; replaces the claim's pending line)
    Thread session: session_01Utp6CXPqjy7g6EGFoAkYrr
    Worktree: the card thread's own checkout

  8. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

    Claim amendment to comment 7024890880 (area ux-4) · 2026-11-19T23:18Z
    File surface (adds): ui/packages/app-shell/src/views/objectViewListRenderer.tsx (the defaultRowNumbers={!inSetup} host line ~1094 only; ux-3's PR #35646 hunks there are elsewhere), ui/packages/app-shell/src/views/ListPersonalizedMarker.tsx (the row-number entry ~40, ~71), and their tests.
    Premise corrected (card thread reading at origin/main): the console host, not ListView's default, turns row numbers on (objectViewListRenderer.tsx ~1094). There is no stored personal row-number setting: ListView.tsx ~3019-3023 keeps it as session-only state ("nothing stores it"), so 「之前打开过行号的用户,刷新后也不显示」 holds once the default is off, with nothing to migrate. ObjectGrid's hostShowRowNumbers ?? true (~3041) flips to false; data-table keeps showRowNumbers as an opt-in, and the PR names every host that still opts in.

  9. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

    Claim amendment 2 to comment 7024890880 (area ux-4) · 2026-11-19T23:45Z
    File surface (adds): ui/packages/plugin-grid/src/columnSpellingDiagnostics.ts (~220-221) and its two test pins — the author-facing diagnostic said a grid whose columns all fail to resolve "renders its row-number column and NO data columns"; with row numbers off by default it now reads "renders NO data columns". Text only, no behaviour.

  10. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

    Claim amendment 3 to comment 7024890880 (area ux-4) · 2026-11-20T01:03Z
    File surface (adds): content/docs/ui/views.mdx (~627-628), the one sentence listing what the Personalized marker names. Round 2 drops row numbers from the marker, so the phrase becomes "row color and inline editing". Docs text only, no behaviour.

  11. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU
    os-dev-report

    {
      "issue": 35663,
      "status": "done",
      "branch": "claude/project-thread-pmy7f9",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35706",
      "session": "session_01Utp6CXPqjy7g6EGFoAkYrr",
      "premise_still_valid": true,
      "summary": "Final head 829219f7 (46 files, +761/-237 vs origin/main). Round 1: data-table's leading column is w-[1%] min-w-10 with pl-4 pr-2 (40px at any width and under a sideways scroll, checkbox at 16), the checkbox is shown at rest unless a host opts into row numbers, ObjectGrid defaults showRowNumbers to false, and the view bar is sm:pl-2.5 sm:pr-2 so its icon and last label sit 16 in. Round 2 (after #35646, origin/main merged once at 238661f4): ListView drops its row-number state, the defaultRowNumbers prop and the 'rowNumbers' part; the console host line goes; the 行号 switch leaves Options > More; the 已个性化 marker drops its entry; list.rowNumbers and console.objectView.personalizedParts.rowNumbers leave all 11 packs; content/docs/ui/views.mdx no longer lists row numbers among what the marker names (amendment 3). Premise correction kept: no stored personal row-number setting exists, so nothing to migrate.",
      "tests": "New: ui/e2e/list-left-edge-35663.spec.ts (4 cases: 1280 wide, 1280 narrow, scroll round-trip, 375), 4 passed; on origin/main sources 3 of 4 red. Ablations via scripts/ablation-replace.mjs, each red then restored: LEADING_CELL_WIDTH -> w-10 (32 / 93.9 / 32 wide), TOOLBAR_ROW -> sm:px-4 (view icon 22), LEADING_CELL_INSET -> px-3 (checkbox 12), visibility arm ungated (hidden until hover + data-table-leadingCell-12423 red). Vitest round 1: 1213 files, 11183 passed. Round 2: plugin-list whole + app-shell views + i18n, 476 files, 5559 passed, 5 failed in 3 files (ListView.permissions, htmlTierColumnSpellings-6598, htmlTierListViewDefaultColumns-6598), all migrated; the migrated files re-ran 7 files / 53 passed. Full suite: CI Test UI 16/16 shards success at 829219f7.",
      "gates": "Local: dispatch-gates --commands at the round-2 tree, 74 derived, 74 run, each exit 0 (check:docs and check:skill-examples first exited 1/3 on a missing generated schema tree after a container restart; exit 0 after pnpm --filter @objectstack/spec build; check:test-source-alias exit 1 -> fixed with a module-top import '@objectstack/lint' in ObjectView.setupListChrome-12606.test.tsx -> exit 0); --ran reconciliation 74 run, 0 NOT-MEASURED, 0 UNRUN. check:i18n-keys / i18n-drift / i18n-dead-keys exit 0. type-check exit 0: components, plugin-grid, e2e (round 1), plugin-list, app-shell, i18n (round 2). overlap-check --branch=HEAD --pr=35643,35691,35708: VERDICT clean exit 0. CI at 829219f7: 68 check runs, 56 success, 12 skipped, 0 failed (Test UI 1-16/16, Type Check UI, Lint UI, Build & E2E UI, Live E2E UI, TypeScript Type Check, Lint & Repo Gates all success); mergeable_state clean.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "read-only: issue_read, pull_request_read, get_job_logs; no write tool",
      "api_writes": "3 relay writes via scripts/pm/fleet-write/dispatch.mjs: pr_create (#35706), issue_patch (#35706 body, round 2), this comment; gh api reads only otherwise",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: none · serverSearch.test.tsx 'reports the real match total' was green only because row 2's number put a '2' on screen; re-pointed to the rows on screen (a test read, no product defect) · noted, not filed",
        "class: none · reach: chart view's own view bar copy (objectViewListRenderer.tsx ~355, sm:px-4) keeps the switcher icon at 22 there; outside the claim's surface · carrier: none · noted, not filed",
        "class: none · reach: a non-selectable grid with a row click drew its hover 「打开 ›」 button (row-expand-button) inside the row-number cell; with row numbers off by default it is drawn only where a host opts in; row click and Cmd/Ctrl-click still open the record (9462 RED 1) · follows from the card · noted in the PR body"
      ]
    }

    Deviations: inSetup stays in objectViewListRenderer's destructure and memo deps (now unused there) to keep the edit to the one claimed line; the ListView half shipped as round 2 after #35646, as the claim ordered; columnSpellingDiagnostics.ts text fix (amendment 2); views.mdx phrase (amendment 3). Screenshots (before/after: 1280 wide, narrow, scrolled, 375) are in the project files under objectstack-seat5/area-ux/ux-4/list2/card-35663/; round 2 changed no geometry.


    Generated by Claude Code

  12. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#5 · os-bill · session_01Utp6Cb8qTxAVaE2QKwquQU

    Close-out · 2026-11-20T04:31Z: PR #35706 merged as 598a34d (L1-a ACCEPT 7029715490, carried over the changeset-only R1 head; landing 7030140685); the card closed on merge. The 行号 switch was removed once, after #35646. Deviations recorded in the PR body and changeset: a non-selectable grid with a row click shows the hover 「打开 >」 button only where a host opts into row numbers (row click and Cmd/Ctrl-click still open the record); the diagnostic text changed (amendment 2); the views.mdx phrase changed (amendment 3). Follow-up #35729 (chart view's view-bar copy + the unused inSetup) is nested here, p2, pm:queue. pm:dispatched removed.

  13. removed
    pm:dispatched
    on Nov 20, 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:p1

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions