Improve LDAP query builder page and enhance API security.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 705f2157-ef97-4fbd-89e4-8c7f2ecaea90
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ed01c5f-a82d-405a-b728-b2e3d127c60c/1a0cae6d-1419-4e33-945a-4f87737719de.jpg
This commit is contained in:
alphaeusmote
2025-04-08 20:48:07 +00:00
parent fb68574adb
commit 63d2f15989
3 changed files with 24 additions and 19 deletions
+6 -6
View File
@@ -226,15 +226,15 @@ export default function LdapQueryBuilderPage() {
const queriesColumns = [
{
header: "Name",
accessorKey: "name",
accessorKey: "name" as keyof LdapQuery,
},
{
header: "Description",
accessorKey: "description",
accessorKey: "description" as keyof LdapQuery,
},
{
header: "Target",
accessorKey: "targetObject",
accessorKey: "targetObject" as keyof LdapQuery,
cell: (row: LdapQuery) => {
const targets: Record<string, string> = {
users: "Users",
@@ -247,13 +247,13 @@ export default function LdapQueryBuilderPage() {
},
{
header: "Last Updated",
accessorKey: "updatedAt",
accessorKey: "updatedAt" as keyof LdapQuery,
cell: (row: LdapQuery) =>
row.updatedAt ? format(new Date(row.updatedAt), "MMM dd, yyyy HH:mm") : "",
},
{
header: "",
accessorKey: "id",
accessorKey: "id" as keyof LdapQuery,
cell: (row: LdapQuery) => (
<DropdownMenu>
<DropdownMenuTrigger asChild>
@@ -294,7 +294,7 @@ export default function LdapQueryBuilderPage() {
const firstResult = testResults[0];
return Object.keys(firstResult).map(key => ({
header: key,
accessorKey: key,
accessorKey: key as keyof typeof firstResult,
cell: (row: any) => {
const value = row[key];
if (value === null || value === undefined) return "-";