Skip to content

Commit

Permalink
🎨 - refactor: change order of default column
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Roeland authored and svenvandescheur committed Nov 21, 2024
1 parent d8c9546 commit 3398cb3
Showing 1 changed file with 47 additions and 47 deletions.
94 changes: 47 additions & 47 deletions frontend/src/hooks/useFields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,24 +54,26 @@ export function useFields(
width: "300px",
},
{
name: "archiefnominatie",
filterValue: searchParams.get("archiefnominatie") || "",
name: "zaaktype",
filterLookup: "zaaktype__in",
filterValue: searchParams.get("zaaktype__in") || "",
options: zaaktypeChoices,
type: "string",
options: [
{ label: "Blijvend bewaren", value: "blijvend_bewaren" },
{ label: "Vernietigen", value: "vernietigen" },
],
width: "180px",
width: "300px",
},
{
name: "resultaat",
filterLookup: "resultaat__resultaattype__omschrijving__icontains",
filterValue:
searchParams.get("resultaat__resultaattype__omschrijving__icontains") ||
"",
valueLookup: "_expand.resultaat._expand.resultaattype.omschrijving",
name: "omschrijving",
filterLookup: "omschrijving__icontains",
filterValue: searchParams.get("omschrijving__icontains") || "",
type: "string",
width: "180px",
width: "300px",
},
{
active: false,
name: "toelichting",
type: "string",
filterLookup: "toelichting__icontains",
width: "300px",
},
{
name: "startdatum",
Expand All @@ -97,30 +99,7 @@ export function useFields(
width: "150px",
},
{
name: "zaaktype",
filterLookup: "zaaktype__in",
filterValue: searchParams.get("zaaktype__in") || "",
options: zaaktypeChoices,
type: "string",
width: "300px",
},
{
name: "omschrijving",
filterLookup: "omschrijving__icontains",
filterValue: searchParams.get("omschrijving__icontains") || "",
type: "string",
width: "300px",
},
{
active: false,
name: "toelichting",
type: "string",
filterLookup: "toelichting__icontains",
width: "300px",
},
{
name: "Behandelend afdeling",
active: false,
name: "Behandelende afdeling",
type: "string",
filterLookup: "behandelend_afdeling__icontains",
valueTransform: (rowData: object) => {
Expand All @@ -144,6 +123,23 @@ export function useFields(
},
width: "180px",
},
{
name: "selectielijstklasse",
type: "string",
// filterLookup: // TODO: Expand?
options: selectielijstKlasseChoices,
width: "180px",
},
{
name: "resultaat",
filterLookup: "resultaat__resultaattype__omschrijving__icontains",
filterValue:
searchParams.get("resultaat__resultaattype__omschrijving__icontains") ||
"",
valueLookup: "_expand.resultaat._expand.resultaattype.omschrijving",
type: "string",
width: "180px",
},
{
name: "archiefactiedatum",
type: "daterange",
Expand All @@ -159,17 +155,14 @@ export function useFields(
: "",
},
{
name: "archiefnominatie",
active: false,
name: "selectielijstklasse",
type: "string",
// filterLookup: // TODO: Expand?
options: selectielijstKlasseChoices,
width: "180px",
},
{
name: "hoofdzaak",
filterValue: searchParams.get("archiefnominatie") || "",
type: "string",
// valueLookup: // TODO: Expand?
options: [
{ label: "Blijvend bewaren", value: "blijvend_bewaren" },
{ label: "Vernietigen", value: "vernietigen" },
],
width: "180px",
},
{
Expand All @@ -185,6 +178,13 @@ export function useFields(
{ value: "false", label: "Nee" },
],
},
{
name: "hoofdzaak",
active: false,
type: "string",
// valueLookup: // TODO: Expand?
width: "180px",
},
...(extraFields || []),
];

Expand Down

0 comments on commit 3398cb3

Please sign in to comment.