-
Notifications
You must be signed in to change notification settings - Fork 276
WIP GRAPH 3: Custom Shapes and Colors #118
WIP GRAPH 3: Custom Shapes and Colors #118
Conversation
… initializeSelection
@arniebradfo I added shapes and colors to the beacon, host, and server meta-objects. They can be updated in their meta mutations |
@@ -141,6 +151,7 @@ export const parsingOrchestratorMachine = createMachine( | |||
ip, | |||
os: findOsFromMetaLine(metadataLog.blob), | |||
host: metadataLog.beacon?.host as Host, | |||
shape: Shapes.circle, |
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.
@GoldingAustin I had to add shape: Shapes.circle
here in hostMeta
and in beaconMeta
. Not sure why its marked as required?
@@ -31,7 +31,7 @@ export class HostResolvers { | |||
@Arg('hostDisplayName', () => String) hostDisplayName: string, | |||
@Arg('shape', { nullable: true }) shape?: Shapes, | |||
@Arg('color', { nullable: true }) color?: string, | |||
@RelationPath() relationPaths: Relation<Host> | |||
@RelationPath() relationPaths?: Relation<Host> |
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.
@GoldingAustin, This was giving me an error that A required parameter cannot follow an optional parameter. ts(1016)
so I made it optional?
applications/server/schema.graphql
Outdated
@@ -483,7 +483,7 @@ type Query { | |||
logsByBeaconId(beaconId: String!, campaignId: String!): [LogEntry!]! | |||
|
|||
"""""" | |||
nonHidableEntities(beaconIds: [String!] = [], campaignId: String!, hostIds: [String!] = []): NonHidableEntities! | |||
nonHidableEntities(beaconIds: [String!]! = [], campaignId: String!, hostIds: [String!]! = []): NonHidableEntities! |
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.
@GoldingAustin, this just updated itself on build
@GoldingAustin & @sharplessHQ, I think I did an okay job merging in develop 489b1d9, but some of the file changes in |
Add graph update on selection and initial load
Description
This adds the option to select from a set of polygon representations for each beacon node, and add color to all nodes. see screenshots.
TODOs
Testing
...
Screenshots