angular/devtools/projects
Doug Parker e59432cf07 refactor(devtools): refactors property view drag-and-drop behavior (#60286)
The main goal of this change is to remove `categoryOrder` which effectively hard-codes the supported length of `panels`. Adding another item to `panels` is not rendered unless that is added to `categoryOrder`.

My solution to this is to make the set of categories a signal, with each category able to produce the data inside it. This allow `CdkDragDrop` to rearrange categories but then still produce the correct data in the template without needing a separate array to track order.

Also removed `hidden` and inlined it in the template, since the logic was the same for every panel.

`moveItemInArray` is unfortunately an in-place move, so I needed to manually clone the array to ensure `panels` observes an immutable update which works better with signals and change detection.

PR Close #60286
2025-03-11 09:27:04 -07:00
..
demo-no-zone refactor(devtools): migrate devtools to prettier formatting (#58624) 2024-11-19 16:31:24 -08:00
demo-standalone refactor(devtools): styles management (#59589) 2025-02-12 10:47:02 -08:00
ng-devtools refactor(devtools): refactors property view drag-and-drop behavior (#60286) 2025-03-11 09:27:04 -07:00
ng-devtools-backend refactor(devtools): ignore getInjector when it is not supported (#60206) 2025-03-05 12:05:46 -08:00
protocol refactor: remove unnecessary TSLint rule flags (#59365) 2025-01-07 16:06:21 +00:00
shared-utils refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
shell-browser release: bump Angular DevTools version to 1.0.26 (#60309) 2025-03-10 11:40:27 -07:00