3 Commits

Author SHA1 Message Date
c841ff830d Update dependency erag/laravel-pwa to v2
Some checks failed
renovate/artifacts Artifact file update failure
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 15s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 19s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 14s
Laravel Pint / pint (pull_request) Failing after 1m27s
Laravel Larastan / larastan (pull_request) Failing after 1m31s
2026-06-14 00:01:08 +00:00
f99bc12603 Merge pull request 'Added logic to slect default ok button in checklist of quality' (#752) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 21s
Reviewed-on: #752
2026-06-13 11:30:24 +00:00
dhanabalan
2b3d423769 Added logic to slect default ok button in checklist of quality
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 15s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 16s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 15s
Laravel Pint / pint (pull_request) Successful in 1m55s
Laravel Larastan / larastan (pull_request) Failing after 3m23s
2026-06-13 17:00:09 +05:30
2 changed files with 19 additions and 22 deletions

View File

@@ -25,15 +25,15 @@ class ProductionCheckList extends Component
public $existingRecords = []; public $existingRecords = [];
public bool $shouldSkipChecklist = false; // public bool $shouldSkipChecklist = false;
public array $checklist = []; public array $checklist = [];
public $showChecklist = false; public $showChecklist = false;
public $skipChecklistValidation = false; // public $skipChecklistValidation = false;
protected $listeners = ['focus-item-id' => 'handleFocus', 'trigger-create' => 'doCreate',]; // protected $listeners = ['focus-item-id' => 'handleFocus', 'trigger-create' => 'doCreate',];
public $data = public $data =
[ [
@@ -45,23 +45,21 @@ class ProductionCheckList extends Component
'checklist' => [], 'checklist' => [],
]; ];
#[On('focus-item-id')] // public function doCreate()
public function handleFocus() // {
{ // $this->create();
$this->dispatch('focus-input');
}
public function doCreate()
{
$this->create();
$this->shouldSkipChecklist = false;
}
// $this->shouldSkipChecklist = false;
// }
public function mount($records = []) public function mount($records = [])
{ {
$this->records = collect($records); // $this->records = collect($records);
$this->records = $records;
foreach ($records as $record) {
$this->checklist[$record['id']] = 'ok';
}
} }
public function cancel() public function cancel()
@@ -255,11 +253,10 @@ class ProductionCheckList extends Component
]; ];
} }
public function updatedDataChecklist() // public function updatedDataChecklist()
{ // {
$this->dispatch('checklistUpdated', $this->data['checklist']); // $this->dispatch('checklistUpdated', $this->data['checklist']);
} // }
public function render() public function render()
{ {

View File

@@ -10,7 +10,7 @@
"alperenersoy/filament-export": "^3.0", "alperenersoy/filament-export": "^3.0",
"althinect/filament-spatie-roles-permissions": "^2.3", "althinect/filament-spatie-roles-permissions": "^2.3",
"diogogpinto/filament-auth-ui-enhancer": "^1.0", "diogogpinto/filament-auth-ui-enhancer": "^1.0",
"erag/laravel-pwa": "^1.9", "erag/laravel-pwa": "^2.0",
"filament/filament": "^3.3", "filament/filament": "^3.3",
"intervention/image": "^3.11", "intervention/image": "^3.11",
"irazasyed/telegram-bot-sdk": "^3.15", "irazasyed/telegram-bot-sdk": "^3.15",