Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Storybook] Add stories for more components (letters R-S) - Part 4 #7733

Merged
merged 8 commits into from
May 8, 2024

Conversation

mgadewoll
Copy link
Contributor

@mgadewoll mgadewoll commented May 3, 2024

@mgadewoll mgadewoll added documentation Issues or PRs that only affect documentation - will not need changelog entries skip-changelog labels May 3, 2024
@mgadewoll mgadewoll marked this pull request as ready for review May 3, 2024 16:54
@mgadewoll mgadewoll requested a review from a team as a code owner May 3, 2024 16:54
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[just me thinking out loud] I sometimes wonder how much value consumers get from us exporting subcomponents like this, vs just the higher level components 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can have value to understand what's available, how it works etc. Or even to maybe reuse some components in other contexts even if unexpected? 🤔

Copy link
Contributor

@cee-chen cee-chen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nav bar organization

src/components/steps/sub_steps.stories.tsx Outdated Show resolved Hide resolved
src/components/steps/step_number.stories.tsx Outdated Show resolved Hide resolved
src/components/steps/steps.stories.tsx Show resolved Hide resolved
src/components/steps/steps_horizontal.stories.tsx Outdated Show resolved Hide resolved
@cee-chen cee-chen force-pushed the storybook/7482-stories-r-s-part-4 branch from db10dd3 to 6b8eb75 Compare May 8, 2024 18:14
Copy link
Contributor

@cee-chen cee-chen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pushed up a minor fix for undefined step status being valid for EuiStepNumber and EuiStep (but not EuiStepHorizontal 🤷), other than that this looks great!

@cee-chen cee-chen enabled auto-merge (squash) May 8, 2024 18:16
@kibanamachine
Copy link

Preview staging links for this PR:

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

@cee-chen cee-chen merged commit 20e71da into elastic:main May 8, 2024
5 checks passed
@@ -12,7 +12,7 @@ import { hideStorybookControls } from '../../../.storybook/utils';
import { EuiStepNumber, EuiStepNumberProps } from './step_number';

const meta: Meta<EuiStepNumberProps> = {
title: 'Navigation/EuiSteps/EuiStepNumber',
title: 'Navigation/EuiSteps/Subcomponents/EuiStepNumber',
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, if I remember correctly, we had a discussion some time ago about nesting conventions and agreed that we nest subcomponents under the components based on component name and that we wouldn't add other folders as that might be confusing? (conversation)

So the idea would be that EuiStepNumber is a subcomponent of EuiSteps (or even EuiStep) so it's nested under those.

Next to other components the naming Subcomponents now would mean there is a component called Subcomponents if we go by how we organized components so far 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Issues or PRs that only affect documentation - will not need changelog entries skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[New docs] Create stories for components starting with the letters R-S
4 participants