-
Notifications
You must be signed in to change notification settings - Fork 437
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
Minimal bento elements for Staging #8269
Conversation
Review app will appear here: http://obs-reviewlab.opensuse.org/saraycp-minimal_bento_for_staging |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One general question: Why do you move application.css.erb
to application.css.erb
if there is no erb in it?
In the last commit you also remove the sponsor images again. |
1db715f
to
861ace0
Compare
Good catch, updated!
We had sponsor images in two different places: inside |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You miss a change in You changed the extension of the config/initializer/assets.rb
.application.css.erb
to application.scss
, so the assets will not be precompiled. If I'm not wrong the correct extension should be .css.scss
861ace0
to
044461d
Compare
You are right, thanks. Updated! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I'm not wrong the correct extension should be .css.scss
You are wrong, manifest files don't have other preprocessor extensions.
ok, sorry @saraycp |
044461d
to
a7cb337
Compare
Ok, @hennevogel, moved |
3587725
to
2daeb9d
Compare
Sorry now you removed the wrong extension. This should be |
Layout view, partials and CSS are now inside webui/obs_factory. The layout is now called webui/obs_factory/application.html.erb. The original files will be removed in following commits. Co-authored-by: David Kang <dkang@suse.com>
In the copy we remove code that for sure is not going to be used in obs_factory. The original files are not removed yet.
It generates the sprite image based on the icons.
Move assets/icons/ to /assets/images/icons. Remove most of the icons except the sponsors ones and those used in obs_factory. Use the task lib/tasks/sprites.rake to re-generate icons_sprite.png and its corresponding CSS file (icons.scss).
2daeb9d
to
c8ce5eb
Compare
oh sorry @hennevogel 😅 Updated! |
Since we have migrated almost all our views to Bootstrap and they are well tested, we started to remove most of the bento related elements.
However, the Staging dashboard is not migrated to Bootstrap and we decided to preserve a minimal amount of bento elements to keep the dashboard working. They are moved to
obs_factory
namespace in views (including the layout), assets, controllers, etc.Most of the old CSS, Javascript and images/icon files has been removed, for that reason,
icons._sprite.png
was updated and now it only contains the remaining icons and the sponsor ones. To do so, I had to modify the task (sprite.rake) used to generate this image based on the icon files. It looked like this before:and now it looks like:
To test this PR, please, follow this instructions to create content locally or try out on the review-app. The views to test are: