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

feat(SLB-306): Info Grid #226

Merged
merged 44 commits into from
Jun 7, 2024
Merged

feat(SLB-306): Info Grid #226

merged 44 commits into from
Jun 7, 2024

Conversation

elistone
Copy link
Member

@elistone elistone commented May 9, 2024

Description of changes

Adds info grid block.

How has this been tested?

  • Manually
  • Unit tests
  • Integration tests

Copy link
Member

@Leksat Leksat left a comment

Choose a reason for hiding this comment

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

@elistone There are just two comments which indicate probable bugs. Indicated with 🐛

The rest are nit picks 🙂

.idea/prettier.xml Outdated Show resolved Hide resolved
packages/drupal/gutenberg_blocks/src/utils/icon-list.ts Outdated Show resolved Hide resolved
packages/schema/src/schema.graphql Outdated Show resolved Hide resolved
// Your new icon is now available for selection, it will be displayed everywhere all icons are used.
// Or you can use the limitedIconListOption function to limit the available icons in a specific context.
//
// NOTE: search this file for "*" to find the places where you need to add your new icon.
Copy link
Member

Choose a reason for hiding this comment

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

I would simplify it. I think we can use TS types here in the way that no comments will be needed.

Copy link
Member

Choose a reason for hiding this comment

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

Actually I'm not sure if this file is needed at all. Because everything it contains is used only once, and maybe can be inlined (?)

Copy link
Member Author

Choose a reason for hiding this comment

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

Well my idea here is that it should be used more that once, anywhere we give options to select icons in blocks.
I already can see in the CTA buttons we give the option for arrow icons before or after text but nothing gets displayed to the user while making these changes.

Also icon selection is quite a common request for PMs, so I was trying to make a reusable and dynamic libarary just for use on the Gutenberg side.

icons: Icons[],
addDefault: boolean = true,
defaultLabel: string = 'Select an icon',
defaultValue: string = '',
Copy link
Member

Choose a reason for hiding this comment

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

At the moment the function is used with only the first arg passed. Everything else is always default.

It looks like the function is designed with future use-cases in mind. But that future might never come 😛

packages/schema/src/schema.graphql Outdated Show resolved Hide resolved
@HagerDakroury HagerDakroury merged commit f204b51 into release Jun 7, 2024
5 checks passed
@HagerDakroury HagerDakroury deleted the feat/SLB-306--info-grid branch June 7, 2024 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants