feat(dashboard): expandable report cards with photo, description, and short location#68
Merged
Merged
Conversation
… short location
- Make each report card on the dashboard click-to-expand to reveal the uploaded
photo, the user's description, the AI summary, and the full address.
- Lead the collapsed card with the issue type ("what the problem is") and a
concise "City, ST" location derived from the full address.
- Add a shortenAddress() helper that strips countries, postal codes, and county
segments, and abbreviates US states. E.g. "Coupa Cafe, 538, Ramona Street,
University South, Palo Alto, Santa Clara County, California, 94301, United
States" -> "Palo Alto, CA".
- Select report.imageUrl in the dashboard query and render the stored image
in the expanded view.
Co-authored-by: Cursor <cursoragent@cursor.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Adds a Leaflet-powered map between the stats row and report list that plots every report with valid coordinates. Pins use the app's purple/ green palette to mirror status pill colors, and clicking a pin opens a popup with issue type, short address, status, and relative time. Uses free OpenStreetMap/CARTO tiles rather than the server-side Google Maps key so the unrestricted API key stays out of the browser bundle. Leaflet is loaded only on the client (dynamic import in useEffect) to avoid SSR access to `window`. Co-authored-by: Cursor <cursoragent@cursor.com>
7 tasks
feat(dashboard): geographic map with pins for all reports
tkflare1
added a commit
that referenced
this pull request
May 22, 2026
Resolve conflicts: keep ReportCard/ReportsMap from #68; retain edit page and DeleteReportButton enhancements. Co-authored-by: Cursor <cursoragent@cursor.com>
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.
Summary
shortenAddress()helper inlib/constants.tsthat strips countries, postal codes, and county segments, and abbreviates US state names.Coupa Cafe, 538, Ramona Street, University South, Palo Alto, Santa Clara County, California, 94301, United States→Palo Alto, CAreport.imageUrlin the dashboard query and render the stored image inside the expanded view (with a graceful "No photo attached" fallback).src/components/dashboard/report-card.tsx(handles expand/collapse, stops click propagation on the existing Delete button, integrates withformatRelativeTime/formatFullDateTime).Test plan
/dashboard.npm run lintandnpx tsc --noEmitboth pass.Made with Cursor