-
Notifications
You must be signed in to change notification settings - Fork 20
Include app ID in toast messages, as well as app name #69
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
Conversation
|
Btw, how would I test this? Just made code changes, but am not sure how to test this out... I tried changing the path in my fork of BangleApps in |
|
Thanks! This looks good - it really needs testing though :) But yes, I'd have thought that changing the path in .gitmodules should do it? Or you can try and download it and run it locally as well. |
|
@gfwilliams I tried changing the path again, could you just pop in and check if I have done it right? https://github.com/RKBoss6/BangleApps/blob/AppLoaderUpdateTest/.gitmodules Maybe I forgot something... |
It looks ok to me! https://rkboss6.github.io/BangleApps/core/js/index.js isn't the right one, but then it seems like if you're serving off master, that's not got the change in? https://github.com/RKBoss6/BangleApps/blob/master/.gitmodules Otherwsie I'm not sure what to suggest I'm afraid |
@gfwilliams What do you mean? Master doesn't have the changes, instead I put it on a separate branch. Should I try moving it to master?Otherwise is it possible for you to test this out, if you have a fork as well? |
|
Well, I assume you're serving https://rkboss6.github.io/BangleApps off of your If you change GitHub settings to serve off of the separate branch you have then you can test online. And yes, I could clone your branch locally and test here, but ideally you'd do some testing yourself first. |
|
No, my fork is serving off of the |
You know as much as me I'm afraid. you could try just putting your changes on your |
|
Update as of now: Still no fix for testing this out, as far as I can tell, both fork and actual repo lock the |
We do have a depandabot thing, but usually I update it myself. Maybe you can just download it to your PC and host it locally? It'll work fine off localhost |
|
Alright, I'll try that. Out of curiosity, how do you update it manually? |
|
I |
|
Is webtools a folder, or a repo? |
|
I've tried running it locally, and it showed this error in a toast at the bottom: |
Ok, ideally enable directory listing on the server - it's default on Apache usually? So 'http://localhost/apps' should return a list of the apps on it. Or |
|
Is webtools a seperate repo, like apploadercore? I've managed to get the apps.json working, how do I update the AppLoaderCore module? |
yes, it is - but you don't need to update that one as you haven't changed it?
I I think above I gave you the wrong folder ( |
|
Alright, I have tried everything you said (and some research of my own), and for some reason, I just can't get it to work, no matter what I try. Could you try testing this out on your end to see if the code works? As far as I can tell it should, but it definitely needs to be tested. Thank you for all your help! Try it out, maybe, and see if it works... |
|
Just checked and it's broken :(
Just calls itself if the app name isn't the same as the ID? I really can't understand why you can't get this to work if you're hosting locally? If |
|
Just fixed this and merged it in |
|
Thank you so much! As for why it wasn't working, I couldn't get the submodule to update, I tried all sorts of things, and it wouldn't update no matter what. Thanks for your patience! |
There is some confusion when updating/adding/removing apps, as sometimes the app ID can be something wildly different than the name. eg: (
gallifr-->Time Traveller's Clock).I thought it would be good if you can see both the App name that you are familiar with, and the id that appears in storage...
Toasts now will show something like:
Time Traveller's Clock (gallifr) uploaded
I also consolidated that into a reusable function that returns the string above, but if the app id and the name are the same, eg: (BackLite, backlite), just return the name.