adds help texts

This commit is contained in:
2026-02-16 16:00:16 +01:00
parent 514f1cb483
commit 78c51d55b5
9 changed files with 95 additions and 46 deletions

View File

@@ -86,34 +86,40 @@ public function fields(NovaRequest $request): array
->nullable()
->sortable()
->filterable()
->rules('nullable'),
->rules('nullable')
->help('The user who performed this action. May be empty for system events.'),
BelongsTo::make('Session', 'session', SessionResource::class)
->nullable()
->sortable()
->filterable()
->rules('nullable'),
->rules('nullable')
->help('The questionnaire session related to this action, if any.'),
BelongsTo::make('Category', 'category', CategoryResource::class)
->nullable()
->sortable()
->filterable()
->rules('nullable'),
->rules('nullable')
->help('The assessment category related to this action, if any.'),
Text::make('Action')
->sortable()
->filterable()
->copyable()
->rules('required', 'max:255'),
->rules('required', 'max:255')
->help('What happened, e.g. "login", "session_started", "answer_saved", "screening_completed".'),
Code::make('Metadata')
->json()
->rules('nullable'),
->rules('nullable')
->help('Additional details about this action in a structured format.'),
DateTime::make('Created At')
->exceptOnForms()
->sortable()
->filterable(),
->filterable()
->help('When this action occurred.'),
];
}