M3 Integration fixes pass 27
This commit is contained in:
@@ -17,7 +17,7 @@ use Modules\Helpdesk\Models\Ticket;
|
||||
*/
|
||||
final class TicketFactory extends Factory
|
||||
{
|
||||
private const FACTORY_BODY = self::FACTORY_BODY;
|
||||
private const FACTORY_BODY = 'Factory helpdesk ticket body';
|
||||
|
||||
/**
|
||||
* The model name for the factory.
|
||||
|
||||
@@ -17,7 +17,7 @@ use Modules\Helpdesk\Services\WorkflowNotificationService;
|
||||
|
||||
final class KanbanBoard extends Component
|
||||
{
|
||||
private const OWNER_RELATION = self::OWNER_RELATION;
|
||||
private const OWNER_RELATION = 'owner:id,name,email';
|
||||
|
||||
public ?int $board_id = null;
|
||||
|
||||
|
||||
@@ -482,7 +482,7 @@
|
||||
|
||||
<div id="ticket-comment-body-editor" dusk="comment-body" data-dusk="comment-body"
|
||||
data-helpdesk-rich-editor data-helpdesk-sync-target="ticket-comment-body"
|
||||
contenteditable="true" aria-label="Write a public reply or internal note." spellcheck="true" lang="en-GB" autocorrect="on" autocomplete="on" autocapitalize="sentences" inputmode="text"
|
||||
contenteditable="true" role="textbox" aria-multiline="true" spellcheck="true" lang="en-GB" aria-label="Write a public reply or internal note." autocorrect="on" autocomplete="on" autocapitalize="sentences" inputmode="text"
|
||||
class="prose prose-sm min-h-[12rem] max-w-none bg-white p-4 text-sm leading-6 text-zinc-900 outline-none dark:prose-invert dark:bg-zinc-950 dark:text-zinc-100"
|
||||
data-placeholder="Write a public reply or internal note. Right-click or Ctrl-click underlined words for spelling suggestions.">{!! $oldCommentBody !!}</div>
|
||||
|
||||
@@ -1661,7 +1661,7 @@
|
||||
|
||||
<style>
|
||||
[data-helpdesk-sidebar-cards] details > summary::-webkit-details-marker {
|
||||
display: none;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
[data-helpdesk-sidebar-cards] details > summary {
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\M3Integration\Providers;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class M3IntegrationServiceProvider extends ServiceProvider
|
||||
{
|
||||
public function boot(): void
|
||||
{
|
||||
$this->loadRoutesFrom(__DIR__ . '/../Routes/web.php');
|
||||
$this->loadViewsFrom(__DIR__ . '/../Resources/views', 'm3integration');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<x-layouts::app :title="__('M3 Integration')">
|
||||
<div class="container-fluid py-4 module-page module-m3-integration">
|
||||
<x-wms.page-hero eyebrow="Integration" title="M3 Integration"
|
||||
description="Observe M3 transactions and integration activity."
|
||||
icon="fa-solid fa-arrows-rotate" />
|
||||
</div>
|
||||
</x-layouts::app>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::middleware(['web', 'auth'])
|
||||
->prefix('m3-integration')
|
||||
->name('m3-integration.')
|
||||
->group(function (): void {
|
||||
Route::view('/', 'm3integration::index')->name('index');
|
||||
});
|
||||
@@ -11,7 +11,7 @@ use Modules\Platform\app\Models\PlatformPrice;
|
||||
|
||||
class PlatformPriceController extends Controller
|
||||
{
|
||||
private const MIN_ZERO = self::MIN_ZERO;
|
||||
private const MIN_ZERO = 'min:0';
|
||||
|
||||
/**
|
||||
* Display the customer-facing platform pricing cards.
|
||||
|
||||
@@ -241,6 +241,15 @@
|
||||
</button>
|
||||
|
||||
<div class="wms-sidebar-group-items" data-wms-menu-items>
|
||||
@if (Route::has('m3-integration.index'))
|
||||
<a href="{{ route('m3-integration.index') }}" wire:navigate
|
||||
class="wms-sidebar-link @if (request()->routeIs('m3-integration.*')) is-active @endif"
|
||||
title="{{ __('M3 Integration') }}">
|
||||
<i class="fa-solid fa-arrows-rotate wms-sidebar-icon" aria-hidden="true"></i>
|
||||
<span data-wms-sidebar-label>{{ __('M3 Integration') }}</span>
|
||||
</a>
|
||||
@endif
|
||||
|
||||
@if (Route::has('m3.index'))
|
||||
<a href="{{ route('m3.index') }}"
|
||||
class="wms-sidebar-link @if (request()->routeIs('m3.*')) is-active @endif"
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ Route::get('/dashboard', PlatformDashboardController::class)
|
||||
->middleware(['auth', 'verified', 'company.licensed'])
|
||||
->name('dashboard');
|
||||
|
||||
require_once __DIR__ . '/settings.php';
|
||||
require __DIR__ . '/settings.php';
|
||||
|
||||
Route::get('/api/countries/resolve/{code}', function (string $code) {
|
||||
$normalised = strtoupper(trim($code));
|
||||
|
||||
Reference in New Issue
Block a user