Skip to content

Add daily note widge with autosave, loading state, and yesterday note toggle.#1254

Open
nikita-9112 wants to merge 3 commits into
Priyanshu-byte-coder:mainfrom
nikita-9112:TodayPlancomponentcreation
Open

Add daily note widge with autosave, loading state, and yesterday note toggle.#1254
nikita-9112 wants to merge 3 commits into
Priyanshu-byte-coder:mainfrom
nikita-9112:TodayPlancomponentcreation

Conversation

@nikita-9112
Copy link
Copy Markdown

@nikita-9112 nikita-9112 commented May 27, 2026

Summary

This PR added a daily note widget to the dashboard so users can quickly plan what they want to code today.

Closes #1070

Type of Change

  • Added the Daily Note widge UI to the dashboard.
  • Added GET/POST API handling for daily notes.
  • Stored notes in the database by (user_id, date).
  • Implemented autosave with debounce.
  • Added character limit support
  • Added loading state while fetching note data.
  • Added support for showing yesterday's note on click.

Why is change

This feature helps users build a simple daily planing habit directly inside the dashboard without switching to another notes app.

How to Test

Steps for the reviewer to verify this works:

  1. Verified today's note is fetched and desplayed correctly.
  2. verified note autosave after 500ms or blur
  3. Verified note persists after page refresh
  4. Verified same-day note updates instead of creating duplicate rows.
  5. Verified yesterday's note is fetched.

Screenshots (if UI change)

image

@vercel
Copy link
Copy Markdown

vercel Bot commented May 27, 2026

@nikita-9112 is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added gssoc26 GSSoC 2026 contribution type:feature GSSoC type bonus: new feature labels May 27, 2026
@github-actions
Copy link
Copy Markdown

GSSoC Label Checklist 🏷️

@Priyanshu-byte-coder — please apply the appropriate labels before merging:

Difficulty (pick one):

  • level:beginner — 20 pts
  • level:intermediate — 35 pts
  • level:advanced — 55 pts
  • level:critical — 80 pts

Quality (optional):

  • quality:clean — ×1.2 multiplier
  • quality:exceptional — ×1.5 multiplier

Validation (required to score):

  • gssoc:approved — counts for points
  • gssoc:invalid / gssoc:spam / gssoc:ai-slop — does not score

Type labels (type:*) are auto-detected from files and title. Review and adjust if needed.
Points formula: (difficulty × quality_multiplier) + type_bonus

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your first PR on DevTrack! 🎉

A maintainer will review it within 48 hours. While you wait:

  • Make sure CI is passing (type-check + lint)
  • Double-check the PR description is filled out and the issue is linked
  • Feel free to ask questions in Discussions if you need help

If you find DevTrack useful, a ⭐ star on the repo is always appreciated — it helps the project grow and attract more contributors!

Copy link
Copy Markdown
Owner

@Priyanshu-byte-coder Priyanshu-byte-coder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR has merge conflicts with current main in src/app/dashboard/page.tsx and src/app/page.tsx. Please rebase onto current main and resolve the conflicts.

@Priyanshu-byte-coder Priyanshu-byte-coder added gssoc:approved GSSoC: PR approved for scoring level:intermediate GSSoC: Intermediate difficulty (35 pts) labels May 28, 2026
@Priyanshu-byte-coder
Copy link
Copy Markdown
Owner

Your PR has conflicts with the current main branch. Please rebase on main to resolve conflicts and this can be reviewed for merging. Labels have been added ✅

@nikita-9112
Copy link
Copy Markdown
Author

Your PR has conflicts with the current main branch. Please rebase on main to resolve conflicts and this can be reviewed for merging. Labels have been added ✅

I have resolve the conflicts issue. Please review for merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved GSSoC: PR approved for scoring gssoc26 GSSoC 2026 contribution level:intermediate GSSoC: Intermediate difficulty (35 pts) type:feature GSSoC type bonus: new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: add "today's coding todo" quick note widget

2 participants