diff --git a/client/src/app/components/node-directory/node-directory.component.stories.ts b/client/src/app/components/node-directory/node-directory.component.stories.ts index df63392..81699ab 100644 --- a/client/src/app/components/node-directory/node-directory.component.stories.ts +++ b/client/src/app/components/node-directory/node-directory.component.stories.ts @@ -1,5 +1,5 @@ import { Meta, Story } from "@storybook/angular" -import { NodeDirectoryComponent } from "/workspaces/tree-visualizer/client/src/app/components/node-directory/node-directory.component" +import { NodeDirectoryComponent } from "./node-directory.component" import { action } from "@storybook/addon-actions" import * as go from "gojs" @@ -12,54 +12,54 @@ const Template: Story = (args) => ({ }) const model: go.TreeModel = new go.TreeModel({ - nodeKeyProperty: "id", - nodeDataArray: [ - { - id: "ff5892a7-b5c9-4a25-97bd-663b2cff5bd7", - parent: "", - title: "UTAT-Team-A", - qualifier: "SHALL", - type: "Performance", - description: "A description", - rationale: "A rationale", - url: "https://www.notion.so/UTAT-Team-A-74331bc1129c417c850a0a5ca0deb759", - }, - { - id: "123456789", - parent: "ff5892a7-b5c9-4a25-97bd-663b2cff5bd7", - title: "UTAT-Team-B", - qualifier: "SHOULD", - type: "Constraint", - description: "Another description", - rationale: "A rationale", - url: "https://www.notion.so/Child-1-123456789", - }, - { - id: "abcdefghi", - parent: "ff5892a7-b5c9-4a25-97bd-663b2cff5bd7", - title: "UTAT-Team-C", - qualifier: "SHALL", - type: "Component Selection", - description: - "A very long form description that may or may not exceed the width of the node. The quick brown fox jumps over the lazy dog. Octopuses have several tentacles. Icecream is cold. Did you know that lava is warm? Lava cake with an ice cream scoop on the side is delicious.", - rationale: "A rationale", - url: "https://www.notion.so/Child-2-abcdefghi", - }, - { - id: "qwertyuiop", - parent: "123456789", - title: "UTAT-Team-D", - qualifier: "SHOULD", - type: "A type", - description: "Yet another description that is just a little bit longer", - rationale: "A rationale", - url: "https://www.notion.so/Grandchild-1-qwertyuiop", - }, - ], -}); + nodeKeyProperty: "id", + nodeDataArray: [ + { + id: "ff5892a7-b5c9-4a25-97bd-663b2cff5bd7", + parent: "", + title: "UTAT-Team-A", + qualifier: "SHALL", + type: "Performance", + description: "A description", + rationale: "A rationale", + url: "https://www.notion.so/UTAT-Team-A-74331bc1129c417c850a0a5ca0deb759", + }, + { + id: "123456789", + parent: "ff5892a7-b5c9-4a25-97bd-663b2cff5bd7", + title: "UTAT-Team-B", + qualifier: "SHOULD", + type: "Constraint", + description: "Another description", + rationale: "A rationale", + url: "https://www.notion.so/Child-1-123456789", + }, + { + id: "abcdefghi", + parent: "ff5892a7-b5c9-4a25-97bd-663b2cff5bd7", + title: "UTAT-Team-C", + qualifier: "SHALL", + type: "Component Selection", + description: + "A very long form description that may or may not exceed the width of the node. The quick brown fox jumps over the lazy dog. Octopuses have several tentacles. Icecream is cold. Did you know that lava is warm? Lava cake with an ice cream scoop on the side is delicious.", + rationale: "A rationale", + url: "https://www.notion.so/Child-2-abcdefghi", + }, + { + id: "qwertyuiop", + parent: "123456789", + title: "UTAT-Team-D", + qualifier: "SHOULD", + type: "A type", + description: "Yet another description that is just a little bit longer", + rationale: "A rationale", + url: "https://www.notion.so/Grandchild-1-qwertyuiop", + }, + ], +}) export const Default = Template.bind({}) Default.args = { model, nodeClicked: action("nodeClicked"), -} \ No newline at end of file +}