GithubHelp home page GithubHelp logo

Comments (10)

PhilGrunewald avatar PhilGrunewald commented on July 27, 2024 1

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.

PhilGrunewald avatar PhilGrunewald commented on July 27, 2024

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.

PhilGrunewald avatar PhilGrunewald commented on July 27, 2024

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.

gozzilli avatar gozzilli commented on July 27, 2024

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.

gozzilli avatar gozzilli commented on July 27, 2024

Why don't I keep my mouth shut?

from meterapp.

gozzilli avatar gozzilli commented on July 27, 2024

Ok, I'll have a look.

from meterapp.

gozzilli avatar gozzilli commented on July 27, 2024

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.

gozzilli avatar gozzilli commented on July 27, 2024

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.

gozzilli avatar gozzilli commented on July 27, 2024

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

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.

PhilGrunewald avatar PhilGrunewald commented on July 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.