Skip to content

Conversation

@ykaydogdu
Copy link
Contributor

Title: Feat: Add Helpful Count UI for Workplace Reviews

Summary

This PR implements full frontend support for the new helpful count feature on workplace reviews.
Users can now mark/unmark reviews as helpful, and each review card displays the current helpfulCount returned by the backend.

The feature integrates seamlessly into the Workplace Profile review section and uses optimistic UI.


API Integration

  • Integrated with backend endpoints:
    • POST /api/workplace/{workplaceId}/review/{reviewId}/helpful
  • Updated response type definitions to include helpfulCount.

UI/UX

  • Updated review card layout to match existing company profile styling.
  • Added tooltip + login prompt for unauthenticated users.
  • Improved spacing & iconography for helpful section.

✅ Acceptance Criteria Check

  • Display helpfulCount on workplace reviews
  • Allow authenticated users to mark/unmark as helpful
  • Prevent multiple increments by same user
  • Optimistic UI support
  • React Testing Library + Vitest tests added
  • Backend endpoint integration in /company/:slug

Closes #485

@ykaydogdu ykaydogdu added this to the Milestone 3: Final Milestone milestone Dec 5, 2025
@ykaydogdu ykaydogdu requested a review from enverern December 5, 2025 18:04
@ykaydogdu ykaydogdu self-assigned this Dec 5, 2025
@ykaydogdu ykaydogdu added type: feature New feature or request domain: frontend Front-end related items labels Dec 5, 2025
@ykaydogdu ykaydogdu force-pushed the feat/485-workplace-helpful-ui branch from feac2b3 to 03e9495 Compare December 5, 2025 18:16
Copy link
Contributor

@enverern enverern left a comment

Choose a reason for hiding this comment

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

Clean implementation and smooth UI/UX integration. API handling and state updates look correct. Approved.

@enverern enverern linked an issue Dec 5, 2025 that may be closed by this pull request
6 tasks
@ykaydogdu ykaydogdu merged commit 9078cd2 into dev Dec 5, 2025
3 checks passed
@ykaydogdu ykaydogdu deleted the feat/485-workplace-helpful-ui branch December 5, 2025 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: frontend Front-end related items type: feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Task] Add Helpful Count UI for Workplace Reviews

3 participants