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

Reporting or contributing for the Bootstrap 4 upgradation #5182

Closed
Souravirus opened this issue Mar 19, 2019 · 34 comments
Closed

Reporting or contributing for the Bootstrap 4 upgradation #5182

Souravirus opened this issue Mar 19, 2019 · 34 comments
Labels
help wanted requires help by anyone willing to contribute support

Comments

@Souravirus
Copy link
Member

Souravirus commented Mar 19, 2019

Hi everyone,

We are working on the upgrade to Bootstrap 4 of the Public Lab website(publiclab.org) in this PR. For some days from now, we will be keeping the unstable branch updated with the Bootstrap 4 commits. So, if anyone sees anything odd at https://unstable.publiclab.org/, please report to #3937.

Also, if anyone wants to correct the error or the existing errors, please push to the Souravirus:bootstrap4 branch.

https://github.com/Souravirus/plots2/tree/bootstrap4

Thank you!!

@grvsachdeva grvsachdeva added the help wanted requires help by anyone willing to contribute label Mar 20, 2019
@grvsachdeva
Copy link
Member

@publiclab/plots2-reviewers @publiclab/reviewers

@PritiShaw
Copy link
Member

Can i work on this ??

@grvsachdeva
Copy link
Member

yes @PritiShaw 👍

@jywarren
Copy link
Member

jywarren commented Apr 7, 2019

Hi!! Ok, going through a lot of small and big things here, but just want to say 🎉 this is AMAZING @Souravirus !!!

  • If we could get a little more space between the search bar and the next menu, that'd be great:

image

  • I think the "show password" button that @CleverFool77 made is getting wrapped, although it still works!

image

  • I think the "profile pic" is not floating right in this:

image

  • space needed between "or" and "log in" here:

image

More soon!!! Great work, again!

@jywarren
Copy link
Member

jywarren commented Apr 7, 2019

  • I see this in a few places where a btn group is kind of not smoothly grouped, like on the dashboard:

image

  • And after pressing the "Wiki" tab, but also the "New page" button:

image

  • The "subscribe" button doesn't seem to be working?

image

  • the tags "cog" menu is off the side of the screen:

image

  • the geocoding modal is not full-width:

image

  • Adding a new tag doesn't clear the input, and the new tag is not in a colored badge element:

image

  • Some weirdness with the boxes around the new comment box:

image

  • the "preview comment" button doesn't seem to work?

image

  • the node tool caret icon is not appearing:

image

  • clicking the "like" button doesn't seem to do anything

  • follow buttons on the /tags page don't work:

image

That's a lot for now! Thanks so much for your hard work on this project, Sourav!!!!!

@jywarren
Copy link
Member

jywarren commented Apr 7, 2019

Feel free to check/resolve mine as they get solved. Thanks again!!!

@Souravirus
Copy link
Member Author

Hi @PritiShaw if you want to contribute to these issues you can just contribute to this PR. Thank you!!

@Souravirus
Copy link
Member Author

Hi @jywarren, that show password button is getting wrapped because the form-control-feedback class is outdated in Bootstrap 4. So, should just append it to the input box?

@jywarren
Copy link
Member

jywarren commented Apr 8, 2019 via email

@sashadev-sky
Copy link
Member

This is not specific to any version of Bootstrap, but please note in PR #5372 we found and resolved a bug with Bootstrap that is yet to be fixed even in V.4. It is that checkboxes do not vertically align with their text for certain OS's. There is now a stylesheet in plots2 specifically to explain and override this bug: https://github.com/publiclab/plots2/blob/master/app/assets/stylesheets/btsp_checkbox_override.css.scss

Those classes are currently not being used anywhere else in the repo besides rich.html.erb (the editor), but please take these overrides into consideration if you do use them. Note they are also on a very high level of specificity.

@sashadev-sky
Copy link
Member

Also another thing: the styling Bootstrap applies to input[type=file] does not prevent cross-browser inconsistencies with the alignment of input[type=file] buttons and the text printed next to them. I added another css file to address that (please see PR #5424 and the issue it references)

@Souravirus
Copy link
Member Author

Hi @sashadev-sky, can we include these after the upgrade or someone can take up this task and put the classes where they are required and I can merge them? What do you think about this?

@sashadev-sky
Copy link
Member

@Souravirus they aren't a big deal so can be included at any point. One of them is already merged and i'm building on it in PR #5421 to apply to every checkbox because I realized all of the check boxes on the site are slightly unaligned for certain users

@Souravirus
Copy link
Member Author

Hi @jywarren, the New page button is appearing fine in my browser. Here is the screenshot
image

@Souravirus
Copy link
Member Author

@jywarren, just wanted to say the dropdown which is moving out of the screen can be accessed with the slider at the bottom. Also, it is done by default by Bootstrap. Talking about the map modal, it is also the default size of the Bootstrap modal. So, should we leave them as it is?

@Souravirus
Copy link
Member Author

I have made the map modal to a larger size. Here is the screenshot.
Screenshot from 2019-04-14 16-58-23

@Souravirus
Copy link
Member Author

Hi @jywarren, the subscribe button is even not working in the original public lab website in the tags page. So, there is a problem with it already in the main repository. So, we can open another issue for that. Also, with that, all the issues are solved. Please see to this.
Thank you!!

@Souravirus
Copy link
Member Author

Hi @jywarren, now every bug is solved except the one about the follow button on the tag page which was already present and was not due to bootstrap 4. I have also made the dropdown alignment correct. Here is the screenshot of it.
image

Please see to this.

@jywarren
Copy link
Member

Oh this is super. Let's do one more pass and then... go for it? @sagarpreet-chadha @gauravano @SidharthBansal @cesswairimu @stefannibrasil @milaaraujo @ViditChitkara can you try this out and highlight any serious issues?

We will surely have a few days where things get broken a lot, but we can minimize it with one last final check!!! 👀

@jywarren
Copy link
Member

@Souravirus will you be pretty available next week if we merged and published this, to help with fixes? Thank you SO MUCH for all of this.

@Souravirus
Copy link
Member Author

Yeah I will be available the next week. Thanks!!

@stefannibrasil
Copy link
Contributor

Is there a PR with the changes? I could take a look, for sure! ✌️

@stefannibrasil
Copy link
Contributor

This doc was really helpful when was doing the same on MapKnitter -> https://getbootstrap.com/docs/4.0/migration/

@jywarren
Copy link
Member

jywarren commented Apr 19, 2019 via email

@sashadev-sky
Copy link
Member

sashadev-sky commented Apr 20, 2019

This will have no changes on Bootstrap upgrades at all but I wanted to post here that I made a PR to upgrade sass-rails to sassc-rails (it really doesn't change anything at all except a few file names so it is safe to merge in my opinion!) . Please see here: #5549

@Souravirus
Copy link
Member Author

Hi @stefannibrasil, you can see the changes in the unstable branch.. Thank you !!

@stefannibrasil
Copy link
Contributor

HI all, I did a walk-through on the unstable branch and the only difference that I noted was a space missing after the Log in button in the Log in modal. Other than that, looks good to me :shipit:

@Souravirus
Copy link
Member Author

Hi @stefannibrasil, I am really sorry that the unstable branch was currently not holding the bootstrap 4 changes as there were other commits pushed to it. So, can you please see the changes again sometime later.
Thank you!!

@Souravirus
Copy link
Member Author

Ok I have pushed the changes. Please see it again after some time. Thank you!!

@stefannibrasil
Copy link
Contributor

stefannibrasil commented Apr 23, 2019

oh, okay ✌️

The front page is looking weird. Maybe someone pushed other commits again?
The carousel is not working and all of the static content (social media icons, questions button, etc.) are not showing.

Some spaces to be added:

  • between the nodes and the pagination buttons (front page);
  • after node types buttons on /search page;
  • between nodes results ( the read more button is attached to the other node's image);

General notes

  • Any misalignments seen in radio buttons or checkboxes can be fixed using the classes in btsp_checkbox_override.css.scss. Note these misalignments were there before the update and the update has not fixed them
  • The footer is different when you navigate between the pages. For example, in the Dashboard, I see a different footer than the one being shown at the front page;
  • Also in the Dashboard, when I clicked on 'Share your work', the dropdown is floating to the right, not beneath it;
  • When adding a question, in the button group, the Markdown is not at the same line as the others;
  • In the highlighted note that appears in the Dashboard, the text 'Node title by user1 from Public Lab Blog` is not aligned;
  • The 'enter tag' placeholder is not possible to read here, for example, https://unstable.publiclab.org/getting-started (maybe removing the caret solves this, since it's already visible that it's a button?)
  • The button group here is not aligned https://unstable.publiclab.org/wiki/plots-staff
  • Align the button hat the /subscriptions page;
  • I think these buttons for Questions and Research notes are too big https://unstable.publiclab.org/wiki/organizers
  • Just the 'logout from all devices' option is showing up, not sure if this is intentional;

I think that was all, good job! 🎉

@grvsachdeva
Copy link
Member

grvsachdeva commented Apr 24, 2019

  • Screenshot from 2019-04-24 17-15-54

  • Screenshot from 2019-04-24 17-48-58

  • Screenshot from 2019-04-24 18-19-43

@Souravirus can I commit directly on your PR to resolve some bugs? Thanks!

@grvsachdeva
Copy link
Member

grvsachdeva commented Apr 24, 2019

@Souravirus I have opened a PR against your bootstrap4 branch - Souravirus#1

@grvsachdeva
Copy link
Member

Moving to #5612

@grvsachdeva
Copy link
Member

Thanks everyone!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted requires help by anyone willing to contribute support
Projects
None yet
Development

No branches or pull requests

6 participants