Skip to content

Commit

Permalink
Rename default stories
Browse files Browse the repository at this point in the history
A previous version of storybook had an issue with stories called 'Default',
that's now resolved so rename them back to their expected names.

This is a common name used in many Storybooks for the most common or simplest
usage of a component.
  • Loading branch information
AlanGreene authored and tekton-robot committed Jul 27, 2023
1 parent 1115eda commit 661da6b
Show file tree
Hide file tree
Showing 30 changed files with 31 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const props = {
]
};

export const Base = {
export const Default = {
args: {
...props
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ export default {
title: 'DataTableSkeleton'
};

export const Base = {};
export const Default = {};
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default {
title: 'DeleteModal'
};

export const Base = {
export const Default = {
args: {
kind: 'Pipelines',
onClose: action('onClose'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ export default {
title: 'DotSpinner'
};

export const Base = {};
export const Default = {};
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default {
title: 'Header'
};

export const Base = {};
export const Default = {};

export const WithLogout = {
args: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default {
title: 'KeyValueList'
};

export const Base = {
export const Default = {
args: {
invalidFields: { '2-key': true, '3-value': true },
invalidText: 'There are invalid KeyValue entries.',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default {
title: 'LabelFilter'
};

export const Base = {
export const Default = {
args: {
filters: ['tekton.dev/pipeline=output-pipeline'],
handleAddFilter: action('handleAddFilter'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ export default {
title: 'LoadingShell'
};

export const Base = {};
export const Default = {};
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
title: 'LogsToolbar'
};

export const Base = {
export const Default = {
args: {
name: 'some_filename.txt',
url: '/some/logs/url'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export default {
title: 'PipelineRun'
};

export const Base = () => {
export const Default = () => {
const [selectedStepId, setSelectedStepId] = useState();
const [selectedTaskId, setSelectedTaskId] = useState();
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default {
title: 'PipelineRuns'
};

export const Base = () => (
export const Default = () => (
<PipelineRuns
getPipelineRunURL={({ namespace, pipelineRunName }) =>
namespace ? `to-pipelineRun-${namespace}/${pipelineRunName}` : null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ export const Error = { args: { error: 'A helpful error message' } };

export const Loading = { args: { loading: true } };

export const Base = { args: { resource } };
export const Default = { args: { resource } };

export const WithAdditionalContent = {
args: {
...Base.args,
...Default.args,
additionalMetadata: (
<li>
<span>Custom Field:</span>some additional metadata
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default {
title: 'RunHeader'
};

export const Base = {};
export const Default = {};

export const Running = {
args: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ export default {
title: 'Spinner'
};

export const Base = {};
export const Default = {};
2 changes: 1 addition & 1 deletion packages/components/src/components/Step/Step.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default {
title: 'Step'
};

export const Base = {};
export const Default = {};
export const Selected = { args: { selected: true } };
export const Waiting = { args: { status: 'waiting' } };
export const Running = { args: { status: 'running' } };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
title: 'StepDefinition'
};

export const Base = {};
export const Default = {};

export const WithContent = {
args: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default {
title: 'StepDetails'
};

export const Base = {
export const Default = {
args: {
logContainer: getLogContainer(),
stepStatus: getStepStatus()
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/components/Tabs/Tabs.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default {
title: 'Tabs'
};

export const Base = () => (
export const Default = () => (
<Tabs>
<Tab label="label for tab1">content of tab 1</Tab>
<Tab label="tab 2">content of tab 2</Tab>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default {
title: 'TaskRunDetails'
};

export const Base = {
export const Default = {
args: {
taskRun: {
metadata: { name: 'my-task', namespace: 'my-namespace' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default {
title: 'TaskTree'
};

export const Base = {
export const Default = {
render: args => {
const [selectedStepId, setSelectedStepId] = useState();
const [selectedTaskId, setSelectedTaskId] = useState();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default {
title: 'TextInput'
};

export const Base = {
export const Default = {
args: {
labelText: 'foo',
helperText: 'this is a description of input foo',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default {
title: 'TooltipDropdown'
};

export const Base = {};
export const Default = {};

export const Loading = {
args: { loading: true }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default {
title: 'Trigger'
};

export const Base = { args: props };
export const Default = { args: props };

export const NoName = {
args: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default {
title: 'ViewYAML'
};

export const Base = {};
export const Default = {};

export const SyntaxHighlighter = {
args: {
Expand Down
2 changes: 1 addition & 1 deletion packages/graph/src/components/Graph.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ export default {
title: 'legacy/Graph'
};

export const Base = { args: { graph } };
export const Default = { args: { graph } };
2 changes: 1 addition & 1 deletion packages/graph/src/components/PipelineGraph.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default {
title: 'legacy/PipelineGraph'
};

export const Base = () => (
export const Default = () => (
<PipelineGraph
onClickStep={action('onClickStep')}
onClickTask={action('onClickTask')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default {
title: 'legacy/ZoomablePipelineGraph'
};

export const Base = () => (
export const Default = () => (
<ZoomablePipelineGraph
onClickStep={action('onClickStep')}
onClickTask={action('onClickTask')}
Expand Down
2 changes: 1 addition & 1 deletion src/containers/EventListener/EventListener.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export default {
title: 'EventListener'
};

export const Base = {
export const Default = {
render: () => <EventListenerContainer {...props} />,

decorators: [
Expand Down
2 changes: 1 addition & 1 deletion src/containers/ListPageLayout/ListPageLayout.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default {
title: 'ListPageLayout'
};

export const Base = {
export const Default = {
render: args => (
<ListPageLayoutContainer {...args}>
{() => <span>page content goes here</span>}
Expand Down
2 changes: 1 addition & 1 deletion src/containers/NotFound/NotFound.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default {
title: 'NotFound'
};

export const Base = {};
export const Default = {};

export const CustomSuggestions = {
args: {
Expand Down

0 comments on commit 661da6b

Please sign in to comment.