From 45802296b579672ccd4419bae3503b0fc2e1bb86 Mon Sep 17 00:00:00 2001
From: Claas
Date: Tue, 9 Jun 2026 13:24:58 +0000
Subject: [PATCH] Load organizations
---
client/src/routes/_app/organizations.tsx | 28 +++++++++++++++++++++---
1 file changed, 25 insertions(+), 3 deletions(-)
diff --git a/client/src/routes/_app/organizations.tsx b/client/src/routes/_app/organizations.tsx
index 6e4de55..8d47453 100644
--- a/client/src/routes/_app/organizations.tsx
+++ b/client/src/routes/_app/organizations.tsx
@@ -1,5 +1,5 @@
-import { createFileRoute, redirect } from "@tanstack/solid-router";
-import { createResource } from "solid-js";
+import { createFileRoute } from "@tanstack/solid-router";
+import { createResource, For, type VoidProps } from "solid-js";
import { Title } from "../../Title";
import { useUserContext } from "../../userContext";
@@ -14,6 +14,21 @@ type Organization = {
name: string;
};
+function Card(properties: VoidProps<{ organization: Organization }>) {
+ return (
+
+ {/* TODO accessbility, the whole content should not be wrapped in a link as that messes withs screen readers */}
+
+ Open
+ {properties.organization.name}
+
+
+ );
+}
+
function Organizations() {
const userContext = useUserContext();
@@ -32,7 +47,14 @@ function Organizations() {
return (
<>
Organizations
-
+ {/* TODO overflow, pagination, scrolling */}
+
+
+ Loading organizations...
}>
+ {(organization) => }
+
+
+
>
);
}
--
2.51.2