1. Added import and export actions with labels and warning colors for the following resources:

- LineResource
  - LineStopResource
  - LocatorResource
  - MachineResource
  - MfmMeterResource
  - MfmParameterResource
  - MotorTestingMasterResource
  - PlantResource
  - ProductionLineStopResource
  - ProductionPlanResource
  - ProductionQuantityResource
  - QualityValidationResource
  - SerialValidationResource
  - ShiftResource
  - StickerMasterResource
  - UserResource
  - WorkGroupMasterResource
2. Updated camera capture functionality to ensure overlay canvas size syncs with video size.
This commit is contained in:
dhanabalan
2025-11-13 16:27:48 +05:30
parent d9e1190d92
commit 68cd0b81a2
31 changed files with 641 additions and 108 deletions

View File

@@ -222,11 +222,15 @@ class PlantResource extends Resource
])
->headerActions([
ImportAction::make()
->label('Import Plants')
->color('warning')
->importer(PlantImporter::class)
->visible(function() {
return Filament::auth()->user()->can('view import plant');
}),
ExportAction::make()
->label('Export Plants')
->color('warning')
->exporter(PlantExporter::class)
->visible(function() {
return Filament::auth()->user()->can('view export plant');