feat: registration field polish, multi-category tags, file uploads, Partner icon

- Restructure field editor dialog: move Options section to bottom with
  divider and subheader, fix delete button with flex layout
- Change tag_category (single string) to tag_categories (JSON array)
  supporting multiple category selection in tag picker fields
- Portal tag picker now groups tags by category with subheaders
- Add generic file upload endpoint (FileUploadService + UploadController)
- Replace email branding logo URL text field with ImageUploadField
- Update Partner crowd type default icon to tabler-affiliate
- Apply changes consistently to both field and template dialogs

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-16 18:03:49 +02:00
parent d57dcdb616
commit 6a8d21a5b6
31 changed files with 813 additions and 239 deletions

View File

@@ -121,32 +121,32 @@ class RegistrationFormFieldTest extends TestCase
->assertJsonValidationErrors('options');
}
public function test_store_tag_picker_accepts_tag_category(): void
public function test_store_tag_picker_accepts_tag_categories(): void
{
Sanctum::actingAs($this->orgAdmin);
$response = $this->postJson("/api/v1/organisations/{$this->organisation->id}/events/{$this->event->id}/registration-fields", [
'label' => 'Vaardigheden',
'field_type' => 'tag_picker',
'tag_category' => 'Vaardigheid',
'tag_categories' => ['Vaardigheid', 'Horeca'],
]);
$response->assertCreated()
->assertJsonPath('data.tag_category', 'Vaardigheid');
->assertJsonPath('data.tag_categories', ['Vaardigheid', 'Horeca']);
}
public function test_store_text_field_rejects_tag_category(): void
public function test_store_text_field_rejects_tag_categories(): void
{
Sanctum::actingAs($this->orgAdmin);
$response = $this->postJson("/api/v1/organisations/{$this->organisation->id}/events/{$this->event->id}/registration-fields", [
'label' => 'Naam',
'field_type' => 'text',
'tag_category' => 'Vaardigheid',
'tag_categories' => ['Vaardigheid'],
]);
$response->assertUnprocessable()
->assertJsonValidationErrors('tag_category');
->assertJsonValidationErrors('tag_categories');
}
public function test_slug_uniqueness_per_event(): void