Skip to content
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

Habit tracking #185

Merged
merged 41 commits into from
Oct 28, 2023
Merged

Habit tracking #185

merged 41 commits into from
Oct 28, 2023

Conversation

lefnire
Copy link
Collaborator

@lefnire lefnire commented Oct 28, 2023

Adds habit-tracking.

  • 5 columns: rewards, habits, dailies, todos, data. The data column is for analysis-centric behaviors (mood, hours slept, etc) which you don't want scored.
  • The columns are just for organization. The real logic is in the attributes in the create/edit form. When you add to a column, it just pre-sets a bunch of these attributes. Eg, habit sets type=number, score_enabled=true, analyze_enabled=true. Daily sets type=check, score_enabled=true, analyze_enabled=true, reset_period='daily', reset_quota=1, reset_every=1, and so on. You can mix-and-match these attributes as needed. An example is multi-daily (doing something x per day): add a daily preset, then set type=number (rather than check); and reset_quota=10 (or however many)
  • You gain points you can cash out for rewards. Gamification! But without the swords and shields (for now).

In this move, we're moving away from Habitica sync. The API is too unstable and is causing lots of problems for us. Even if that weren't so, some aspects of syncing would make it difficult to manage the various combinations of Gnothi attributes against what Habitica provides, for scoring purposes. What I've done is converted all existing Habitica tasks to Data Behaviors (analyze=true,scoring=false) and you'll need to assign them to the right column, which will get rid of the warning message.

I'm going to take habit-tracking very seriously going forward; I'm moving away from Habitica entirely and will be using Gnothi for my own habit-tracking, so expect fixes and improvements most days. Please forgive the UI, I'm terrible at UI and will be getting some help here soon.

…tion(), need to figure out why the hyperparamters, then refactor into shared function again
… back here if need wording / functionality back
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant