Skip to content

feat/df-760: Handles component usage metrics#793

Merged
jbarnsley10 merged 5 commits intomainfrom
feat/df-760-component-usage
Apr 28, 2026
Merged

feat/df-760: Handles component usage metrics#793
jbarnsley10 merged 5 commits intomainfrom
feat/df-760-component-usage

Conversation

@jbarnsley10
Copy link
Copy Markdown
Contributor

@jbarnsley10 jbarnsley10 commented Apr 23, 2026

Handles component usage metrics
Ticket DF-760

@jbarnsley10 jbarnsley10 marked this pull request as ready for review April 23, 2026 14:57
@mokhld mokhld requested a review from Copilot April 24, 2026 09:59
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds component usage/structure metrics into the existing /report/overview report so consumers can see question type counts and higher-level feature usage per form.

Changes:

  • Populate featureCounts in overview metrics with calculated feature/structure details (question type counts, features list, and form structure counts).
  • Add unit tests for the new feature-metrics helpers.
  • Update overview metrics stubs to match the new response shape.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/api/forms/service/report-overview.js Computes and returns component usage metrics as part of overview report output.
src/api/forms/service/report-overview.test.js Adds tests covering the new metrics helper functions.
src/api/forms/service/stubs/metrics.js Updates expected overview report fixtures for the new featureCounts structure.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/api/forms/service/report-overview.test.js Outdated
Comment thread src/api/forms/service/report-overview.js Outdated
Comment thread src/api/forms/service/report-overview.js
@sonarqubecloud
Copy link
Copy Markdown

@jbarnsley10 jbarnsley10 merged commit 0003930 into main Apr 28, 2026
10 checks passed
@jbarnsley10 jbarnsley10 deleted the feat/df-760-component-usage branch April 28, 2026 08:34
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.

3 participants