Skip to content

Commit 9d955e1

Browse files
committed
refactor(power-pages): rename migrate-sdm-to-edm skill to migrate-datamodel + report/telemetry updates
Rename skill 'migrate-sdm-to-edm' -> 'migrate-datamodel' across the folder, SKILL.md frontmatter name, all script path references, telemetry SKILL_NAME, the live-report footer, and the skill-tracking table (MigrateDatamodel). Descriptive SDM->EDM report filenames/content are intentionally left unchanged. Add skill_completed 1DS telemetry via new scripts/emit-telemetry.js (Option A): builds a per-phase rollup from migration-state.json into eventInfo, fails closed, and honors the plugin kill switch. Wired into the final phase of SKILL.md. Remove the Power Pages VS Code extension dependency from the remediation diff: drop the PP-VSCode import button/guide, importer-only JSON fields, and base64 file contents; slim remediation-diff.json to a skill-owned manifest with absolute livePath/stagedPath; add per-file 'Copy diff command' buttons that copy 'code --diff' (single-quoted absolute paths, works in any terminal/shell, no extension) plus a clipboard script with a file:// fallback. Convert the Overview boilerplate into grouped bullet points and drop the stale hardcoded sub-step counts (live counts remain in the stats grid and Plan section). Add an 'AI-generated content may be incorrect' disclaimer to the live report and the customization/migration report footers. Rename the foundation package reference PowerPagesCore -> PowerPages_Core (6 references).
1 parent ab6a521 commit 9d955e1

23 files changed

Lines changed: 442 additions & 205 deletions

plugins/power-pages/references/skill-tracking-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ If the tracking script creates or updates site setting YAML files, include those
4242
| add-cloud-flow | AddCloudFlow | Site/AI/Skills/AddCloudFlow |
4343
| add-ai-webapi | AddAiWebapi | Site/AI/Skills/AddAiWebapi |
4444
| integrate-backend | IntegrateBackend | Site/AI/Skills/IntegrateBackend |
45-
| migrate-sdm-to-edm | MigrateSdmToEdm | Site/AI/Skills/MigrateSdmToEdm |
45+
| migrate-datamodel | MigrateDatamodel | Site/AI/Skills/MigrateDatamodel |
4646
| scan-site | ScanSite | Site/AI/Skills/ScanSite |
4747
| manage-headers | ManageHeaders | Site/AI/Skills/ManageHeaders |
4848
| manage-firewall | ManageFirewall | Site/AI/Skills/ManageFirewall |

plugins/power-pages/skills/migrate-sdm-to-edm/BugBash-MigrateSdmToEdm.docx renamed to plugins/power-pages/skills/migrate-datamodel/BugBash-MigrateSdmToEdm.docx

File renamed without changes.

plugins/power-pages/skills/migrate-sdm-to-edm/DESIGN.md renamed to plugins/power-pages/skills/migrate-datamodel/DESIGN.md

File renamed without changes.

plugins/power-pages/skills/migrate-sdm-to-edm/Migrate SDM to EDM [Design doc].pdf renamed to plugins/power-pages/skills/migrate-datamodel/Migrate SDM to EDM [Design doc].pdf

File renamed without changes.

plugins/power-pages/skills/migrate-sdm-to-edm/REPORTS_INTEGRATION.md renamed to plugins/power-pages/skills/migrate-datamodel/REPORTS_INTEGRATION.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# HTML Reports Integration Guide
22

3-
This document explains how to integrate the HTML report templates and generation scripts into the `migrate-sdm-to-edm` skill workflow.
3+
This document explains how to integrate the HTML report templates and generation scripts into the `migrate-datamodel` skill workflow.
44

55
## Folder Structure
66

77
```
8-
plugins/power-pages/skills/migrate-sdm-to-edm/
8+
plugins/power-pages/skills/migrate-datamodel/
99
├── assets/
1010
│ ├── customization-report.html # Template for customization report
1111
│ ├── sdm-to-edm-migration-report.html # Template for execution report
@@ -37,7 +37,7 @@ pac pages migrate-datamodel --webSiteId "<WEBSITE_ID>" --siteCustomizationReport
3737
# ... parsing logic ...
3838

3939
# Phase 8 step 3: Generate HTML report
40-
node "${CLAUDE_PLUGIN_ROOT}/skills/migrate-sdm-to-edm/scripts/generate-migration-reports.js" \
40+
node "${CLAUDE_PLUGIN_ROOT}/skills/migrate-datamodel/scripts/generate-migration-reports.js" \
4141
--customization-report "./migration-report/SiteCustomization.csv" \
4242
--site-name "<SITE_NAME>" \
4343
--website-id "<WEBSITE_ID>" \
@@ -53,7 +53,7 @@ echo "Customization report: file://$(pwd)/migration-reports/customization-report
5353
For automatable fixes (Data Model Extensions only), the same script is invoked with `--automate` and `--env-url`:
5454

5555
```bash
56-
node "${CLAUDE_PLUGIN_ROOT}/skills/migrate-sdm-to-edm/scripts/generate-migration-reports.js" \
56+
node "${CLAUDE_PLUGIN_ROOT}/skills/migrate-datamodel/scripts/generate-migration-reports.js" \
5757
--site-name "<SITE_NAME>" \
5858
--website-id "<WEBSITE_ID>" \
5959
--siteCustomizationReportPath "./migration-report/SiteCustomization.csv" \
@@ -81,7 +81,7 @@ The script creates missing string attributes via Dataverse Web API and logs resu
8181
# Track all commands, results, and timing
8282

8383
# At end of Phase 12: generate execution report
84-
node "${CLAUDE_PLUGIN_ROOT}/skills/migrate-sdm-to-edm/scripts/generate-migration-reports.js" \
84+
node "${CLAUDE_PLUGIN_ROOT}/skills/migrate-datamodel/scripts/generate-migration-reports.js" \
8585
--site-name "<SITE_NAME>" \
8686
--website-id "<WEBSITE_ID>" \
8787
--portal-id "<PORTAL_ID>" \
@@ -183,7 +183,7 @@ During skill execution, collect:
183183
The skill calls the script after parsing the CSV from PAC CLI:
184184

185185
```powershell
186-
node "${CLAUDE_PLUGIN_ROOT}/skills/migrate-sdm-to-edm/scripts/generate-migration-reports.js" `
186+
node "${CLAUDE_PLUGIN_ROOT}/skills/migrate-datamodel/scripts/generate-migration-reports.js" `
187187
--customization-report "<REPORT_PATH>" `
188188
--site-name "<SITE_NAME>" `
189189
--website-id "<WEBSITE_ID>" `
@@ -198,7 +198,7 @@ Open the generated HTML report in your browser: `file://<OUTPUT_DIR>/customizati
198198
The same script runs with `--automate` to apply safe fixes via Dataverse API (Data Model Extensions only):
199199

200200
```powershell
201-
node "${CLAUDE_PLUGIN_ROOT}/skills/migrate-sdm-to-edm/scripts/generate-migration-reports.js" `
201+
node "${CLAUDE_PLUGIN_ROOT}/skills/migrate-datamodel/scripts/generate-migration-reports.js" `
202202
--site-name "<SITE_NAME>" `
203203
--website-id "<WEBSITE_ID>" `
204204
--siteCustomizationReportPath "<REPORT_PATH>" `
@@ -213,7 +213,7 @@ node "${CLAUDE_PLUGIN_ROOT}/skills/migrate-sdm-to-edm/scripts/generate-migration
213213
At the end of post-migration validation:
214214

215215
```powershell
216-
node "${CLAUDE_PLUGIN_ROOT}/skills/migrate-sdm-to-edm/scripts/generate-migration-reports.js" `
216+
node "${CLAUDE_PLUGIN_ROOT}/skills/migrate-datamodel/scripts/generate-migration-reports.js" `
217217
--site-name "<SITE_NAME>" `
218218
--website-id "<WEBSITE_ID>" `
219219
--portal-id "<PORTAL_ID>" `

plugins/power-pages/skills/migrate-sdm-to-edm/SKILL.md renamed to plugins/power-pages/skills/migrate-datamodel/SKILL.md

Lines changed: 39 additions & 30 deletions
Large diffs are not rendered by default.

plugins/power-pages/skills/migrate-sdm-to-edm/assets/README.md renamed to plugins/power-pages/skills/migrate-datamodel/assets/README.md

File renamed without changes.

plugins/power-pages/skills/migrate-sdm-to-edm/assets/customization-report.html renamed to plugins/power-pages/skills/migrate-datamodel/assets/customization-report.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ <h1>Site Customization Report</h1>
146146

147147
<div class="footer">
148148
<p>Generated by Power Pages Migration Tool · Report created on {{REPORT_DATE}}</p>
149+
<p>AI-generated content may be incorrect</p>
149150
</div>
150151
</div>
151152
</body>

plugins/power-pages/skills/migrate-sdm-to-edm/assets/sdm-to-edm-migration-report.html renamed to plugins/power-pages/skills/migrate-datamodel/assets/sdm-to-edm-migration-report.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,7 @@ <h2>
610610

611611
<div class="footer">
612612
<p>Generated by Power Pages Migration Tool | Report created on {{REPORT_DATE}}</p>
613+
<p>AI-generated content may be incorrect</p>
613614
</div>
614615
</div>
615616
</body>

plugins/power-pages/skills/migrate-sdm-to-edm/scripts/apply-remediation.js renamed to plugins/power-pages/skills/migrate-datamodel/scripts/apply-remediation.js

File renamed without changes.

0 commit comments

Comments
 (0)