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

OSS::InformationSection component #457

Merged
merged 6 commits into from
Dec 17, 2024
Merged

Conversation

OwenCoogan
Copy link
Contributor

@OwenCoogan OwenCoogan commented Dec 16, 2024

What does this PR do?

It adds a new component used in the 2FA project

Capture d’écran 2024-12-16 à 15 44 32
Capture d’écran 2024-12-16 à 15 44 13
Capture d’écran 2024-12-16 à 15 36 56
Capture d’écran 2024-12-16 à 12 05 44

Related to: #

What are the observable changes?

Good PR checklist

  • Title makes sense
  • Is against the correct branch
  • Only addresses one issue
  • Properly assigned
  • Added/updated tests
  • Added/updated documentation
  • Migrated touched components to Glimmer Components
  • Properly labeled

Copy link

linear bot commented Dec 16, 2024

import type { IconNames } from './iconName.enum';

interface InformationSectionArgs {
imageBadge: keyof typeof IconNames | string;
Copy link
Contributor

Choose a reason for hiding this comment

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

? 🤔

Comment on lines 101 to 104
<:content>
<p data-control-name='content-named-block'>{{this.namedBlockContent}}</p>
</:content>
</OSS::InformationSection>`);
Copy link
Member

Choose a reason for hiding this comment

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

nit: alignment of the

tag
It also looks like you have an empty state after each await render statement in some of the tests of the file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed testfile


interface InformationSectionArgs {
badgeIcon?: keyof typeof IconNames;
svgIcon?: string;
Copy link
Member

Choose a reason for hiding this comment

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

imageUrl should be a bit more "permissive" language wise :)
the icons might be pngs sometimes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Changed to imageUrl

export default {
title: 'Components/OSS::InformationSection',
argTypes: {
title: {
Copy link
Member

Choose a reason for hiding this comment

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

you can be a little more precise with the argTypes in storybook, there are examples in other files in the project

      table: {
        type: { summary: 'string' },
        defaultValue: { summary: 'undefined' }
      },
      control: {
        type: 'text'
      }

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Specified argTypes in sb

Copy link
Member

Choose a reason for hiding this comment

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

I think the defaultValues are wrong ^^
should be 'undefined' everywhere no ? 🤷

Comment on lines 78 to 81
<div class="fx-row fx-gap-px-6">
<OSS::Tag @label="Hello" @skin="primary" />
<OSS::Button @size="sm" @label="Action Button"/>
</div>
Copy link
Member

Choose a reason for hiding this comment

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

nit: indentation

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed indentation

export default {
title: 'Components/OSS::InformationSection',
argTypes: {
title: {
Copy link
Member

Choose a reason for hiding this comment

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

I think the defaultValues are wrong ^^
should be 'undefined' everywhere no ? 🤷

@OwenCoogan OwenCoogan changed the base branch from master to feature-branch/2fa December 17, 2024 13:33
@OwenCoogan OwenCoogan merged commit 2d4ea4f into feature-branch/2fa Dec 17, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants