@hart365/pp-md-pptb-edition 1.2.2 → 1.2.3

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 CHANGED
@@ -42,6 +42,10 @@ Markdown or HTML export may be a more useful starting point, depending on your t
42
42
 
43
43
  Wide metadata tables and complex diagrams can be difficult to navigate or magnify. Excel exports and generated HTML haven't been comprehensively verified with assistive technology. Imported Markdown and descriptions from your solution can also bring their own Accessibility problems.
44
44
 
45
+ Excel datasets use named, filterable Tables with explicit, unique column headers. Installation-guide workbooks include linked contents on Overview and a consistent **Back to Contents** link in E1 on every worksheet, without merged guide data cells. Dashboard charts include descriptive alternative text, worksheet-backed series names, visible category labels, axis titles, numeric labels and equivalent visible tables; no status depends on colour alone. Linked next actions and ordered import steps provide non-chart navigation. Automated exporter tests check saved text colours against the WCAG AA 4.5:1 threshold and chart marks against 3:1, as well as navigation targets, table structure and chart data.
46
+
47
+ These checks do not establish WCAG conformance for a workbook. Before distributing an export, run Excel's Accessibility Checker and verify keyboard-only contents/return navigation, table-header announcements, chart alternatives and reading order with Excel and a Windows screen reader. Check magnification and high-contrast settings too; long cell text may require the formula bar or Text Continuations. These Excel/assistive-technology checks still require manual verification.
48
+
45
49
  ### Power Platform ToolBox and assistive technology
46
50
 
47
51
  PP-MD runs inside Power Platform ToolBox (PPTB). Host navigation, connection screens, and file dialogs are also part of your experience, even where this project doesn't control them.
package/CONTRIBUTING.md CHANGED
@@ -18,7 +18,7 @@ For access barriers, see the [Accessibility statement](ACCESSIBILITY.MD) for rep
18
18
 
19
19
  ## Development setup
20
20
 
21
- Requirements: Node.js 20 or later and npm.
21
+ Requirements: Node.js 22.12 or later and npm (Mermaid 12 requires Node.js 22.12+ for development builds).
22
22
 
23
23
  ```powershell
24
24
  npm.cmd ci
@@ -47,6 +47,8 @@ Check light and dark themes, Windows forced colours, text resizing and zoom/refl
47
47
 
48
48
  For generated documents and exports, consider headings, table structure, reading order, meaningful links, and text alternatives to diagrams. Don't assume a visually tidy PDF is an accessible one.
49
49
 
50
+ For Excel changes, run `npm.cmd run test:unit -- src\api\excelExporter.test.ts src\workers\solutionProcessing.test.ts`. Inspect the saved XLSX, not just its in-memory cells: named `table_` Tables, per-table filters, frozen panes, hyperlinks, chart relationships and visible chart-data alternatives must survive packaging. Workbook generation is asynchronous; await it before downloads or adding files to a batch ZIP. Validate representative packages with Microsoft's Open XML SDK when changing native table/chart XML. In Excel, run Accessibility Checker and manually test contents/return links with the keyboard, table-header announcements and chart alternatives with a screen reader, and readability under magnification/high contrast. Record manual checks not performed rather than claiming conformance from structural or contrast tests alone.
51
+
50
52
  Run `npm.cmd run test:contrast` when changing colours or theme tokens, alongside the relevant code checks. It covers selected token pairs, not every rendered state or exported document. Record the browser or PPTB version, assistive technology, checks performed, and any gaps in your PR. If you couldn't test a combination, say so; that's more useful than a pass that hasn't been verified.
51
53
 
52
54
  ## Pull requests
package/README.md CHANGED
@@ -13,11 +13,15 @@ PP-MD generates structured Markdown documentation for Microsoft Power Platform s
13
13
 
14
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
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%.
16
20
  - Filter connected solutions by publisher and managed or unmanaged status.
17
21
  - Keep connected collection read-only and scoped to the selected solution components through `solutioncomponent` records.
18
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.
19
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.
20
- - Cancel an in-progress ZIP parse or Dataverse collection; outstanding requests stop at the next checkpoint without producing partial documents.
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.
21
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.
22
26
  - Treat unavailable optional modern-artefact endpoints as capability gaps without failing the rest of the document.
23
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.
@@ -31,11 +35,12 @@ PP-MD generates structured Markdown documentation for Microsoft Power Platform s
31
35
  - Connection references, environment variables, SharePoint references, offline profiles, component dependencies, and Dataverse enrichment indicators.
32
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.
33
37
  - Individual solution documents plus a complete **All Selected Solutions** document generated from the same normalised model.
34
- - Mermaid ERDs and architecture diagrams, with companion diagram documents for consolidated or structurally complex output.
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.
35
40
 
36
41
  ### Generation, viewing, and configuration
37
42
 
38
- - Configure document context, section scope, table metadata columns, security-role filters, diagram detail, diagram colour theme, and dependency reports.
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.
39
44
  - Save reusable configuration presets through ToolBox settings with a local-development fallback.
40
45
  - View sanitised GitHub Flavored Markdown as rendered content or raw source.
41
46
  - Import existing Markdown, search within rendered documents, copy Markdown, and follow generated table-of-contents and Back to Top links.
@@ -48,7 +53,7 @@ PP-MD generates structured Markdown documentation for Microsoft Power Platform s
48
53
  - Export the active document as Markdown, standalone sanitised HTML, searchable text-based PDF, or a styled Excel workbook.
49
54
  - Embed rendered Mermaid diagrams in PDF output and fall back to readable diagram source when an image is unavailable.
50
55
  - Preserve PDF pagination, headings, paragraphs, lists, tables, code blocks, links, and font-safe replacements for unsupported symbols.
51
- - Export all Markdown documents, companion diagrams, diagnostics, and optional dependency reports in a ZIP archive.
56
+ - Export all Markdown documents, companion diagrams, diagnostics, and the optional installation guide and dependency reports in a ZIP archive.
52
57
  - Export documents by category with organised folders for individual and consolidated output.
53
58
  - Batch export every generated document as HTML, PDF, or Excel in a single ZIP archive.
54
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**.
@@ -71,7 +76,7 @@ This README is aligned to metadata in package.json used by Power Platform ToolBo
71
76
  | --- | --- |
72
77
  | name | @hart365/pp-md-pptb-edition |
73
78
  | displayName | PP-MD Power Platform Markdown Document Generator |
74
- | version | 1.2.2 |
79
+ | version | 1.2.3 |
75
80
  | description | Generate Power Platform documentation from either Solution ZIP files or direct Dataverse connection |
76
81
  | icon | icons/pp-md.svg |
77
82
  | configurations.repository | https://github.com/Hart365/pp-md-pptb-edition |
@@ -134,35 +139,66 @@ When **Metadata Source** is enabled, each table identifies its origin as **Datav
134
139
  ### Viewer controls
135
140
 
136
141
  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.
142
+ Diagrams retain their selected Mermaid theme's background in the viewer, standalone HTML and PDF images, independently of the surrounding app theme.
137
143
 
138
144
  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.
139
145
 
140
146
  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.
141
147
 
142
- ### Missing dependencies
148
+ ### Import dependency reports
143
149
 
144
- Enable **Generate Missing Dependencies** under **Documentation Options** to append a **Missing Dependencies** section to the document. The option is off by default and lists only installation/import prerequisites required by components packaged in that individual solution.
150
+ 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.
145
151
 
146
- - Local runs use only the ZIP's `SolutionManifest/MissingDependencies` records. Connected runs call Dataverse `RetrieveMissingDependencies` with that solution's unique name.
147
- - Runtime references, environment-wide table columns and relationships, peer gap-fill metadata, and dependencies belonging to other solutions are not used to infer import prerequisites.
148
- - Lists the dependent item, its type, the required component and type, associated tables, and source solution. Component IDs are retained when a friendly name cannot be resolved.
149
- - A successful empty result is reported explicitly. Collection failures or uncollected dependencies are marked as incomplete, not silently replaced with inferred references or a "no dependencies" message.
150
- - Excel exports include a separate **Missing Dependencies** table below the columns on each individual table worksheet, separated by a blank row. Only references associated with that table appear there; dependencies without a table association remain in the document-wide section. The option applies to individual and batch Excel exports.
151
- - Consolidated documents retain each individual solution's installation requirements and identify the source solution. Selecting another solution does not remove an individual solution's prerequisites.
152
+ 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.
152
153
 
153
- These prerequisites may already be installed in the target environment. The report describes what each solution needs to install/import, not whether a particular target environment can currently satisfy those requirements. Regenerate the documentation from the ZIP or connection to refresh the authoritative dependency results.
154
+ - Runtime references, environment-wide columns and relationships, peer gap-fill metadata, and dependencies declared by other solutions are not used to infer import prerequisites.
155
+ - Successful empty results are stated explicitly. Uncollected or incomplete results are marked as unavailable; raw collection errors remain in **Diagnostics**.
156
+ - 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.
157
+ - Consolidated documents retain each individual solution's declared prerequisites and source identity.
158
+
159
+ ### Solution Installation Guide
160
+
161
+ 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.
162
+
163
+ 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.
164
+
165
+ 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.
166
+
167
+ **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.
168
+
169
+ 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.
170
+
171
+ 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.
172
+
173
+ 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.
174
+
175
+ 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.
176
+
177
+ 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.
154
178
 
155
179
  ## Export Formats
156
180
 
157
181
  - **Markdown**: the active document as `.md`.
158
182
  - **HTML**: sanitised rendered content as a standalone `.html` file.
159
183
  - **PDF**: a valid generated `.pdf` file with headings, tables represented as readable text, pagination, and safe font-compatible text.
160
- - **Excel**: 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. 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.
161
- - **All Markdown**: a ZIP containing generated documents, companion diagrams, and optional dependency reports.
184
+ - **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.
185
+ - **All Markdown**: a ZIP containing generated documents, companion diagrams, diagnostics, and any generated installation guide.
162
186
  - **By Category**: a ZIP containing category folders for individual solutions and the consolidated document.
187
+ - **Batch HTML/PDF**: a ZIP containing rendered versions of generated documents, including the installation guide when enabled.
188
+ - **Batch Excel**: a ZIP containing solution workbooks, the installation guide workbook when enabled, and Markdown reports that do not have a workbook worksheet.
163
189
 
164
190
  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.
165
191
 
192
+ 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.
193
+
194
+ 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.
195
+
196
+ 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.
197
+
198
+ 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.
199
+
200
+ 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.
201
+
166
202
  ## Accessibility
167
203
 
168
204
  The interface is designed using accessibility practices associated with WCAG 2.2 AA. This is not a claim of conformance. Implemented practices include:
@@ -200,7 +236,7 @@ For implementation details, see the [codebase guide](docs/codebase-guide.md) and
200
236
 
201
237
  Prerequisites:
202
238
 
203
- - Node.js 20+
239
+ - Node.js 22.12+ (required by Mermaid 12 for development builds)
204
240
  - npm
205
241
 
206
242
  Commands: