feat(work-orders): dashboard becomes single hub — list/create/edit funnel through it
- WO list row click now opens /work-orders/{id}/dashboard instead of
/edit (via ->recordUrl on the table). Edit remains reachable from
the per-row Filament EditAction.
- CreateWorkOrder redirects to the dashboard after save instead of
the edit page.
- Dashboard top bar exposes: "Listă" (back to WO list), "+ Nou"
(create), and "Editare completă" (full edit form) so users don't
have to hop through the sidebar to move between related WO screens.
The old /work-orders, /create, and /{id}/edit routes stay intact —
just the default navigation flow now converges on the dashboard.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -385,15 +385,20 @@
|
||||
<span style="opacity:.6;">▾</span>
|
||||
</span>
|
||||
<div class="wd-topbar-actions">
|
||||
<a class="wd-btn" href="{{ url('/app/work-orders') }}" title="{{ __('Toate fișele') }}">
|
||||
☰ {{ __('Listă') }}
|
||||
</a>
|
||||
<a class="wd-btn wd-btn-primary" href="{{ url('/app/work-orders/create') }}" title="{{ __('Fișă nouă') }}">
|
||||
+ {{ __('Nou') }}
|
||||
</a>
|
||||
<a class="wd-btn" href="{{ route('filament.tenant.resources.work-orders.edit', ['record' => $wo->id]) }}">
|
||||
✎ {{ __('Editează') }}
|
||||
✎ {{ __('Editare completă') }}
|
||||
</a>
|
||||
@if ($wo->tracking_token)
|
||||
<a class="wd-btn" target="_blank" href="{{ $wo->trackingUrl() }}">
|
||||
🔗 {{ __('Link tracking') }}
|
||||
</a>
|
||||
@endif
|
||||
<button type="button" class="wd-btn wd-btn-primary">{{ __('Salvează') }}</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user