Skip to content

Conversation

@Lucki2g
Copy link
Contributor

@Lucki2g Lucki2g commented Sep 14, 2025

Features

  • WebResource Analyzer that looks for getAttributes in JS.
  • Solution warnings (useuable for future insights dashboard)

@Lucki2g Lucki2g requested a review from Copilot September 14, 2025 14:41
Copy link
Contributor

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

This PR implements a WebResource analyzer that analyzes JavaScript WebResources for attribute usage, particularly detecting getAttribute method calls. The analyzer integrates with the existing processes explorer to provide insights into how attributes are used across different component types including plugins, Power Automate flows, and now WebResources.

Key changes:

  • Added WebResource analyzer with regex-based JavaScript parsing to detect getAttribute calls
  • Enhanced the processes explorer UI with statistics cards and warnings display
  • Implemented a warning system to flag unresolved entity references

Reviewed Changes

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

Show a summary per file
File Description
Website/lib/Types.ts Added warning types and enums for the new warning system
Website/contexts/DatamodelDataContext.tsx Extended context to include warnings state management
Website/components/shared/elements/StatCard.tsx New animated statistics card component for displaying metric counts
Website/components/processesview/ProcessesView.tsx Enhanced UI with stats cards, warnings accordion, and WebResource support
Website/components/homeview/HomeView.tsx Updated news entry to announce WebResource support
Website/components/datamodelview/dataLoaderWorker.js Modified to handle both groups and warnings data
Generator/Services/WebResources/WebResourceAnalyzer.cs Core analyzer implementation for JavaScript WebResource parsing
Generator/DataverseService.cs Integrated WebResource analysis and warning collection
Generator/DTO/WebResource.cs Data model for WebResource entities
Generator/DTO/Warnings/ Warning system data models and types

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Lucki2g Lucki2g merged commit b5ede2a into main Sep 14, 2025
2 checks passed
@Lucki2g Lucki2g deleted the features/webresource-analyzer branch September 28, 2025 15:22
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