Add install generator for Ramp#7350
Conversation
This commit will add an install generator for Ramp and also set the A/V IIIF Viewer to use Ramp. Usage: ``` rails generate hyrax:ramp:install ```
Test Results 17 files ±0 17 suites ±0 3h 23m 5s ⏱️ - 3m 7s For more details on these failures, see this check. Results for commit 15fd7d1. ± Comparison against base commit 05f2f68. This pull request removes 459 and adds 457 tests. Note that renamed tests count towards both.♻️ This comment has been updated with latest results. |
|
In the next release of Avalon we're moving away from |
|
@cjcolvar that's great to know! I think it'd be a good idea to align with Avalon's plans |
This commit switches from using `shakapacker` to `jsbundling-rails` with aligns better with Avalon's approach.
38d30a6 to
3dd6861
Compare
|
@cjcolvar i've redone the generator to use |
There was a problem hiding this comment.
This looks good to me. Exciting to see this option being added.
While I echo @cjcolvar that it would be good for our different applications to be using the same/similar pipleines, I want to caution that react_on_rails is maintained by Shakacode and intended to be used in tandem with Shakapacker. It has been working with jsbundling-rails in Avalon with our fairly basic configuration and this configuration seems even simpler than ours. But that is a potential concern with following Avalon's footsteps. We decided the risk of react_on_rails compatibility was worth it to get onto a more standard/modern asset pipeline and we could reassess if issues arose. Just another aspect for the hyrax team to consider before moving forward with this specific implementation.
|
@kirkkwang I think it would be good for another seasoned Hyrax developer to chime in on this question about javascript setup. @dlpierce @randalldfloyd @orangewolf Do any of you have an opinion on |
|
@masaball Thanks for the insight, we can definitely reassess as well as time goes on and it's nice to have the Avalon team to model after @cjcolvar that sounds good to me, also since this is just a generator, how would we even test it out on Nurax? Someone would need to run it on the server and give it a restart I would think. But then I would imagine it goes away after the next merge/deploy. I suppose one way is that we check in the generated files to the internal apps like Universal Viewer |
|
Putting this back in draft for now From the Samvera Tech call on 25 FEB 26, it looks like we will need a bigger discussion on how to include Ramp |
|
@kirkkwang Sorry I missed the discussion at the tech call today. My conversation with Randall led me to believe that maybe it would be best to take the same approach as the UV install generator (first started in #3696 as an alternative to a ruby gem). I think this will help isolate the JS dependencies and avoid the need for |
|
@cjcolvar thanks for the update! Randall filled me in and I think that's a great idea! Tbh, I was a little iffy on this whole thing as well but wanted to see what others thought so I'm glad we're thinking the same thing. I'm looking forward to seeing what you come up with. |
|
forgot to reopen just in case it's needed, close if n/a |
|
During the community sprint I worked with @Dananji and we identified some issues with ramp that was keeping it from being used independent of a JS build chain (samvera-labs/ramp#920). When these get resolved and a new version of ramp released then it should be straight forward to make a new PR using the framework created in the Clover installer PR (#7400). |
|
Draft PR created with new ramp standalone UMD package: #7417 |
Screenshot
Video Example
Audio Example
Summary
Add an install generator for Ramp IIIF player for A/V resources.
Guidance for testing, such as acceptance criteria or new user interface behaviors:
rails g hyrax:ramp:installType of change (for release notes)
notes-minorNew Features that are backward compatibleDetailed Description
Add install generator for Ramp
8a55f2d
This commit will add an install generator for Ramp and also set the A/V
IIIF Viewer to use Ramp.
Usage:
Switch from
shakapackertojsbundling-rails3dd6861
This commit switches from using
shakapackertojsbundling-railswithaligns better with Avalon's approach.
Changes proposed in this pull request:
@samvera/hyrax-code-reviewers