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

Added workflow details tab #338

Merged
merged 13 commits into from
Jun 13, 2024
Merged

Added workflow details tab #338

merged 13 commits into from
Jun 13, 2024

Conversation

Corepex
Copy link
Contributor

@Corepex Corepex commented Jun 6, 2024

Changes in this pull request

Resolves #157
Blocked by #237

@Corepex Corepex self-assigned this Jun 6, 2024
@Corepex Corepex marked this pull request as ready for review June 7, 2024 07:28
@Corepex Corepex requested a review from vin0401 June 7, 2024 08:41
@markus-moser
Copy link
Contributor

Other then that it LGTM 👍

@Corepex
Copy link
Contributor Author

Corepex commented Jun 12, 2024

  • @idaiv Could you please explain how this should be done in the new UI? Do we only have the color of the circle next to the label?

We get the circle color from the API. On my side it looks like the following:
image

The API also returns me a backgroundColor fontColor and a borderColor - should we really style the badge according to that? In the current design we only style the circle - that's why I implemented it that way

@idaiv
Copy link

idaiv commented Jun 12, 2024

Hi all @markus-moser and @Corepex!
On the design topic: some refinements are needed and we have discussed them with Chris - adding a border around the dot inside, bg color should be white.

About the API styling: Chris explained about these extra styling details being taken, however on the new design from one workflow badge to another the only difference is the dot color (and its border with 20% opacity of the same color). No font, bg or border color change. I would need to confirm that with Fasch and we will update you once again.

@fashxp
Copy link
Member

fashxp commented Jun 12, 2024

image

this is what we can configure: color and show color inverted which was sometimes necessary to keep it readable and for more flexibility.

@markus-moser I think keeping the inverted option makes sense, right? or should we deprecate it?
@idaiv do we have some design possibilities to cover these two options?

@markus-moser
Copy link
Contributor

markus-moser commented Jun 12, 2024

@fashxp If we design it like now i would deprecate the "inverted" option. We used it in the past to achieve something like this:

image

So using the color as border color/font color instead of as background color. If we now only have the circle (and the 20% opacity border) it would be fine to just keep the "color" option. In that case the API should deliver only the color instead of the backgroundColor, fontColor and borderColor options.

@idaiv
Copy link

idaiv commented Jun 12, 2024

yep, I would say so too. One of the main points for the new UI is to reduce the visual overload and designing labels close to buttons looking design is not what we aim for.

In case we have to consider a bit more visibility and alternation of the labels - I would say we can work with the bg color. Fx Ant provides a couple of more variations where the change is in the bg color + font color but not as contrast and drastic as on the current UI. Here are examples (dont mind the missing dot, this is a default component):
image

I believe it might be helpful in some cases when there are a couple of labels pinned to the toolbar - to use one or the other option for quicker scanning. What do you think?

@markus-moser
Copy link
Contributor

@idaiv We would need to find a way which either could be done with the "color" workflow place config option or with a combination of "color" and "inverted". We should not invent new options as this would get quite complex.

I like the visual background color, but there we would need to have a way of handling it with just a single color (so maybe with a x% opacity background for the given color or something similar). And also would this then be our new default option or should the "inverted" flag be interpreted as a switch between the current design in Figma and the new background color mode?

Copy link

@idaiv
Copy link

idaiv commented Jun 13, 2024

Hi @markus-moser!
Yes, there can be an approach that is consistent and do not involve more complexity.

Original - dot color: X; border dot: X 30%
Inverted - dot color: X; border dot: X 30%; bg color: X 20%

Some examples with that rule applied:
image
(the whole frame is the toolbar bg for reference how it would look on top of it where they will be positioned).
And of course its up to the configurators to choose color shades that actually would be visible as we do not have predefined ones.
What do you think?

@markus-moser
Copy link
Contributor

@idaiv I really like this approach - good job, very cool! 👍

@Corepex
Copy link
Contributor Author

Corepex commented Jun 13, 2024

as discussed with @markus-moser we will create a separate issue for the styling topic

@Corepex Corepex merged commit c015992 into 1.x Jun 13, 2024
11 checks passed
@Corepex Corepex deleted the 157-workflow-details branch June 13, 2024 09:57
@github-actions github-actions bot locked and limited conversation to collaborators Jun 13, 2024
@idaiv
Copy link

idaiv commented Jun 13, 2024

@markus-moser oks, nicey!
The component "Workflow State" is already updated on Figma, FYI @Corepex :)
https://www.figma.com/design/kTxowT29eCHwNh5NspDGGu/Pimcore-Components?node-id=3675-255076&t=G2WAXV1K60buTXsv-4

@markus-moser
Copy link
Contributor

Will create a new issue soon - this also needs some small changes in the backend API.

@markus-moser
Copy link
Contributor

Follow-up regarding styling options see #345

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Workflow Details
4 participants