Skip to content

chore(release): v7.0.1 — bulk actions on the selection location, for ObjectStack 19 hosts (#2860) - #2867

Merged
os-zhuang merged 4 commits into
mainfrom
claude/project-thread-3mtvns
Dec 1, 2026
Merged

os-zhuang merged 4 commits into
mainfrom
claude/project-thread-3mtvns

Conversation

@os-warren

Copy link
Copy Markdown
Collaborator

Closes #2860

维护者速读

  • 用户能看到什么变化:商机的「更新阶段」和线索、联系人的「加入营销活动」出现在各自对象所有表格列表的多选工具栏上,不再只在原来的几个列表里;「全部线索」和「全部联系人」新出现内置的批量删除,只给有删除权限的人(销售经理、系统管理员)。
  • 为什么做:生产和预发环境的新框架不再接受列表视图上的批量操作清单,7.0.0 因此装不上;7.0.1 改成新写法后才能发布到生产,把新版本送到用户手里。
  • 出错会怎样:最坏是这两个列表上有删除权限的人多看到一个批量删除按钮;删掉的记录进回收站,管理员可恢复;整个版本可以退回 7.0.0 的代码重新发布。
  • 要你做什么:审阅后亲自合并(本次改动涉及权限可见性和技能文件,按规则留给你合并);合并后的发布步骤照常。

Description

HotCRM 7.0.1 = 7.0.0 + the #2860 port + the dependency move it needs. Nothing else.

Why. At the cloud's framework pin 8a7e65b4 (labelled 19.0.0-next.2, carrying objectstack#38550), the publish-path reader refuses 7.0.0: INVALID_ARTIFACT_PACKAGE_ENTRY … view.list.bulkActions was removed in @objectstack/spec 19.0.0. So 7.0.0 cannot reach production.

Why the @objectstack/* packages move to 19.0.0-next.3. The npm 19.0.0-next.2 that HotCRM installed was published on 2026-11-28, before #38550 (acf3b33e31, 2026-11-30). In that version, ACTION_LOCATIONS has no selection and bulkActions is still legal, so the port cannot be written against it. 19.0.0-next.3 is the first published cut with the change. engines.protocol stays ^19.0.0-next.2 because the staging and production runtimes are labelled 19.0.0-next.2 and would refuse ^19.0.0-next.3. The lag is written down twice (AGENTS.md rule 11): a comment beside engines in src/sales/index.ts, and an exact-pair PROTOCOL_LAG entry in the #728 guard (test/docs-declared-versions.test.ts).

Metadata-impact: maintainer — a change to who can see what: All Leads and All Contacts now draw the built-in bulk Delete for holders of Sales Manager and System Administrator, the two shipped sets that may delete leads and contacts (objectstack#38550, maintainer ruling 7268555255). The diff also touches .claude/skills/**, a governed path, so this PR stays a draft for the maintainer's merge.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • Documentation update

Related Issues

Closes #2860
Related to objectstack-ai/objectstack#38550, #2864

Changes Made

  • Dependencies (d25c77d4): all 25 @objectstack/* packages move from 19.0.0-next.2 to 19.0.0-next.3; the lockfile resolves no next.2 left.
  • Skills re-sync (b7d8f8a0, AGENTS.md upgrade rule 3): npx skills@1.7.2 experimental_sync --agent claude-code --copy -y refreshes .claude/skills/ and skills-lock.json from @objectstack/skills 19.0.0-next.3.
  • The port (c80fa1aa). os migrate meta --from 18 lists 13 edits under view-bulk-actions-to-action-selection. --write wrote nothing, because the stack is composed through composeStacks helpers, so the edits are applied by hand exactly as listed:
    • add_contact_to_campaign, create_campaign: locations: ['record_row', 'selection'].
    • mass_update_stage: locations: ['selection'], previously headless and wired by six lists.
    • The eight view bulkActions keys and GRID_BULK are removed. The opportunity bulkActionDefs Delete (GRID_BAR) stays.
    • grep -rnE "^\s*bulkActions\s*:" src --include=*.view.ts → 0.
    • No actionLayout.selection is written: each object's bar carries one action of its own, so its order is unchanged, and the conversion wrote no layout either.
    • Prose naming the old wiring is reworded in the three action files, the three views, docs/developers/code_examples.md and docs/feature-inventory.md.
    • Tests that read view.bulkActions now read the action's selection location: test/bulk-action-dispatch.test.ts, test/campaign-enrollment-doors.test.ts, and the docs-runnable-samples pin.
    • Users' docs: the leads and contacts pages (three locales each) state the bulk Delete on All Leads and All Contacts.
  • Translations (issue item 4). The sales packs' _views.*.bulkActions: OPPORTUNITY_BULK_DELETE entries are bulkActionDefs copy and stay. At next.3, translation.zod.ts defines objects.OBJECT._views.VIEW.bulkActions.DEF_NAME.* as the bulk-def translation group, and they key the delete def of GRID_BAR. pnpm validate and pnpm build accept them unchanged. The expense and psa groups stay too.
  • Release (d608bd52). pnpm changeset:version consumes the one changeset, so package.json and CHANGELOG.md move to 7.0.1. The release also updates:
    • the seven package manifests to 7.0.1 and the module ranges to ^7.0.1;
    • README badges (en, zh-CN), docs/STATUS.md (version and the ObjectStack packages row), docs/RELEASE_STRATEGY.md and docs/ARCHITECTURE.md;
    • whats-new in three locales: 7.0.1 is the latest release, on ObjectStack 19.0.0-next.3, with "What 7.0.1 changes" including the declared bulk-Delete change.

Testing

Commands, exit codes and the probe source are in the session report; summary:

  • pnpm validate ✓ Validation passed · pnpm typecheck exit 0 · pnpm lint (os lint --strict) 54 suggestions, no errors · pnpm hygiene clean · pnpm build (artifact 4785.6 KB). All at the head commit.
  • pnpm test: run locally as vitest run --shard=i/8, the CI split, because one unsharded run exceeds this container's 10-minute foreground cap. The per-shard results are listed below.
  • Cloud publish-path reader, the decisive check. A cloud worktree at origin/main ba16dedf5 (framework pin 8a7e65b4, linked with ensure-pinned-framework.mjs --link, @objectstack/service-cloud^... built) ran a throwaway vitest that was not committed. It passed dist/objectstack.json through snapshotBundleAsManifest (manifestId app.objectstack.hotcrm, version 7.0.1) and then resolveArtifactPackageEntries from @objectstack/core, with no forward conversion.
    • 7.0.1: accepted. 7 entries (app.objectstack.hotcrm, .service, .revenue, .marketing, .o2c, .expense, .psa); engines.protocol ^19.0.0-next.2.
    • Control, the 7.0.0 build at afae64b: refused with INVALID_ARTIFACT_PACKAGE_ENTRY … packages[6] … manifest.views.1.list.bulkActions: view.list.bulkActions was removed in @objectstack/spec 19.0.0.
  • Not done: a browser check of the selection bars. The console's selection bar on the new location is the platform's (objectstack#38550).

Acceptance notes

  • os migrate meta --from 18 also lists 131 permission-view-all-fields-beside-record-bypass edits (adding viewAllFields beside View All and Modify All). They are not applied: 7.0.0 deliberately carries field rows instead (CHANGELOG 7.0.0), and this release changes no permission set. --write wrote nothing anyway.
  • The CHANGELOG 7.0.1 entry carries no commit hash, because the changeset is consumed in the same PR that adds it.
  • Release PR: the changeset is consumed here, so the skip-changeset label is applied, as on chore(release): v7.0.0 — HotCRM on ObjectStack 19 #2864.
  • No tag, no marketplace publish, no merge, no production change.

Checklist

  • Changeset added and consumed (skip-changeset, release PR)
  • Metadata-impact: line above
  • English docs changed with their Chinese twins

Generated by Claude Code

19.0.0-next.3 is the first published release carrying objectstack#38550,
the selection action location the list-view bulkActions port needs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxbZgNsnHcA6oSDV4NVi
…tack/skills 19.0.0-next.3 (#2860)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxbZgNsnHcA6oSDV4NVi
…ion location (#2860)

Protocol 19 (objectstack#38550) retires a list view's bulkActions: an
action that acts on many records declares the 'selection' location, and the
grid draws it on the selection bar of every grid view of its object.

- add_contact_to_campaign, create_campaign: ['record_row', 'selection'].
- mass_update_stage: ['selection'] (was headless, wired by six lists).
- The eight view bulkActions keys and GRID_BULK go; the opportunity
  bulkActionDefs Delete stays. No actionLayout.selection is needed: each
  object's bar carries one action, so its order is unchanged.
- All Leads and All Contacts now offer the built-in bulk Delete to users
  who may delete (objectstack#38550 ruling 7268555255), documented on the
  leads and contacts pages.

os migrate meta --from 18 --write wrote nothing here (the stack is built by
composeStacks helpers), so the edits are by hand from its 13 listed changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxbZgNsnHcA6oSDV4NVi
…next.3 (#2860)

pnpm changeset:version consumes the one changeset: package.json goes
7.0.0 -> 7.0.1 and CHANGELOG.md gains ## 7.0.1. The seven package
manifests declare 7.0.1 and the modules' ranges ^7.0.1; the README badges,
STATUS (version and the ObjectStack packages row), RELEASE_STRATEGY and
ARCHITECTURE follow. whats-new in three locales: 7.0.1 is the latest
release, on ObjectStack 19.0.0-next.3, with What 7.0.1 changes and the
declared bulk-Delete change on All Leads and All Contacts.

engines.protocol stays ^19.0.0-next.2: the runtimes are labelled
19.0.0-next.2 (framework 8a7e65b4) and would refuse ^19.0.0-next.3. The
lag is commented beside engines in src/sales/index.ts and recorded as an
exact-pair PROTOCOL_LAG in the #728 guard, which otherwise requires the
range to equal the installed spec.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxbZgNsnHcA6oSDV4NVi
@vercel

vercel Bot commented Dec 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
hotcrm Ignored Ignored Dec 1, 2026 5:18am UTC

Request Review

@os-warren os-warren added the skip-changeset PR ships nothing to users (pure CI/docs chore) — changeset gate waived label Dec 1, 2026 — with Claude
@github-actions github-actions Bot added documentation Improvements or additions to documentation ci/cd CI plumbing and the verification pipeline dependencies Dependency bumps and lockfile changes metadata Declarative metadata — schema, security posture, UI surfaces backend Server-side behaviour — hooks, flows, actions labels Dec 1, 2026
@os-warren
os-warren marked this pull request as ready for review December 1, 2026 05:27
@os-warren os-warren added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Dec 1, 2026 — with Claude
@os-zhuang
os-zhuang added this pull request to the merge queue Dec 1, 2026
Merged via the queue into main with commit a19e8ae Dec 1, 2026
24 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Server-side behaviour — hooks, flows, actions ci/cd CI plumbing and the verification pipeline dependencies Dependency bumps and lockfile changes documentation Improvements or additions to documentation metadata Declarative metadata — schema, security posture, UI surfaces pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue skip-changeset PR ships nothing to users (pure CI/docs chore) — changeset gate waived

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Port to 19: move the 8 list-view bulkActions lists onto the actions (selection) at the spec pin bump that carries objectstack#36496

3 participants