Skip to content

feat: add Daily Coding Tip widget with category badges and refresh button#1890

Open
aaniya22 wants to merge 1 commit into
recodehive:mainfrom
aaniya22:feat/daily-coding-tip-widget
Open

feat: add Daily Coding Tip widget with category badges and refresh button#1890
aaniya22 wants to merge 1 commit into
recodehive:mainfrom
aaniya22:feat/daily-coding-tip-widget

Conversation

@aaniya22

Copy link
Copy Markdown
Contributor

Closes #1701

📋 PR Summary

  • Closes 💡[Feature]: Daily Coding Tip Widget #1701
  • Summary: Adds a Daily Coding Tip widget to the RecodeHive website. Displays a random coding tip on page load (stored in localStorage to persist for the day), with a refresh button to get a new tip. Tips are categorized into Git & GitHub, JavaScript/React, Open Source, VS Code Shortcuts, and Productivity Tricks.

Changes

  • src/data/codingTips.json — 20 curated tips across 5 categories
  • src/components/DailyCodingTip.tsx — React component with localStorage persistence, category color badges, and refresh button
  • src/components/DailyCodingTip.module.css — Responsive styles with fade-in animation, dark/light theme support via Docusaurus CSS variables

Features

  • ✅ Displays a random tip daily (persisted via localStorage)
  • ✅ Refresh button to get another tip instantly
  • ✅ Color-coded category badges
  • ✅ Smooth fade-in animation
  • ✅ Responsive for mobile and desktop
  • ✅ Dark/light theme compatible via Docusaurus CSS variables

🏷️ PR Type

  • type: feature

✅ Checklist

  • My PR has a linked issue (Closes #1701)
  • I have pulled the latest main and resolved any conflicts
  • Only touches the required files

@vercel

vercel Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

@aaniya22 is attempting to deploy a commit to the recode Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. The estimated time for response is 5–8 hrs.

In the meantime, please provide all necessary screenshots and make sure you run - npm build run , command and provide a screenshot, a video recording, or an image of the update you made below, which helps speed up the review and assignment. If you have questions, reach out to LinkedIn. Your contributions are highly appreciated!😊

Note: I maintain the repo issue every day twice at 8:00 AM IST and 9:00 PM IST. If your PR goes stale for more than one day, you can tag and comment on this same issue by tagging @sanjay-kv.

We are here to help you on this journey of open source. Consistent 20 contributions are eligible for sponsorship 💰

🎁 check our list of amazing people we sponsored so far: GitHub Sponsorship. ✨

📚Your perks for contribution to this community 👇🏻

  1. Get free Consultation use code recode50 to get free: Mentorship for free.

  2. Get the Ebook for free use code recode at checkout: Data Science cheatsheet for Beginners.

  3. Check out this weekly Newsletter: Sanjay's Newsletter.

If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@github-actions github-actions Bot added in-review The current changes are in review and would need approval and testing before merging level 1 10 points recode this is label for leaderboard labels Jun 12, 2026
@github-actions github-actions Bot added this to the recode:launch 3.0 milestone Jun 12, 2026
@github-actions github-actions Bot added enhancement New feature or request gssoc:approved gssoc label high priority gssoc26 label medium gssoc26 label type:docs gssoc label 5pts labels Jun 12, 2026
@github-actions

Copy link
Copy Markdown

✅ Synchronized metadata from Issue #1701:

  • Labels: enhancement, level 1, recode, high priority, medium, gssoc:approved, type:docs
  • Milestone: recode:launch 3.0

@Adez017 Adez017 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@aaniya22 make sure this changes doesn't overlap with our learderboard toast notification changes .

@iitzIrFan iitzIrFan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Code pattern looks good to me btw ;)

@vercel

vercel Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
recode-website Ready Ready Preview, Comment Jun 12, 2026 11:06am

@sanjay-kv

sanjay-kv commented Jun 13, 2026

Copy link
Copy Markdown
Member

@aaniya22 can you tell where it is mounted, (means where its implemented(
i see the tip widget has been created but in issue mentioned to make it appear on the leaderboard.
image

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

Labels

enhancement New feature or request gssoc:approved gssoc label high priority gssoc26 label in-review The current changes are in review and would need approval and testing before merging level 1 10 points medium gssoc26 label recode this is label for leaderboard type:docs gssoc label 5pts

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

💡[Feature]: Daily Coding Tip Widget

4 participants