You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat(showcase): demonstrate bulk actions over a selection
`bulkActions` — naming declared object actions so each SELECTED record is fanned
out through the action runner — had no example in the showcase. It is also the
only way to declare a bulk action: `action.bulkEnabled` was retired in spec 17
(#3896 close-out, #4054) precisely because nothing consumed it, and its
tombstone prescribes this key.
Adds a `bulk_actions` named view on showcase_task — the selection-bar twin of
the existing `legacy_row_actions` fixture — naming both an action whose work is
a sandboxed script (showcase_mark_done, via the platform action route) and one
that is a custom endpoint (showcase_recalc_estimate, whose already-declared
`recordIdParam` carries each record's id). Neither is a field patch, which is
what distinguishes this from project.view.ts's `bulkActionDefs`: those mass-EDIT
through the data API, this dispatches a real action per record.
Verified in a browser against this app: selecting all 10 tasks and running each
button issues 10 POSTs (one per record, all 200) to
/api/v1/actions/showcase_task/showcase_mark_done and /api/v1/showcase/recalc
respectively, and the records change server-side. No console errors.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* fix(showcase): translate the new view label, add the release-nothing changeset
The zh-CN bundle must carry every declared label — the i18n coverage ratchet
counts untranslated declared strings per example and refused the 456 → 457
growth. And objectstack requires a changeset per PR; an empty one is the
sanctioned declaration for a change that releases nothing (the showcase package
is private).
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
---------
Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
0 commit comments