Skip to content

Commit b36d92b

Browse files
committed
docs(skills): the checked action examples no longer name a location
Seven checked examples (six os:check TypeScript blocks and the served Actions JSON fence) drop their `locations` key, so each one compiles against the action location vocabulary on main and against the one that replaces it. No prose, table or teaching changes, and no new word is taught. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibztwLPZEpzDMBn2GM6
1 parent f926dfa commit b36d92b

3 files changed

Lines changed: 1 addition & 7 deletions

File tree

‎skills/objectstack-ai/SKILL.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ export default defineAction({
186186
label: 'Ask AI',
187187
objectName: 'contract',
188188
type: 'ask_ai',
189-
locations: ['record_header'],
190189
});
191190
```
192191

‎skills/objectstack-ui/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ reports success and changes nothing. Call the API, with the option `value`,
133133
never its label ([Actions](./rules/actions.md)):
134134

135135
```json
136-
{ "name": "mark_done", "label": "Mark as done", "objectName": "task", "locations": ["record_header"],
136+
{ "name": "mark_done", "label": "Mark as done", "objectName": "task",
137137
"type": "script", "body": { "language": "js", "capabilities": ["api.write"],
138138
"source": "await ctx.api.object('task').update({ id: ctx.recordId, status: 'done' });" } }
139139
```

‎skills/objectstack-ui/rules/actions.md‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ export const ReassignLeadAction = defineAction({
6666
objectName: 'lead',
6767
type: 'api',
6868
target: 'lead',
69-
locations: ['record_header', 'list_item'],
7069
disabled: P`record.status == "converted"`,
7170
disabledReason: 'A converted lead is reassigned from its opportunity.',
7271
params: [{ field: 'owner_id', required: true }],
@@ -93,7 +92,6 @@ export const ConvertLeadAction = defineAction({
9392
icon: 'arrow-right-circle',
9493
type: 'flow',
9594
target: 'crm_lead_conversion',
96-
locations: ['record_header', 'list_item'],
9795
visible: P`record.status == "qualified" && record.is_converted == false`,
9896
confirmText: 'Convert this lead?',
9997
successMessage: 'Lead converted.',
@@ -177,7 +175,6 @@ export const PrintA3Action = defineAction({
177175
type: 'url',
178176
target: '/print/a3?id=${ctx.recordId}', // interpolated at click
179177
openIn: 'new-tab',
180-
locations: ['record_header'],
181178
});
182179
```
183180

@@ -202,7 +199,6 @@ export const OpenInvoicePdfAction = defineAction({
202199
target: 'crm_open_invoice_pdf',
203200
opensInNewTab: true,
204201
newTabUrl: '/api/v1/invoice/{recordId}/pdf',
205-
locations: ['record_header'],
206202
});
207203
```
208204

@@ -236,7 +232,6 @@ export const AddInvoiceLineAction = defineAction({
236232
label: 'Add Line',
237233
objectName: 'invoice',
238234
type: 'script',
239-
locations: ['record_header'],
240235
params: [
241236
{ field: 'product', objectOverride: 'invoice_line', required: true },
242237
{ field: 'quantity', objectOverride: 'invoice_line', required: true },

0 commit comments

Comments
 (0)