feat: implement club admin dashboard with activity feed and settings
Pull Request / unit-tests (pull_request) Successful in 57s
Pull Request / e2e-tests (pull_request) Successful in 3m10s
Pull Request / analyze-bump-type (pull_request) Successful in 12s

This commit is contained in:
2026-04-26 17:17:52 -07:00
parent 2658dc07cb
commit 31fc26478d
12 changed files with 686 additions and 3 deletions
+26
View File
@@ -231,6 +231,32 @@ export default function AdminPlayersPage() {
</div>
)}
{/* Search and Filter Controls */}
<div className="bg-white shadow rounded-lg p-4 mb-4">
<div className="flex items-center space-x-4">
<div className="flex-1">
<input
type="text"
name="search"
placeholder="Search players by name..."
className="w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-green-500 focus:border-green-500"
onChange={async (e) => {
const search = e.target.value
try {
const response = await fetch(`/api/players?search=${encodeURIComponent(search)}`)
if (response.ok) {
const data = await response.json()
setPlayers(data)
}
} catch (err) {
console.error('Search failed:', err)
}
}}
/>
</div>
</div>
</div>
{/* Player Table */}
<div className="bg-white shadow rounded-lg overflow-hidden">
<table className="min-w-full divide-y divide-gray-200">