-
Notifications
You must be signed in to change notification settings - Fork 34
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
💄 Minor cleanup of rewrite #923
Comments
The map tiles are not loading because of
|
I am tempted to push this to staging so that we can come up with the full list of issues and fix all of them before going on to the more complicated parts of the rewrite |
I am ok with pushing it to staging now so we can track more issues sooner. By now, #990 is fairly old and I'm already pretty far ahead of it. I think many of the issues we will see, I have already fixed in the process of rewriting -- but it would be good to get a complete list. I expect to have the bulk of the label screen conversion wrapped up tomorrow or this weekend, and maybe that can be in our next staging release. |
The above issues will be addressed, if not already addressed, in e-mission/e-mission-phone#993 for the next staging release TODO:Map tiles not loading - This only affects builds and not the devapp. The fix might be as simple as updating Sections / percents indicator - Actually, I still need to implement this indicator altogether on e-mission/e-mission-phone#993. I was waiting for e-mission/e-mission-server#917, which is now merged, so I should now be able to test against the complete implementation. Try to reproduce later:Demographics survey formatting - I was unable to reproduce this on the branch of e-mission/e-mission-phone#993. I likely fixed it inadvertently, but we should double check on real devices on the next staging version Resolved:Missing 'welcome' translation - just fixed in e-mission/e-mission-phone#993 QRCode formatting - previously fixed in e-mission/e-mission-phone#993 Datepicker formatting - fixed inadvertently in e-mission/e-mission-phone#993 when I migrated it to React. |
In #974 #980 and #990 @JGreenlee removed bower and added several dependencies to npm this commit copies those dependencies to the cordovabuild as well Testing done: - Ran npm install Added the following manual fix ``` diff --git a/www/index.js b/www/index.js index c2b2bb97..c7b6ae49 100644 --- a/www/index.js +++ b/www/index.js @@ -53,8 +53,10 @@ import './js/metrics.js'; import './js/control/general-settings.js'; import './js/control/emailService.js'; import './js/control/uploadService.js'; -import './js/control/collect-settings.js'; -import './js/control/sync-settings.js'; +import '../platforms/android/platform_www/js/control/collect-settings.js'; +import '../platforms/ios/platform_www/js/control/collect-settings.js'; +import '../platforms/android/platform_www/js/control/sync-settings.js'; +import '../platforms/ios/platform_www/js/control/sync-settings.js'; import './js/metrics-factory.js'; import './js/metrics-mappings.js'; import './js/plugin/logger.js'; ``` - `npx webpack` - `npx cordova build` Launches on both iOS and android with some minor issues e-mission/e-mission-docs#923
Fixed map tiles and added modes / percentages indicator. (In e-mission/e-mission-phone#993) All the above issues have been addressed. |
I'm going to push this out now and submit my changes to the build when I return |
I can look at this myself, but do you want to try @Abby-Wheelis? It may be good to learn how to debug a physical device |
I can verify this happens on my phone. It also happens in the emulator with the NREL OpenPATH app. @JGreenlee @Abby-Wheelis if you can get this fixed by EOD today, I can push out another release with this fix and with the changes in e-mission/e-mission-phone#998 |
Error:
|
So this may actually be related to the native build when the plugin-specific js files are not copied over. I hacked
But I bet that the change to optimize the webpack with hardcoded directories (e-mission/e-mission-phone@11fc98c) broke it. |
@shankari I bet |
Yeah they are using the implicit annotations. That would cause it. |
Confirmed that it is not just the file paths. I ran |
@shankari After copying, did you build webpack again or just cordova? |
webpack too
|
@shankari And when you did that, you removed the hack from index.js right? |
I am fairly certain that this error results from But if they were copied over, as long as they were in the |
Whew! So, sounds like for the build configuration, we just need |
I can add it, I already have a change for the android release build pending... |
TODOHere's what I've noticed:
|
Comments from @mRaffill
|
Yeah... that's another reason we will need to use https://caniuse.com/?search=input%20date As much as I love how the native iOS datepicker looks, it doesn't offer any way to constrain inputs. If I put |
Closing this since e-mission/e-mission-phone#1000 is merged |
While deploying the code in
e-mission/e-mission-phone#974
e-mission/e-mission-phone#980
e-mission/e-mission-phone#990
There are several minor fit and finish issues. If feasible, we should fix them, test and maybe even push to production before moving on
The text was updated successfully, but these errors were encountered: