27 lines
1.3 KiB
Markdown
27 lines
1.3 KiB
Markdown
# Tasks: Scripts Management (013)
|
|
|
|
**Branch**: `013-scripts-management` | **Date**: 2026-01-01
|
|
**Input**: [spec.md](./spec.md), [plan.md](./plan.md)
|
|
|
|
## Phase 1: Contracts Review
|
|
- [x] T001 Verify `config/graph_contracts.php` entries for `deviceManagementScript`, `deviceShellScript`, `deviceHealthScript` (resource, type_family, assignment payload key).
|
|
|
|
## Phase 2: UI Normalization
|
|
- [x] T002 Add a `ScriptsPolicyNormalizer` (or equivalent) to produce readable normalized settings for the three script policy types.
|
|
- [x] T003 Register the normalizer in `AppServiceProvider`.
|
|
|
|
## Phase 3: Tests + Verification
|
|
- [x] T004 Add tests for normalized output (shape + stability) for each script policy type.
|
|
- [x] T005 Add Filament render tests for “Normalized settings” tab for each script policy type.
|
|
- [x] T006 Run targeted tests.
|
|
- [x] T007 Run Pint (`./vendor/bin/pint --dirty`).
|
|
|
|
## Phase 4: Script Content Display (Safe)
|
|
- [x] T008 Add opt-in display + base64 decoding for `scriptContent` in normalized settings.
|
|
- [x] T009 Highlight script content with Torch (shebang-based shell + PowerShell default).
|
|
- [x] T010 Hide script content behind a Show/Hide button (collapsed by default).
|
|
- [x] T011 Highlight script content in Normalized Diff view (From/To).
|
|
|
|
## Open TODOs (Follow-up)
|
|
- None yet.
|