@hart365/pp-md-pptb-edition 1.2.2 → 1.2.4
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/ACCESSIBILITY.MD +4 -0
- package/CONTRIBUTING.md +4 -2
- package/README.md +317 -279
- package/dist/assets/pp-md-app.js +1418 -716
- package/dist/assets/pp-md-icon.svg +423 -423
- package/dist/assets/pp-md-styles.css +1 -1
- package/dist/icons/pp-md.svg +423 -423
- package/dist/index.html +4 -4
- package/dist/pp-md.svg +423 -423
- package/index.html +4 -4
- package/package.json +10 -17
package/README.md
CHANGED
|
@@ -1,279 +1,317 @@
|
|
|
1
|
-
# PP-MD
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
PP-MD generates structured Markdown documentation for Microsoft Power Platform solutions in two modes:
|
|
6
|
-
|
|
7
|
-
- Local Solutions mode (upload one or more solution ZIP files)
|
|
8
|
-
- Dataverse Connected mode (read solution metadata directly from the active Power Platform ToolBox environment)
|
|
9
|
-
|
|
10
|
-
## Tool Features And Capabilities
|
|
11
|
-
|
|
12
|
-
### Input and solution scope
|
|
13
|
-
|
|
14
|
-
- Process exported Power Platform solution ZIP files entirely in the local tool runtime; ZIP data is not uploaded by this tool. Dataverse Connected mode reads selected solution metadata through the active ToolBox connection.
|
|
15
|
-
- Browse, search, sort, filter, refresh, and multi-select solutions from the active Power Platform ToolBox Dataverse connection.
|
|
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
|
-
|
|
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
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
|
76
|
-
|
|
|
77
|
-
|
|
|
78
|
-
|
|
|
79
|
-
|
|
|
80
|
-
|
|
|
81
|
-
|
|
|
82
|
-
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
###
|
|
94
|
-
|
|
95
|
-
1. Choose **
|
|
96
|
-
2.
|
|
97
|
-
3.
|
|
98
|
-
4.
|
|
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
|
-
ZIP
|
|
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
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
-
|
|
242
|
-
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
-
|
|
247
|
-
-
|
|
248
|
-
-
|
|
249
|
-
-
|
|
250
|
-
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
-
|
|
255
|
-
-
|
|
256
|
-
-
|
|
257
|
-
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
##
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
1
|
+
# PP-MD
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
PP-MD generates structured Markdown documentation for Microsoft Power Platform solutions in two modes:
|
|
6
|
+
|
|
7
|
+
- Local Solutions mode (upload one or more solution ZIP files)
|
|
8
|
+
- Dataverse Connected mode (read solution metadata directly from the active Power Platform ToolBox environment)
|
|
9
|
+
|
|
10
|
+
## Tool Features And Capabilities
|
|
11
|
+
|
|
12
|
+
### Input and solution scope
|
|
13
|
+
|
|
14
|
+
- Process exported Power Platform solution ZIP files entirely in the local tool runtime; ZIP data is not uploaded by this tool. Dataverse Connected mode reads selected solution metadata through the active ToolBox connection.
|
|
15
|
+
- Browse, search, sort, filter, refresh, and multi-select solutions from the active Power Platform ToolBox Dataverse connection.
|
|
16
|
+
- Collect up to two selected Dataverse solutions concurrently, with a shared limit of six in-flight Dataverse requests across all collectors. Progress and failures remain per solution; cancellation discards queued requests and waits for active host requests to finish.
|
|
17
|
+
- Parse up to two local solution ZIPs in parallel Web Workers. Generate individual documents in a two-worker pool in both modes, keeping CPU-heavy work off the interface thread. Cross-solution enrichment uses the complete collected solution set; combined documents and the installation guide are built afterward.
|
|
18
|
+
- Changes to document settings and header details also regenerate documentation in workers. Superseded updates are cancelled so older output cannot overwrite newer settings. Workers are embedded in the packaged classic script, require no additional downloads and are terminated on completion or cancellation. If the host blocks workers or worker transport fails, a compatibility-mode warning is shown and unfinished tasks continue locally without rereading Dataverse. Compatibility mode yields between processing stages, but each CPU-heavy stage runs on the interface thread; Dataverse collection remains concurrent.
|
|
19
|
+
- Solution percentages describe collection, not completion of the entire operation. A visible activity indicator and announced stage messages identify document generation, installation-order/dependency/blocker calculations and finalisation after collection reaches 100%.
|
|
20
|
+
- Filter connected solutions by publisher and managed or unmanaged status.
|
|
21
|
+
- Keep connected collection read-only and scoped to the selected solution components through `solutioncomponent` records.
|
|
22
|
+
- Choose solution-only collection, bounded direct-reference enrichment, or **Solution only + environment appendix**. The appendix policy keeps every solution section solution-scoped and always creates the **All Selected Solutions** document (even for one solution), which alone contains the Environment Appendix.
|
|
23
|
+
- The Environment Appendix documents environment identity, organisation settings, Power Platform environment settings (when the connection has the Power Platform API enabled), provisioned languages, currencies, inventory counts, installed solutions, application packages, publishers, and business units. User and team data is reported as counts only; no names, environment-variable values, or secrets are collected. The Excel export adds a matching **Environment** worksheet.
|
|
24
|
+
- Cancel an in-progress ZIP parse, Dataverse collection or document-generation run. Local CPU workers stop immediately; compatibility-mode tasks stop at the next checkpoint, and active Dataverse host requests finish before collection stops. Completed solution models from a cancelled collection can still produce complete documents; cancelling document generation retains previously generated documents without publishing partial output.
|
|
25
|
+
- 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.
|
|
26
|
+
- Treat unavailable optional modern-artefact endpoints as capability gaps without failing the rest of the document.
|
|
27
|
+
- Dataverse Connected mode retrieves solution-scoped global option sets, including option labels, numeric values, descriptions, and colours, and selected email-template metadata without retrieving template bodies.
|
|
28
|
+
|
|
29
|
+
### Documentation coverage
|
|
30
|
+
|
|
31
|
+
- Tables, columns, requiredness, data types, keys, ownership, choices, relationships, cascade rules, Advanced Find, and field-security metadata.
|
|
32
|
+
- Forms, views, workflows, cloud flows, business process flows, business rules, actions, custom APIs, desktop flows, and dataflows.
|
|
33
|
+
- Model-driven apps, canvas apps, custom pages, code apps, app navigation, Copilot Studio agents, and AI models.
|
|
34
|
+
- Security roles, privilege depths, field-security profiles, plug-in assemblies, plug-in types, SDK message processing steps, reports, dashboards, and web resources.
|
|
35
|
+
- Connection references, environment variables, SharePoint references, offline profiles, component dependencies, and Dataverse enrichment indicators.
|
|
36
|
+
- Site maps with text navigation and top-down hierarchical Mermaid diagrams, image-column and table-image configurations, and metadata-backed extended solution-component records.
|
|
37
|
+
- Individual solution documents plus a complete **All Selected Solutions** document generated from the same normalised model.
|
|
38
|
+
- One optional **Solution Installation Guide** for all selected solutions, with provider-first ordering, readiness layers, cycle and blocker evidence, target-environment checks, and dependency verification notes.
|
|
39
|
+
- Mermaid ERDs, documented-component inventory charts, and static reference diagrams, with companion diagram documents for consolidated or structurally complex output. Recorded references are not inferred runtime architecture or execution order.
|
|
40
|
+
|
|
41
|
+
### Generation, viewing, and configuration
|
|
42
|
+
|
|
43
|
+
- Configure document context, section scope, table metadata columns, security-role filters, diagram detail, diagram colour theme, per-solution dependency reports, and the optional installation guide.
|
|
44
|
+
- Save reusable configuration presets through ToolBox settings with a local-development fallback.
|
|
45
|
+
- View sanitised GitHub Flavored Markdown as rendered content or raw source.
|
|
46
|
+
- Import existing Markdown, search within rendered documents, copy Markdown, and follow generated table-of-contents and Back to Top links.
|
|
47
|
+
- Keep parse warnings, collection errors, and issues in a separate **Diagnostics** document, available from the header when diagnostics exist. Solution documentation and Excel workbooks retain inventory and unknown/unavailable states without embedding diagnostic messages.
|
|
48
|
+
- 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 in a bounded least-recently-used cache (100 diagrams), and force outstanding diagrams to finish before PDF generation.
|
|
49
|
+
- Yield during large PDF drawing operations so status updates can paint and the interface remains responsive where possible.
|
|
50
|
+
|
|
51
|
+
### Export capabilities
|
|
52
|
+
|
|
53
|
+
- Export the active document as Markdown, standalone sanitised HTML, searchable text-based PDF, or a styled Excel workbook.
|
|
54
|
+
- Embed rendered Mermaid diagrams in PDF output and fall back to readable diagram source when an image is unavailable.
|
|
55
|
+
- Preserve PDF pagination, headings, paragraphs, lists, tables, code blocks, links, and font-safe replacements for unsupported symbols.
|
|
56
|
+
- Export all Markdown documents, companion diagrams, diagnostics, and the optional installation guide and dependency reports in a ZIP archive.
|
|
57
|
+
- Export documents by category with organised folders for individual and consolidated output.
|
|
58
|
+
- Batch export every generated document as HTML, PDF, or Excel in a single ZIP archive.
|
|
59
|
+
- Diagnostics are separate HTML/PDF documents in rendered batch exports and separate Markdown files alongside Excel workbooks. They can also be viewed and exported individually using **Diagnostics**.
|
|
60
|
+
- Use the PPTB file-system bridge in the host and browser downloads during local development, with visible progress retained through the Save-dialog handoff.
|
|
61
|
+
|
|
62
|
+
### Security and privacy
|
|
63
|
+
|
|
64
|
+
- Keep local ZIP processing on the user's device and connected collection within the active ToolBox connection context.
|
|
65
|
+
- Never query or render credentials, secure plug-in configuration, or live environment-variable values.
|
|
66
|
+
- Check for non-null environment-variable current-value records without retrieving their values. Report **Unknown**, not **No**, if presence cannot be checked.
|
|
67
|
+
- Sanitise rendered Markdown and restrict generated HTML classes before display or HTML export.
|
|
68
|
+
- Strip raw HTML tags from PDF table-cell text, including tags with quoted `>` characters in attributes.
|
|
69
|
+
- Limit Dataverse Deep Insights and dependency output to meaningful references within the selected solution inventory.
|
|
70
|
+
|
|
71
|
+
## Power Platform ToolBox Manifest Alignment
|
|
72
|
+
|
|
73
|
+
This README is aligned to metadata in package.json used by Power Platform ToolBox.
|
|
74
|
+
|
|
75
|
+
| Manifest Field | Value |
|
|
76
|
+
| --- | --- |
|
|
77
|
+
| name | @hart365/pp-md-pptb-edition |
|
|
78
|
+
| displayName | PP-MD |
|
|
79
|
+
| version | 1.2.4 |
|
|
80
|
+
| description | Generate Power Platform documentation from either Solution ZIP files or direct Dataverse connection |
|
|
81
|
+
| icon | icons/pp-md.svg |
|
|
82
|
+
| configurations.repository | https://github.com/Hart365/pp-md-pptb-edition |
|
|
83
|
+
| configurations.readmeUrl | https://raw.githubusercontent.com/Hart365/pp-md-pptb-edition/refs/heads/main/README.md |
|
|
84
|
+
| configurations.website | https://github.com/Hart365/pp-md-pptb-edition |
|
|
85
|
+
| features.connections | `{ "min": 0, "max": 1 }` (optional Dataverse connection) |
|
|
86
|
+
| features.minAPI | 1.2.8 |
|
|
87
|
+
| `license` | MIT |
|
|
88
|
+
|
|
89
|
+
The Power Platform API is used only when exposed by the host and enabled on the connection. When unavailable, the Environment Appendix reports that limitation and continues with Dataverse data.
|
|
90
|
+
|
|
91
|
+
## User Guide
|
|
92
|
+
|
|
93
|
+
### Local Solutions
|
|
94
|
+
|
|
95
|
+
1. Choose **Local Solutions**.
|
|
96
|
+
2. Drop one or more exported `.zip` solution files or use the file picker.
|
|
97
|
+
3. Review the generated documents in the sidebar.
|
|
98
|
+
4. Adjust document context, metadata columns, security filters, diagram settings, and section scope before regenerating.
|
|
99
|
+
|
|
100
|
+
### Dataverse Connected
|
|
101
|
+
|
|
102
|
+
1. Choose **Dataverse Connected** inside PPTB.
|
|
103
|
+
2. Confirm an active Dataverse connection.
|
|
104
|
+
3. Search, sort, filter, and select one or more solutions.
|
|
105
|
+
4. Choose the collection policy when additional bounded context is needed.
|
|
106
|
+
5. Generate and review the solution-scoped documentation.
|
|
107
|
+
|
|
108
|
+
For either mode, optionally set document header fields such as client, contract, project, sprint, and release date. Review any **Diagnostics** document separately from solution content, then export the active document or use the batch and category export options.
|
|
109
|
+
|
|
110
|
+
#### Connected component details
|
|
111
|
+
|
|
112
|
+
| Component type | Documentation |
|
|
113
|
+
| --- | --- |
|
|
114
|
+
| 9 - Global Option Set | Schema/display names, metadata ID, descriptions, and individual option labels, values, colours, and descriptions. |
|
|
115
|
+
| 2 - Column | Selected column metadata and its parent table, including explicitly selected columns on standard tables or when the parent table is not itself packaged. |
|
|
116
|
+
| 62 - Site Map | Name and area/group/subarea navigation, including referenced tables, plus a hierarchical Mermaid diagram when diagrams are enabled. The text remains in the main documentation when diagrams are separated into a companion document. Matches both the primary ID and the `sitemapidunique` solution-layer ID. Site maps that are saved but not yet published (for example, an app that was never published) are read through `RetrieveUnpublishedMultiple` and marked **Publication State: Unpublished**. |
|
|
117
|
+
| 431 - Attribute Image Configuration | Parent table, image column, and whether full-size images can be stored. |
|
|
118
|
+
| 432 - Entity Image Configuration | Parent table and primary image column. |
|
|
119
|
+
| 36 - Email Template | Selected template name, subject, table type, and language code; template body content is not retrieved. |
|
|
120
|
+
| Extended types, including 10084, 10087, 10164, and 10350 | Type/table names are resolved from the active environment's `EntityDefinitions.ObjectTypeCode` metadata. Selected component IDs are matched against the primary ID and, when the table has one, the readable `<primary id>unique` solution-layer ID (the same convention as `appmoduleidunique` and `sitemapidunique`). Other GUID columns are not used as keys, so an unrelated record is never matched. Output includes names and selected configuration properties, not arbitrary record payloads. Missing or ambiguous matches remain explicit warnings and unresolved inventory entries; the warning lists every lookup tried. Dataverse does not support unpublished-record retrieval for these tables, so unpublished or deleted records cannot be distinguished from inaccessible ones. |
|
|
121
|
+
|
|
122
|
+
Additional configuration records appear under **Additional Solution Components** and in the Excel **Solution Components** worksheet. Global choices have their own Markdown section and Excel **Global Option Sets** worksheet. Email templates appear in the **Email Templates** section and are included in consolidated and category exports. These details are preserved in consolidated and category exports. Missing permissions, unavailable metadata, and inaccessible records retain an explicit collection issue in the separate **Diagnostics** document rather than being reported as successfully documented.
|
|
123
|
+
|
|
124
|
+
**Has Current Value** means that a non-null current-value record exists, not that a default value is present. Both Web API and SDK lookup formats are supported. Values such as `false` and `0` still count as set. Current values are never retrieved or included in exports; an unsuccessful presence check is shown as **Unknown**.
|
|
125
|
+
|
|
126
|
+
#### Environment Appendix counts and labels
|
|
127
|
+
|
|
128
|
+
Appendix items are alphabetised by their displayed labels within each grouping, including environment identity, settings, languages, currencies, inventory categories and lists. The Markdown and Excel exports use the same ordering. Tool-authored documentation and parameter labels use UK English (for example, **Organisation** and **Customisation**). Actual API operations, schema identifiers, filenames and source-supplied object names/values retain their original spelling.
|
|
129
|
+
|
|
130
|
+
- **Users in environment:** distinct enabled human users with a direct security role or membership of a non-default team. Automatic business-unit default teams, disabled accounts, internal system accounts and application users are excluded. Security roles do not have an active/inactive state; the user account must be enabled and the assigned role must exist.
|
|
131
|
+
- **Application users in environment:** reported separately, using the same role/non-default-team qualification. Membership inferred only from a Microsoft Entra group is not counted until represented in Dataverse membership records.
|
|
132
|
+
- **Users in tenant:** shown as **Unavailable**. The existing PPTB connection does not expose Microsoft Entra directory totals; the Dataverse `systemuser` table is not a tenant-wide user directory.
|
|
133
|
+
- **Total inventory:** distinct component primary keys, not joined rows or repeated solution memberships. Workflow counts include definitions only, not activation copies/templates; inherited business-unit security-role copies are excluded. Totals include system/Microsoft items and inactive definitions where applicable, and can therefore exceed maker-facing custom-only lists.
|
|
134
|
+
- **Custom (confirmed):** counts matched to retrieved non-Microsoft, non-default publisher namespaces. Plug-in assemblies, plug-in steps, Custom APIs and web resources also use the publisher of their associated managed solution when the namespace cannot be resolved. This is the component record's associated solution, not any solution that happens to include it. Managed third-party items can count as custom; managed/unmanaged and customisable flags alone are not used to identify Microsoft components. Standard table metadata and recognised Microsoft/default namespaces are excluded, including Microsoft Dynamics namespaces when the matching publisher is absent from the publisher inventory.
|
|
135
|
+
- **Unclassified:** items with missing, unmatched or ambiguous publisher provenance. These are not silently treated as Microsoft or custom. Names without a publisher namespace (for example, some plug-in or role names) may remain unclassified; an unmanaged component's Active/Default solution does not establish its author. A confirmed custom count of zero with unclassified items is not a claim that no custom items exist.
|
|
136
|
+
- **Paging:** large inventories are read across all FetchXML pages. Web API paging-cookie envelopes are unpacked and URL-decoded before reuse; SDK-style raw cookies are also supported. A failed or incomplete classification is reported explicitly, with a separately available aggregate total retained rather than a partial custom count.
|
|
137
|
+
- **Unavailable versus zero:** failed, malformed, truncated or aggregate-limited queries do not become zero, and an aggregate input-limit error is not treated as proof of a numerical lower bound. A valid empty inventory is reported as zero. Counts reflect the connection's permissions and are collected sequentially, not as an atomic environment snapshot.
|
|
138
|
+
|
|
139
|
+
When **Metadata Source** is enabled, each table identifies its origin as **Dataverse Connected** or **ZIP Export**, with actual peer gap fills or Dataverse enrichment listed separately. Tables without a recorded source are labelled **Unknown**.
|
|
140
|
+
|
|
141
|
+
### Viewer controls
|
|
142
|
+
|
|
143
|
+
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.
|
|
144
|
+
Diagrams retain their selected Mermaid theme's background in the viewer, standalone HTML and PDF images, independently of the surrounding app theme.
|
|
145
|
+
|
|
146
|
+
During generation and batch exports, a red **Cancel** button aligns with the header action groups and remains available when the narrow-screen toolbar menu is closed. Its text, border, and focus colours are contrast-checked in both themes.
|
|
147
|
+
|
|
148
|
+
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.
|
|
149
|
+
|
|
150
|
+
### Import dependency reports
|
|
151
|
+
|
|
152
|
+
Enable **Generate Missing Dependencies** under **Documentation Options** to add an **Import Dependencies** report to each solution document. The setting is off by default. Local runs use the ZIP's `SolutionManifest/MissingDependencies` records; connected runs call Dataverse `RetrieveMissingDependencies` with the individual solution's unique name.
|
|
153
|
+
|
|
154
|
+
Each declared prerequisite is classified as **Included in this solution**, **Provided by selected solution**, **Standard platform component**, **Target environment prerequisite**, or **Missing**. Matching uses component IDs and typed component identities; standard Dataverse and Microsoft-owned components are distinguished from custom dependencies. The report identifies the dependent item, required component and type, owner/provider, classification, and action or evidence.
|
|
155
|
+
|
|
156
|
+
- Runtime references, environment-wide columns and relationships, peer gap-fill metadata, and dependencies declared by other solutions are not used to infer import prerequisites.
|
|
157
|
+
- Successful empty results are stated explicitly. Uncollected or incomplete results are marked as unavailable; raw collection errors remain in **Diagnostics**.
|
|
158
|
+
- Excel exports add an **Import Dependencies** table with classification and detail columns below the columns on each individual table worksheet. Only dependencies associated with that table appear on that worksheet; the document report covers all declared prerequisites.
|
|
159
|
+
- Consolidated documents retain each individual solution's declared prerequisites and source identity.
|
|
160
|
+
|
|
161
|
+
### Solution Installation Guide
|
|
162
|
+
|
|
163
|
+
Enable **Generate installation guide** in the header's **Options** menu or under **Documentation Options**. It is off by default and is saved with reusable configuration presets. The guide covers the full set of selected solutions and is independent of consolidated-document and section-scope settings.
|
|
164
|
+
|
|
165
|
+
The guide deduplicates identical solution identities, checks declared solution and component prerequisites against the selected solutions, and orders selected providers before consumers. It blocks solutions when a prerequisite is missing, the manifest is incomplete, a selected version does not satisfy the declared minimum, or a cycle prevents a safe order. Standard platform components and Microsoft or managed-application prerequisites are listed for target-environment verification rather than reported as missing. Email-template table/column references can inform ordering but are explicitly marked as inferred, not declared import dependencies.
|
|
166
|
+
|
|
167
|
+
The guide opens with a linked **Table of Contents** covering only the sections present, and each section ends with a **Back to Top** link. The **Installation Order** table shows the step number of every prerequisite solution. **Dependencies Provided by Selected Solutions** lists one row per consumer/provider pair with a status: **✅ Resolved by installation order** when the provider's numbered step precedes the consumer's (or a note when the consumer is blocked for other reasons), or **⛔ Blocker** when the provider is blocked or the two solutions depend on each other. Blockers are listed first and counted in the Summary.
|
|
168
|
+
|
|
169
|
+
**Dependency Readiness Layers** group unblocked solutions by their selected prerequisites, starting at layer 0. Layers explain dependency structure only: import the numbered solutions sequentially and wait for each import to finish. When **Generate Diagrams** is enabled, the guide also provides provider-to-consumer dependency, readiness, cycle-impact and blocker/source-evidence views. Line styles and labels distinguish declared solution and component prerequisites, inferred template references, target checks and source membership. Diagrams respect the companion-document option and automatic splitting for complex documents; full evidence remains in the guide's text tables. Large graphs are split into bounded parts and explicitly report any omitted parts.
|
|
170
|
+
|
|
171
|
+
Missing-component rows include the table, column, schema/logical name, display label and component ID where supplied. Connection-reference lookups retrieve logical and display names separately; an unavailable logical name is reported rather than replaced with the display label. In connected mode, collection searches **all accessible environment solutions**, including unselected managed and unmanaged solutions, regardless of solution-browser filters. Only the selected solutions have their own missing dependencies checked; other solutions are searched as potential providers. Queries use bounded batches by required component ID and numeric type, plus parent-table IDs for table subcomponents. If only a table logical name is available, metadata resolves its ID first.
|
|
172
|
+
|
|
173
|
+
The guide's **Found in** column lists matching solution friendly/unique names, versions and managed state, and flags table-shell-only membership. It also finds columns, relationships, keys, forms, views and charts included through a parent table with explicit **Include Subcomponents** behaviour (`rootcomponentbehavior = 0`), even without a direct child membership row. For relationships, both related tables are checked using their typed Dataverse metadata. These matches identify the table and inclusion evidence; tables with selected subcomponents (`1`) or shell-only inclusion (`2`) do not implicitly supply children. A direct child membership takes precedence over table-based evidence for the same solution.
|
|
174
|
+
|
|
175
|
+
The **Source Environment Dependency Search** audit lists every declared prerequisite of the selected solutions, its classification and found locations, including prerequisites already resolved by selected solutions or classified as environment/platform components. It distinguishes complete, partial, unavailable, unsupported and unsearched records. Partial results retain known direct matches but indicate that an unresolved parent table or failed parent-membership query could hide other providers; failure details remain in **Diagnostics**. Active/Default are labelled source containers rather than installation packages. ZIP-only input does not perform this search; regenerate through the Dataverse connection to locate source solutions.
|
|
176
|
+
|
|
177
|
+
The **Circular Dependencies** section lists each cycle's consumer, provider, dependent component and required component/schema/ID, distinguishing component evidence from solution-level declarations. For example, it can show one solution requiring another's column while that solution requires the first solution's table. Connected matching uses the actual typed solution-component inventory rather than environment-expanded documentation metadata, distinguishes table shells from full definitions, and honours explicit include-all-subcomponents behaviour for table children. Consumers that only depend on a cycle remain blocked but are not labelled cycle members.
|
|
178
|
+
|
|
179
|
+
The guide is generated from ZIP and collected metadata; source-environment membership is a way to locate components for investigation/export, not proof of export contents, compatible package ownership, or installation in the target environment. Implicit table matches require an identifiable table parent and explicit inclusion behaviour; missing parent metadata and components included through other kinds of parent are not inferred. A complete empty result means no matching membership was visible under the current permissions, not proof of absence from the environment. Found solutions outside the selection do not silently unblock imports or enter the order. Select/export the appropriate prerequisites, break cycles (for example with an earlier shared base solution), regenerate, and verify target prerequisites and import compatibility before deployment.
|
|
180
|
+
|
|
181
|
+
## Export Formats
|
|
182
|
+
|
|
183
|
+
- **Markdown**: the active document as `.md`.
|
|
184
|
+
- **HTML**: sanitised rendered content as a standalone `.html` file.
|
|
185
|
+
- **PDF**: a valid generated `.pdf` file with headings, tables represented as readable text, pagination, and safe font-compatible text.
|
|
186
|
+
- **Excel**: individual solution documents export as a styled `.xlsx` workbook with Overview, Tables, Relationships, Processes, Apps, Integration, Security, Automation, Global Option Sets, and Solution Components sheets, plus one sheet per table (named by the table's display name) listing its columns. The Solution Installation Guide exports individually as a sectioned workbook, with guide tables plus structured **Installation Nodes**, **Dependency Edges**, **Cycle Membership**, **Readiness Data**, **Blocker Details**, **Dependency Evidence**, **Target Prerequisites**, and **Source Membership** worksheets. The individual and batch workbooks use the same installation analysis as the guide; they contain evidence tables and native dashboard charts rather than diagram images or Mermaid source. Table names on the Tables sheet link to their column sheets, every solution workbook 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.
|
|
187
|
+
- **All Markdown**: a ZIP containing generated documents, companion diagrams, diagnostics, and any generated installation guide.
|
|
188
|
+
- **By Category**: a ZIP containing category folders for individual solutions and the consolidated document.
|
|
189
|
+
- **Batch HTML/PDF**: a ZIP containing rendered versions of generated documents, including the installation guide when enabled.
|
|
190
|
+
- **Batch Excel**: a ZIP containing solution workbooks, the installation guide workbook when enabled, and Markdown reports that do not have a workbook worksheet.
|
|
191
|
+
|
|
192
|
+
Excel table worksheets show General, Data and tracking, Make this table an option when, and Rows in this table metadata side by side above the column list. Headers use a charcoal-and-grey palette, with bold grey label cells, white value cells, and thin grey borders. Label/value pairs wrap within each section; unavailable values retain amber highlighting and include the reason they could not be retrieved.
|
|
193
|
+
|
|
194
|
+
The installation workbook combines the introduction and a linked **Table of Contents** on **Overview**. Every worksheet, including **Text Continuations**, has a **Back to Contents** link in cell E1. Markdown-only **Back to Top** links are omitted. Guide worksheets use the shared heading, link and data-header palette, wrapped text, readable column widths and frozen titles or table headers; guide data cells are not merged. Narrative tables retain their installation/evidence order, while structured evidence sheets sort on their first column.
|
|
195
|
+
|
|
196
|
+
Non-empty datasets in both solution and installation workbooks are native, filterable Excel Tables with unique workbook-wide names prefixed `table_`. Separate tables on the same worksheet have independent filters. Column headers are non-empty, case-insensitively unique and limited to Excel's 255 characters; duplicate or blank headers receive distinct labels. Empty datasets retain their headers without inventing records.
|
|
197
|
+
|
|
198
|
+
Installation workbooks with analysis include a **Dashboard** with selected/ready/blocked counts, dependency evidence and distinct provider-consumer counts, cycles and target prerequisite checks. Each figure includes a next action and a link to its detailed worksheet; the first five safe import steps show their prerequisites. Horizontal bar charts compare readiness, blocker categories and prerequisite impact; a column chart shows ready solutions in dependency-depth order. Every chart has worksheet-backed series names, visible category labels, axis titles, numeric labels, descriptive alternative text and an equivalent visible data table. Charts show at most the first 12 readiness layers and the 10 providers with most direct dependent solutions; the source tables remain complete. Blocker categories count distinct solutions per category and may overlap. Provider impact counts distinct direct consumers, not transitive dependencies. Readiness layers describe dependency depth, not permission to import in parallel. **Ready** means orderable within the selected set, not verified compatibility or availability in the target environment.
|
|
199
|
+
|
|
200
|
+
Where an exported table has a dedicated Managed/Unmanaged column, solution names and versions do not repeat that status. Narrative evidence retains management information when no separate column supplies it.
|
|
201
|
+
|
|
202
|
+
Excel limits text to 32,767 characters per cell. Longer values retain their first part in the original cell, with a comment identifying a **Text Continuations** worksheet containing the complete text in numbered parts. Source links allow navigation back to the original cells; cells without an existing link also link to their continuation parts. This applies to individual and batch solution and installation-guide workbooks.
|
|
203
|
+
|
|
204
|
+
## Accessibility
|
|
205
|
+
|
|
206
|
+
The interface is designed using accessibility practices associated with WCAG 2.2 AA. This is not a claim of conformance. Implemented practices include:
|
|
207
|
+
|
|
208
|
+
- Semantic landmarks, headings, lists, tables, labels, grouped controls, and status regions.
|
|
209
|
+
- Keyboard-operable native controls for file selection, filtering, toggles, disclosure menus, search, export, and navigation.
|
|
210
|
+
- A skip link, logical focus order, visible `:focus-visible` indicators, and controls that remain usable without pointer input.
|
|
211
|
+
- Programmatically announced processing, validation, copy, export, PDF preparation, and diagram-rendering status.
|
|
212
|
+
- Meaningful visible text alongside colour-coded privilege, permission, warning, success, and error states.
|
|
213
|
+
- Accessible Mermaid figure captions, SVG labels, text descriptions, source disclosure, and failure fallbacks.
|
|
214
|
+
- Sanitised Markdown with preserved semantic table structure and horizontally scrollable table regions where required.
|
|
215
|
+
- Light and dark themes with automated token contrast checks, native-control colour-scheme support, and consistent toolbar font metrics.
|
|
216
|
+
- Reduced-motion behaviour, stable target sizes, responsive reflow, non-overlapping toolbar groups, and narrow-screen navigation.
|
|
217
|
+
- Search and viewer state exposed through native roles, names, values, and pressed or busy states.
|
|
218
|
+
|
|
219
|
+
The standard validation pipeline checks TypeScript, lint, unit behaviour, offline package requirements, theme-token contrast, the production build, and distribution output. Screen-reader combinations, forced colours, zoom/reflow, and final PPTB iframe behaviour require host-level validation and are not established by these automated checks.
|
|
220
|
+
|
|
221
|
+
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.
|
|
222
|
+
|
|
223
|
+
## Architecture At A Glance
|
|
224
|
+
|
|
225
|
+
```text
|
|
226
|
+
ZIP files --------------------> solutionParser.ts ----\
|
|
227
|
+
> ParsedSolution
|
|
228
|
+
PPTB Dataverse connection ----> solutionService.ts --/ |
|
|
229
|
+
v
|
|
230
|
+
markdownGenerator.ts
|
|
231
|
+
|
|
|
232
|
+
MarkdownViewer + export adapters
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
For implementation details, see the [codebase guide](docs/codebase-guide.md) and [high-level design](docs/high-level-design.md). This README is the user-facing guide to the current released feature set.
|
|
236
|
+
|
|
237
|
+
## Development
|
|
238
|
+
|
|
239
|
+
Prerequisites:
|
|
240
|
+
|
|
241
|
+
- Node.js 22.12+ (required by Mermaid 12 for development builds)
|
|
242
|
+
- npm
|
|
243
|
+
|
|
244
|
+
Commands:
|
|
245
|
+
|
|
246
|
+
- Install dependencies: npm.cmd install
|
|
247
|
+
- Run dev server: npm.cmd run dev
|
|
248
|
+
- Lint: npm.cmd run lint
|
|
249
|
+
- Type check: npm.cmd run type-check
|
|
250
|
+
- Unit tests: npm.cmd run test:unit
|
|
251
|
+
- Build: npm.cmd run build
|
|
252
|
+
- Full pipeline: npm.cmd run test
|
|
253
|
+
- Contrast audit: npm.cmd run test:contrast
|
|
254
|
+
- Official PPTB validation with URL checks: npm.cmd run validate
|
|
255
|
+
- Deterministic PPTB validation without URL checks: npm.cmd run validate:offline
|
|
256
|
+
- Validate built entry point and icon: npm.cmd run validate:dist
|
|
257
|
+
- Complete publishing preflight: npm.cmd run finalize-package
|
|
258
|
+
|
|
259
|
+
### PPTB publishing preflight
|
|
260
|
+
|
|
261
|
+
1. Run `npm.cmd ci` and `npm.cmd run finalize-package`.
|
|
262
|
+
2. Run `npm.cmd run validate` with network access and resolve every validator error or warning.
|
|
263
|
+
3. Load the built tool through Power Platform ToolBox **Debug > Load Local Tool** and test both launch modes and exports.
|
|
264
|
+
4. Authenticate with npm using `npm login`, then confirm the account can publish the `@hart365` scope.
|
|
265
|
+
5. Publish the scoped package with `npm publish --access public`.
|
|
266
|
+
6. Install `@hart365/pp-md-pptb-edition` through PPTB **Debug > Install from npm** and complete a published-package smoke test.
|
|
267
|
+
7. Submit the npm package through the Power Platform ToolBox tool-submission form.
|
|
268
|
+
|
|
269
|
+
All libraries are bundled into `dist` at build time, so the published package declares no runtime `dependencies`; installing it from npm does not download any additional packages.
|
|
270
|
+
|
|
271
|
+
PP-MD does not make GitHub release-check requests. The published package needs no external GitHub connection for documentation generation.
|
|
272
|
+
|
|
273
|
+
## Security And Privacy
|
|
274
|
+
|
|
275
|
+
- ZIP parsing, generation, rendering, and export run in the client tool runtime. Dataverse Connected mode reads metadata through the active ToolBox connection.
|
|
276
|
+
- Dataverse Connected mode uses read-only metadata access.
|
|
277
|
+
- Generated documentation stays under user control.
|
|
278
|
+
- Credentials are not written into generated Markdown output.
|
|
279
|
+
- Connected environment-variable values are not queried for documentation; only whether a value record exists is reported.
|
|
280
|
+
- PDF and Excel exports are generated locally from the normalised solution model.
|
|
281
|
+
|
|
282
|
+
## Troubleshooting
|
|
283
|
+
|
|
284
|
+
- **Installation Failed: spawn EINVAL** when installing from npm in PPTB on Windows: this has been reported for some PPTB/Node.js combinations and may depend on the host version. Verify against the current host release; if it persists, try the marketplace package or load the unpacked package through **Debug > Load Local Tool**.
|
|
285
|
+
- **Tool icon blank in Installed Tools**: a blank SVG icon has been reported in some PPTB installations. The cause and applicability to a particular host version are not confirmed by this repository; verify in the target host before treating it as a tool-side issue.
|
|
286
|
+
- **Optional connected artefact warnings**: some Dataverse environments do not expose every modern-artefact endpoint. Those capabilities are treated as unavailable and do not prevent the rest of the solution from being documented.
|
|
287
|
+
- **Large documents**: Mermaid diagrams are automatically moved to a companion document when the generated document is large or structurally complex.
|
|
288
|
+
- **PPTB downloads**: exports use the ToolBox file-system bridge inside PPTB and browser downloads during local development.
|
|
289
|
+
|
|
290
|
+
## Project Documentation
|
|
291
|
+
|
|
292
|
+
- [High-level design](docs/high-level-design.md)
|
|
293
|
+
- [Low-level design](docs/low-level-design.md)
|
|
294
|
+
- [Codebase guide](docs/codebase-guide.md)
|
|
295
|
+
- [File catalogue](docs/codebase-file-catalog.md)
|
|
296
|
+
- [PPTB platform reference](docs/research/pptb-platform-reference.md)
|
|
297
|
+
- [Changelog](CHANGELOG.md)
|
|
298
|
+
- [Contributing](CONTRIBUTING.md)
|
|
299
|
+
- [Accessibility commitment, limitations, and reporting barriers](ACCESSIBILITY.MD)
|
|
300
|
+
- [Code of Conduct](CODE_OF_CONDUCT.md)
|
|
301
|
+
- [Security policy](SECURITY.md)
|
|
302
|
+
|
|
303
|
+
## Support
|
|
304
|
+
|
|
305
|
+
- Repository: https://github.com/Hart365/pp-md-pptb-edition
|
|
306
|
+
- Issues: https://github.com/Hart365/pp-md-pptb-edition/issues
|
|
307
|
+
- Website: https://github.com/Hart365/pp-md-pptb-edition
|
|
308
|
+
|
|
309
|
+
Found something getting in your way? [Report an Accessibility barrier](https://github.com/Hart365/pp-md-pptb-edition/issues/new?template=accessibility.yml). You don't need technical terminology or a proposed fix. The [Accessibility statement](ACCESSIBILITY.MD) also explains the current limitations and how to contact me if GitHub isn't usable for you.
|
|
310
|
+
|
|
311
|
+
## AI Assistance
|
|
312
|
+
|
|
313
|
+
Parts of this tool were generated with GitHub Copilot and reviewed, tested, and maintained by the contributors listed in package.json.
|
|
314
|
+
|
|
315
|
+
## Licence
|
|
316
|
+
|
|
317
|
+
MIT
|