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

AdminBundle: Add ColorFieldTransformer #5555

Merged
merged 12 commits into from
Oct 27, 2020

Conversation

FarouHub
Copy link
Contributor

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Related issues/PRs #issuenum
License MIT

What's in this PR?

Add a ColorFieldTransformer form the AdminBundle.

With this transformer we will have the ability to view/show the color choose with the "Color content type" into the admin table list.

Why?

Many users are asking to this option.

Example Usage

<!-- New type "color" -->
<property name="color" visibility="always" searchability="yes" translation="sulu_admin.color" type="color">
    <field-name>color</field-name>
    <entity-name>App\Entity\Opening</entity-name>
</property>

Copy link
Member

@alexander-schranz alexander-schranz left a comment

Choose a reason for hiding this comment

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

@FarouHub Thank you for this PR. We should also add a test for this new transformer see for example IconTransformer.test.js

Copy link
Contributor

@niklasnatter niklasnatter left a comment

Choose a reason for hiding this comment

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

Looks good to me otherwise - thanks a lot for your effort! 🙂

FarouHub and others added 4 commits October 19, 2020 11:39
…Transformers/ColorFieldTransformer.js

Co-authored-by: nnatter <niklas.natter@gmail.com>
…Transformers/ColorFieldTransformer.js

Co-authored-by: nnatter <niklas.natter@gmail.com>
…Transformers/ColorFieldTransformer.js

Co-authored-by: nnatter <niklas.natter@gmail.com>
…Transformers/colorFieldTransformer.scss

Co-authored-by: nnatter <niklas.natter@gmail.com>
@alexander-schranz alexander-schranz added the Feature New functionality not yet included in Sulu label Oct 19, 2020
Copy link
Contributor

@niklasnatter niklasnatter left a comment

Choose a reason for hiding this comment

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

I adjusted the error message a bit, hope that is okay for you. Thanks for your effort! 🙂

@niklasnatter
Copy link
Contributor

The CircleCI error is not related to this PR (see #5569)

@niklasnatter niklasnatter merged commit 6782558 into sulu:master Oct 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New functionality not yet included in Sulu
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants