-
Notifications
You must be signed in to change notification settings - Fork 159
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
[Planning] - spectralworkbench.js / rails integration #645
Comments
This looks great. Your first two tasks listed look like a super place to
begin!!
…On Sat, Jun 5, 2021, 5:04 AM Mohammad Warid ***@***.***> wrote:
Working upon publiclab/spectral-workbench.js#219
<publiclab/spectral-workbench.js#219> to
achieve the following:
- Porting new version of spectralworkbench.js library into spectral
workbench rails app.
- Replacing live capture code with the new code, thereby utilising the
spectralworkbench.js library at a /capture/v2 OR /capture/new URL
- Creation of login prompt for user authentication to the app.
- Expanding upon the capture integration to incorporate:
- saving of spectral data to the rails app (along with applied
calibration).
- fetching recent calibrations and displaying them in a dropdown
list to choose from.
- Horizontal scaling of x-axis on the live capture graph (in
spectralworkbench.js) after choosing a calibration spectrum.
- Warn users with unsaved changes when leaving/reloading webpages
- Improving accessibility across the app
- Addition of tests/documentation wherever applicable
More suggestions are welcomed !!
CC: @jywarren <https://github.com/jywarren> @RuthNjeri
<https://github.com/RuthNjeri> @pydevsg <https://github.com/pydevsg>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#645>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAF6JYXOE2QQODV5GUBJO3TRHSDPANCNFSM46EIYP6Q>
.
|
So I managed to pull the recent changes by pointing the library to the |
ah, are we still using bower? I thought Spectral Workbench uses Yarn now, and the command would be Also - it may be best to fix it to a specific commit, as |
Npm publish docs are here: https://docs.npmjs.com/cli/v6/commands/npm-publish/ Basically the first time or two i'd like to lead the publication process, then you can start doing it. How familiar are you with semantic versioning? You can read about it here: https://docs.npmjs.com/about-semantic-versioning - remember the discussions in publiclab/image-sequencer#1751 about how this lets us communicate and coordinate around releases? Thanks! How are things going overall? |
OK, so i've opened a PR bumping SWB.js to https://www.npmjs.com/package/spectral-workbench shows this. Once we merge it, we'll be able to publish a new version. A lot has been added but I don't believe it includes any breaking changes, so I consider it an |
Awesome, i merged it and ran |
Hi @jywarren, thanks a lot for publishing the
Great!! Currently I'm trying to integrate the new capture interface at a
Sure I can take a look at this soon after working on the above...Thanks ✨ |
Aha - ok, yes, so let's just ensure we use the right licensing string, we can reference: See how it's different here: spectral-workbench/package.json Line 6 in b764f35
Let's just change it to match! |
Hey everyone, I wanted to know if it is a good idea to place the required JS files from the library into the Also regarding the "dependencies": {
"ace-builds": "^1.4.12",
"bootstrap": "^3.4.1",
"d3": "^3.5.4",
"flot": "^0.8.0-alpha",
"font-awesome": "^4.7.0",
"getusermedia-js": "^1.0.0",
"jasmine": "^3.7.0",
"jasmine-ajax": "^4.0.0",
"jquery": "^3.3.1",
"jquery.steps": "^1.0.3",
"junction": "^0.2.0",
"leaflet": "^1.7.1",
"moment": "^2.29.1",
"nvd3": "^1.7.1",
"spectral-workbench": "^0.2.0"
} Please voice your opinions regarding the same. Thanks |
Hi, @waridrox thanks for pointing them out.
|
Hi @waridrox - great questions.
This is true, but also Rails has evolved, messily, in terms of the integration of npm, compilers (sprockets earlier, webpacker later) and the Asset Pipeline. You can see that we customized the asset pipeline here just as in plots2, and we'll have to do it again for Rails 6 when that arrives. My feeling is that we should stick with what @alaxalves did in the big #499 #530 upgrades, and just make good plans for a bigger change in Rails 6, which is in the future. Did you find that the package.json packages are no longer available? Are there some bower-era packages that still aren't represented in package.json, or are you saying some package.json packages have changed names -- and, which? Thanks! |
Also, i'd like to ask if you could open a PR with the latest version so we can see how it does in Github Actions and GitPod... i think it'll help @pydevsg myself and you all stay synced! Thank you!!! |
Hi @waridrox i was going to say perhaps responsiveness could wait until the functional changes, but it looks like you've already started! 🎉
This one could be as simple as a link to /login. However, looking at the existing v1 /capture page, see how it offers to let you use it without a login, but encourages you to log in if you want to save? We should try a modal popup with the same kind of info. |
I'm going to close this up and open a new one for any remaining! |
Working upon publiclab/spectral-workbench.js#219 to achieve the following:
/v2
route and view for the new capture integration. New capture code route and view at /v2 #660/capture
doesn't break. Capture code refactor for new interface #672/capture
/capture/v2
and/upload
#702, Fixed dependency versions in docs #718Open for suggestions!
CC: @jywarren @RuthNjeri @pydevsg
The text was updated successfully, but these errors were encountered: