TradeNote icon indicating copy to clipboard operation
TradeNote copied to clipboard

feat(goals): add goal definitions, records, and overview with completion sync

Open darijo-milicevic opened this issue 3 months ago • 5 comments

🧩 Summary

Added complete goal-tracking system with:

  • Goal Definitions (CRUD)

  • Goal Records (daily, weekly, monthly)

  • Dashboard Overview showing completion averages

  • Integrated completion rate sync between records and definitions

  • Fixed filtering logic for periods

  • Improved dashboard UI and data aggregation

🧠 Technical Details

Introduced new utility modules:

  • src/utils/goals.js

  • src/utils/goalRecords.js

  • src/utils/date.js

  • Created new views:

  • AddGoalDefinition.vue

  • GoalDefinitions.vue

  • GoalRecords.vue

  • GoalsOverview.vue

  • Updated global store (globals.js) to track goal state

  • Extended router and navigation components

  • Updated dashboard to show success rates per period

🧪 Testing

  • Verified CRUD operations for goal definitions

  • Confirmed daily/weekly/monthly goal records creation

  • Ensured completion percentage syncs back to definitions

  • Confirmed dashboard correctly reflects updates in success rate

✅ Next Steps

  • [ ] Code review
  • [ ] Merge after approval
  • [ ] Deploy and validate Parse sync in production

darijo-milicevic avatar Oct 22 '25 12:10 darijo-milicevic

Is there a way that you make the text box, an editor rich text editing ? Like the Diary ? How difficult to do this ?

Looks good by the way @darijo-milicevic

gitricko avatar Oct 25 '25 04:10 gitricko

I just did some basic test…

I created 2 daily goals defination and in the goal setting page… I only see the first one Same for weekly too!

Bug investigation part2


I think I know what is wrong…. If create the period goals before viewing it, then the number show up. If I create 1 goal for that period, view it.. go back and create another… it does not show it.

Also, I think it is better like diary, that you put a date field so that user can select it. I believe u group by per day, week and month.

gitricko avatar Oct 25 '25 04:10 gitricko

Lastly… I think the goals icon and the work should have 1 space like the rest

gitricko avatar Oct 25 '25 04:10 gitricko

I just did some basic test…

I created 2 daily goals defination and in the goal setting page… I only see the first one Same for weekly too!

Bug investigation part2

I think I know what is wrong…. If create the period goals before viewing it, then the number show up. If I create 1 goal for that period, view it.. go back and create another… it does not show it.

Also, I think it is better like diary, that you put a date field so that user can select it. I believe u group by per day, week and month.

Yeah, I think so too. I'll extend a filter by date so you can update records historically and present.

darijo-milicevic avatar Oct 27 '25 13:10 darijo-milicevic

Is there a way that you make the text box, an editor rich text editing ? Like the Diary ? How difficult to do this ?

Looks good by the way @darijo-milicevic

I'll reuse existing tradenote logic for this.

darijo-milicevic avatar Oct 27 '25 13:10 darijo-milicevic