-
Notifications
You must be signed in to change notification settings - Fork 3
WebResource analyzer #60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… (does not work as many forms are implicitly added - hence doers have solutioncomponent)
There was a problem hiding this 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.
Co-authored-by: Copilot <[email protected]>
Features