Feat/nps survey#1312
Merged
Merged
Conversation
… Access Hardware Integration (Kisi / Brivo)
|
@feyishola is attempting to deploy a commit to the naijabuz's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@feyishola Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
yusuftomilola
approved these changes
Jun 29, 2026
6 tasks
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.
closes #1233
closes #1231
Summary
After a booking completes, members see a dismissible banner on /dashboard asking them to rate their experience (0–10) with an optional comment. Submitting calls POST /nps/respond; dismissing hides it for 24 hours via localStorage. The admin analytics page gains an NPS summary section showing the aggregate score, a promoter/passive/detractor donut chart (Recharts), and the last 5 recent comments with colour-coded score badges.
New files: components/nps/NpsBanner.tsx, lib/react-query/hooks/nps/ (3 hooks)
Modified: DashboardContent.tsx, admin/analytics/page.tsx, queryKeys.ts, mutationKeys.ts
Hub operators can now set their own logo, hub name, primary colour, and favicon. On app load, BrandingProvider fetches GET /hub-settings/branding and applies --color-primary as a CSS custom property and swaps the favicon — silently falling back to ManageHub defaults on failure. The sidebar and public navbar read from useBranding() and render the custom logo/name. A new admin page at /admin/settings/branding provides logo + favicon upload (via Cloudinary), a colour picker, and a hub name input. On the backend, primaryColorHex and faviconUrl were added to the existing HubSettings entity, and new /hub-settings/branding GET/PATCH/upload routes were added.
New files: lib/branding/BrandingContext.tsx, lib/react-query/hooks/branding/ (3 hooks), app/admin/settings/branding/page.tsx
Modified: hub-settings entity/DTO/controller/service/module, DashboardSidebar.tsx, Navbar.tsx, Providers.tsx, globals.css, queryKeys.ts, mutationKeys.ts