Skip to content

Commit

Permalink
docs: Hoist robot model stories to less nested level
Browse files Browse the repository at this point in the history
  • Loading branch information
evrys committed Sep 11, 2024
1 parent d086887 commit 318f362
Show file tree
Hide file tree
Showing 24 changed files with 73 additions and 47 deletions.
5 changes: 3 additions & 2 deletions stories/robots/ABB_1200_07_7.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import { sharedStoryConfig } from "./robotStoryConfig"

export default {
...sharedStoryConfig,
title: "3D View/Robots/ABB_1200_07_7",
tags: ["!autodocs"],
title: "3D View/Robot/Supported Models/ABB_1200_07_7",
}

function SupportedRobotScene(
Expand Down Expand Up @@ -70,5 +71,5 @@ export const RobotStory: StoryObj<typeof SupportedRobotScene> = {
modelFromController: "ABB_1200_07_7",
},
render: (args) => <SupportedRobotScene {...args} />,
name: "Default",
name: "ABB_1200_07_7",
}
5 changes: 3 additions & 2 deletions stories/robots/FANUC_ARC_Mate_100iD.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import { sharedStoryConfig } from "./robotStoryConfig"

export default {
...sharedStoryConfig,
title: "3D View/Robots/FANUC_ARC_Mate_100iD",
tags: ["!autodocs"],
title: "3D View/Robot/Supported Models/FANUC_ARC_Mate_100iD",
}

function SupportedRobotScene(
Expand Down Expand Up @@ -70,5 +71,5 @@ export const RobotStory: StoryObj<typeof SupportedRobotScene> = {
modelFromController: "FANUC_ARC_Mate_100iD",
},
render: (args) => <SupportedRobotScene {...args} />,
name: "Default",
name: "FANUC_ARC_Mate_100iD",
}
5 changes: 3 additions & 2 deletions stories/robots/FANUC_ARC_Mate_120iD.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import { sharedStoryConfig } from "./robotStoryConfig"

export default {
...sharedStoryConfig,
title: "3D View/Robots/FANUC_ARC_Mate_120iD",
tags: ["!autodocs"],
title: "3D View/Robot/Supported Models/FANUC_ARC_Mate_120iD",
}

function SupportedRobotScene(
Expand Down Expand Up @@ -70,5 +71,5 @@ export const RobotStory: StoryObj<typeof SupportedRobotScene> = {
modelFromController: "FANUC_ARC_Mate_120iD",
},
render: (args) => <SupportedRobotScene {...args} />,
name: "Default",
name: "FANUC_ARC_Mate_120iD",
}
5 changes: 3 additions & 2 deletions stories/robots/FANUC_CRX10iA.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import { sharedStoryConfig } from "./robotStoryConfig"

export default {
...sharedStoryConfig,
title: "3D View/Robots/FANUC_CRX10iA",
tags: ["!autodocs"],
title: "3D View/Robot/Supported Models/FANUC_CRX10iA",
}

function SupportedRobotScene(
Expand Down Expand Up @@ -70,5 +71,5 @@ export const RobotStory: StoryObj<typeof SupportedRobotScene> = {
modelFromController: "FANUC_CRX10iA",
},
render: (args) => <SupportedRobotScene {...args} />,
name: "Default",
name: "FANUC_CRX10iA",
}
5 changes: 3 additions & 2 deletions stories/robots/FANUC_CRX20iAL.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import { sharedStoryConfig } from "./robotStoryConfig"

export default {
...sharedStoryConfig,
title: "3D View/Robots/FANUC_CRX20iAL",
tags: ["!autodocs"],
title: "3D View/Robot/Supported Models/FANUC_CRX20iAL",
}

function SupportedRobotScene(
Expand Down Expand Up @@ -70,5 +71,5 @@ export const RobotStory: StoryObj<typeof SupportedRobotScene> = {
modelFromController: "FANUC_CRX20iAL",
},
render: (args) => <SupportedRobotScene {...args} />,
name: "Default",
name: "FANUC_CRX20iAL",
}
5 changes: 3 additions & 2 deletions stories/robots/FANUC_CRX25iA.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import { sharedStoryConfig } from "./robotStoryConfig"

export default {
...sharedStoryConfig,
title: "3D View/Robots/FANUC_CRX25iA",
tags: ["!autodocs"],
title: "3D View/Robot/Supported Models/FANUC_CRX25iA",
}

function SupportedRobotScene(
Expand Down Expand Up @@ -70,5 +71,5 @@ export const RobotStory: StoryObj<typeof SupportedRobotScene> = {
modelFromController: "FANUC_CRX25iA",
},
render: (args) => <SupportedRobotScene {...args} />,
name: "Default",
name: "FANUC_CRX25iA",
}
5 changes: 3 additions & 2 deletions stories/robots/FANUC_CRX25iAL.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import { sharedStoryConfig } from "./robotStoryConfig"

export default {
...sharedStoryConfig,
title: "3D View/Robots/FANUC_CRX25iAL",
tags: ["!autodocs"],
title: "3D View/Robot/Supported Models/FANUC_CRX25iAL",
}

function SupportedRobotScene(
Expand Down Expand Up @@ -70,5 +71,5 @@ export const RobotStory: StoryObj<typeof SupportedRobotScene> = {
modelFromController: "FANUC_CRX25iAL",
},
render: (args) => <SupportedRobotScene {...args} />,
name: "Default",
name: "FANUC_CRX25iAL",
}
5 changes: 3 additions & 2 deletions stories/robots/KUKA_KR16_R2010_2.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import { sharedStoryConfig } from "./robotStoryConfig"

export default {
...sharedStoryConfig,
title: "3D View/Robots/KUKA_KR16_R2010_2",
tags: ["!autodocs"],
title: "3D View/Robot/Supported Models/KUKA_KR16_R2010_2",
}

function SupportedRobotScene(
Expand Down Expand Up @@ -70,5 +71,5 @@ export const RobotStory: StoryObj<typeof SupportedRobotScene> = {
modelFromController: "KUKA_KR16_R2010_2",
},
render: (args) => <SupportedRobotScene {...args} />,
name: "Default",
name: "KUKA_KR16_R2010_2",
}
5 changes: 3 additions & 2 deletions stories/robots/KUKA_KR210_R2700.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import { sharedStoryConfig } from "./robotStoryConfig"

export default {
...sharedStoryConfig,
title: "3D View/Robots/KUKA_KR210_R2700",
tags: ["!autodocs"],
title: "3D View/Robot/Supported Models/KUKA_KR210_R2700",
}

function SupportedRobotScene(
Expand Down Expand Up @@ -70,5 +71,5 @@ export const RobotStory: StoryObj<typeof SupportedRobotScene> = {
modelFromController: "KUKA_KR210_R2700",
},
render: (args) => <SupportedRobotScene {...args} />,
name: "Default",
name: "KUKA_KR210_R2700",
}
5 changes: 3 additions & 2 deletions stories/robots/KUKA_KR270_R2700.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import { sharedStoryConfig } from "./robotStoryConfig"

export default {
...sharedStoryConfig,
title: "3D View/Robots/KUKA_KR270_R2700",
tags: ["!autodocs"],
title: "3D View/Robot/Supported Models/KUKA_KR270_R2700",
}

function SupportedRobotScene(
Expand Down Expand Up @@ -70,5 +71,5 @@ export const RobotStory: StoryObj<typeof SupportedRobotScene> = {
modelFromController: "KUKA_KR270_R2700",
},
render: (args) => <SupportedRobotScene {...args} />,
name: "Default",
name: "KUKA_KR270_R2700",
}
8 changes: 5 additions & 3 deletions stories/robots/Robot.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import type { StoryObj } from "@storybook/react"
import { Euler, Vector3, WebGLRenderer } from "three"
import { Robot, SupportedRobot } from "../../src"
import type { SupportedRobot } from "../../src"
import { Robot } from "../../src"
import type { ConnectedMotionGroup } from "@wandelbots/wandelbots-js"
import {
ConnectedMotionGroup,
NovaClient,
type MotionGroupStateResponse,
} from "@wandelbots/wandelbots-js"
Expand All @@ -11,6 +12,7 @@ import { useEffect, useState } from "react"

export default {
...sharedStoryConfig,
tags: ["!dev"],
title: "3D View/Robot",
}

Expand Down Expand Up @@ -41,5 +43,5 @@ function SupportedRobotScene(
export const RobotStory: StoryObj<typeof SupportedRobotScene> = {
args: {},
render: (args) => <SupportedRobotScene {...args} />,
name: "Default",
name: "Robot",
}
5 changes: 3 additions & 2 deletions stories/robots/UniversalRobots_UR10.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import { sharedStoryConfig } from "./robotStoryConfig"

export default {
...sharedStoryConfig,
title: "3D View/Robots/UniversalRobots_UR10",
tags: ["!autodocs"],
title: "3D View/Robot/Supported Models/UniversalRobots_UR10",
}

function SupportedRobotScene(
Expand Down Expand Up @@ -68,5 +69,5 @@ export const RobotStory: StoryObj<typeof SupportedRobotScene> = {
modelFromController: "UniversalRobots_UR10",
},
render: (args) => <SupportedRobotScene {...args} />,
name: "Default",
name: "UniversalRobots_UR10",
}
5 changes: 3 additions & 2 deletions stories/robots/UniversalRobots_UR10e.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import { sharedStoryConfig } from "./robotStoryConfig"

export default {
...sharedStoryConfig,
title: "3D View/Robots/UniversalRobots_UR10e",
tags: ["!autodocs"],
title: "3D View/Robot/Supported Models/UniversalRobots_UR10e",
}

function SupportedRobotScene(
Expand Down Expand Up @@ -68,5 +69,5 @@ export const RobotStory: StoryObj<typeof SupportedRobotScene> = {
modelFromController: "UniversalRobots_UR10e",
},
render: (args) => <SupportedRobotScene {...args} />,
name: "Default",
name: "UniversalRobots_UR10e",
}
5 changes: 3 additions & 2 deletions stories/robots/UniversalRobots_UR3.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import { sharedStoryConfig } from "./robotStoryConfig"

export default {
...sharedStoryConfig,
title: "3D View/Robots/UniversalRobots_UR3",
tags: ["!autodocs"],
title: "3D View/Robot/Supported Models/UniversalRobots_UR3",
}

function SupportedRobotScene(
Expand Down Expand Up @@ -70,5 +71,5 @@ export const RobotStory: StoryObj<typeof SupportedRobotScene> = {
modelFromController: "UniversalRobots_UR3",
},
render: (args) => <SupportedRobotScene {...args} />,
name: "Default",
name: "UniversalRobots_UR3",
}
5 changes: 3 additions & 2 deletions stories/robots/UniversalRobots_UR3e.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import { sharedStoryConfig } from "./robotStoryConfig"

export default {
...sharedStoryConfig,
title: "3D View/Robots/UniversalRobots_UR3e",
tags: ["!autodocs"],
title: "3D View/Robot/Supported Models/UniversalRobots_UR3e",
}

function SupportedRobotScene(
Expand Down Expand Up @@ -70,5 +71,5 @@ export const RobotStory: StoryObj<typeof SupportedRobotScene> = {
modelFromController: "UniversalRobots_UR3e",
},
render: (args) => <SupportedRobotScene {...args} />,
name: "Default",
name: "UniversalRobots_UR3e",
}
5 changes: 3 additions & 2 deletions stories/robots/UniversalRobots_UR5.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { sharedStoryConfig } from "./robotStoryConfig"

export default {
...sharedStoryConfig,
title: "3D View/Robots/UniversalRobots_UR5",
tags: ["!autodocs"],
title: "3D View/Robot/Supported Models/UniversalRobots_UR5",
}

function SupportedRobotScene(
Expand Down Expand Up @@ -69,5 +70,5 @@ export const UR5Story: StoryObj<typeof SupportedRobotScene> = {
modelFromController: "UniversalRobots_UR5",
},
render: (args) => <SupportedRobotScene {...args} />,
name: "Default",
name: "UniversalRobots_UR5",
}
5 changes: 3 additions & 2 deletions stories/robots/UniversalRobots_UR5e.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { sharedStoryConfig } from "./robotStoryConfig"

export default {
...sharedStoryConfig,
title: "3D View/Robots/UniversalRobots_UR5e",
tags: ["!autodocs"],
title: "3D View/Robot/Supported Models/UniversalRobots_UR5e",
}

function SupportedRobotScene(
Expand Down Expand Up @@ -69,5 +70,5 @@ export const UR5Story: StoryObj<typeof SupportedRobotScene> = {
modelFromController: "UniversalRobots_UR5e",
},
render: (args) => <SupportedRobotScene {...args} />,
name: "Default",
name: "UniversalRobots_UR5e",
}
5 changes: 3 additions & 2 deletions stories/robots/Yaskawa_AR1440.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import { sharedStoryConfig } from "./robotStoryConfig"

export default {
...sharedStoryConfig,
title: "3D View/Robots/Yaskawa_AR1440",
tags: ["!autodocs"],
title: "3D View/Robot/Supported Models/Yaskawa_AR1440",
}

function SupportedRobotScene(
Expand Down Expand Up @@ -70,5 +71,5 @@ export const RobotStory: StoryObj<typeof SupportedRobotScene> = {
modelFromController: "Yaskawa_AR1440",
},
render: (args) => <SupportedRobotScene {...args} />,
name: "Default",
name: "Yaskawa_AR1440",
}
5 changes: 3 additions & 2 deletions stories/robots/Yaskawa_AR1730.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import { sharedStoryConfig } from "./robotStoryConfig"

export default {
...sharedStoryConfig,
title: "3D View/Robots/Yaskawa_AR1730",
tags: ["!autodocs"],
title: "3D View/Robot/Supported Models/Yaskawa_AR1730",
}

function SupportedRobotScene(
Expand Down Expand Up @@ -70,5 +71,5 @@ export const RobotStory: StoryObj<typeof SupportedRobotScene> = {
modelFromController: "Yaskawa_AR1730",
},
render: (args) => <SupportedRobotScene {...args} />,
name: "Default",
name: "Yaskawa_AR1730",
}
5 changes: 3 additions & 2 deletions stories/robots/Yaskawa_AR2010.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import { sharedStoryConfig } from "./robotStoryConfig"

export default {
...sharedStoryConfig,
title: "3D View/Robots/Yaskawa_AR2010",
tags: ["!autodocs"],
title: "3D View/Robot/Supported Models/Yaskawa_AR2010",
}

function SupportedRobotScene(
Expand Down Expand Up @@ -70,5 +71,5 @@ export const RobotStory: StoryObj<typeof SupportedRobotScene> = {
modelFromController: "Yaskawa_AR2010",
},
render: (args) => <SupportedRobotScene {...args} />,
name: "Default",
name: "Yaskawa_AR2010",
}
5 changes: 3 additions & 2 deletions stories/robots/Yaskawa_AR3120.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import { sharedStoryConfig } from "./robotStoryConfig"

export default {
...sharedStoryConfig,
title: "3D View/Robots/Yaskawa_AR3120",
tags: ["!autodocs"],
title: "3D View/Robot/Supported Models/Yaskawa_AR3120",
}

function SupportedRobotScene(
Expand Down Expand Up @@ -70,5 +71,5 @@ export const RobotStory: StoryObj<typeof SupportedRobotScene> = {
modelFromController: "Yaskawa_AR3120",
},
render: (args) => <SupportedRobotScene {...args} />,
name: "Default",
name: "Yaskawa_AR3120",
}
5 changes: 3 additions & 2 deletions stories/robots/Yaskawa_AR900.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import { sharedStoryConfig } from "./robotStoryConfig"

export default {
...sharedStoryConfig,
title: "3D View/Robots/Yaskawa_AR900",
tags: ["!autodocs"],
title: "3D View/Robot/Supported Models/Yaskawa_AR900",
}

function SupportedRobotScene(
Expand Down Expand Up @@ -70,5 +71,5 @@ export const RobotStory: StoryObj<typeof SupportedRobotScene> = {
modelFromController: "Yaskawa_AR900",
},
render: (args) => <SupportedRobotScene {...args} />,
name: "Default",
name: "Yaskawa_AR900",
}
Loading

0 comments on commit 318f362

Please sign in to comment.