Another try at fixing proto in CI

This commit is contained in:
Daniel Pupius
2025-05-02 12:32:09 -07:00
parent 2ef4cf1166
commit 1c7bfcd330
4 changed files with 10 additions and 5 deletions

View File

@@ -28,6 +28,9 @@ jobs:
sudo apt-get update
sudo apt-get install -y protobuf-compiler
- name: Install Go protobuf tools
run: make tools
- name: Generate Protocol Buffers
run: make gen-proto

3
.gitignore vendored
View File

@@ -73,4 +73,5 @@ temp/
# Binary output type
#meshstream
#meshstream
**/.claude/settings.local.json

View File

@@ -71,6 +71,7 @@ $(TOOLS_DIR):
# Install the protoc-gen-go tool
$(PROTOC_GEN_GO): $(TOOLS_DIR)
GOBIN=$(abspath $(TOOLS_DIR)) go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
echo "Installed protoc-gen-go in $(TOOLS_DIR)"
ls $(TOOLS_DIR)
# Web application commands

View File

@@ -1,4 +1,4 @@
import React, { useRef, useEffect, useState } from "react";
import React, { useRef, useEffect, useState, useCallback } from "react";
import { calculateAccuracyFromPrecisionBits, calculateZoomFromAccuracy } from "../../lib/mapUtils";
import { GOOGLE_MAPS_ID } from "../../lib/config";
@@ -39,7 +39,7 @@ export const GoogleMap: React.FC<GoogleMapProps> = ({
// Track whether the map has been initialized
const isInitializedRef = useRef(false);
const initializeMap = () => {
const initializeMap = useCallback(() => {
if (
mapRef.current &&
window.google &&
@@ -94,7 +94,7 @@ export const GoogleMap: React.FC<GoogleMapProps> = ({
radius: accuracyMeters,
});
}
};
}, [lat, lng, effectiveZoom, accuracyMeters, precisionBits]);
// Check for Google Maps API loading - make sure all required objects are available
useEffect(() => {
@@ -148,7 +148,7 @@ export const GoogleMap: React.FC<GoogleMapProps> = ({
if (isGoogleMapsLoaded && mapRef.current) {
initializeMap();
}
}, [isGoogleMapsLoaded, lat, lng, effectiveZoom, accuracyMeters, precisionBits]);
}, [isGoogleMapsLoaded, initializeMap]);
// Prepare the container classes based on fullHeight flag
const containerClassName = `w-full ${fullHeight ? 'h-full flex-1' : 'min-h-[300px]'} rounded-lg overflow-hidden effect-inset`;