Skip to content

Add latitude and longitude to polling stations #969

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

idormenco
Copy link
Contributor

No description provided.

Copy link

vercel bot commented May 15, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
votemonitor ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 19, 2025 11:30am

@idormenco idormenco changed the title Features/helpers Add latitude and longitude to polling stations May 27, 2025
import { PollingStationsFilters } from '@/components/PollingStationsFilters/PollingStationsFilters';
import { FilterBadge } from '@/components/ui/badge';
import { Button } from '@/components/ui/button';
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
import { Separator } from '@/components/ui/separator';
import { AuthContext } from '@/context/auth.context';
import { AuthContext, useAuth } from '@/context/auth-context';

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import AuthContext.

Copilot Autofix

AI 6 days ago

To fix the issue, the unused AuthContext import should be removed from the file. This will clean up the code and eliminate the unnecessary import. The change is straightforward and involves editing the import statement on line 10 to remove AuthContext.

Suggested changeset 1
web/src/components/PollingStationsDashboard/PollingStationsDashboard.tsx

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/web/src/components/PollingStationsDashboard/PollingStationsDashboard.tsx b/web/src/components/PollingStationsDashboard/PollingStationsDashboard.tsx
--- a/web/src/components/PollingStationsDashboard/PollingStationsDashboard.tsx
+++ b/web/src/components/PollingStationsDashboard/PollingStationsDashboard.tsx
@@ -9,3 +9,3 @@
 import { Separator } from '@/components/ui/separator';
-import { AuthContext, useAuth } from '@/context/auth-context';
+import { useAuth } from '@/context/auth-context';
 import { useCurrentElectionRoundStore } from '@/context/election-round.store';
EOF
@@ -9,3 +9,3 @@
import { Separator } from '@/components/ui/separator';
import { AuthContext, useAuth } from '@/context/auth-context';
import { useAuth } from '@/context/auth-context';
import { useCurrentElectionRoundStore } from '@/context/election-round.store';
Copilot is powered by AI and may make mistakes. Always verify output.
@@ -1,5 +1,5 @@
import { Button } from '@/components/ui/button';
import { AuthContext } from '@/context/auth.context';
import { AuthContext, useAuth } from '@/context/auth-context';

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import AuthContext.

Copilot Autofix

AI 6 days ago

To fix the issue, we will remove the unused AuthContext from the import statement on line 2. This will eliminate the unused import while retaining the useAuth import, which is actively used in the code. No other changes are necessary, as this does not affect the functionality of the component.

Suggested changeset 1
web/src/features/filtering/components/FilteringContainer.tsx

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/web/src/features/filtering/components/FilteringContainer.tsx b/web/src/features/filtering/components/FilteringContainer.tsx
--- a/web/src/features/filtering/components/FilteringContainer.tsx
+++ b/web/src/features/filtering/components/FilteringContainer.tsx
@@ -1,3 +1,3 @@
 import { Button } from '@/components/ui/button';
-import { AuthContext, useAuth } from '@/context/auth-context';
+import { useAuth } from '@/context/auth-context';
 import { FC, ReactNode, useContext } from 'react';
EOF
@@ -1,3 +1,3 @@
import { Button } from '@/components/ui/button';
import { AuthContext, useAuth } from '@/context/auth-context';
import { useAuth } from '@/context/auth-context';
import { FC, ReactNode, useContext } from 'react';
Copilot is powered by AI and may make mistakes. Always verify output.
@@ -1,26 +1,26 @@
import { AuthContext } from '@/context/auth.context';
import { AuthContext, useAuth } from '@/context/auth-context';

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import AuthContext.

Copilot Autofix

AI 6 days ago

To fix the issue, the unused AuthContext import should be removed from the file. This will eliminate the unnecessary clutter and ensure the code adheres to best practices. The change is straightforward: modify the import statement on line 1 to only include useAuth, which is actually used in the file.

Suggested changeset 1
web/src/routes/(app)/index.tsx

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/web/src/routes/(app)/index.tsx b/web/src/routes/(app)/index.tsx
--- a/web/src/routes/(app)/index.tsx
+++ b/web/src/routes/(app)/index.tsx
@@ -1,2 +1,2 @@
-import { AuthContext, useAuth } from '@/context/auth-context';
+import { useAuth } from '@/context/auth-context';
 import NgoAdminDashboard from '@/features/ngo-admin-dashboard/components/Dashboard/Dashboard';
EOF
@@ -1,2 +1,2 @@
import { AuthContext, useAuth } from '@/context/auth-context';
import { useAuth } from '@/context/auth-context';
import NgoAdminDashboard from '@/features/ngo-admin-dashboard/components/Dashboard/Dashboard';
Copilot is powered by AI and may make mistakes. Always verify output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant