Coder Social home page Coder Social logo

dysbulic / habit_tracker Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 2.0 28.55 MB

Android app for tracking habits

Home Page: https://play.google.com/store/apps/details?id=org.dhappy.habits

License: Apache License 2.0

Ruby 0.07% JavaScript 79.32% Java 15.85% CSS 0.08% Shell 0.24% Objective-C 2.08% C 1.97% C++ 0.38%

habit_tracker's Introduction

δυς

I'm a long-time software developer who got into the web3 world via MetaGame around January 2021. I'm currently fasinated by Ceramic Network and have several repositories with various experiments.

At the time of this writing, my major projects are:

habit_tracker's People

Contributors

dysbulic avatar

Stargazers

 avatar

Watchers

 avatar  avatar

habit_tracker's Issues

Allow creating repeating goals

It should be possible to create desired goals (mediate every 24 hours) or abstinence goals (don't smoke for three days). Users should be able to get notifications when goals expire. Either to remind them to do it or let them know they are allowed.

Switch to composite keys

Currently, key collisions with the server are avoided using large random keys. This is not foolproof and should be replaced with a composite key on the server using a device id.

Action bar icon is disappearing

Not sure of the exact circumstances to reproduce, but the plus icon for adding new entries will sometimes disappear across all tabs.

Batch uploads

Currently data is uploaded one record at a time. This should be batched.

Unable to sync once authentication token expires

The OAuth token used for authentication expires. Once it does syncing is no longer able to communicate with the server.

A question has been posted to StackOverflow.

A workaround is to remove the account and readd it. This resets the token.

HeaderedListAdapter needs to be refactored

The headered list used on the events list page has all the views in the adapter class and better encapsulation would be to put each set of modifications in the item.

Define Ember object model

For the CouchDB port, define the object model in Ember. A collection of the SQL tables in the current code is:

TABLE_HABIT
+ COLUMN_ID + " integer primary key autoincrement,"
+ COLUMN_NAME + " text not null,"
+ COLUMN_COLOR + " text not null,"
+ COLUMN_DESCRIPTION + " text,"
+ COLUMN_CREATED_AT + " integer,"
+ COLUMN_UPDATED_AT + " integer"

TABLE_EVENT
+ COLUMN_ID + " integer primary key autoincrement,"
+ COLUMN_HABIT_ID + " integer not null,"
+ COLUMN_TIME + " integer,"
+ COLUMN_DESCRIPTION + " text,"
+ COLUMN_CREATED_AT + " integer,"
+ COLUMN_UPDATED_AT + " integer"

TABLE_DESCRIPTOR // Used for recording moods
+ COLUMN_ID + " integer primary key autoincrement,"
+ COLUMN_NAME + " text not null,"
+ COLUMN_COLOR + " text not null,"
+ COLUMN_CREATED_AT + " integer,"
+ COLUMN_UPDATED_AT + " integer"

TABLE_READING
+ COLUMN_ID + " integer primary key autoincrement, "
+ COLUMN_DESCRIPTOR_ID + " integer not null,"
+ COLUMN_TIME + " integer,"
+ COLUMN_WEIGHT + " real,"
+ COLUMN_DESCRIPTION + " text,"
+ COLUMN_CREATED_AT + " integer,"
+ COLUMN_UPDATED_AT + " integer"

TABLE_GOAL
+ COLUMN_ID + " integer primary key autoincrement, "
+ COLUMN_HABIT_ID + " integer not null,"
+ COLUMN_START + " integer,"
+ COLUMN_END + " integer,"
+ COLUMN_DESCRIPTION + " text,"
+ COLUMN_CREATED_AT + " integer,"
+ COLUMN_UPDATED_AT + " integer"

Add mood survey

Add an interface for assessing a user's mood by allowing them to weight adjectives.

Port mood input interface to Ember

The moods page should show a list of descriptors. When one is clicked a dialog shows allowing the user to input a weight -100–100. Upon saving, the recording shows up in the events list.

The simplest development path is to just duplicate the habits/events logic, renaming it descriptor/reading and adding a numeric weight to the reading model.

Port to CouchDB

I'm very interested in CouchDB's structure and replication for a webapp. I am in the process of trying to structure a couch-backed app using Ember for object modelling and persistence, and jQuery Mobile for ui.

Treat habits as cravings during a goal

When a user has an active goal and clicks a habit, pop up a dialog asking if they have exhibited the behavior yet. If so ask them if they want to wait. If not record a new event.

This seems less cluttered than adding a new tab for cravings.

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.