feat: ✨ implement feedback system (reviews + comments) in project detail pages#862
Draft
phoebus-84 wants to merge 8 commits into
Draft
feat: ✨ implement feedback system (reviews + comments) in project detail pages#862phoebus-84 wants to merge 8 commits into
phoebus-84 wants to merge 8 commits into
Conversation
…ail pages - Add lib/feedback.ts API client with DID signing (mirrors useDppApi) - Add ReviewSummary, ReviewCard, ReviewSection, ReviewForm components - Add CommentThread, CommentForm components - Integrate reviews section and sidebar rating into ProjectDetailNew - Add i18n keys for en/de/fr/it - Add --ifr-skeleton-bg CSS variable to theme.css - Update .beads issues
…for-pages lint errors
…Form Clicking Reply on a ReviewCard now toggles an inline threaded reply section below that review, with existing replies and a form to add new ones. Self-contained in ReviewSection — no parent wiring needed.
- CommentThread now always visible below each review card - Reply button only toggles the CommentForm input - DELETE requests now send DID auth headers (sign empty body) - Fix null comments crash in CommentThread fetch
Empty-body signatures can fail Zenroom verification on the backend.
Sending {} (JSON empty object) gives the signing a real payload
('e30=' in base64) that both frontend and backend can verify.
The backend DeleteComment handler ignores the body, so this is safe.
- ReviewCard: edit/delete buttons for own reviews with delete confirmation - ReviewForm: edit mode with initialReview prop, update/editing labels - ReviewSection: inline create/edit forms, duplicate alert when user already reviewed - API: getUserReview and deleteReview methods added to feedback hook - ProjectDetailNew: simplified, removed showReviewForm toggle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
to work it needs the feedback server to be online: https://github.com/interfacerproject/interfacer-feedback-service
close: #864