Fix code quality violations for publish
Remove unused blade settings pages not linked from UI Convert remaining frontend pages to SPA actions Convert settings user_settings and general to SPA actions Convert settings profile pages to SPA actions Convert contacts and projects add/edit pages to SPA actions Convert clients add/edit page to SPA action with loading pattern Refactor component scoped IDs from $id to $sid Fix jqhtml comment syntax and implement universal error component system Update all application code to use new unified error system Remove all backwards compatibility - unified error system complete Phase 5: Remove old response classes Phase 3-4: Ajax response handler sends new format, old helpers deprecated Phase 2: Add client-side unified error foundation Phase 1: Add server-side unified error foundation Add unified Ajax error response system with constants 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -782,7 +782,7 @@ class Dispatcher
|
||||
}
|
||||
|
||||
// Handle authentication required
|
||||
if ($type === 'response_auth_required') {
|
||||
if ($type === \App\RSpade\Core\Ajax\Ajax::ERROR_AUTH_REQUIRED) {
|
||||
if ($redirect_url) {
|
||||
Rsx::flash_error($reason);
|
||||
|
||||
@@ -793,7 +793,7 @@ class Dispatcher
|
||||
}
|
||||
|
||||
// Handle unauthorized
|
||||
if ($type === 'response_unauthorized') {
|
||||
if ($type === \App\RSpade\Core\Ajax\Ajax::ERROR_UNAUTHORIZED) {
|
||||
if ($redirect_url) {
|
||||
Rsx::flash_error($reason);
|
||||
|
||||
@@ -803,8 +803,8 @@ class Dispatcher
|
||||
throw new Exception($reason);
|
||||
}
|
||||
|
||||
// Handle form error
|
||||
if ($type === 'response_form_error') {
|
||||
// Handle validation and not found errors
|
||||
if ($type === \App\RSpade\Core\Ajax\Ajax::ERROR_VALIDATION || $type === \App\RSpade\Core\Ajax\Ajax::ERROR_NOT_FOUND) {
|
||||
// Only redirect if this was a POST request
|
||||
if (request()->isMethod('POST')) {
|
||||
Rsx::flash_error($reason);
|
||||
|
||||
Reference in New Issue
Block a user