-
Notifications
You must be signed in to change notification settings - Fork 2
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
Refactor: Update ontology viewer from old JS to Turbo + Stimulus #223
Refactor: Update ontology viewer from old JS to Turbo + Stimulus #223
Conversation
8afe996
to
bee5d70
Compare
Hi @syphax-bouazzouni - thanks for the pull request. I'm interested in moving forward on this one, but I realize that a fair amount of time has gone by since it was submitted. Is your AgroPortal code base still relatively in alignment with the changes you made here? |
I also wonder if you'd be willing to drop the commits from this pull request from May 25 - 28 that perform the Rails 7 upgrade? |
I'm testing this pull request in my local dev environment. I've run into a variety of issues, so I'm building a list here for what I need to fix before I can merge this into our master branch.
|
@Bilelkihal can you do the follow-up of this? |
Okay |
Mutually agreed with submitter to close - too much time went by between original submission date and initial attempt to merge |
Prerequisite
What and why
This PR simplifies and updates our current JS code, by removing 814 lines of JS code but still keeping the same behaviors and features.
It's possible using the two following tools:
After the PR
Enregistrement.de.l.ecran.2022-09-21.a.22.34.01.mov
Changes
Replace bp_ontology_viewer.js with turbo frame in the ontology viewer ( same behavior with 417 (JS) lines less)(9371bc4)
Fix visits chart not showing( (see The visits chart is not displayed in the summary page #179) f73f7fc)
Fix more... submission button that was not working (4e06e29)
Remove empty functions in app/assets/javascripts/bp_notes.js (10 lines less) (0987e08)
Fix notes unsubscribe button (d21c570)
Replace concepts tree view node click js code with turbo_frames (same behavior with 259 (JS) lines less)
(9c7d3a2)
Update and centralize Split dependency (17 JS code less) (a8e029b)
<script src="//unpkg.com/split.js/dist/split.min.js">
Centralize Simple tree dependency and replace JS code that displays the treeview with a turbo frame (41 JS code less) (675c4f3)
Extract/centralize autocomplete behavior in a stimulus controller (ecfa8ca)
jump to a concept
feature from app/assets/javascripts/bp_visualize.js.erb to a stimulus controller (87 lines of JS code)Replace the js code responsible for showing concepts tabs with bootstrap tabs ( 70 lines js code less )(6910d78)