Commit 87d2857
authored
[MDiff] Update metadata diff handlers and tests (#1376)
* [Mdiff] Update metadata diff handlers and tests
- Show full path of the local file in tooltip and in discard changes dialog
- When "Comparing with Environment", show the list of websites for the selected environment. Show a confirmation when user selects a site different from current site.
- Remove the current environment name from environment list which is connected in Actions Hub
- Add a subtext for the website in website quickpick if it exists in the environment.
- Add time taken to download the site in telemetry
- "Compare with Environment" is for contextual comparison. Only the folder which is right clicked by user is shown in comparison view
- When viewing as tree, show all the folders first by alphabetical order and then all the files in alphabetical order.
- Priyanshu
* [MDiff] Add HTML report generation for metadata diff (#1377)
* [MDiff] Add HTML report generation for metadata diff
This update introduces functionality to generate and download an HTML report for metadata differences in Power Pages.
- ✨ Added command to generate HTML report in the actions hub.
- 📝 Implemented HTML report generation logic in a new handler.
- 🎨 Created a detailed HTML template for the report with styling.
- 🔧 Updated package and localization files to support new features.
- ✅ Added integration and unit tests for the new functionality.
-Priyanshu
* [MDiff] Add new metadata diff commands
- ✨ Added commands for opening files and all metadata diffs
- ✨ Included commands for clearing and removing sites
- ✨ Implemented sorting options for metadata diffs
- ✨ Added command to generate HTML report for metadata diffs
-Priyanshu
* [MDiff] Add export and import support for metadata diff (#1379)
* [MDiff] Add export and import support for metadata diff
- 🆕 Added `ExportMetadataDiffHandler` tests to validate file export functionality.
- 🔄 Updated `ClearMetadataDiffHandler` and `GenerateHtmlReportHandler` tests to include website and environment IDs.
- 🆕 Introduced `ImportMetadataDiffHandler` tests for file import functionality.
- 🔄 Refactored `OpenAllMetadataDiffsHandler` tests to utilize a helper function for creating site results.
- 🔄 Enhanced `OpenMetadataDiffFileHandler` tests to include telemetry for imported comparisons.
- 🔄 Updated `MetadataDiffFileTreeItem` and `MetadataDiffSiteTreeItem` tests to validate new properties and behaviors.
- 🔄 Adjusted `MetadataDiffGroupTreeItem` tests to include website and environment IDs in context.
-Priyanshu
* [MDiff] Add resync functionality for metadata comparisons (#1380)
* [MDiff] Add resync functionality for metadata comparisons
✨ Implemented resync command to refresh site comparisons.
📝 Updated localization files for new messages.
🔧 Registered resync command in ActionsHub.
✅ Added tests for resync functionality and edge cases.
-Priyanshu
* Add clipboard functionality to environment and site details
- ✨ Implemented clipboard mock for testing in ShowEnvironmentDetailsHandler and ShowSiteDetailsHandler.
- 🔄 Updated tests to check clipboard interactions when showing environment and site details.
- 📝 Adjusted mockShowInformationMessage responses to handle undefined cases.
-Priyanshu
* Add data model version support for metadata diff
- ✨ Introduced `dataModelVersion` parameter in relevant functions and interfaces.
- 🔧 Updated `setResults`, `processComparisonResults`, and comparison handlers to utilize the new parameter.
- 📦 Enhanced `MetadataDiffSiteTreeItem` to store and retrieve the data model version.
-Priyanshu
* Add site clearing logic for resync completion
- ✨ Implemented logic to clear site from MetadataDiffContext when no differences are found after resync.
- 🔧 Updated tests to verify the new behavior for both scenarios: with and without differences.
-Priyanshu
* Improve UI responsiveness for no differences notification
- 🚀 Show notification without blocking UI updates
- 🔧 Adjusted await behavior in processComparisonResults
-Priyanshu
* Refactor telemetry event names for metadata diff
🎨 Updated telemetry event names to include "Called" suffix for clarity.
🔧 Adjusted corresponding traceInfo calls in handlers and tests.
🧪 Modified tests to reflect changes in telemetry event names.
-Priyanshu
* Add metadata diff export/import error handling
✨ Add constants for metadata diff export title and error messages.
🔧 Update exportMetadataDiff to use new error handling constants.
🔧 Update importMetadataDiff to use new error handling constants.
-Priyanshu1 parent e98177c commit 87d2857
File tree
44 files changed
+5045
-266
lines changed- l10n
- loc/translations-export
- src
- client
- lib
- pac
- power-pages/actions-hub
- handlers/metadata-diff
- models
- tree-items/metadata-diff
- test/Integration/power-pages/actions-hub
- handlers
- metadata-diff
- tree-items/metadata-diff
- common/utilities
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
44 files changed
+5045
-266
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| 245 | + | |
| 246 | + | |
245 | 247 | | |
246 | 248 | | |
247 | 249 | | |
| |||
345 | 347 | | |
346 | 348 | | |
347 | 349 | | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
348 | 357 | | |
349 | | - | |
350 | 358 | | |
351 | 359 | | |
352 | 360 | | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
353 | 405 | | |
354 | 406 | | |
355 | 407 | | |
356 | 408 | | |
357 | 409 | | |
358 | 410 | | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
359 | 423 | | |
360 | 424 | | |
361 | 425 | | |
| |||
416 | 480 | | |
417 | 481 | | |
418 | 482 | | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
419 | 525 | | |
420 | 526 | | |
421 | 527 | | |
| |||
524 | 630 | | |
525 | 631 | | |
526 | 632 | | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
527 | 637 | | |
528 | 638 | | |
529 | 639 | | |
| |||
0 commit comments