Skip to content

Commit f5275be

Browse files
committed
feat: add Context7 and MCP documentation to tags.yml; update bulkHandler reference in Actions.md
1 parent 529362d commit f5275be

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

adminforth/documentation/blog/tags.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,13 @@ ansible:
6767
label: Ansible
6868
permalink: /ansible
6969
description: Ansible is an open-source automation tool used for configuration management, application deployment, and task automation.
70+
71+
context7:
72+
label: Context7
73+
permalink: /context7
74+
description: Context7 provides MCP-powered library and API documentation access for coding assistants.
75+
76+
MCP:
77+
label: MCP
78+
permalink: /mcp
79+
description: Model Context Protocol is a standard way for tools and assistants to connect to external capabilities and data sources.

adminforth/documentation/docs/tutorial/03-Customization/09-Actions.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Here's how to add a custom action:
4848
- `icon`: Icon to show (using Flowbite icon set)
4949
- `allowed`: Function to control access to the action
5050
- `action`: Handler function that executes when action is triggered for a **single** record
51-
- `bulkHandler`: Handler function that executes when the action is triggered for **multiple** records at once (see [Bulk button with bulkHandler](#bulk-button-with-bulkhandler))
51+
- `bulkHandler`: Handler function that executes when the action is triggered for **multiple** records at once (see [Dedicated bulk handler](#dedicated-bulk-handler))
5252
- `showIn`: Controls where the action appears
5353
- `list`: whether to show as an icon button per row in the list view
5454
- `listThreeDotsMenu`: whether to show in the three-dots menu per row in the list view
@@ -75,6 +75,8 @@ When `showIn.bulkButton` is `true` and only `action` (not `bulkHandler`) is defi
7575
}
7676
```
7777

78+
### Dedicated bulk handler
79+
7880
If your operation can be expressed more efficiently as a single batched query (e.g., a single `UPDATE … WHERE id IN (…)`), define `bulkHandler` instead. AdminForth will call it **once** with all selected record IDs:
7981

8082
```ts title="./resources/apartments.ts"

0 commit comments

Comments
 (0)