@hart365/pp-md-pptb-edition 1.2.1 → 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 +79 -0
- package/CODE_OF_CONDUCT.md +24 -0
- package/CONTRIBUTING.md +59 -0
- package/README.md +59 -19
- package/SECURITY.md +18 -0
- package/dist/assets/pp-md-app.js +1459 -753
- package/dist/assets/pp-md-styles.css +1 -1
- package/docs/PP-MD-PPTB-Edition-DocGeneration.png +0 -0
- package/docs/PP-MD-PPTB-Edition-DocHeader.png +0 -0
- package/docs/PP-MD-PPTB-Edition-HomePage.png +0 -0
- package/package.json +10 -3
package/ACCESSIBILITY.MD
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# Accessibility
|
|
2
|
+
|
|
3
|
+
## People first, not a tick in a box
|
|
4
|
+
|
|
5
|
+
Accessibility matters to me. PP-MD should help people document their Power Platform solutions, not put another barrier in their way.
|
|
6
|
+
|
|
7
|
+
That means thinking about how people actually use the tool. A mouse isn't everyone's starting point. Neither is being able to see a diagram, distinguish a colour, or work through a busy screen without difficulty. Accessibility belongs in what I deliver, not on a list of things to consider afterwards.
|
|
8
|
+
|
|
9
|
+
I'm still learning, and there will be things I've missed. If something gets in your way, I want to hear about it. You don't need to be an Accessibility expert to tell me that something doesn't work for you.
|
|
10
|
+
|
|
11
|
+
## What I'm working towards
|
|
12
|
+
|
|
13
|
+
The target for PP-MD's interface is [WCAG 2.2 Level AA](https://www.w3.org/TR/WCAG22/). In practical terms, that means:
|
|
14
|
+
|
|
15
|
+
- Being able to complete tasks with a keyboard, with a visible and sensible focus order.
|
|
16
|
+
- Giving controls clear names, and making progress, errors, and changes understandable to screen-reader users.
|
|
17
|
+
- Making text and controls readable in light and dark themes, without relying on colour alone.
|
|
18
|
+
- Supporting zoom, smaller windows, reduced motion, and different ways of interacting.
|
|
19
|
+
- Making the documentation and exported content usable too. An accessible interface is only part of the job.
|
|
20
|
+
|
|
21
|
+
The tool already includes keyboard file selection alongside drag and drop, focus styles, status announcements, light and dark themes, reduced-motion support, and diagram source fallbacks. There is also an automated check for selected text and interface colour combinations in both themes.
|
|
22
|
+
|
|
23
|
+
Those are useful foundations. They are **not a declaration of full WCAG conformance**, and a passing automated check doesn't tell me whether you can actually finish your task.
|
|
24
|
+
|
|
25
|
+
## Known limitations and gaps
|
|
26
|
+
|
|
27
|
+
This statement describes the current implementation and its verification gaps. It isn't a completed Accessibility audit.
|
|
28
|
+
|
|
29
|
+
### Diagrams
|
|
30
|
+
|
|
31
|
+
Mermaid diagrams are visual, and a diagram name or its source code isn't the same as a useful description of the relationships it shows. Source text and the surrounding documentation may help, but they aren't guaranteed to provide an equivalent experience.
|
|
32
|
+
|
|
33
|
+
Try the raw Markdown view or export the Markdown to an editor you use comfortably. Please report any information you can only get from a diagram.
|
|
34
|
+
|
|
35
|
+
### PDF exports
|
|
36
|
+
|
|
37
|
+
PDF output contains searchable text, but it isn't verified as a tagged, accessible PDF or as PDF/UA conformant. Visual headings and tables shouldn't be assumed to provide the structure a screen reader needs. Diagrams are embedded as images, and the PDF fonts also replace or omit some unsupported characters.
|
|
38
|
+
|
|
39
|
+
Markdown or HTML export may be a more useful starting point, depending on your tools. These formats aren't a guarantee of Accessibility either; check the result before sharing it with others.
|
|
40
|
+
|
|
41
|
+
### Large documents and other exports
|
|
42
|
+
|
|
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
|
+
|
|
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
|
+
|
|
49
|
+
### Power Platform ToolBox and assistive technology
|
|
50
|
+
|
|
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.
|
|
52
|
+
|
|
53
|
+
End-to-end screen-reader behaviour, Windows forced colours, zoom and reflow, and keyboard focus across the host/tool boundary still need validation in the target host. The repository's automated tests don't cover those combinations. There isn't a verified browser, host, and assistive-technology support matrix to publish yet.
|
|
54
|
+
|
|
55
|
+
If you're unsure whether a barrier belongs to PP-MD or the host, report it here anyway. I can help work out where it needs to go.
|
|
56
|
+
|
|
57
|
+
## Found a barrier? Please raise an Issue
|
|
58
|
+
|
|
59
|
+
1. Open [a new Accessibility barrier report](https://github.com/Hart365/pp-md-pptb-edition/issues/new?template=accessibility.yml). You'll need to sign in to GitHub.
|
|
60
|
+
2. Give it a short title describing the problem, such as "Keyboard focus disappears after closing export options".
|
|
61
|
+
3. Tell me what you were trying to do, what happened, and what you needed to happen instead.
|
|
62
|
+
4. If you can, add the PP-MD version, PPTB version (or browser for local use), operating system, and any relevant assistive technology or settings.
|
|
63
|
+
5. Submit the Issue. You can return to it later to add information or answer follow-up questions.
|
|
64
|
+
|
|
65
|
+
Steps to reproduce, the impact on your task, and any workaround are helpful. Screenshots, recordings, and technical details are welcome **if they help and you're comfortable sharing them**, but they aren't required. A plain-language description is enough to start. You don't need a WCAG reference, a diagnosis, or an explanation of your disability.
|
|
66
|
+
|
|
67
|
+
GitHub Issues are public. Please don't attach customer solution ZIPs, generated documents containing sensitive metadata, credentials, personal information, or unredacted screenshots. Use a small, made-up example where possible. For a suspected security vulnerability, follow the [Security policy](SECURITY.md) instead of opening a public Issue.
|
|
68
|
+
|
|
69
|
+
### If GitHub itself is a barrier
|
|
70
|
+
|
|
71
|
+
If you can't use the Issue form, try [a blank Issue](https://github.com/Hart365/pp-md-pptb-edition/issues/new). If GitHub isn't usable for you, contact me, Mike Hartley, through [LinkedIn](https://www.linkedin.com/in/mikebhartley/). Let me know your preferred way to continue the conversation. I'll ask before putting anything you share privately into a public Issue.
|
|
72
|
+
|
|
73
|
+
## What happens next?
|
|
74
|
+
|
|
75
|
+
I'll review reports, ask for clarification where needed, and use the Issue to record progress, a workaround, or a proposed fix. Problems that stop someone completing a task need particular attention, especially where there isn't a workable alternative.
|
|
76
|
+
|
|
77
|
+
This is a community project, so I can't promise a response or fix within a set time. I can commit to taking barriers seriously, being honest about limitations, and learning from the people experiencing them. A report doesn't need to arrive with a solution attached.
|
|
78
|
+
|
|
79
|
+
Contributors can find practical checks in the [contributing guide](CONTRIBUTING.md#accessibility-checks). Thanks for helping make this better.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Make room for people
|
|
4
|
+
|
|
5
|
+
I want PP-MD to be a place where people feel comfortable asking questions, sharing ideas, and admitting they don't know something yet. Whether this is your first Issue or your fiftieth Pull Request, you're welcome here.
|
|
6
|
+
|
|
7
|
+
Different experiences make this project better. Treat people with respect regardless of disability, age, race, ethnicity, nationality, religion, sex, gender identity or expression, sexual orientation, appearance, or level of experience.
|
|
8
|
+
|
|
9
|
+
- Be kind, patient, and constructive. Challenge an idea without attacking the person.
|
|
10
|
+
- Respect people's names, pronouns, boundaries, and privacy.
|
|
11
|
+
- Keep language clear and make room for different communication and access needs.
|
|
12
|
+
- Listen when someone explains the impact of your words or actions. If you get it wrong, acknowledge it and change course.
|
|
13
|
+
|
|
14
|
+
Harassment, discrimination, threats, sexualised attention or content, personal attacks, and publishing someone's private information aren't acceptable. Neither is retaliation against someone who raises a concern.
|
|
15
|
+
|
|
16
|
+
## If something goes wrong
|
|
17
|
+
|
|
18
|
+
This applies to Issues, Pull Requests, discussions, and other spaces connected with this project, including when representing it elsewhere.
|
|
19
|
+
|
|
20
|
+
For a conduct concern, contact me, Mike Hartley, privately through [LinkedIn](https://www.linkedin.com/in/mikebhartley/). Share only what you're comfortable sharing. Please don't open a public Issue containing personal details or allegations about someone else.
|
|
21
|
+
|
|
22
|
+
I'll review concerns fairly and handle information as privately as possible, sharing it only where needed to address the situation. Depending on the behaviour and its impact, I may request a change, issue a warning, remove content, or restrict or end someone's participation. Serious or repeated harm can mean an immediate ban.
|
|
23
|
+
|
|
24
|
+
We don't have to agree on everything. We do need to treat each other as people.
|
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Thanks for helping improve PP-MD - PPTB Edition.
|
|
4
|
+
|
|
5
|
+
You don't need to know the whole codebase to make a useful contribution. A clear bug report, an Accessibility barrier you've experienced, or a better explanation in the docs all help. Please read the [Code of Conduct](CODE_OF_CONDUCT.md); there's room here for different experiences and levels of knowledge.
|
|
6
|
+
|
|
7
|
+
## Before making a change
|
|
8
|
+
|
|
9
|
+
- Check existing issues and discussions to avoid duplicating work.
|
|
10
|
+
- Keep changes scoped and avoid including generated solution documents, exports, credentials, or other sensitive data.
|
|
11
|
+
- For documentation updates, check statements against the current source and package manifest. Identify host- or tenant-dependent behaviour as something to validate, not as a platform guarantee.
|
|
12
|
+
|
|
13
|
+
## Raising an Issue
|
|
14
|
+
|
|
15
|
+
Use the [Issue chooser](https://github.com/Hart365/pp-md-pptb-edition/issues/new/choose) for a bug report, a feature or improvement idea, or an Accessibility barrier. Tell me what you were trying to do and what would make it work better. You don't need to arrive with a fix.
|
|
16
|
+
|
|
17
|
+
For access barriers, see the [Accessibility statement](ACCESSIBILITY.MD) for reporting guidance, known limitations, and an alternative contact route. Don't post suspected security vulnerabilities publicly; follow the [Security policy](SECURITY.md).
|
|
18
|
+
|
|
19
|
+
## Development setup
|
|
20
|
+
|
|
21
|
+
Requirements: Node.js 22.12 or later and npm (Mermaid 12 requires Node.js 22.12+ for development builds).
|
|
22
|
+
|
|
23
|
+
```powershell
|
|
24
|
+
npm.cmd ci
|
|
25
|
+
npm.cmd run dev
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
For connected-mode or host integration work, use a suitable Power Platform ToolBox test environment. Local browser development does not provide the PPTB connection or host file-system APIs.
|
|
29
|
+
|
|
30
|
+
## Validation
|
|
31
|
+
|
|
32
|
+
Run the repository's standard checks before submitting a change:
|
|
33
|
+
|
|
34
|
+
```powershell
|
|
35
|
+
npm.cmd test
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Useful focused checks include `npm.cmd run lint`, `npm.cmd run type-check`, `npm.cmd run test:unit`, `npm.cmd run test:contrast`, `npm.cmd run validate:offline`, and `npm.cmd run validate:dist`. Run `npm.cmd run validate` when network access is available and official URL checks are needed.
|
|
39
|
+
|
|
40
|
+
Changes to connected collection, document rendering, or exports should include focused regression tests where practical. Host-dependent behaviour should be identified and validated in PPTB; do not describe a host-only test as covered by the repository test suite.
|
|
41
|
+
|
|
42
|
+
### Accessibility checks
|
|
43
|
+
|
|
44
|
+
For interface changes, check the affected task with a keyboard: logical focus order, visible focus, no traps, and focus returning sensibly when menus or dialogs close. Check accessible names and whether a screen reader announces relevant state, progress, and errors without unexpectedly moving focus.
|
|
45
|
+
|
|
46
|
+
Check light and dark themes, Windows forced colours, text resizing and zoom/reflow (including 200% text and 400% zoom / a 320 CSS-pixel viewport), and reduced-motion settings where relevant. Genuine data tables and diagrams may need two-dimensional scrolling, but surrounding controls and content should remain usable.
|
|
47
|
+
|
|
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
|
+
|
|
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
|
+
|
|
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.
|
|
53
|
+
|
|
54
|
+
## Pull requests
|
|
55
|
+
|
|
56
|
+
- Explain the user-visible change and any important limitations.
|
|
57
|
+
- List the validation commands run and the checks that still require a PPTB host.
|
|
58
|
+
- Keep unrelated files and generated build/export artefacts out of the change.
|
|
59
|
+
- Update the [README](README.md), [changelog](CHANGELOG.md), or relevant [design documentation](docs/high-level-design.md) when behaviour or user guidance changes.
|
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# PP-MD Power Platform Markdown Document Generator
|
|
2
2
|
|
|
3
|
+
<img src="docs/PP-MD-PPTB-Edition-HomePage.png" alt="The PP-MD PPTB Edition welcome page showing the buttons to do either Local or Dataverse Connected document generation" width="400" height="300">
|
|
4
|
+
|
|
3
5
|
PP-MD generates structured Markdown documentation for Microsoft Power Platform solutions in two modes:
|
|
4
6
|
|
|
5
7
|
- Local Solutions mode (upload one or more solution ZIP files)
|
|
@@ -10,13 +12,16 @@ PP-MD generates structured Markdown documentation for Microsoft Power Platform s
|
|
|
10
12
|
### Input and solution scope
|
|
11
13
|
|
|
12
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.
|
|
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
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%.
|
|
15
20
|
- Filter connected solutions by publisher and managed or unmanaged status.
|
|
16
21
|
- Keep connected collection read-only and scoped to the selected solution components through `solutioncomponent` records.
|
|
17
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.
|
|
18
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.
|
|
19
|
-
- Cancel an in-progress ZIP parse or
|
|
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.
|
|
20
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.
|
|
21
26
|
- Treat unavailable optional modern-artefact endpoints as capability gaps without failing the rest of the document.
|
|
22
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.
|
|
@@ -30,15 +35,15 @@ PP-MD generates structured Markdown documentation for Microsoft Power Platform s
|
|
|
30
35
|
- Connection references, environment variables, SharePoint references, offline profiles, component dependencies, and Dataverse enrichment indicators.
|
|
31
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.
|
|
32
37
|
- Individual solution documents plus a complete **All Selected Solutions** document generated from the same normalised model.
|
|
33
|
-
-
|
|
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.
|
|
34
40
|
|
|
35
41
|
### Generation, viewing, and configuration
|
|
36
42
|
|
|
37
|
-
- Configure document context, section scope, table metadata columns, security-role filters, diagram detail, diagram colour theme,
|
|
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.
|
|
38
44
|
- Save reusable configuration presets through ToolBox settings with a local-development fallback.
|
|
39
45
|
- View sanitised GitHub Flavored Markdown as rendered content or raw source.
|
|
40
46
|
- Import existing Markdown, search within rendered documents, copy Markdown, and follow generated table-of-contents and Back to Top links.
|
|
41
|
-
- Keep the logo and name left-aligned and actions right-aligned across the full window width. Wrap header controls below the app title when space is limited, and keep viewer controls visible above the independently scrolling document.
|
|
42
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.
|
|
43
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.
|
|
44
49
|
- Yield during large PDF drawing operations so status updates can paint and the interface remains responsive where possible.
|
|
@@ -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.
|
|
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
|
-
###
|
|
148
|
+
### Import dependency reports
|
|
149
|
+
|
|
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.
|
|
151
|
+
|
|
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.
|
|
153
|
+
|
|
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.
|
|
143
168
|
|
|
144
|
-
|
|
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.
|
|
145
170
|
|
|
146
|
-
|
|
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.
|
|
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.
|
|
152
172
|
|
|
153
|
-
|
|
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
|
|
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
|
|
239
|
+
- Node.js 22.12+ (required by Mermaid 12 for development builds)
|
|
204
240
|
- npm
|
|
205
241
|
|
|
206
242
|
Commands:
|
|
@@ -258,6 +294,8 @@ The package intentionally declares `api.github.com` as an optional CSP connectio
|
|
|
258
294
|
- [PPTB platform reference](docs/research/pptb-platform-reference.md)
|
|
259
295
|
- [Changelog](CHANGELOG.md)
|
|
260
296
|
- [Contributing](CONTRIBUTING.md)
|
|
297
|
+
- [Accessibility commitment, limitations, and reporting barriers](ACCESSIBILITY.MD)
|
|
298
|
+
- [Code of Conduct](CODE_OF_CONDUCT.md)
|
|
261
299
|
- [Security policy](SECURITY.md)
|
|
262
300
|
|
|
263
301
|
## Support
|
|
@@ -266,6 +304,8 @@ The package intentionally declares `api.github.com` as an optional CSP connectio
|
|
|
266
304
|
- Issues: https://github.com/Hart365/pp-md-pptb-edition/issues
|
|
267
305
|
- Website: https://github.com/Hart365/pp-md-pptb-edition
|
|
268
306
|
|
|
307
|
+
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.
|
|
308
|
+
|
|
269
309
|
## AI Assistance
|
|
270
310
|
|
|
271
311
|
Parts of this tool were generated with GitHub Copilot and reviewed, tested, and maintained by the contributors listed in package.json.
|
package/SECURITY.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Security Policy
|
|
2
|
+
|
|
3
|
+
## Reporting a vulnerability
|
|
4
|
+
|
|
5
|
+
Please do not report suspected vulnerabilities in a public issue or discussion. Use GitHub's private vulnerability reporting for this repository if it is enabled. If private reporting is unavailable, contact the maintainers through a private channel linked from the repository or maintainer profile.
|
|
6
|
+
|
|
7
|
+
Include the affected version, a concise description, and safe steps to reproduce. Do not include real customer solution files, personal data, credentials, access tokens, or live environment-variable values. Coordinate public disclosure with the maintainers after a fix or mitigation is available.
|
|
8
|
+
|
|
9
|
+
## Security and privacy notes
|
|
10
|
+
|
|
11
|
+
- Local Solutions mode parses user-selected solution ZIP files in the client application; this repository does not implement a server upload path.
|
|
12
|
+
- Dataverse Connected mode performs read-only collection through the active Power Platform ToolBox connection. Requests use the current user's host-provided connection and permissions.
|
|
13
|
+
- The application is designed not to query or render credentials, secure plug-in configuration, or live environment-variable values. Connected reporting uses a non-null filter without selecting current values; failed presence checks are shown as unknown. Extended component collection selects configuration metadata rather than arbitrary payloads and excludes secured fields.
|
|
14
|
+
- Generated documents may contain solution metadata and should be handled according to the user's organisational data-protection requirements.
|
|
15
|
+
- The optional Environment Appendix policy reads environment-level metadata (organisation settings, languages, currencies, installed solutions and packages, publishers, business-unit names, and inventory counts). Users and teams are reported only as aggregate counts. Power Platform API environment settings are read only when the connection enables that API, and only primitive setting values are retained. The appendix appears only in the consolidated All Selected Solutions document and its exports.
|
|
16
|
+
- Environment-user aggregates qualify enabled accounts by role/non-default-team membership without returning user identifiers, names or email addresses. No Microsoft Entra directory user list is requested. Non-person inventory counting reads only component primary keys and namespace fields for de-duplication and publisher classification; arbitrary business-record contents are not collected.
|
|
17
|
+
|
|
18
|
+
These notes describe intended and repository-visible behaviour; they are not a security certification of Power Platform ToolBox, Dataverse, or exported documents.
|