Skip to content

Add Net Zero Cloud Lightning report types, report, and dashboard metadata - #1

Merged
mshresponse merged 3 commits into
mainfrom
claude/nzc-lightning-package-xml-5iluw4
Jul 10, 2026
Merged

mshresponse merged 3 commits into
mainfrom
claude/nzc-lightning-package-xml-5iluw4

Conversation

@mshresponse

@mshresponse mshresponse commented Jul 10, 2026 •

Copy link
Copy Markdown
Owner

Summary

Scaffolds this repo as a standard SFDX project (API 60.0) containing a free, unmanaged package of core Lightning analytics metadata for Net Zero Cloud — no CRM Analytics / Einstein components.

Custom Report Types (force-app/main/default/reportTypes/)

  • Stationary_Assets_with_without_Carbon_Footprints — base StnryAsstEnvrSrc, child StnryAsstCrbnFprint, outer join
  • Footprints_with_Energy_Uses — base StnryAsstCrbnFprint, child StnryAsstFossilFuelEnrgyUse, inner join
  • Accounts_with_or_without_Supplier_Metrics — base Account, child SpplrMtrc, outer join
  • Standalone_Carbon_Footprints — single object StnryAsstCrbnFprint
  • Standalone_Vehicle_Assets — single object VehicleAsset

Each report type has a fully defined <sections> layout curated to key sustainability fields (asset name, reporting year, stage, Scope 1 / Scope 2 emissions, fuel type, record type), all flagged checkedByDefault so they auto-populate new reports.

Reports (NZC_Reports folder — one example per report type)

  • Stationary_Assets_Missing_Footprints — summary by asset record type, filtered to StnryAsstCrbnFprints$Id equals blank
  • Fuel_Consumption_by_Fuel_Type — summary by fuel type with summed fuel consumption
  • Suppliers_Missing_Metrics — accounts with no Supplier Metric, grouped by industry
  • Emissions_by_Reporting_Year — summed Scope 1 / Scope 2 (location + market) / total emissions per reporting year
  • Fleet_by_Fuel_Type — vehicle asset inventory by fuel type

Dashboard

  • NZC_Dashboards/NZC_Emissions_Coverage — three-column layout: data-coverage bar charts (assets missing footprints, suppliers missing metrics), emissions-by-year column chart, fleet-by-fuel-type donut

Project hygiene & CI

  • manifest/package.xml, sfdx-project.json, .forceignore, .gitignore, MIT LICENSE
  • .github/workflows/validate.yml — checks XML well-formedness, runs sf project convert source (validated locally: conversion succeeds and the generated MDAPI package matches the manifest 1:1), and cross-checks every manifest member against source files

Notes for reviewers

  • Report type 1's label is "Stationary Assets with/without Carbon Footprints" to fit the 50-character report type label limit.
  • NZC child-relationship names (StnryAsstCrbnFprints, StnryAsstFossilFuelEnrgyUses, SpplrMtrcs) and a few field spellings can vary by release/license; the README documents sf sobject describe commands to verify, and a --dry-run deploy against an NZC org is the definitive check.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XsipTUqX7dcQDkvUkaFCuC

claude added 3 commits July 10, 2026 18:31
Unmanaged SFDX package (API 60.0) with five custom report types over
standard Net Zero Cloud objects, a summary report of stationary assets
missing carbon footprints, and a dashboard with a bar chart component.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XsipTUqX7dcQDkvUkaFCuC
… project hygiene

- One example report per report type: fuel consumption by fuel type,
  suppliers missing metrics, emissions by reporting year (summed scope
  fields), and fleet by fuel type
- Dashboard expanded to three columns: coverage bars, emissions trend
  column chart, fleet donut
- GitHub Actions workflow validating XML well-formedness, SFDX source
  conversion, and manifest/source consistency
- MIT license, .forceignore, README updates

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XsipTUqX7dcQDkvUkaFCuC
The sf CLI's bundled undici requires a newer Node runtime than 20.20.2
(webidl.util.markAsUncloneable), crashing on startup.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XsipTUqX7dcQDkvUkaFCuC
@mshresponse
mshresponse marked this pull request as ready for review July 10, 2026 18:45
@mshresponse
mshresponse merged commit 63333d7 into main Jul 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants