Add console devices UI

Add org admin device management, employee self-service enrollment,
posture views, and owner assignment across console routes.

Signed-off-by: Ludovic Vielle <ludovic@probo.com>
This commit is contained in:
Ludovic Vielle
2026-07-14 20:40:39 +02:00
parent d0dd87c6c7
commit 6dbbd70229
33 changed files with 3081 additions and 5 deletions

View File

@@ -42,10 +42,19 @@ export function PeopleSelectField<TFieldValues extends FieldValues = FieldValues
control,
...props
}: Props<TFieldValues>) {
const { __ } = useTranslate();
return (
<Field {...props}>
<Suspense
fallback={<Select variant="editor" loading placeholder="Loading..." />}
fallback={(
<Select
variant="editor"
loading
placeholder={__("Select an owner")}
className="w-full"
/>
)}
>
<PeopleSelectWithQuery<TFieldValues>
organizationId={organizationId}
@@ -81,7 +90,6 @@ function PeopleSelectWithQuery<TFieldValues extends FieldValues = FieldValues>(
placeholder={__("Select an owner")}
onValueChange={value =>
field.onChange(value === "__NONE__" ? null : value)}
key={people?.length.toString() ?? "0"}
{...field}
className="w-full"
value={field.value ?? (props.optional ? "__NONE__" : "")}