Skip to content

[Feature]: Add View Counter to Each Project #4459

@diksha78dev

Description

@diksha78dev

Feature Description

Add a simple view counter to track how many times each project is viewed. Display as "👁️ X views" on project cards to help identify popular projects.

Proposed Solution

Use browser localStorage to store view counts. Increment counter when user clicks on a project. Display count on project cards with an eye icon.

// Store and retrieve view counts
const viewCounts = JSON.parse(localStorage.getItem('viewCounts') || '{}');
viewCounts[projectId] = (viewCounts[projectId] || 0) + 1;
localStorage.setItem('viewCounts', JSON.stringify(viewCounts));

Alternatives Considered

No response

Mockups/Screenshots

No response

Contribution

  • I would like to work on this feature

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions