Skip to content

Commit

Permalink
shorten placeholders for grid boolean is filters
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedhamidawan committed Mar 20, 2024
1 parent e8fc803 commit 7996b03
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion client/src/components/Grid/configs/adminForms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const validFilters: Record<string, ValidFilter<string | boolean | undefined>> =
name: { placeholder: "name", type: String, handler: contains("name"), menuItem: true },
description: { placeholder: "description", type: String, handler: contains("desc"), menuItem: true },
deleted: {
placeholder: "Filter on deleted entries",
placeholder: "Deleted",
type: Boolean,
boolType: "is",
handler: equals("deleted", "deleted", toBool),
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Grid/configs/adminGroups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ const fields: FieldArray = [
const validFilters: Record<string, ValidFilter<string | boolean | undefined>> = {
name: { placeholder: "name", type: String, handler: contains("name"), menuItem: true },
deleted: {
placeholder: "Filter on deleted entries",
placeholder: "Deleted",
type: Boolean,
boolType: "is",
handler: equals("deleted", "deleted", toBool),
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Grid/configs/adminQuotas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ const validFilters: Record<string, ValidFilter<string | boolean | undefined>> =
name: { placeholder: "name", type: String, handler: contains("name"), menuItem: true },
description: { placeholder: "description", type: String, handler: contains("description"), menuItem: true },
deleted: {
placeholder: "Filter on deleted entries",
placeholder: "Deleted",
type: Boolean,
boolType: "is",
handler: equals("deleted", "deleted", toBool),
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Grid/configs/adminRoles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ const validFilters: Record<string, ValidFilter<string | boolean | undefined>> =
name: { placeholder: "name", type: String, handler: contains("name"), menuItem: true },
description: { placeholder: "description", type: String, handler: contains("description"), menuItem: true },
deleted: {
placeholder: "Filter on deleted entries",
placeholder: "Deleted",
type: Boolean,
boolType: "is",
handler: equals("deleted", "deleted", toBool),
Expand Down
4 changes: 2 additions & 2 deletions client/src/components/Grid/configs/adminUsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,14 +310,14 @@ const validFilters: Record<string, ValidFilter<string | boolean | undefined>> =
email: { placeholder: "email", type: String, handler: contains("email"), menuItem: true },
username: { placeholder: "username", type: String, handler: contains("username"), menuItem: true },
deleted: {
placeholder: "Filter on deleted users",
placeholder: "Deleted",
type: Boolean,
boolType: "is",
handler: equals("deleted", "deleted", toBool),
menuItem: true,
},
purged: {
placeholder: "Filter on purged users",
placeholder: "Purged",
type: Boolean,
boolType: "is",
handler: equals("purged", "purged", toBool),
Expand Down
8 changes: 4 additions & 4 deletions client/src/components/Grid/configs/histories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,28 +293,28 @@ const validFilters: Record<string, ValidFilter<string | boolean | undefined>> =
menuItem: true,
},
published: {
placeholder: "Filter on published entries",
placeholder: "Published",
type: Boolean,
boolType: "is",
handler: equals("published", "published", toBool),
menuItem: true,
},
importable: {
placeholder: "Filter on importable entries",
placeholder: "Importable",
type: Boolean,
boolType: "is",
handler: equals("importable", "importable", toBool),
menuItem: true,
},
deleted: {
placeholder: "Filter on deleted entries",
placeholder: "Deleted",
type: Boolean,
boolType: "is",
handler: equals("deleted", "deleted", toBool),
menuItem: true,
},
purged: {
placeholder: "Filter on purged entries",
placeholder: "Purged entries",
type: Boolean,
boolType: "is",
handler: equals("purged", "purged", toBool),
Expand Down
6 changes: 3 additions & 3 deletions client/src/components/Grid/configs/pages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,21 +163,21 @@ const validFilters: Record<string, ValidFilter<string | boolean | undefined>> =
title: { placeholder: "title", type: String, handler: contains("title"), menuItem: true },
slug: { handler: contains("slug"), menuItem: false },
published: {
placeholder: "Filter on published pages",
placeholder: "Published",
type: Boolean,
boolType: "is",
handler: equals("published", "published", toBool),
menuItem: true,
},
importable: {
placeholder: "Filter on importable pages",
placeholder: "Importable",
type: Boolean,
boolType: "is",
handler: equals("importable", "importable", toBool),
menuItem: true,
},
deleted: {
placeholder: "Filter on deleted pages",
placeholder: "Deleted",
type: Boolean,
boolType: "is",
handler: equals("deleted", "deleted", toBool),
Expand Down
6 changes: 3 additions & 3 deletions client/src/components/Grid/configs/visualizations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,21 +205,21 @@ const validFilters: Record<string, ValidFilter<string | boolean | undefined>> =
menuItem: true,
},
published: {
placeholder: "Filter on published visualizations",
placeholder: "Published",
type: Boolean,
boolType: "is",
handler: equals("published", "published", toBool),
menuItem: true,
},
importable: {
placeholder: "Filter on importable visualizations",
placeholder: "Importable",
type: Boolean,
boolType: "is",
handler: equals("importable", "importable", toBool),
menuItem: true,
},
deleted: {
placeholder: "Filter on deleted visualizations",
placeholder: "Deleted",
type: Boolean,
boolType: "is",
handler: equals("deleted", "deleted", toBool),
Expand Down

0 comments on commit 7996b03

Please sign in to comment.