Feedback
Feedback is the UI response VibeFlui shows after data loading, form submission, row actions, bulk actions, toolbar actions, and custom action handlers.
VibeFlui has two feedback layers:
- Operation feedback, rendered by
FluiKitFeedbackafter mutations and actions. - Table state feedback, rendered by
FluiKitTablefor loading, empty, and load-error states.
Defaults
| Feature | Default |
|---|---|
feedback.enabled | true |
feedback.mode | "modal" |
| Success icon | mdi:check-circle-outline |
| Error icon | mdi:alert-circle-outline |
| Warning icon | mdi:alert-outline |
| Loading text | Loading... |
| Empty text | No data available. |
| Load error text | Unable to load data. |
Basic schema
TS
export const usersSchema = {
resource: "users",
endpoint: "/api/users",
identity: {
key: "id",
param: "id"
},
feedback: {
enabled: true,
mode: "modal",
icons: {
success: "lucide:circle-check",
error: "lucide:circle-x",
warning: "lucide:triangle-alert"
}
},
messages: {
sourcePriority: ["backend", "schema", "resolver", "default"],
defaults: {
createSuccess: "User created successfully.",
updateSuccess: "User updated successfully.",
deleteSuccess: "User deleted successfully."
}
}
} as const;Backend-style response
JSON
{
"status": true,
"code": 200,
"message": "User updated successfully",
"data": {
"id": "usr_001"
}
}VibeFlui reads status, code, and message from the response object. It also understands nested response shapes such as { data: { status, code, message } } and common HTTP-client errors with error.response.data.
Feedback status
FluiKitFeedback renders only success, warning, or error. Backend/action responses can use boolean status, recognized string status, or code-only fallback.
| Response | Feedback status |
|---|---|
status: true | success |
status: false, code: 400..499 | warning |
status: false, code >= 500 | error |
status: "accepted" or "ok" | success |
status: "rejected" or "warning" | warning |
status: "failed" or "error" | error |
code: 200..299 without status | success |
code: 400..499 without status | warning |
code >= 500 without status | error |