contribsys / faktory

Language-agnostic persistent background job server
https://contribsys.com/faktory/
Other
5.73k stars 227 forks source link

Upgrade webui to Bootstrap 5 #360

Closed saurori closed 3 years ago

saurori commented 3 years ago

Description

This PR updates the webui from Bootstrap 3 to Bootstrap 5. The CSS and HTML was updated, but not the JS (only the Dropdown plugin is used).

Related Issue: https://github.com/contribsys/faktory/issues/359

Notes

mperham commented 3 years ago

The Scheduled page lists jobs which contain the at attribute and have not yet executed.

https://github.com/contribsys/faktory/wiki/The-Job-Payload#options

With FWR, you'd do something like this: SomeJob.perform_in(1.hour, "some args")

saurori commented 3 years ago

Ah ok. Tested that, the page looks fine.

mperham commented 3 years ago

Lots of nice work here, thanks.

I noticed you didn't touch application-rtl.css. Did you test RTL? I believe you can do so by selecting an RTL language on the /debug page if you didn't already.

I will walk through the pages later today to double check the changes.

saurori commented 3 years ago

I tested RTL a bunch, as much as I know how (native English speaker). It all looks good to me but there may be some subtleties I missed.

saurori commented 3 years ago

I did another pass over application-rtl.css and mostly removed dead CSS but also fixed a few small layout bugs / replaced items with native Bootstrap RTL classes. https://github.com/contribsys/faktory/pull/360/commits/dcca7ef63061e9d836180666f3eb9b98ad546d71

mperham commented 3 years ago

There are a few minor issues here and there. Some before and after images:

Before

before

After

after

Button color is gone. The table rows are colored differently, I don't mind that but do they need a little more contrast vs the page body color?

mperham commented 3 years ago

But overall, where things look different, they look better to my eye so I'm quite pleased!

I think the Dashboard interval slider needs to retain its ltr class. That class has been there for years and no one has complained so please restore it. I'm happy to remove it if someone with rtl experience tells me it looks wrong.

saurori commented 3 years ago
  1. Buttons: BS5 got rid of button-default, will fix that
  2. For whatever reason, BS5 switches the table row colors of :odd vs :even. Otherwise it's close to the same as before. I agree the grey color on tables could use more contrast. table-light looks a bit better, see variants or a custom color...
mperham commented 3 years ago

Thanks, I'm ready to merge this. Are you happy with it or do you need more time?

I think you've earned commit bit with this work. You are welcome to make changes, just please open a PR for anything you do change so I can review and we have a record of why things changed.

saurori commented 3 years ago

👍 I think it's ready to merge.

mperham commented 3 years ago

Oh, and any significant change should have a line in Changes.md. Can you add one for this PR?

saurori commented 3 years ago

Changelog: https://github.com/contribsys/faktory/pull/363