thaliproject / postcardapp Goto Github PK
View Code? Open in Web Editor NEWA sample app to demonstrate how to build Thali applications
License: MIT License
A sample app to demonstrate how to build Thali applications
License: MIT License
Limit edit to only my postcards.
We could also do with adding some UX around this...
For example: view/filter "my postcards" so you can edit/delete your cards from there. Otherwise the main view would be read only.
Update postcard to save / update "to" array
I think this project would be even more impressive if folks could just download a pre-built version. In the case of iOS, it would be all the more impressive if it passed the Apple review process. ๐
Any chance of a built version coming out soon? Or at least an APK we can download?
Demo for Identity Exchange process.
Setup Polymer vulcanize & gulp script to build app as production webapp.
Right now you have to type with the keyboard but when you want to submit the postcard you have to hit a check mark in the upper right hand corner. No native app works this way because they add a key to the keyboard and so the experience is really quite jarring for people used to native apps.
What happens when I run the postcard app as a Cordova plugin on UWP? If there is no onscreen keyboard (such as desktop) then what will occur?
Working with Tobe on this
We need the existing identity exchange UX which is talking to a mock of the REST backend for identity exchange to talk to the real thing.
The postcard app has a bad habit of randomly crashing due to a JSON parsing error somewhere deep in express land. We need to understand why this is happening and fix it.
On Android, for example, it's possible for Bluetooth or WiFi or BLE to be off. We need to query the native API and if we see a problem notify the user.
Changes should be automatically synced instead.
Prevent use of reserved characters ";" in username.
Postcards from name should use identity exchange 'pet names' instead of suggested author name
#63 will add events to the replication manager to state when we have discovered someone and when we are connected to the. So now we need a way to expose that information in the UX so that people can quickly see if they have successfully found/connected to anyone.
Add readme instructions for building Postcard for Android on a Windows dev machine.
I expect to see newest postcards at the top.
Default sorting should be by date added / modified depending on preference.
Right now we put leveldown into temp directory on iOS so it gets randomly deleted. We need to instead use Mobile.getDocumentsPath
After identity exchange older postcards don't get updated with the trusted 'from' property as we only refresh the card changes. So the entire list of postcards would need refreshed after an identity exchange.
This is to add JSCS and JSHint into the Postcard App to enforce good coding styles. Also investigate CSSLint as a way to enforce good CSS styles
When toggling delete button visibility the scroll position of the list should not change.
Add iOS 9 App Transport Security plugin for localhost support to Cordova config.xml
At first launch saving a username data raised a save error. It appears the iron-form-reponse
component no longer returns the expected json reponse data. I suspect this must be bower install
grabbing minor updates of Polymer components.
It maybe best to fix bower packages to specific version by removing the ~
char in order to avoid minor updates which may introduce untested and potential breaking changes in the client.
I tried quite a few things but in the end this set of steps seemed to work for me.
http://stackoverflow.com/a/27385865
I do have VS2015 installed but it seemed like I needed to install VS2013 desktop edition as well. Then I followed the steps from the above stackoverflow post.
Which 'mockmobile.js' should be copied into thali module dir to avoid reference error?
ReferenceError: Mobile is not defined
at registerMobilePeerEvent (/Users/david/postcardapp/www/jxcore/node_modules/thali/thaliemitter.js:36:5)
at /Users/david/postcardapp/www/jxcore/node_modules/thali/thaliemitter.js:41:7
https://github.com/thaliproject/Thali_CordovaPlugin/blob/master/thali/thaliemitter.js#L36
The UI will need updated to use <iron-image>
for binding in <iron-list>
view and nice way to add / remove image attachments in the Editor
Below is the failure I got. I edited the androidmanifest.xml file and changed the min version to 16 to get around this. I am not sure what the correct way to fix this is.
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':processDebugManifest'.
Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than vers
ion 16 declared in library [org.thaliproject.p2p.btconnectorlib:btconnectorlib2:
0.0.0] C:\gitRepo\ThaliTest\thali\postcardapp-story_0\platforms\android\build\in
termediates\exploded-aar\org.thaliproject.p2p.btconnectorlib\btconnectorlib2\0.0
.0\AndroidManifest.xml
Suggestion: use tools:overrideLibrary="org.thaliproject.p2p.btconnectorl
ib" to force usage
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.
When building story_0 I'm getting a 'Build Failed' in the Console log:
/Users/david/Scripts/postcardapp/platforms/android/src/io/jxcore/node/JXcoreExtension.java:168: error: cannot find symbol
jxcore.RegisterMethod(METHODSTRING_CONNECTTOPEER, new JXcoreCallback() {
^
symbol: variable jxcore
location: class JXcoreExtension
/Users/david/Scripts/postcardapp/platforms/android/src/io/jxcore/node/JXcoreExtension.java:199: error: package jxcore does not exist
jxcore.activity.runOnUiThread(new Runnable(){
^
/Users/david/Scripts/postcardapp/platforms/android/src/io/jxcore/node/LifeCycleMonitor.java:29: error: cannot find symbol
private final Activity activity = jxcore.activity;
^
symbol: variable jxcore
location: class LifeCycleMonitor
25 errors
:compileDebugJava FAILED
FAILURE: Build failed with an exception.
Or when removing and re-adding platforms:
+++ WARNING +++ Please re-add io.jxcore.node plugin
For some reason the jx npm install
script isn't adding the jxcore plugin anymore...
Please make sure that all console.logs are removed and replaced with our Winston logging. Talk with @mpodwysocki for the details.
Please see jxcore/jxcore#597
There is a work around which is to nuke node_modules and re-install with npm instead of 'jx install' but that is not good. We need this fixed.
By default postcards should share with everyone. Otherwise we should probably filter postcards sent to you or highlight these...
On first launch the save username result is no longer returning expected 'data.user' json result and shows an error alert.
https://github.com/thaliproject/postcardapp/blob/story_0_dadougla/www/jxcore/public/elements/page-login/page-login.html#L98
Workaround is to close app and reopen as the username is saved as 'me' record.
Ideally this would be a nicer fix on the plugin side...
But until then we could URL encode the device identity on the client so it can be used with REST calls?
One option is using Base64 - https://github.com/RGBboy/urlsafe-base64/blob/master/lib/urlsafe-base64.js
Include "npm install -g python" in the dependencies section.
Working off of Story_0 Branch, trying to get the postcard app running on 2 android devices. Following instructions listed in readme from that branch. Here is the console output from the Mac and a screenshot is below taken on Android device (Samsung S6, Lollipop v5.0.2). Attempting to build and deploy from OSX Yosemite.
$ jx --version
v0.10.38
$ cordova -v
5.1.1
Notes: (possible issues and or documentation updated needed)
jx npm install --production
) - line 613 in attachment - needed to call with sudo as it required elevated permissions.sudo jx npm install --production
was used.It still produced the apk, and I was able to deploy the app to devices, but the app didn't do anything when it started as seen in the screen shots.
I also attached the chrome://inspect debugger to the cordova webview, and did not see any console errors or warning.
Instead of automatically reloading postcard data when changes are detected we should use the event detail to reflect these changes on the client. Related to issue #31
We need to take and store photos
The postcard app has bloated to 163 megs! That is just plain nuts. We need to find out who checked in something huge and get rid of the @#$@ing binaries!
Right now JX doesn't reliably download and kills our build so we need to fix it. The claim is that the newer script runs more reliably so we want to try and test that.
The latest versions of jxcore support it.
Make a start on Unit Testing with Polymer web app.
We need to bring together cordova, jX-core on cordova, PouchDB, a skeleton replication manager, a skeleton discovery library and get that together so we can use that to drive work both below and above us.
Postcards are shared with everyone by default. However if the postcard is edited by someone else the "to" fields can be reset if that person has not exchanged identities. (Then again this maybe solved by editing only your own postcards but would be good to fix)
I was able to get the old fashioned way to work "find . -name '.gz' -exec rm -rf {} ;" but I did run into "file or path name too long" errors.
Check for persistent login 'Me' id record and route to login page if none found.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.