TemaDeveloper / TemaDeveloper/personal_planner
polish: Add share count badge to sidebar 'Shared with me' item
Nobody has claimed this yet.
- 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/meor add a dedicated count endpoint
Good first issue — straightforward UI change with one API call.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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