Comments (10)
Be my guest - the 'remove' function isn't working yet (I don't think) and I am not sure if I can hard code the 'item' as a reference into the html tag...
from meterapp.
Information to display on HOME screen:
Ongoing activities
remove me
activity - location symbol - time
Past activities
reactivate me
- activity - location symbol - end time
Functionality:
<remove me>
OnClick: move to "Past activities"
<reactivate me>
OnClick: add to "Ongoing activities" with current time
<activity> <location symbol> <time>
OnClick: edit location and time
from meterapp.
once a long list of activities had piled up (>240 entries), the app 'froze' on 'enjoyment' - failed to build the 'home' screen.
I trust this will go away if the activity list is kept to a reasonable length.
from meterapp.
Given that this generates problems, it should be high priority.
@PhilGrunewald you are assigned to it so I'll leave it to you. Let me know if you want me to chip in (it's probably a big-ish piece of code.
from meterapp.
Why don't I keep my mouth shut?
from meterapp.
Ok, I'll have a look.
from meterapp.
COMPLETE/REMOVE activity is now implemented.
We're not currently (afaik) keeping a list of past activities, as per your diagram above. Should we?
from meterapp.
Also I should add that to implement this I've used a UUID for storing the key of a newly created activity. This changes the structure of activity_list
from array to dictionary (well, just object in JS). I haven't checked thoroughly if this breaks anything (I'm thinking of the logging mainly).
from meterapp.
I've added time to the activity list. This is a fairly major restructuing of both the layout of the activity list and the storage of the activity list in the localStorage
object.
The activity list is now a dictionary with key UUID
(this was such already), but with value an object containing (so far) name
and time
. This can be extended and it's much more robust. It's also a necessary change to save the time of an activity.
Here is the structure:
activityList[uuid] = {
"name" : app.get(CURR_ACTIVITY),
"time" : Date.now()
}
And here is what it looks like:
Since this could be fairly disruptive, I've put it in a separate branch done-time
. @PhilGrunewald please merge this (or let me know and I'll merge it) before doing much more development.
Also, please let me know if it disrupted any other function that you have implemented.
from meterapp.
You are a star.
Thank you so much.
If you don't mind, I'll play with it over easter...
Phil
-------- Original message --------
From: Davide [email protected]
Date: 24/03/2016 16:04 (GMT+00:00)
To: PhilGrunewald/MeterApp [email protected]
Cc: Philipp Grunewald [email protected]
Subject: Re: [MeterApp] Remove / edit activities from HOME screen (#5)
I've added time to the activity list. This is a fairly major restructuing of both the layout of the activity list and the storage of the activity list in the localStorage object.
The activity list is now a dictionary with key UUID (this was such already), but with value an object containing (so far) name and time. This can be extended and it's much more robust. It's also a necessary change to save the time of an activity.
Here is the structure:
activityList[uuid] = {
"name" : app.get(CURR_ACTIVITY),
"time" : Date.now()
}
And here is what it looks like:
[meter2]https://cloud.githubusercontent.com/assets/1502267/14022920/e37d5c80-f1d9-11e5-80fe-437a1d28fd1a.png
Since this could be fairly disruptive, I've put it in a separate branch done-time. @PhilGrunewaldhttps://github.com/PhilGrunewald please merge this (or let me know and I'll merge it) before doing much more development.
Also, please let me know if it disrupted any other function that you have implemented.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHubhttps://github.com//issues/5#issuecomment-200903135
from meterapp.
Related Issues (20)
- indicate if subcategories follow with ">"
- time format "yyyy-MM-dd hh:mm:ss" HOT 1
- Allow images for buttons
- read MetaID HOT 1
- First round through survey doesn't log time
- Second time round, category colour doesn't show HOT 3
- navigateTo home > assumes activity (even when from Survey) HOT 1
- Cordova screwed up after pulling code from @gozzilli HOT 1
- Create list of past activities (a.k.a. quick repeat activity) HOT 1
- Rainforest Automation Connection HOT 3
- "Read our data policy" has no route back to the app HOT 1
- Post code linking HOT 1
- ActPixel menu button - no need to authorise
- Authorisation button > authorisation pending
- Update menu when returning from #GotDate
- Hide app.header when showing profile
- *h to disable Menu:Activity and Menu:Profile and Menu:Date (onclick)
- Handle profile with no data
- Android 9+ ClearText network error HOT 5
- Present content in iFrames
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meterapp.