jacob-macleod / Dolphin-Flashcard-App

http://www.dolphinflashcards.com
MIT License
1 stars 3 forks source link

Add API for Goals #46

Closed jacob-macleod closed 5 months ago

jacob-macleod commented 5 months ago

Add API to allow users to select individual goals. This could be on the same categories as the quest page. A timeframe is selected, and there is some system to tag whether a goal has been failed, possibly deleting the record after a certain time

jacob-macleod commented 5 months ago

Types of goals:

Goals, as stored in the database, should have an ID, a type, a title, a time limit, a status (failed, completed or in progress), a fail date if failed, and data which varies by type to track the goal.

Everytime XP is updated, a function should adjust goal information accordingly

jacob-macleod commented 5 months ago

XP goals should aim to learn a certain amount of XP in a certain time period. Thus, the data for the XP goal should store the start date, the starting XP, the desired XP, and the end date. Whenever the XP is checked, the current XP is compared against the desired XP. If the desired XP is reached, the goal is tagged as completed. If the time now is later than the end date, the goal is flagged as failed.

Card goals should aim to revise a certain number of cards in a certain time period. The data for card goals should store the cards revised so far, desired cards to have revised, and an end date. When the XP is checked, card goals are looked at and the cards revised are incremented and compared against the desired cards. If the desired cards are learned, the goal is tagged as success. If the time now is later than the end date, the goal is flagged as failed

jacob-macleod commented 5 months ago

This is now completed