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

[#124] [#125] [#127] Created/Updated centralised Storybook helpers. #139

Merged
merged 8 commits into from
May 7, 2024

Conversation

joshua-salsadigital
Copy link
Collaborator

@joshua-salsadigital joshua-salsadigital commented Apr 22, 2024

Closes

Checklist before requesting a review

  • I have formatted the subject to include the issue number
    as [#123] Verb in past tense with a period at the end.
  • I have provided information in the Changed section about WHY something was
    done if this was a bespoke implementation.
  • I have performed a self-review of my code.
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have run new and existing relevant tests locally with my changes,
    and they have passed.
  • I have provided screenshots, where applicable.

Changed

  1. Created centralised Storybook helpers.

Screenshots

@joshua-salsadigital joshua-salsadigital self-assigned this Apr 22, 2024

export const capitalizeFirstLetter = (string) => string.charAt(0).toUpperCase() + string.slice(1);

export const indexedString = 'PlaceholderText';
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not sure of this function.
Is this referencing to https://www.w3schools.com/jsref/jsref_indexof.asp. ??

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

NoMetaError: CSF: missing default export (line 1, col 0)
Can eb reolved with
export default {
title: 'Base',
};

but since this is not a story we cannot add export default.

@joshua-salsadigital joshua-salsadigital added PR: Needs review Pull request needs a review from assigned developers State: Needs more work The issue requires more work labels Apr 22, 2024
@joshua-salsadigital joshua-salsadigital changed the title [#124] Created centralised Storybook helpers. [#124] [#125] Created centralised Storybook helpers. Apr 23, 2024
@joshua-salsadigital joshua-salsadigital changed the title [#124] [#125] Created centralised Storybook helpers. [#124] [#125] Created/Updated centralised Storybook helpers. Apr 23, 2024
@joshua-salsadigital joshua-salsadigital changed the title [#124] [#125] Created/Updated centralised Storybook helpers. [#124] [#125] [#127] Created/Updated centralised Storybook helpers. Apr 25, 2024
@@ -36,7 +36,7 @@ export const Label = (knobTab) => {
),
content: text('Content', 'Label content', generalKnobTab),
for: text('For', '', generalKnobTab),
is_required: boolean('Required', false, generalKnobTab),
Copy link
Contributor

Choose a reason for hiding this comment

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

please revert. All boolean props are prefixed with is_ on purpose

@AlexSkrypnyk AlexSkrypnyk added PR: Requires more work Pull request was reviewed and reviver(s) asked to work further on the pull request and removed PR: Needs review Pull request needs a review from assigned developers State: Needs more work The issue requires more work labels May 7, 2024
@AlexSkrypnyk
Copy link
Contributor

@joshua-salsadigital
Can we please also revert the change to the base.stories.js to be base.utils.js

Copy link

github-actions bot commented May 7, 2024

@github-actions github-actions bot temporarily deployed to pull request May 7, 2024 09:59 Inactive
@joshua-salsadigital joshua-salsadigital added PR: Needs review Pull request needs a review from assigned developers and removed PR: Requires more work Pull request was reviewed and reviver(s) asked to work further on the pull request labels May 7, 2024
@AlexSkrypnyk AlexSkrypnyk merged commit bf38e41 into main May 7, 2024
4 checks passed
@AlexSkrypnyk AlexSkrypnyk deleted the feature/124-centralised-storybook branch May 7, 2024 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Needs review Pull request needs a review from assigned developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants