UID Refactor 3/n UINode -> ClientNode
Summary: UINode has never been a good name, we have 3 versions of a node. ClientNode Previously UINode (the raw data from the client) NestedNode (for the visualiser) TreeNode (extends ClientNode and adds stuff specific to the tree like indentation and expanded states) Arguablely we dont need nested node but that is another story Reviewed By: elboman Differential Revision: D47547529 fbshipit-source-id: 9a3b119d1230ea7b6734e7a3270c28287b04faf1
This commit is contained in:
committed by
Facebook GitHub Bot
parent
f181551ce6
commit
87a1b657c3
@@ -19,7 +19,7 @@ import {
|
||||
usePlugin,
|
||||
useValue,
|
||||
} from 'flipper-plugin';
|
||||
import {Id, Metadata, MetadataId, UINode} from '../../ClientTypes';
|
||||
import {Id, Metadata, MetadataId, ClientNode} from '../../ClientTypes';
|
||||
import {IdentityInspector} from './inspector/IdentityInspector';
|
||||
import {AttributesInspector} from './inspector/AttributesInspector';
|
||||
import {Tooltip} from 'antd';
|
||||
@@ -29,7 +29,7 @@ import {FrameworkEventsInspector} from './inspector/FrameworkEventsInspector';
|
||||
|
||||
type Props = {
|
||||
os: DeviceOS;
|
||||
nodes: Map<Id, UINode>;
|
||||
nodes: Map<Id, ClientNode>;
|
||||
metadata: Map<MetadataId, Metadata>;
|
||||
showExtra: (element: ReactNode) => void;
|
||||
};
|
||||
|
||||
@@ -13,7 +13,7 @@ import {
|
||||
InspectableObject,
|
||||
Metadata,
|
||||
MetadataId,
|
||||
UINode,
|
||||
ClientNode,
|
||||
} from '../../../ClientTypes';
|
||||
import {DataInspector, Panel, styled} from 'flipper-plugin';
|
||||
import {Col, Row} from 'antd';
|
||||
@@ -244,7 +244,7 @@ function createSection(
|
||||
|
||||
type InspectorMode = 'layout' | 'attribute';
|
||||
type Props = {
|
||||
node: UINode;
|
||||
node: ClientNode;
|
||||
metadata: Map<MetadataId, Metadata>;
|
||||
mode: InspectorMode;
|
||||
rawEnabled?: boolean;
|
||||
|
||||
@@ -8,10 +8,10 @@
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import {UINode} from '../../../ClientTypes';
|
||||
import {ClientNode} from '../../../ClientTypes';
|
||||
|
||||
type Props = {
|
||||
node: UINode;
|
||||
node: ClientNode;
|
||||
};
|
||||
|
||||
export const DocumentationInspector: React.FC<Props> = () => {
|
||||
|
||||
@@ -9,12 +9,12 @@
|
||||
|
||||
import {Button} from 'antd';
|
||||
import {theme, TimelineDataDescription} from 'flipper-plugin';
|
||||
import {FrameworkEvent, UINode} from '../../../ClientTypes';
|
||||
import {FrameworkEvent, ClientNode} from '../../../ClientTypes';
|
||||
import React, {ReactNode, useState} from 'react';
|
||||
import {StackTraceInspector} from './StackTraceInspector';
|
||||
|
||||
type Props = {
|
||||
node: UINode;
|
||||
node: ClientNode;
|
||||
events: readonly FrameworkEvent[];
|
||||
showExtra?: (element: ReactNode) => void;
|
||||
};
|
||||
|
||||
@@ -9,13 +9,13 @@
|
||||
|
||||
import React from 'react';
|
||||
import {Col, Row} from 'antd';
|
||||
import {UINode} from '../../../ClientTypes';
|
||||
import {ClientNode} from '../../../ClientTypes';
|
||||
import {styled, theme} from 'flipper-plugin';
|
||||
import {CodeInspector} from './fb-stubs/CodeInspector';
|
||||
import {TopSpacedContainerStyle} from './Styles';
|
||||
|
||||
type Props = {
|
||||
node: UINode;
|
||||
node: ClientNode;
|
||||
};
|
||||
|
||||
const IdentityKey = styled.div({
|
||||
|
||||
Reference in New Issue
Block a user