@hart365/pp-md-pptb-edition 1.1.5 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +231 -227
- package/dist/assets/pp-md-app.js +509 -454
- package/dist/assets/pp-md-styles.css +1 -1
- package/dist/icons/pp-md.svg +423 -5
- package/package.json +1 -1
- /package/dist/assets/{pp-md-icon-Dgg8-GAC.svg → pp-md-icon.svg} +0 -0
package/README.md
CHANGED
|
@@ -1,227 +1,231 @@
|
|
|
1
|
-
# PP-MD Power Platform Markdown Document Generator
|
|
2
|
-
|
|
3
|
-
PP-MD generates structured Markdown documentation for Microsoft Power Platform solutions in two modes:
|
|
4
|
-
|
|
5
|
-
- Local Solutions mode (upload one or more solution ZIP files)
|
|
6
|
-
- Dataverse Connected mode (read solution metadata directly from the active Power Platform ToolBox environment)
|
|
7
|
-
|
|
8
|
-
## Tool Features And Capabilities
|
|
9
|
-
|
|
10
|
-
### Input and solution scope
|
|
11
|
-
|
|
12
|
-
- Process one or more exported Power Platform solution ZIP files entirely in the local tool runtime.
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
-
|
|
24
|
-
-
|
|
25
|
-
-
|
|
26
|
-
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
-
|
|
46
|
-
- Export documents
|
|
47
|
-
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
55
|
-
-
|
|
56
|
-
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
|
65
|
-
|
|
|
66
|
-
|
|
|
67
|
-
|
|
|
68
|
-
|
|
|
69
|
-
|
|
|
70
|
-
|
|
|
71
|
-
| configurations.
|
|
72
|
-
|
|
|
73
|
-
|
|
|
74
|
-
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
- **
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
- **
|
|
104
|
-
- **
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
-
|
|
115
|
-
-
|
|
116
|
-
-
|
|
117
|
-
-
|
|
118
|
-
-
|
|
119
|
-
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
-
|
|
180
|
-
-
|
|
181
|
-
-
|
|
182
|
-
-
|
|
183
|
-
-
|
|
184
|
-
-
|
|
185
|
-
-
|
|
186
|
-
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
-
|
|
207
|
-
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
##
|
|
226
|
-
|
|
227
|
-
|
|
1
|
+
# PP-MD Power Platform Markdown Document Generator
|
|
2
|
+
|
|
3
|
+
PP-MD generates structured Markdown documentation for Microsoft Power Platform solutions in two modes:
|
|
4
|
+
|
|
5
|
+
- Local Solutions mode (upload one or more solution ZIP files)
|
|
6
|
+
- Dataverse Connected mode (read solution metadata directly from the active Power Platform ToolBox environment)
|
|
7
|
+
|
|
8
|
+
## Tool Features And Capabilities
|
|
9
|
+
|
|
10
|
+
### Input and solution scope
|
|
11
|
+
|
|
12
|
+
- Process one or more exported Power Platform solution ZIP files entirely in the local tool runtime. All documentation and analysis happens on your machine; no solution data is uploaded.
|
|
13
|
+
- The app header shows the running version (`PP-MD - PPTB Edition v#.#.#`), and the **Generate Selected** button stays pinned to the bottom-right of the solution selection page.
|
|
14
|
+
- Browse, search, sort, filter, refresh, and multi-select solutions from the active Power Platform ToolBox Dataverse connection.
|
|
15
|
+
- Filter connected solutions by publisher and managed or unmanaged status.
|
|
16
|
+
- Keep connected collection read-only and scoped to the selected solution components through `solutioncomponent` records.
|
|
17
|
+
- Choose between solution-only collection, bounded direct-reference enrichment, and a separately labelled environment appendix.
|
|
18
|
+
- Page FetchXML in 5,000-record batches (up to 100,000 rows), cap OData at 5,000 rows, and batch selected-table metadata lookups with explicit safety limits.
|
|
19
|
+
- Treat unavailable optional modern-artifact endpoints as capability gaps without failing the rest of the document.
|
|
20
|
+
|
|
21
|
+
### Documentation coverage
|
|
22
|
+
|
|
23
|
+
- Tables, columns, requiredness, data types, keys, ownership, choices, relationships, cascade rules, Advanced Find, and field-security metadata.
|
|
24
|
+
- Forms, views, workflows, cloud flows, business process flows, business rules, actions, custom APIs, desktop flows, and dataflows.
|
|
25
|
+
- Model-driven apps, canvas apps, custom pages, code apps, app navigation, Copilot Studio agents, and AI models.
|
|
26
|
+
- Security roles, privilege depths, field-security profiles, plug-in assemblies, plug-in types, SDK message processing steps, reports, dashboards, and web resources.
|
|
27
|
+
- Connection references, environment variables, SharePoint references, offline profiles, component dependencies, and Dataverse enrichment indicators.
|
|
28
|
+
- Individual solution documents plus a complete **All Selected Solutions** document generated from the same normalized model.
|
|
29
|
+
- Mermaid ERDs and architecture diagrams, with companion diagram documents for consolidated or structurally complex output.
|
|
30
|
+
|
|
31
|
+
### Generation, viewing, and configuration
|
|
32
|
+
|
|
33
|
+
- Configure document context, section scope, table metadata columns, security-role filters, diagram detail, diagram colour theme, and dependency reports.
|
|
34
|
+
- Save reusable configuration presets through ToolBox settings with a local-development fallback.
|
|
35
|
+
- View sanitised GitHub Flavored Markdown as rendered content or raw source.
|
|
36
|
+
- Import existing Markdown, search within rendered documents, copy Markdown, and follow generated table-of-contents and Back to Top links.
|
|
37
|
+
- Keep document controls visible above the independently scrolling viewer and adapt toolbar actions into responsive groups on narrow screens.
|
|
38
|
+
- Render Mermaid diagrams lazily, then pre-render the rest in the background (top-down, low priority, paused while scrolling, visible diagrams first), cache completed SVG output, and force outstanding diagrams to finish before PDF generation.
|
|
39
|
+
- Yield during large PDF drawing operations so status updates can paint and the interface remains responsive where possible.
|
|
40
|
+
|
|
41
|
+
### Export capabilities
|
|
42
|
+
|
|
43
|
+
- Export the active document as Markdown, standalone sanitised HTML, searchable text-based PDF, or a styled Excel workbook.
|
|
44
|
+
- Embed rendered Mermaid diagrams in PDF output and fall back to readable diagram source when an image is unavailable.
|
|
45
|
+
- Preserve PDF pagination, headings, paragraphs, lists, tables, code blocks, links, and font-safe replacements for unsupported symbols.
|
|
46
|
+
- Export all Markdown documents, companion diagrams, and optional dependency reports in a ZIP archive.
|
|
47
|
+
- Export documents by category with organized folders for individual and consolidated output.
|
|
48
|
+
- Batch export every generated document as HTML, PDF, or Excel in a single ZIP archive.
|
|
49
|
+
- Use the PPTB file-system bridge in the host and browser downloads during local development, with visible progress retained through the Save-dialog handoff.
|
|
50
|
+
|
|
51
|
+
### Security and privacy
|
|
52
|
+
|
|
53
|
+
- Keep local ZIP processing on the user's device and connected collection within the active ToolBox connection context.
|
|
54
|
+
- Never query or render credentials, secure plug-in configuration, or live environment-variable values.
|
|
55
|
+
- Report only whether an environment-variable current-value record exists.
|
|
56
|
+
- Sanitise rendered Markdown and restrict generated HTML classes before display or HTML export.
|
|
57
|
+
- Strip raw HTML tags from PDF table-cell text, including tags with quoted `>` characters in attributes.
|
|
58
|
+
- Limit Dataverse Deep Insights and dependency output to meaningful references within the selected solution inventory.
|
|
59
|
+
|
|
60
|
+
## Power Platform ToolBox Manifest Alignment
|
|
61
|
+
|
|
62
|
+
This README is aligned to metadata in package.json used by Power Platform ToolBox.
|
|
63
|
+
|
|
64
|
+
| Manifest Field | Value |
|
|
65
|
+
| --- | --- |
|
|
66
|
+
| name | @hart365/pp-md-pptb-edition |
|
|
67
|
+
| displayName | PP-MD Power Platform Markdown Document Generator |
|
|
68
|
+
| version | 1.1.7 |
|
|
69
|
+
| description | Generate structured Markdown documentation from Solution ZIP files or a direct Dataverse connection |
|
|
70
|
+
| icon | icons/pp-md.svg |
|
|
71
|
+
| configurations.repository | https://github.com/Hart365/pp-md-pptb-edition |
|
|
72
|
+
| configurations.readmeUrl | https://raw.githubusercontent.com/Hart365/pp-md-pptb-edition/refs/heads/main/README.md |
|
|
73
|
+
| configurations.website | https://github.com/Hart365/pp-md-pptb-edition |
|
|
74
|
+
| features.connectionRequirement | optional |
|
|
75
|
+
| features.minAPI | 1.2.2 |
|
|
76
|
+
| license | MIT |
|
|
77
|
+
|
|
78
|
+
## User Guide
|
|
79
|
+
|
|
80
|
+
### Local Solutions
|
|
81
|
+
|
|
82
|
+
1. Choose **Local Solutions**.
|
|
83
|
+
2. Drop one or more exported `.zip` solution files or use the file picker.
|
|
84
|
+
3. Review the generated documents in the sidebar.
|
|
85
|
+
4. Adjust document context, metadata columns, security filters, diagram settings, and section scope before regenerating.
|
|
86
|
+
|
|
87
|
+
### Dataverse Connected
|
|
88
|
+
|
|
89
|
+
1. Choose **Dataverse Connected** inside PPTB.
|
|
90
|
+
2. Confirm an active Dataverse connection.
|
|
91
|
+
3. Search, sort, filter, and select one or more solutions.
|
|
92
|
+
4. Choose the collection policy when additional bounded context is needed.
|
|
93
|
+
5. Generate and review the solution-scoped documentation.
|
|
94
|
+
|
|
95
|
+
### Viewer controls
|
|
96
|
+
|
|
97
|
+
The viewer supports rendered Markdown, raw Markdown, in-document search, copy, internal heading navigation, Mermaid diagrams, companion diagram documents, and responsive export menus. The **All Selected Solutions** entry is a full consolidated document, not just a summary.
|
|
98
|
+
|
|
99
|
+
The **Create Consolidated Document (2+ solutions)** option is on by default. When two or more solutions are selected, PP-MD creates one consolidated document that collates every selected solution. It appears in its own **Consolidated** section at the top of the sidebar, alongside the individual solution documents. Clear the option to create only the individual documents.
|
|
100
|
+
|
|
101
|
+
## Export Formats
|
|
102
|
+
|
|
103
|
+
- **Markdown**: the active document as `.md`.
|
|
104
|
+
- **HTML**: sanitized rendered content as a standalone `.html` file.
|
|
105
|
+
- **PDF**: a valid generated `.pdf` file with headings, tables represented as readable text, pagination, and safe font-compatible text.
|
|
106
|
+
- **Excel**: a styled `.xlsx` workbook with Overview, Tables, Relationships, Processes, Apps, Integration, Security, and Automation sheets, plus one sheet per table (named by the table's display name) listing its columns. Table names on the Tables sheet link to their column sheets, every sheet is sorted alphabetically on its first column, and any document header details you enter appear at the top of the Overview sheet. Each table sheet starts with a `Display Name (schema_name)` title and a **Back to Tables** link, lists Display Name then Schema Name first, and includes lookup targets and option set values. Description columns wrap text.
|
|
107
|
+
- **All Markdown**: a ZIP containing generated documents, companion diagrams, and optional dependency reports.
|
|
108
|
+
- **By Category**: a ZIP containing category folders for individual solutions and the consolidated document.
|
|
109
|
+
|
|
110
|
+
## Accessibility
|
|
111
|
+
|
|
112
|
+
This tool has been designed to meet WCAG 2.2 AA compliance where possbile. This includes:
|
|
113
|
+
|
|
114
|
+
- Semantic landmarks, headings, lists, tables, labels, grouped controls, and status regions.
|
|
115
|
+
- Keyboard-operable native controls for file selection, filtering, toggles, disclosure menus, search, export, and navigation.
|
|
116
|
+
- A skip link, logical focus order, visible `:focus-visible` indicators, and controls that remain usable without pointer input.
|
|
117
|
+
- Programmatically announced processing, validation, copy, export, PDF preparation, and diagram-rendering status.
|
|
118
|
+
- Meaningful visible text alongside colour-coded privilege, permission, warning, success, and error states.
|
|
119
|
+
- Accessible Mermaid figure captions, SVG labels, text descriptions, source disclosure, and failure fallbacks.
|
|
120
|
+
- Sanitized Markdown with preserved semantic table structure and horizontally scrollable table regions where required.
|
|
121
|
+
- Light and dark themes with automated token contrast checks, native-control colour-scheme support, and consistent toolbar font metrics.
|
|
122
|
+
- Reduced-motion behavior, stable target sizes, responsive reflow, non-overlapping toolbar groups, and narrow-screen navigation.
|
|
123
|
+
- Search and viewer state exposed through native roles, names, values, and pressed or busy states.
|
|
124
|
+
|
|
125
|
+
The standard validation pipeline checks structure, theme-token contrast, TypeScript, lint, unit behavior, offline package requirements, and the production build. Testing for Screen-reader combinations, forced colours, 400% zoom, and final PPTB iframe behavior requires manual testing, which has been carried out to best-endeavours.
|
|
126
|
+
|
|
127
|
+
The author does not claim complete WCAG conformance and individual testing should be performed. If accessibility issues are discovered then please log these as issues in GitHub for review and resolution where possible.
|
|
128
|
+
|
|
129
|
+
## Architecture At A Glance
|
|
130
|
+
|
|
131
|
+
```text
|
|
132
|
+
ZIP files --------------------> solutionParser.ts ----\
|
|
133
|
+
> ParsedSolution
|
|
134
|
+
PPTB Dataverse connection ----> solutionService.ts --/ |
|
|
135
|
+
v
|
|
136
|
+
markdownGenerator.ts
|
|
137
|
+
|
|
|
138
|
+
MarkdownViewer + export adapters
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
The detailed file and responsibility map is maintained in [docs/codebase-guide.md](docs/codebase-guide.md). The research-backed parity analysis and implementation history are maintained in [docs/pp-md-feature-parity-plan.md](docs/pp-md-feature-parity-plan.md). The summary above is the authoritative description of currently shipped features.
|
|
142
|
+
|
|
143
|
+
## How To Use In Power Platform ToolBox
|
|
144
|
+
|
|
145
|
+
1. Open PP-MD in Power Platform ToolBox.
|
|
146
|
+
2. Choose a launch mode:
|
|
147
|
+
- Local Solutions for ZIP upload
|
|
148
|
+
- Dataverse Connected for direct environment reads
|
|
149
|
+
3. Optionally set document header fields (client, contract, project, sprint, release date).
|
|
150
|
+
4. Generate documentation.
|
|
151
|
+
5. Review in the built-in Markdown viewer.
|
|
152
|
+
6. Export single files, all files, and include dependency reports.
|
|
153
|
+
|
|
154
|
+
## Dataverse Connected Mode Workflow
|
|
155
|
+
|
|
156
|
+
1. Ensure an active Dataverse connection exists in ToolBox.
|
|
157
|
+
2. Select Dataverse Connected mode.
|
|
158
|
+
3. Load and filter available solutions.
|
|
159
|
+
4. Select one or more solutions.
|
|
160
|
+
5. Generate selected documentation.
|
|
161
|
+
6. Export Markdown output.
|
|
162
|
+
|
|
163
|
+
## Local Solutions Mode Workflow
|
|
164
|
+
|
|
165
|
+
1. Select Local Solutions mode.
|
|
166
|
+
2. Drag and drop solution ZIP files, or browse to select files.
|
|
167
|
+
3. Generate documentation for each valid solution archive.
|
|
168
|
+
4. Review and export individual or combined output.
|
|
169
|
+
|
|
170
|
+
## Development
|
|
171
|
+
|
|
172
|
+
Prerequisites:
|
|
173
|
+
|
|
174
|
+
- Node.js 20+
|
|
175
|
+
- npm
|
|
176
|
+
|
|
177
|
+
Commands:
|
|
178
|
+
|
|
179
|
+
- Install dependencies: npm.cmd install
|
|
180
|
+
- Run dev server: npm.cmd run dev
|
|
181
|
+
- Lint: npm.cmd run lint
|
|
182
|
+
- Type check: npm.cmd run type-check
|
|
183
|
+
- Unit tests: npm.cmd run test:unit
|
|
184
|
+
- Build: npm.cmd run build
|
|
185
|
+
- Full pipeline: npm.cmd run test
|
|
186
|
+
- Contrast audit: npm.cmd run test:contrast
|
|
187
|
+
- Official PPTB validation with URL checks: npm.cmd run validate
|
|
188
|
+
- Deterministic PPTB validation without URL checks: npm.cmd run validate:offline
|
|
189
|
+
- Validate built entry point and icon: npm.cmd run validate:dist
|
|
190
|
+
- Complete publishing preflight: npm.cmd run finalize-package
|
|
191
|
+
|
|
192
|
+
### PPTB publishing preflight
|
|
193
|
+
|
|
194
|
+
1. Run `npm.cmd ci` and `npm.cmd run finalize-package`.
|
|
195
|
+
2. Run `npm.cmd run validate` with network access and resolve every validator error or warning.
|
|
196
|
+
3. Load the built tool through Power Platform ToolBox **Debug > Load Local Tool** and test both launch modes and exports.
|
|
197
|
+
4. Authenticate with npm using `npm login`, then confirm the account can publish the `@hart365` scope.
|
|
198
|
+
5. Publish the scoped package with `npm publish --access public`.
|
|
199
|
+
6. Install `@hart365/pp-md-pptb-edition` through PPTB **Debug > Install from npm** and complete a published-package smoke test.
|
|
200
|
+
7. Submit the npm package through the Power Platform ToolBox tool-submission form.
|
|
201
|
+
|
|
202
|
+
The package intentionally declares `api.github.com` as an optional CSP connection used only for update checks. Core documentation generation remains available when that endpoint is unavailable.
|
|
203
|
+
|
|
204
|
+
## Security And Privacy
|
|
205
|
+
|
|
206
|
+
- Processing is local to the tool runtime.
|
|
207
|
+
- Dataverse Connected mode performs read-only metadata access.
|
|
208
|
+
- Generated documentation stays under user control.
|
|
209
|
+
- Credentials are not written into generated Markdown output.
|
|
210
|
+
- Connected environment-variable values are not queried for documentation; only whether a value record exists is reported.
|
|
211
|
+
- PDF and Excel exports are generated locally from the normalized solution model.
|
|
212
|
+
|
|
213
|
+
## Troubleshooting
|
|
214
|
+
|
|
215
|
+
- **Optional connected artifact warnings**: some Dataverse environments do not expose every modern-artifact endpoint. Those capabilities are treated as unavailable and do not prevent the rest of the solution from being documented.
|
|
216
|
+
- **Large documents**: Mermaid diagrams are automatically moved to a companion document when the generated document is large or structurally complex.
|
|
217
|
+
- **PPTB downloads**: exports use the ToolBox file-system bridge inside PPTB and browser downloads during local development.
|
|
218
|
+
|
|
219
|
+
## Support
|
|
220
|
+
|
|
221
|
+
- Repository: https://github.com/Hart365/pp-md-pptb-edition
|
|
222
|
+
- Issues: https://github.com/Hart365/pp-md-pptb-edition/issues
|
|
223
|
+
- Website: https://github.com/Hart365/pp-md-pptb-edition
|
|
224
|
+
|
|
225
|
+
## AI Assistance
|
|
226
|
+
|
|
227
|
+
Parts of this tool were generated with GitHub Copilot and reviewed, tested, and maintained by the contributors listed in package.json.
|
|
228
|
+
|
|
229
|
+
## License
|
|
230
|
+
|
|
231
|
+
MIT
|