The idea is to get places from google maps to our app like restaurant, coffee shop, parcs, etc.
With this data in our database, we will be able to filter, show a nicer view of every entity we save in our database, create private and public list that we will be able to share with other people. There will also be a Wheel of places (you select X places and put it in the wheel, then it will randomly shows you a place to go ).
The user can add places from google maps to our database via a maps that is integrated into our website.
On click of a marker, it will shows the detail of that place then ask the user if he want to save it in the app.
When the map load, we should show all the marker of the user.
When we load the website, we should have first a landing page showing the merit of our app and on the top a signin button. (Look at the screenshot with GmapsPlus in a bigl title for some inspiration)
When we click on signin - we load a sign in page with the ability to register also. (basic email and password)
once we logged we are on our logged area where we will be able to see our list of entity, our lists (public and shared) and a link to the wheel of places.
I’ve linked mockup of the app - those are mockups don't follow the colors etc but try to do something modern with Shadcn components.
Assistant
Reviewing the codebase to understand the current setup, then drafting a plan.
I want even more fields than that from Google maps detail api, when you'll do the call to google places api you cn specific a wildcards a fieldmask (*) and so you'll have more stuff.
Also, I don't want a user to be a owner of a places, I would prefer another table that link a place to a user and so when we "want" to add a new places, we could just look if it's there in the table first so we don't have to do a query to the place api that cost a lot of money.
Assistant
Updating the plan to use a wildcard fieldMask for Google Places API and a shared places table with a user-place junction table to avoid duplicate API calls.
Implement the plan as specified, it is attached for your reference. Do NOT edit the plan file itself.
To-do's from the plan have already been created. Do not create them again. Mark them as in_progress as you work, starting with the first one. Don't stop until you have completed all the to-dos.
Assistant
Reviewing the current state, then starting implementation. Beginning with the first todo.
To ignore failing typecheck, use --typecheck=disable.
convex/places.ts:10:14 - error TS7022: 'savePlace' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
10 export const savePlace = mutation({
code
~~~~~~~~~
convex/places.ts:14:3 - error TS7023: 'handler' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
14 handler: async (ctx, args) => {
code
~~~~~~~
convex/places.ts:32:13 - error TS7022: 'placeData' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
[tool: run_terminal_cmd — Tool use: run_terminal_cmd • Run command: cd /Users/[user]/Projects/Private/hackathon/gmapsplus && npm run lint 2>&1 | head -50]
Fixing linting errors, starting with the critical ones:
11 export type Expand<ObjectType extends Record<any, any>> = ObjectType extends Record<any, any> ? {
~
12 [Key in keyof ObjectType]: ObjectType[Key];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
13 } : never;
~
The expected type comes from property 'placeId' which is declared here on type '{ userId: Id<"users">; placeId: Id<"places">; savedAt: number; }'
Found 2 errors in the same file, starting at: convex/places.ts:51
Assistant
Fixing the type issue: placeId should be Id<"places">, not string. Updating the type annotations:
[tool: run_terminal_cmd — Tool use: run_terminal_cmd • Run command: cd /Users/[user]/Projects/Private/hackathon/gmapsplus && npx tsc --noEmit 2>&1 | head -20]
Fixed the TypeScript errors. placeId was typed as string but should be Id<"places">. Updated the type annotation to use Id<"places"> from Convex's generated types.
The changes:
Added import for Id type from ./_generated/dataModel
Changed placeId: string to placeId: Id<"places">
Updated the return type annotation to use Id<"places">
TypeScript check passes. Run npm run dev again; it should work.
User
I've this error in the client now
[plugin:vite:react-babel] /Users/[user]/Projects/Private/hackathon/gmapsplus/src/components/PlaceDetailsDialog.tsx: Expected corresponding JSX closing tag for . (266:6)
[tool: run_terminal_cmd — Tool use: run_terminal_cmd • Run command: cd /Users/[user]/Projects/Private/hackathon/gmapsplus && npx tsc --noEmit 2>&1 | grep -i "PlaceDetailsDialog" | head -10]
Fixed the JSX structure. The issue was indentation and a missing closing </div> tag. The "Actions" section is now properly nested inside the main content div, and all tags are correctly closed.
The structure is now:
<div className="space-y-4 mt-4"> (line 130) - main content container
The JSX should now compile correctly. Try running npm run dev again.
User
In my console in google chrome I've this error
client:733 [vite] connecting...
client:827 [vite] connected.
PlaceSearch.tsx:5 Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/@vis__gl_react-google-maps.js?v=9c8f70ea' does not provide an export named 'useLoadScript' (at PlaceSearch.tsx:5:10)
Assistant
Fixing PlaceSearch: useLoadScript isn't exported from @vis.gl/react-google-maps. Updating it to use the correct API:
[tool: codebase_search — Tool use: codebase_search • Searched codebase "How to use Google Places Autocomplete with @vis.gl/react-google-maps?" • 14 results]
Updating PlaceSearch: @vis.gl/react-google-maps doesn't export useLoadScript. Since APIProvider already loads the Google Maps API, using useMapsLibrary to access the Places library:
Ensuring PlaceSearch is inside the APIProvider context and that the Places library is loaded. Updating MapPage to include PlaceSearch within the APIProvider:
Removed useLoadScript — it's not exported from @vis.gl/react-google-maps.
Used useMapsLibrary("places") — works with the APIProvider context.
Moved PlaceSearch inside the APIProvider — it needs to be within the provider to access the Google Maps API.
Added libraries={["places"]} to APIProvider — ensures the Places library is loaded.
The PlaceSearch component now uses useMapsLibrary to access the Places library from the APIProvider context, which is the correct approach for @vis.gl/react-google-maps.
The error should be resolved. Refresh your browser and the search should work.
User
Ok things seems to work but the elements are not "visible" for a human eye, colors are not set correctly (homepage and login)
Assistant
Checking CSS and component styling to fix visibility issues:
Updated CSS — Switched from HSL CSS variables to hex colors that Tailwind v4 recognizes.
Updated Landing page — Added explicit Tailwind color classes:
Header with white/dark background
Text colors (gray-900 for headings, gray-600 for descriptions)
Buttons with gray-900/white backgrounds
Cards with proper borders and backgrounds
Updated Auth page — Added explicit colors:
Card with white/dark background and border
Input fields with visible borders and text
Button with proper contrast
Text colors for all elements
Updated Button component — Replaced CSS variable-based colors with explicit Tailwind classes that work in light and dark modes.
Elements should now be visible with proper contrast. Refresh your browser to see the changes. The pages use standard Tailwind colors that work regardless of CSS variable configuration.
Map page with Google Maps integration and place search
Places list page (table/card views with filtering)
Lists page (create/manage lists)
List details page (view/edit lists, add/remove places)
Wheel of Places page (spinning wheel component)
Shared lists page
Components
Navigation with user info
Map component with markers
PlaceDetailsDialog (save/unsave, add to lists)
PlaceSearch (autocomplete search)
Wheel component (canvas-based spinning wheel)
Routing
React Router with protected routes
Landing → Auth → App flow
Next steps
Set environment variables:
VITE_GOOGLE_MAPS_API_KEY (frontend)
GOOGLE_PLACES_API_KEY (Convex backend)
Run the app:
bash
npm run dev
The app checks if a place exists in the database before calling the Google Places API, reducing API costs. All places are stored as shared entities, and users link to them via the userPlaces junction table.