diff --git a/.replit b/.replit index 1746cb0..b0526f5 100644 --- a/.replit +++ b/.replit @@ -22,10 +22,6 @@ externalPort = 3002 localPort = 37531 externalPort = 3001 -[[ports]] -localPort = 39291 -externalPort = 3003 - [[ports]] localPort = 43349 externalPort = 3000 diff --git a/client/src/pages/AdminDashboard.tsx b/client/src/pages/AdminDashboard.tsx index 557f9c8..0abcf50 100644 --- a/client/src/pages/AdminDashboard.tsx +++ b/client/src/pages/AdminDashboard.tsx @@ -61,6 +61,22 @@ export default function AdminDashboard() { } }); + // Group outlets by category and sort + const getOutletsByCategory = (category: string) => { + const filtered = filteredOutlets.filter(outlet => + outlet.category.toLowerCase() === category.toLowerCase() + ); + + return filtered.sort((a, b) => { + if (sortBy === "alphabetical") { + return a.name.localeCompare(b.name); + } else { + // Sort by traffic score (descending - highest traffic first) + return (b.trafficScore || 0) - (a.trafficScore || 0); + } + }); + }; + const handleLogout = () => { window.location.href = "/api/logout"; }; @@ -117,7 +133,7 @@ export default function AdminDashboard() { onClick={() => window.location.href = "/"} data-testid="button-home" > - 홈페이지 + Home