Coder Social home page Coder Social logo

owly's People

Contributors

rafoolin avatar

Watchers

 avatar

owly's Issues

add categories view

In categories, show/filter showing tasks of that category and group them in dates.

Categories database structure

A category contains X number of tasks. Category is like a type/tag, it shows of what type a task is.

Like work indicates the tasks that are related to work.

In UI we can show/filter tasks of a the day by category, something like this:

category

So we save some information about the category in database.

name type
id uuid
user_id uuid
create_at datetime
updated_at datetime
name string
color bigint

Tasks and sub tasks database structure

A Task can have several tasks or nothing(standalone one)
If a parent task is marked as done, all the children will be marked as done as well.

For example:
Task project has 3 other sub-tasks: write documentation, write code, write test.

🟩 Project
    🟩 write documentation.
    🟩 write code.
    🟩 write test.

We can have it like:
🟩 Project
    🟩 write documentation.
    ✅ write code.
    🟩 write test.

or
🟩 Project
    🟩 write documentation.
    ✅ write code.
    ✅ write test.

And
✅ Project
    ✅ write documentation.
    ✅ write code.
    ✅ write test.

Task in database:

type name
id uuid
user_id uuid
category_id uuid
parent_id uuid
title text
date_time timestamp
done_at timestamp
created_at timestamp
updated_at timestamp
completed boolean
note text

cover Ads

Config ad in the app. A NONE ANNOYING ONE!

ads

Keep last sub_tasks `completed` value

When we mark a task as done, all the sub-tasks(from sub_tasks table) will get a true value for their completed column.

Although it would be cool that this value be saved and then if user deselect the parent task(from tasks table), we reassign their old values again.

Fill credential

Store latest used email and password locally, and fill the corresponding input fields with that value to make it easier for users to log in when they're is logged out.

sort sub-tasks

In order to avoid changes in sub-tasks order while adding them, it's better to sort them based on something other than name.

Also cover updating and using the full potential of the sub-task's features.

main view

The view that shows the today's tasks!

tasks and sub_tasks are as follow:

sub_tasks

type name
id uuid
user_id uuid
task_id uuid
title text
created_at timestamp
updated_at timestamp
completed boolean
completed_at timestamp
due_to time
note text
index_value int

tasks

type name
id uuid
category_id uuid
user_id uuid
title text
created_at timestamp
due_datetime timestamp
updated_at timestamp
completed boolean
due_to timestamp
completed_at timestamp
note text
index_value int
category_color bigint

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.