-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: updates and story for StrucvarsToolCard (#43)
- Loading branch information
Showing
3 changed files
with
47 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/components/StrucvarToolsCard/StrucvarToolsCard.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import type { Meta, StoryObj } from '@storybook/vue3' | ||
|
||
import { Strucvar } from '../../lib/genomicVars' | ||
import StrucvarToolsCard from './StrucvarToolsCard.vue' | ||
|
||
// We define the fixtures inline here as they are small. | ||
const delBrca1: Strucvar = { | ||
svType: 'DEL', | ||
genomeBuild: 'grch37', | ||
chrom: '17', | ||
start: 41176312, | ||
stop: 41277500, | ||
userRepr: 'DEL:chr17:41176312:41277500' | ||
} | ||
|
||
const meta = { | ||
title: 'Strucvar/StrucvarToolsCard', | ||
component: StrucvarToolsCard, | ||
tags: ['autodocs'], | ||
argTypes: { | ||
strucvar: { control: { type: 'object' } } | ||
}, | ||
args: { | ||
strucvar: delBrca1 | ||
} | ||
} satisfies Meta<typeof StrucvarToolsCard> | ||
|
||
export default meta | ||
|
||
type Story = StoryObj<typeof meta> | ||
|
||
export const DelBRCA1: Story = { | ||
args: { | ||
strucvar: delBrca1 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters