Skosmos icon indicating copy to clipboard operation
Skosmos copied to clipboard

Fix plugins that were broken in the Bootstrap upgrade

Open miguelvaara opened this issue 3 years ago • 6 comments

At which URL did you encounter the problem?

https://dev.finto.fi/finaf/fi/page/000000515 https://dev.finto.fi/yso/fi/page/p18776 .. and likely in many other URLs related to the vocabularies maintained with Skosmos using the latest master branch and including the Bootstrap 5 updates.

Which steps will reproduce the problem?

  1. In your own local Skosmos installation, configure and take into use at least the following plugins:
  • Finna
  • Map
  • Message
  • Finaf
  • Wikipedia (it may be needed to go through other plugins as well)
  1. Make sure that you have pulled the latest master branch.
  2. Run: php composer.phar self-update
  3. Run: php composer.phar update
  4. Create a new branch for the testing.
  5. Visually inspect the appearance and functionalities of the plugins to find possible issues.
  6. Check the next PR including the Bootstrap upgrades: https://github.com/NatLibFi/Skosmos/pull/1182

Help for the steps 3-4: https://github.com/NatLibFi/Skosmos/wiki/Upgrading

What is the expected output? What do you see instead?

Correctly working plugins / Broken layouts

What browser did you use? (eg. Firefox, Chrome, Safari, Internet explorer)

Firefox

miguelvaara avatar Apr 26 '22 10:04 miguelvaara

Whoever works on this, feel free to ping me if you need any help :+1:

kinow avatar Apr 26 '22 11:04 kinow

This is what we have now (co-operation with @Vainonen & @miguelvaara): https://github.com/NatLibFi/skosmos-widget-finaf/compare/bootstrap-update

It is not much but a beginning. After working together @miguelvaara tried to setup Finaf (Kanto) vocabulary in his own development environment. Maybe the most mysterious 🤔 part is that everything seems to be fine on the code side and in the DOM but the Finaf widget remains hidden.

Maybe @Vainonen provides some tips later on .. 🙂

miguelvaara avatar Apr 26 '22 16:04 miguelvaara

Next in line: Finna widget https://github.com/NatLibFi/Skosmos-widget-finna/issues/11

miguelvaara avatar Apr 27 '22 08:04 miguelvaara

This is what we have now (co-operation with @Vainonen & @miguelvaara): https://github.com/NatLibFi/skosmos-widget-finaf/compare/bootstrap-update

Applied that diff locally, after copying the finaf vocab settings, and accessing finto.fi to compare with my local installation.

Here's the current broken plugin page:

image

Here's after applying the diff.

image

Here's Finto:

image

It is not much but a beginning. After working together @miguelvaara tried to setup Finaf (Kanto) vocabulary in his own development environment. Maybe the most mysterious thinking part is that everything seems to be fine on the code side and in the DOM but the Finaf widget remains hidden.

In case it helps, here's what I did @miguelvaara :

  1. Cloned the plugin to skosmos-clone/plugins/finaf
  2. After installing Finaf as in Finto, I made sure I had skosmos:usePlugin "finaf" ;
  3. Opened a URL from Finto, e.g. https://finto.fi/finaf/en/page/000001172?clang=fi, locally to compare the results http://localhost:9090/finaf/en/page/000001172?clang=fi (with Docker Compose)

I think the diff is fixing most of the Bootstrap mayhem, except for the icons. @osma, I think we had a similar issue in the Bootstrap issue, where I used a SVG since Bootstrap removed its icons.

If needed, we can open a new issue to add back the icons via an alternative dependency (Bootstrap website should list a few alternatives). This way the finaf plug-in can also be updated to show the icons correctly.

Other than that, looks good to me! Great job @Vainonen & @miguelvaara :bow:

kinow avatar Apr 27 '22 11:04 kinow

I added pull requests to Skosmos-widget-map and Skosmos-wdget-wiki with their respective fixes for Bootstrap 5

joelit avatar May 05 '22 11:05 joelit

@osma, @MikkoAleksanteri, the Finna-widget needs a review and comments:

PR: https://github.com/NatLibFi/Skosmos-widget-finna/pull/12

Example: https://dev.finto.fi/yso/fi/page/p24974

miguelvaara avatar May 05 '22 14:05 miguelvaara

I think we are done (for now) with this? Anyway, the issues should be handled in the repos of individual widgets rather than this Skosmos repo, which is really about the Skosmos codebase and not the widgets.

osma avatar Aug 31 '22 08:08 osma