TenantAtlas/specs/013-scripts-management/tasks.md
2026-01-01 22:44:33 +01:00

1.3 KiB

Tasks: Scripts Management (013)

Branch: 013-scripts-management | Date: 2026-01-01
Input: spec.md, plan.md

Phase 1: Contracts Review

  • T001 Verify config/graph_contracts.php entries for deviceManagementScript, deviceShellScript, deviceHealthScript (resource, type_family, assignment payload key).

Phase 2: UI Normalization

  • T002 Add a ScriptsPolicyNormalizer (or equivalent) to produce readable normalized settings for the three script policy types.
  • T003 Register the normalizer in AppServiceProvider.

Phase 3: Tests + Verification

  • T004 Add tests for normalized output (shape + stability) for each script policy type.
  • T005 Add Filament render tests for “Normalized settings” tab for each script policy type.
  • T006 Run targeted tests.
  • T007 Run Pint (./vendor/bin/pint --dirty).

Phase 4: Script Content Display (Safe)

  • T008 Add opt-in display + base64 decoding for scriptContent in normalized settings.
  • T009 Highlight script content with Torch (shebang-based shell + PowerShell default).
  • T010 Hide script content behind a Show/Hide button (collapsed by default).
  • T011 Highlight script content in Normalized Diff view (From/To).
  • T012 Enable Torchlight highlighting in Diff + Before/After views.

Open TODOs (Follow-up)

  • None yet.