fix(admin): fix search (or vs and), remove sticky header

This commit is contained in:
2026-03-11 12:03:08 +01:00
parent 29250f8694
commit 569ee4ec40
2 changed files with 17 additions and 9 deletions

View File

@@ -392,10 +392,10 @@ function AdminPage() {
return (
<div className="min-h-screen">
{/* ── Top bar ── */}
<header className="sticky top-0 z-30 border-white/8 border-b bg-[#0d1f20]/95 backdrop-blur-md">
<div className="mx-auto flex max-w-[1600px] items-center justify-between px-5 py-3">
<div className="flex items-center gap-4">
<main className="mx-auto max-w-[1600px] space-y-6 px-5 py-6">
{/* ── Utility row ── */}
<div className="flex items-center justify-between">
<div className="flex items-center gap-3">
<Link
to="/"
className="font-mono text-white/40 text-xs hover:text-white/80"
@@ -432,9 +432,6 @@ function AdminPage() {
</button>
</div>
</div>
</header>
<main className="mx-auto max-w-[1600px] space-y-6 px-5 py-6">
{/* ── Pending admin requests ── */}
{pendingRequests.length > 0 && (
<div className="rounded-xl border border-yellow-500/25 bg-yellow-500/8 p-4">

View File

@@ -5,7 +5,18 @@ import { user } from "@kk/db/schema/auth";
import { drinkkaart, drinkkaartTopup } from "@kk/db/schema/drinkkaart";
import { env } from "@kk/env/server";
import type { RouterClient } from "@orpc/server";
import { and, count, desc, eq, gte, isNull, like, lte, sum } from "drizzle-orm";
import {
and,
count,
desc,
eq,
gte,
isNull,
like,
lte,
or,
sum,
} from "drizzle-orm";
import { z } from "zod";
import {
sendCancellationEmail,
@@ -426,7 +437,7 @@ export const appRouter = {
if (input.search) {
const term = `%${input.search}%`;
conditions.push(
and(
or(
like(registration.firstName, term),
like(registration.lastName, term),
like(registration.email, term),