TemaDeveloper / TemaDeveloper/personal_planner

polish: Add share count badge to sidebar 'Shared with me' item

Open
#31 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue polish
Dominant language
TypeScript
Stars
2
Forks
4
PR merge metrics
No merged PRs in 30d

Description

The 'Shared with me' sidebar item should show a count badge (e.g., '3') when there are active shares. This helps users notice when someone shares something with them.

Files to modify:

  • src/components/layout/app-sidebar.tsx — add badge next to nav item
  • Need to fetch count from /api/shared/me or add a dedicated count endpoint

Good first issue — straightforward UI change with one API call.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/components/layout/app-sidebar.tsx and inspect how sidebar items load or display data. Then review /api/shared/me to determine whether it provides the active-share count or whether a dedicated count endpoint is needed. Done means the “Shared with me” item shows the count badge when active shares exist.

Written by the indexing model from the issue text.

Assessment

Tech stack
nextjs, react, typescript
Domain
api, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
70/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.