angular/devtools/projects/ng-devtools/src/lib/devtools-tabs
Doug Parker 90165b17bc 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:03 -07:00
..
dependency-injection refactor(devtools): redesign dependency resolution path visualization (#60011) 2025-02-25 14:07:06 -05:00
diffing refactor: remove unnecessary TSLint rule flags (#59365) 2025-01-07 16:06:21 +00:00
directive-explorer refactor(devtools): refactors property view drag-and-drop behavior (#60286) 2025-03-11 09:27:03 -07:00
injector-tree fix(devtools): minor UI/UX improvements of the Injector Providers panel (#59531) 2025-02-26 12:34:40 -05:00
profiler refactor(devtools): use new theme mixins in the stylesheets (#59978) 2025-02-25 14:15:16 -05:00
router-tree refactor(devtools): introduce tree-visualizer-host (#59916) 2025-02-26 12:18:06 -05:00
tab-update refactor(devtools): use signal apis in profiler and frame-selector (#57558) 2024-10-28 12:28:25 -07:00
tree-visualizer-host refactor(devtools): use more appropriate cursor types while panning in the tree vis (#60141) 2025-02-27 18:31:02 +00:00
BUILD.bazel refactor(devtools): use new theme mixins in the stylesheets (#59978) 2025-02-25 14:15:16 -05:00
devtools-tabs.component.html refactor(devtools): use signals for template properties in frame manager (#58818) 2025-01-06 16:22:01 +00:00
devtools-tabs.component.scss refactor(devtools): use new theme mixins in the stylesheets (#59978) 2025-02-25 14:15:16 -05:00
devtools-tabs.component.ts refactor(devtools): styles management (#59589) 2025-02-12 10:47:02 -08:00
devtools-tabs.spec.ts refactor(devtools): styles management (#59589) 2025-02-12 10:47:02 -08:00