diff --git a/client/src/pages/sites-page.tsx b/client/src/pages/sites-page.tsx
index 0426f7f..2069af1 100644
--- a/client/src/pages/sites-page.tsx
+++ b/client/src/pages/sites-page.tsx
@@ -552,7 +552,7 @@ export default function SitesPage() {
Active Directory Sites
- Manage physical locations in your Active Directory infrastructure.
+ View and manage sites in your Active Directory environment.
@@ -579,104 +579,108 @@ export default function SitesPage() {
- {!selectedConnection ? (
-
-
Please select a connection to view sites.
-
- ) : isLoadingSites ? (
-
- {[...Array(5)].map((_, i) => (
-
-
-
- ))}
-
- ) : sitesError ? (
-
-
Error loading sites
-
{sitesError.message || "Unknown error occurred"}
-
- ) : (
-
-
+
+
+
+ Name
+ Description
+ Location
+ Associated Subnets
+ Actions
+
+
+
+ {!selectedConnection ? (
- Name
- Description
- Location
- Associated Subnets
- Actions
+
+ Please select a connection to view sites.
+
-
-
- {sitesData?.data && sitesData.data.length > 0 ? (
- sitesData.data.map((site: AdSite) => (
-
- {site.name}
- {site.description || '—'}
- {site.location || '—'}
-
- {site.subnets && site.subnets.length > 0
- ? site.subnets.map((subnet, idx) => (
-
- {subnet.split(',')[0].replace('CN=', '')}
-
- ))
- : '—'}
-
-
-
-
setEditingSite(site)}
- >
-
-
-
-
-
+
+
+ {[...Array(5)].map((_, i) => (
+
+ ))}
+
+
+
+ ) : sitesError ? (
+
+
+ Error loading sites
+ {sitesError.message || "Unknown error occurred"}
+
+
+ ) : sitesData?.data && sitesData.data.length > 0 ? (
+ sitesData.data.map((site: AdSite) => (
+
+ {site.name}
+ {site.description || '—'}
+ {site.location || '—'}
+
+ {site.subnets && site.subnets.length > 0
+ ? site.subnets.map((subnet, idx) => (
+
+ {subnet.split(',')[0].replace('CN=', '')}
+
+ ))
+ : '—'}
+
+
+
+
setEditingSite(site)}
+ >
+
+
+
+
+
+
+
+
+
+
+
+ Are you sure you want to delete this site?
+
+
+ This action cannot be undone. This will permanently delete the
+ site "{site.name}" and all of its data from the server.
+
+
+
+ Cancel
+ deleteSiteMutation.mutate(site.objectGUID)}
+ className="bg-destructive text-destructive-foreground"
>
-
-
-
-
-
-
- Are you sure you want to delete this site?
-
-
- This action cannot be undone. This will permanently delete the
- site "{site.name}" and all of its data from the server.
-
-
-
- Cancel
- deleteSiteMutation.mutate(site.objectGUID)}
- className="bg-destructive text-destructive-foreground"
- >
- Delete
-
-
-
-
-
-
-
- ))
- ) : (
-
-
- No sites found for this connection.
+ Delete
+
+
+
+
+
- )}
-
-
- )}
+ ))
+ ) : (
+
+
+ No sites found for this connection.
+
+
+ )}
+
+
{/* Pagination for sites */}
{sitesData?.data && sitesData.data.length > 0 && totalSitePages > 1 && (
@@ -840,106 +844,110 @@ export default function SitesPage() {
- {!selectedConnection ? (
-
-
Please select a connection to view subnets.
-
- ) : isLoadingSubnets ? (
-
- {[...Array(5)].map((_, i) => (
-
-
-
- ))}
-
- ) : subnetsError ? (
-
-
Error loading subnets
-
{subnetsError.message || "Unknown error occurred"}
-
- ) : (
-
-
+
+
+
+ Name
+ CIDR
+ Description
+ Location
+ Site
+ Actions
+
+
+
+ {!selectedConnection ? (
- Name
- CIDR
- Description
- Location
- Site
- Actions
+
+ Please select a connection to view subnets.
+
-
-
- {subnetsData?.data && subnetsData.data.length > 0 ? (
- subnetsData.data.map((subnet: AdSubnet) => (
-
- {subnet.name}
- {subnet.cidr || '—'}
- {subnet.description || '—'}
- {subnet.location || '—'}
-
- {subnet.siteObject ? (
-
- {subnet.siteObject.split(',')[0].replace('CN=', '')}
-
- ) : (
- '—'
- )}
-
-
-
-
setEditingSubnet(subnet)}
- >
-
-
-
-
-
+
+
+ {[...Array(5)].map((_, i) => (
+
+ ))}
+
+
+
+ ) : subnetsError ? (
+
+
+ Error loading subnets
+ {subnetsError.message || "Unknown error occurred"}
+
+
+ ) : subnetsData?.data && subnetsData.data.length > 0 ? (
+ subnetsData.data.map((subnet: AdSubnet) => (
+
+ {subnet.name}
+ {subnet.cidr || '—'}
+ {subnet.description || '—'}
+ {subnet.location || '—'}
+
+ {subnet.siteObject ? (
+
+ {subnet.siteObject.split(',')[0].replace('CN=', '')}
+
+ ) : (
+ '—'
+ )}
+
+
+
+
setEditingSubnet(subnet)}
+ >
+
+
+
+
+
+
+
+
+
+
+
+ Are you sure you want to delete this subnet?
+
+
+ This action cannot be undone. This will permanently delete the
+ subnet "{subnet.name}" and all of its data from the server.
+
+
+
+ Cancel
+ deleteSubnetMutation.mutate(subnet.objectGUID)}
+ className="bg-destructive text-destructive-foreground"
>
-
-
-
-
-
-
- Are you sure you want to delete this subnet?
-
-
- This action cannot be undone. This will permanently delete the
- subnet "{subnet.name}" and all of its data from the server.
-
-
-
- Cancel
- deleteSubnetMutation.mutate(subnet.objectGUID)}
- className="bg-destructive text-destructive-foreground"
- >
- Delete
-
-
-
-
-
-
-
- ))
- ) : (
-
-
- No subnets found for this connection.
+ Delete
+
+
+
+
+
- )}
-
-
- )}
+ ))
+ ) : (
+
+
+ No subnets found for this connection.
+
+
+ )}
+
+
{/* Pagination for subnets */}
{subnetsData?.data && subnetsData.data.length > 0 && totalSubnetPages > 1 && (