Repository navigation
feat(frontend): settings tabs, user analytics, property map and toast system - #234
Merged
OsagieCynthia merged 1 commit intoNov 24, 2026
Conversation
… system - Arbitra-Lab#151: Settings dashboard with profile, payments, notifications, security and referrals tabs; payment methods and referrals use the existing backend endpoints, saved searches are managed on-device, 2FA stays in Security - Arbitra-Lab#156: personal analytics dashboard (overview, activity, agreements, payments, reviews) with trend charts and CSV export - Arbitra-Lab#150: Leaflet property map with rent-price markers, filter-aware markers, details modal and swipe-to-close bottom sheet on mobile - Arbitra-Lab#149: toast system with success/error/warning/info types, icons, 5s auto-dismiss, stacking, click to close and real-time event toasts Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
@Yormee-103 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! 🚀 |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch had an error being deployed
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 #151
Closes #156
Closes #150
Closes #149
All changes are in
frontend/. New logic lives in small pure modules so it can be unit tested; UI is wired into the existing pages with minimal edits.#151 Profile & Settings dashboard
SettingsPageClientnow has Profile, Payments, Notifications, Security, Referrals tabs (accessible tablist with arrow-key navigation,/settings#securitydeep links). The existing cards moved under their tabs: Notifications (+ saved searches), Profile (Appearance, Language & Region), Security (password + the existing 2FA enable / disable / backup-code flow)./api/profilecalls as the existing profile page./payment-methodsendpoints. Only the last four digits are collected; anything longer is rejected client-side./referrals/codeand/referrals/stats.#156 Analytics dashboard
/user/analyticspage (linked in the user sidebar) with Overview, Activity, Agreements, Payments, Reviews tabs, Recharts trend charts (properties viewed per month, payments per month), and Export CSV on each data tab. CSV export neutralises spreadsheet formulas (= + - @). Layout is responsive (grid breakpoints, scrollable tables,ResponsiveContainer).useUserAgreements, payments from/payments, reviews from/reviews/user/:id. Properties viewed and saved searches have no server record, so they come from a small on-device activity log (lib/activity-log.ts). Applications sent is supported by the log but nothing records it yet, so it shows 0.#150 Property map
next/dynamic, no SSR) shows a rent-price marker per listing; it reuses the page's existing filtered list, so price and amenity filters update the markers and the view re-fits to them.BottomSheet(swipe down to close), on larger screens a dialog (Escape / outside click / button).#149 Toast system
components/ui/toast.tsx: success / error / warning / info with icons and type styling, 5s default auto-dismiss, vertical stacking, click (or Enter/Space/Escape) closes. The existingnotify.*API is unchanged and gainsnotify.warning.lib/websocket/toast-events.tsmaps real-time events to toasts, wired intouse-realtime.ts:payment:completed(payment received),dispute:status(dispute opened / resolved / updated),escrow:released,appeal:submitted. Server text is never shown verbatim.Notes for review
SettingsPageClient.tsxwhere cards are now wrapped by tab conditionals, so that diff looks bigger than the logic change.frontend/__tests__/lib/):toast-events,property-map,settings-stores(saved searches, activity log, payment methods, profile form) anduser-analytics(aggregation, normalisation, CSV).Verification: NOT run
As requested, no tests, type-check, lint or build were run (and dependencies are not installed on my machine, so none could be). That means
pnpm run lint,pnpm exec tsc --noEmit,pnpm run buildandpnpm run testfrom the repo'sCLAUDE.mdchecklist are unverified; please rely on CI. The only tool run was Prettier (3.8.1) on the changed files. Likeliest places to need a fix: react-leaflet / Recharts typings, theToastBarrender-prop intoast.tsx, and theapiClientresponse typing in the new panels.