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

PR - Ticket 49706 - Finish UI patternfly convertions #2766

Closed
389-ds-bot opened this issue Sep 13, 2020 · 9 comments
Closed

PR - Ticket 49706 - Finish UI patternfly convertions #2766

389-ds-bot opened this issue Sep 13, 2020 · 9 comments
Labels
merged Migration flag - PR pr Migration flag - PR

Comments

@389-ds-bot
Copy link

389-ds-bot commented Sep 13, 2020

Cloned from Pagure Pull-Request: https://pagure.io/389-ds-base/pull-request/49707


Description: A few modals were not converted to PF, and other minor issues
with JS and updating tables

Resolves: #2765

Reviewed by: ?

@389-ds-bot 389-ds-bot added merged Migration flag - PR pr Migration flag - PR labels Sep 13, 2020
@389-ds-bot
Copy link
Author

Comment from vashirov (@vashirov) at 2018-05-23 13:51:49

Some tables use default serif font in their headers:
Server settings -> Logging -> Access Log -> Access Logging Levels
Server settings -> Logging -> Error Log -> Error Logging Levels
Security -> Allowed Ciphers
Replication -> Replication managers
Perhaps they should also be converted to PF.

Buttons at the top (instance selection and actions) also are rendered using custom style instead of PF.

The rest looks good.

@389-ds-bot
Copy link
Author

Comment from mreynolds (@mreynolds389) at 2018-05-23 14:11:31

Some tables use default serif font in their headers:
Server settings -> Logging -> Access Log -> Access Logging Levels
Server settings -> Logging -> Error Log -> Error Logging Levels
Security -> Allowed Ciphers
Replication -> Replication managers
Perhaps they should also be converted to PF.

Well these are bootstrap tables as recommended in PF docs:

http://www.patternfly.org/pattern-library/widgets/#tables

Datatables are too busy for these IMO, but I could switch them to DT's. Perhaps I can strip off some of the datatable features...

Buttons at the top (instance selection and actions) also are rendered using custom style instead of PF.

This was intentional, I kind of want to keep them as is. It gives the banner "a little" character.
We aren't required to use 100% patternfly for everything - I think 99% is pretty good though :-) But if you feel strongly about it I will change it.

The rest looks good.

@389-ds-bot
Copy link
Author

Comment from vashirov (@vashirov) at 2018-05-23 14:30:40

Here's how tables are rendered from the link you gave: https://vashirov.fedorapeople.org/share/pf_table.png
And here's how it looks in 389-console: https://vashirov.fedorapeople.org/share/ds_table.png

And buttons for me look like this: https://vashirov.fedorapeople.org/share/buttons.png
It's the first thing I notice, that the buttons look different from any other button in Cockpit. Perhaps we can give them more character but in a different way? I'm ok to merge this as it is right now, and we can revisit this in the future (we need a new issue tag - 'bikeshedding' :P ).

And I've just noticed, that we're still trying to load the fonts that we removed (woff2 and ttf files), they are mentioned in patternfly.css that is shipped with 389-console.

@389-ds-bot
Copy link
Author

Comment from mreynolds (@mreynolds389) at 2018-05-23 14:59:19

Here's how tables are rendered from the link you gave: https://vashirov.fedorapeople.org/share/pf_table.png
And here's how it looks in 389-console: https://vashirov.fedorapeople.org/share/ds_table.png
And buttons for me look like this: https://vashirov.fedorapeople.org/share/buttons.png

Weird! For me the tables look the same, but your png files are definitely different. What browser are you using? I was using chrome. I also did not add any styling/fonts to the tables btw.

It's the first thing I notice, that the buttons look different from any other button in Cockpit. Perhaps we can give them more character but in a different way? I'm ok to merge this as it is right now, and we can revisit this in the future (we need a new issue tag - 'bikeshedding' :P ).

haha! Perhaps we should

And I've just noticed, that we're still trying to load the fonts that we removed (woff2 and ttf files), they are mentioned in patternfly.css that is shipped with 389-console.

Maybe I'll add those font files back. I'd prefer to not edit the PF css

@389-ds-bot
Copy link
Author

Comment from vashirov (@vashirov) at 2018-05-23 15:43:40

Weird! For me the tables look the same, but your png files are definitely different. What browser are you using? I was using chrome. I also did not add any styling/fonts to the tables btw.

These were taken in Chrome, but in Firefox I see similar issues. Looks like table header font falls back to sans-serif font if Open Sans, Helvetica or Arial are not found. I've added fonts back and it fixed the problem.

@389-ds-bot
Copy link
Author

Comment from mreynolds (@mreynolds389) at 2018-05-23 20:46:32

rebased onto 164a959

@389-ds-bot
Copy link
Author

Comment from mreynolds (@mreynolds389) at 2018-05-23 20:48:04

I changed the buttons/dropdowns in the banner, and added the font files back that the browser was complaining about

@389-ds-bot
Copy link
Author

Comment from mreynolds (@mreynolds389) at 2018-05-23 20:48:37

Pull-Request has been merged by mreynolds389

@389-ds-bot
Copy link
Author

Patch
49707.patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged Migration flag - PR pr Migration flag - PR
Projects
None yet
Development

No branches or pull requests

1 participant