Remove redundant type picker from event and programme creation.
Deploy Ladill Events / deploy (push) Failing after 23s
Deploy Ladill Events / deploy (push) Failing after 23s
Events is a single-product app — type is implicit on create, so drop the Type card, default-type setting, and rebrand the create flow copy. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -8,7 +8,6 @@ use App\Services\Billing\BillingClient;
|
||||
use App\Support\Qr\QrCornerStyleCatalog;
|
||||
use App\Support\Qr\QrFrameStyleCatalog;
|
||||
use App\Support\Qr\QrModuleStyleCatalog;
|
||||
use App\Support\Qr\QrTypeCatalog;
|
||||
use Illuminate\Http\RedirectResponse;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\View\View;
|
||||
@@ -71,7 +70,6 @@ class AccountController extends Controller
|
||||
'account' => $account,
|
||||
'settings' => $settings,
|
||||
'style' => $style,
|
||||
'types' => QrTypeCatalog::all(),
|
||||
'moduleStyles' => QrModuleStyleCatalog::visible(),
|
||||
'cornerOuterStyles' => QrCornerStyleCatalog::outerStyles(),
|
||||
'cornerInnerStyles' => QrCornerStyleCatalog::innerStyles(),
|
||||
@@ -87,7 +85,6 @@ class AccountController extends Controller
|
||||
'notify_email' => ['nullable', 'email', 'max:255'],
|
||||
'product_updates' => ['nullable', 'boolean'],
|
||||
'low_balance_alerts' => ['nullable', 'boolean'],
|
||||
'default_type' => ['nullable', 'in:'.implode(',', QrTypeCatalog::eventsTypes())],
|
||||
'default_style' => ['nullable', 'array'],
|
||||
'default_style.foreground' => ['nullable', 'regex:/^#[0-9a-fA-F]{6}$/'],
|
||||
'default_style.background' => ['nullable', 'regex:/^#[0-9a-fA-F]{6}$/'],
|
||||
@@ -111,7 +108,6 @@ class AccountController extends Controller
|
||||
'notify_email' => $data['notify_email'] ?? null,
|
||||
'product_updates' => $request->boolean('product_updates'),
|
||||
'low_balance_alerts' => $request->boolean('low_balance_alerts'),
|
||||
'default_type' => $data['default_type'] ?? null,
|
||||
'default_style' => QrSetting::sanitizeDefaultStyle($data['default_style'] ?? null),
|
||||
],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user