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

Fix more info in package error flash #6079

Merged
merged 2 commits into from
Oct 12, 2018
Merged

Fix more info in package error flash #6079

merged 2 commits into from
Oct 12, 2018

Conversation

Ana06
Copy link
Member

@Ana06 Ana06 commented Oct 10, 2018

The Javascript for the more info was missing and .hidden was been dropped in Bootrstrap 4: https://getbootstrap.com/docs/4.0/migration. Also, style link in alert using Bootstrap class. :bowtie:

Fixes #6072

image

image

@Ana06 Ana06 added Bug Frontend Things related to the OBS RoR app review-app Apply this label if you want a review app started labels Oct 10, 2018
@Ana06 Ana06 requested a review from DavidKang October 10, 2018 12:45
@@ -34,3 +34,11 @@ $(function ($) {
details.attr('open', null);
Copy link
Member Author

Choose a reason for hiding this comment

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

I wonder why this file is called packages.js (in plural) and not package.js? 🤔 Any clue @openSUSE/open-build-service ? 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

@ChrisBr could answer that, but why we have package and packages? Maybe in the past it used to be all packages ?

Copy link
Member

Choose a reason for hiding this comment

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

Why do you think this matters?

Copy link
Member Author

Choose a reason for hiding this comment

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

@hennevogel

Why do you think this matters?

consistency? I just didn't know where to put it until I found out that this was for package related things.. there is also a package-view_file.js (in singular). It confuses me... 🙄

Copy link
Member

Choose a reason for hiding this comment

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

None of this is related to anything. Its one huge javascript file that get's included on every page. However you structure it internally is up to you 😄

Copy link
Member Author

Choose a reason for hiding this comment

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

I think we need some criteria for JavaScript file names, before this is a mess... 💡

@obs-bot
Copy link
Collaborator

obs-bot commented Oct 10, 2018

Review app will appear here: http://obs-reviewlab.opensuse.org/ana06-more-info

var moreInfo = $('.more_info');
moreInfo.toggleClass('d-none');
$(this).text(moreInfo.hasClass('d-none') ? 'more info' : 'less info');
});
Copy link
Member

Choose a reason for hiding this comment

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

Nitpick: two spaces after 'more info'. Should be one.

Copy link
Member Author

Choose a reason for hiding this comment

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

why jshint doesn't complain? 😒

@DavidKang DavidKang removed the Bug label Oct 10, 2018
`.hidden` was been dropped in Bootrstrap 4:
https://getbootstrap.com/docs/4.0/migration

The Javascript for the more info was missing.

Fixes #6072
@Ana06
Copy link
Member Author

Ana06 commented Oct 10, 2018

checkout_code is broken... 😠

It looks much nicer and it is built in.
Copy link
Member

@coolo coolo left a comment

Choose a reason for hiding this comment

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

tests are green meanwhile

@Ana06
Copy link
Member Author

Ana06 commented Oct 12, 2018

💃 🎉

@Ana06 Ana06 merged commit 8d9e838 into openSUSE:master Oct 12, 2018
@Ana06 Ana06 deleted the more-info branch May 17, 2019 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Frontend Things related to the OBS RoR app review-app Apply this label if you want a review app started
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants