feat(helpdesk): align module with core list/drawer standards
- add helpdesk module pages, services, settings and tests - standardize debtor list on drawer/grid contracts and robust filter drawer behavior - add helpdesk aside panel navigation and settings visibility provider - switch primary list slug to helpdesk/debitor and remove helpdesk/search compatibility - include required core contract updates for list contracts and detail/drawer integration
This commit is contained in:
85
modules/helpdesk/module.php
Normal file
85
modules/helpdesk/module.php
Normal file
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Helpdesk module manifest.
|
||||
*
|
||||
* Internal employee lookup for BC debtors, contacts and tickets
|
||||
* via OData V4. Read-only V1 with Basic Auth (OAuth2 optional).
|
||||
*/
|
||||
return [
|
||||
'id' => 'helpdesk',
|
||||
'version' => '1.0.0',
|
||||
'enabled_by_default' => false,
|
||||
'load_order' => 50,
|
||||
'requires' => [],
|
||||
|
||||
'routes' => [
|
||||
['path' => 'helpdesk/debitor', 'target' => 'helpdesk/search'],
|
||||
['path' => 'helpdesk/search-data', 'target' => 'helpdesk/search-data'],
|
||||
['path' => 'helpdesk/debitor/{id}', 'target' => 'helpdesk/debitor'],
|
||||
['path' => 'helpdesk/ticket/{id}', 'target' => 'helpdesk/ticket'],
|
||||
['path' => 'helpdesk/settings', 'target' => 'helpdesk/settings'],
|
||||
['path' => 'helpdesk/settings/test-connection-data', 'target' => 'helpdesk/settings/test-connection-data'],
|
||||
['path' => 'helpdesk/settings/diagnose-data', 'target' => 'helpdesk/settings/diagnose-data'],
|
||||
['path' => 'helpdesk/debitor-contacts-data', 'target' => 'helpdesk/debitor-contacts-data'],
|
||||
['path' => 'helpdesk/debitor-tickets-data', 'target' => 'helpdesk/debitor-tickets-data'],
|
||||
['path' => 'helpdesk/debitor-ticket-categories-data', 'target' => 'helpdesk/debitor-ticket-categories-data'],
|
||||
['path' => 'helpdesk/ticket-log-data', 'target' => 'helpdesk/ticket-log-data'],
|
||||
],
|
||||
'public_paths' => [],
|
||||
|
||||
'container_registrars' => [
|
||||
\MintyPHP\Module\Helpdesk\HelpdeskContainerRegistrar::class,
|
||||
],
|
||||
|
||||
'ui_slots' => [
|
||||
'aside.tab_panel' => [
|
||||
[
|
||||
'key' => 'helpdesk',
|
||||
'label' => 'Helpdesk',
|
||||
'icon' => 'bi-headset',
|
||||
'href' => 'helpdesk/debitor',
|
||||
'permission' => 'helpdesk.access',
|
||||
'panel_template' => 'templates/aside-helpdesk-panel.phtml',
|
||||
'details_storage' => 'aside-helpdesk-sections-v1',
|
||||
'details_open_active' => true,
|
||||
'order' => 800,
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
'authorization_policies' => [
|
||||
\MintyPHP\Module\Helpdesk\HelpdeskAuthorizationPolicy::class,
|
||||
],
|
||||
|
||||
'permissions' => [
|
||||
[
|
||||
'key' => 'helpdesk.access',
|
||||
'description' => 'Access helpdesk debtor search and detail views',
|
||||
'active' => true,
|
||||
'is_system' => true,
|
||||
],
|
||||
[
|
||||
'key' => 'helpdesk.settings.manage',
|
||||
'description' => 'Manage helpdesk BC connection settings',
|
||||
'active' => true,
|
||||
'is_system' => true,
|
||||
],
|
||||
],
|
||||
|
||||
'search_resources' => [],
|
||||
'asset_groups' => [
|
||||
'helpdesk' => [
|
||||
'modules/helpdesk/css/helpdesk.css',
|
||||
],
|
||||
],
|
||||
'scheduler_jobs' => [],
|
||||
'layout_context_providers' => [
|
||||
\MintyPHP\Module\Helpdesk\Providers\HelpdeskLayoutProvider::class,
|
||||
],
|
||||
'session_providers' => [],
|
||||
'event_listeners' => [],
|
||||
'deactivation_handler' => null,
|
||||
'migrations_path' => 'migrations',
|
||||
'i18n_path' => 'i18n',
|
||||
];
|
||||
Reference in New Issue
Block a user