diff --git a/pkgs/webview-ui/app/src/Form/form/index.tsx b/pkgs/webview-ui/app/src/Form/form/index.tsx index 3f0df30e3..aad823a6f 100644 --- a/pkgs/webview-ui/app/src/Form/form/index.tsx +++ b/pkgs/webview-ui/app/src/Form/form/index.tsx @@ -35,6 +35,8 @@ import { import cx from "classnames"; import { Label } from "../base/label"; import { SelectInput } from "../fields/Select"; +import { Button } from "@/src/components/button"; +import Icon from "@/src/components/icon"; function generateDefaults(schema: JSONSchema7): unknown { switch (schema.type) { @@ -385,15 +387,25 @@ export function ListValueDisplay(
{props.children}
- - - + + +
@@ -641,7 +653,14 @@ export function ArrayFields( }} // Button for adding new items components={{ - before: , + before: ( + + ), }} // Add the new item to the FieldArray handleSubmit={(values, event) => { @@ -827,8 +846,10 @@ export function ObjectFields( {key} - + + ), }} diff --git a/pkgs/webview-ui/app/src/components/BackButton.tsx b/pkgs/webview-ui/app/src/components/BackButton.tsx index 97acfed46..5db02fb5f 100644 --- a/pkgs/webview-ui/app/src/components/BackButton.tsx +++ b/pkgs/webview-ui/app/src/components/BackButton.tsx @@ -9,7 +9,7 @@ export const BackButton = () => { variant="light" class="w-fit" onClick={() => navigate(-1)} - startIcon={} + startIcon={} > ); }; diff --git a/pkgs/webview-ui/app/src/components/MachineListItem.tsx b/pkgs/webview-ui/app/src/components/MachineListItem.tsx index ba8f31e8a..0b60f7cfc 100644 --- a/pkgs/webview-ui/app/src/components/MachineListItem.tsx +++ b/pkgs/webview-ui/app/src/components/MachineListItem.tsx @@ -5,6 +5,7 @@ import { activeURI } from "../App"; import toast from "solid-toast"; import { A, useNavigate } from "@solidjs/router"; import { RndThumbnail } from "./noiseThumbnail"; +import Icon from "./icon"; type MachineDetails = SuccessQuery<"list_inventory_machines">["data"][string]; @@ -138,7 +139,7 @@ export const MachineListItem = (props: MachineListItemProps) => {
more_vert} + label={} >
@@ -761,41 +775,38 @@ function WifiModule(props: MachineWifiProps) { /> )} - + )} - + {
- +
} diff --git a/pkgs/webview-ui/app/src/routes/machines/list.tsx b/pkgs/webview-ui/app/src/routes/machines/list.tsx index e7c849f41..d4a5f706a 100644 --- a/pkgs/webview-ui/app/src/routes/machines/list.tsx +++ b/pkgs/webview-ui/app/src/routes/machines/list.tsx @@ -9,6 +9,8 @@ import { useQueryClient, } from "@tanstack/solid-query"; import { useNavigate } from "@solidjs/router"; +import { Button } from "@/src/components/button"; +import Icon from "@/src/components/icon"; type MachinesModel = Extract< OperationResponse<"list_inventory_machines">, @@ -80,14 +82,18 @@ export const MachineListView: Component = () => {
- +
- +
@@ -117,12 +123,13 @@ export const MachineListView: Component = () => { No machines defined yet. Click below to define one. - +
diff --git a/pkgs/webview-ui/app/src/routes/modules/details.tsx b/pkgs/webview-ui/app/src/routes/modules/details.tsx index 7db0cc290..b814aab21 100644 --- a/pkgs/webview-ui/app/src/routes/modules/details.tsx +++ b/pkgs/webview-ui/app/src/routes/modules/details.tsx @@ -25,6 +25,8 @@ import { SubmitHandler, } from "@modular-forms/solid"; import { DynForm } from "@/src/Form/form"; +import { Button } from "@/src/components/button"; +import Icon from "@/src/components/icon"; export const ModuleDetails = () => { const params = useParams(); @@ -116,10 +118,9 @@ const Details = (props: DetailsProps) => { {props.data.readme}
- + {/* Add -> Select (required) roles, assign Machine */}
@@ -192,7 +193,7 @@ export const ModuleForm = (props: { id: string }) => { handleSubmit={handleSubmit} schema={schema} components={{ - after: , + after: , }} /> diff --git a/pkgs/webview-ui/app/src/routes/welcome/index.tsx b/pkgs/webview-ui/app/src/routes/welcome/index.tsx index 9e7ed6213..0c4474f0f 100644 --- a/pkgs/webview-ui/app/src/routes/welcome/index.tsx +++ b/pkgs/webview-ui/app/src/routes/welcome/index.tsx @@ -1,4 +1,5 @@ import { setActiveURI } from "@/src/App"; +import { Button } from "@/src/components/button"; import { registerClan } from "@/src/hooks"; import { useNavigate } from "@solidjs/router"; @@ -11,14 +12,12 @@ export const Welcome = () => {

Welcome to Clan

Own the services you use.

- - +