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(job): configurable title #1441

Merged
merged 2 commits into from
May 30, 2024
Merged

feat(job): configurable title #1441

merged 2 commits into from
May 30, 2024

Conversation

soofstad
Copy link
Collaborator

What does this pull request change?

Adds a optional "title" to jobPluginConfig and UI

Why is this pull request needed?

Be able to describe what the "play button" does

Issues related to this change

closes #1418

@soofstad soofstad requested a review from a team as a code owner May 29, 2024 07:33
@soofstad soofstad self-assigned this May 29, 2024
- Use eds typography, reduce hierarchy size on title
- Make parent space items, not individually
- Re-insert the plugin wrapper (created duplicate padding)
- Remove unecessary css classes
Copy link
Contributor

@awesthouse awesthouse left a comment

Choose a reason for hiding this comment

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

Nice! 💯

I added a commit with some css cleanup if that's okay. dm-plugin-wrapper class gives us the opportunity to create spacing around plugins so combining it with the plugin wrapper created duplicate padding when it wasn't in Grid (like the recurring job example) so it might not have been that noticeable. I just reintroduced It and cleaned up some unnecessary css classes. Also used the EDS Typography component. For text it's fine to use tailwind/nothing, but headings are basically unstyled after tailwind reset, so we either need to use EDS typography (which is probably what we should do) or tailwind classes 🙂

@soofstad
Copy link
Collaborator Author

Nice! 💯

I added a commit with some css cleanup if that's okay. dm-plugin-wrapper class gives us the opportunity to create spacing around plugins so combining it with the plugin wrapper created duplicate padding when it wasn't in Grid (like the recurring job example) so it might not have been that noticeable. I just reintroduced It and cleaned up some unnecessary css classes. Also used the EDS Typography component. For text it's fine to use tailwind/nothing, but headings are basically unstyled after tailwind reset, so we either need to use EDS typography (which is probably what we should do) or tailwind classes 🙂

Just a few questions 🙂

If 'dm-plugin-padding' is a "common plugin padding class", why can you not combine it with other classNames?

Also, Equinor Typograpy is fine, but what is the big benefit? Would it not be better to just let the imported equinor-fonts in index.html set the fonts? Would make it easier to change later also. The result is the same anyhow

@awesthouse
Copy link
Contributor

awesthouse commented May 30, 2024

Just a few questions 🙂

If 'dm-plugin-padding' is a "common plugin padding class", why can you not combine it with other classNames?

Also, Equinor Typograpy is fine, but what is the big benefit? Would it not be better to just let the imported equinor-fonts in index.html set the fonts? Would make it easier to change later also. The result is the same anyhow

It's meant to help us create padding AROUND the plugin. Before I put it back it was on the job-wrapper that has a border and background which meant that the job-wrapper got more padding than we wanted. I can look into using margin instead, but you can still end up with the same problem of giving margin to an element you don't want to. Most plugins have a wrapper that isn't styled like this one, so it's usually not a problem 🙂

The font will be Equinor, but it won't have any styling. Tailwind reset removes all heading sizes and margins (and for good reason 'cause they usually aren't that great) meaning that we either have to use Equinor component or tailwind typography classes. We should absolutely only use one of them and my opinion is that using EDS typography makes more sense.
Skjermbilde 2024-05-30 kl  09 45 24

@soofstad soofstad merged commit 4040605 into main May 30, 2024
8 checks passed
@soofstad soofstad deleted the feat/job-plugin-header branch May 30, 2024 10:34
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.

Job runner ui config for showing a header
2 participants