Skip to content

ConvertTo-NinjaOneHtml: show Top Files bar chart alongside Top Folders #1

Open

Description

@JonathanPitre

Summary

ConvertTo-NinjaOneHtml renders a per-drive Top Folders bar chart but no equivalent Top Files chart, even when large files are present in ScanResults.Items.

For NinjaOne disk reports (WYSIWYG custom fields), operators typically need individual large files first; folders alone are less actionable.

Current behavior

Per drive, the middle column only includes a Top Folders bar chart built from directory items. Large files appear only in the bottom All Results by Size table.

Expected behavior

  • Render Top Files and Top Folders bar charts in the per-drive middle column when data exists
  • List Top Files first (more useful for cleanup triage)
  • Use the same display limit pattern as folders (MaxTopFiles, default 8)

NinjaOne constraints

WYSIWYG fields strip script, button, and input elements, so interactive tabs are not viable. Stacked charts (files above folders) are the practical approach.

Environment

  • UltraTree 1.0.1 (PowerShell Gallery)
  • NinjaOne WYSIWYG custom field (ConvertTo-NinjaOneHtml fragment, no New-HtmlWrapper)

Workaround today

Downstream integrators post-process HTML after ConvertTo-NinjaOneHtml to inject a Top Files chart. That maintenance belongs in the module.

Activity

  1. added a commit that references this issue on Aug 25, 2026
    f25b7a5
  2. JonathanPitre commented on Aug 25, 2026

    @JonathanPitre
    Author

    Update on PR #3: after NinjaOne WYSIWYG field testing, production integrators moved from an 8-item Top Files bar chart to full-width ranked tables (Top Files above Top Folders). PR #3 now implements that layout natively in ConvertTo-NinjaOneHtml along with dark-mode fixes. Bar charts remain available via New-HtmlBarChart for other use cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions