-
Notifications
You must be signed in to change notification settings - Fork 26.3k
feat(devtools): create devtools signals view #61919
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
base: main
Are you sure you want to change the base?
Conversation
8a32ab1
to
66ebbb2
Compare
...ects/ng-devtools/src/lib/devtools-tabs/directive-explorer/signals-view/signal-data-source.ts
Outdated
Show resolved
Hide resolved
...ects/ng-devtools/src/lib/devtools-tabs/directive-explorer/signals-view/signal-data-source.ts
Outdated
Show resolved
Hide resolved
...ects/ng-devtools/src/lib/devtools-tabs/directive-explorer/signals-view/signal-data-source.ts
Outdated
Show resolved
Hide resolved
...ects/ng-devtools/src/lib/devtools-tabs/directive-explorer/signals-view/signal-data-source.ts
Outdated
Show resolved
Hide resolved
...s/ng-devtools/src/lib/devtools-tabs/directive-explorer/signals-view/signals-tab.component.ts
Outdated
Show resolved
Hide resolved
...s/ng-devtools/src/lib/devtools-tabs/directive-explorer/signals-view/signals-tab.component.ts
Outdated
Show resolved
Hide resolved
...s/ng-devtools/src/lib/devtools-tabs/directive-explorer/signals-view/signals-tab.component.ts
Show resolved
Hide resolved
...ects/ng-devtools/src/lib/devtools-tabs/directive-explorer/signals-view/signals-visualizer.ts
Outdated
Show resolved
Hide resolved
...ects/ng-devtools/src/lib/devtools-tabs/directive-explorer/signals-view/signals-visualizer.ts
Show resolved
Hide resolved
...ects/ng-devtools/src/lib/devtools-tabs/directive-explorer/signals-view/signals-visualizer.ts
Show resolved
Hide resolved
...ects/ng-devtools/src/lib/devtools-tabs/directive-explorer/signals-view/signals-visualizer.ts
Outdated
Show resolved
Hide resolved
...ng-devtools/src/lib/devtools-tabs/directive-explorer/signals-view/signals-tab.component.html
Outdated
Show resolved
Hide resolved
...ects/ng-devtools/src/lib/devtools-tabs/directive-explorer/signals-view/signals-visualizer.ts
Show resolved
Hide resolved
...ects/ng-devtools/src/lib/devtools-tabs/directive-explorer/signals-view/signal-data-source.ts
Outdated
Show resolved
Hide resolved
Looks good! ✨ Left minor/style comments. I'll let the rest of the team to chime in. I guess this shouldn't be a blocker for moving the PR forward but can we test some of the code? I realize that it's tricky to do that for complex UI without getting into E2E but maybe we can do some unit testing of the more frictionless parts. |
...ects/ng-devtools/src/lib/devtools-tabs/directive-explorer/signals-view/signals-visualizer.ts
Outdated
Show resolved
Hide resolved
...ng-devtools/src/lib/devtools-tabs/directive-explorer/signals-view/signals-tab.component.html
Outdated
Show resolved
Hide resolved
...ng-devtools/src/lib/devtools-tabs/directive-explorer/signals-view/signals-tab.component.html
Outdated
Show resolved
Hide resolved
...s/ng-devtools/src/lib/devtools-tabs/directive-explorer/signals-view/signals-tab.component.ts
Outdated
Show resolved
Hide resolved
...ng-devtools/src/lib/devtools-tabs/directive-explorer/signals-view/signals-tab.component.html
Outdated
Show resolved
Hide resolved
create a component for the devtools signal pane, including view source, view value, and flashing of node updates
const parsedB = parseInt(b.name, 10); | ||
|
||
if (isNaN(parsedA) || isNaN(parsedB)) { | ||
return a.name > b.name ? 1 : -1; |
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.
Should we do a localeCompare
here instead ?
this.expandedData.next( | ||
this.treeFlattener.expandFlattenedNodes(this.data.value, this.treeControl), | ||
); |
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.
This is a side effect in a map.
private data = new BehaviorSubject<FlatNode[]>([]); | ||
private expandedData = new BehaviorSubject<FlatNode[]>([]); |
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.
Do we realy need a stream here ?
I was under the impression that a signal would fit here.
create a component for the devtools signal pane, including view source, view value, and flashing of node updates
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Blocked on #61917, #61918See #60478 for a more complete demo
Does this PR introduce a breaking change?
Other information