-
as
-
{getCurrentUsername()}
+ {/* User strip */}
+
+ usr:
+ {getCurrentUsername()}
{/* New channel */}
-
diff --git a/ui/colony/src/components/ComposeBox.tsx b/ui/colony/src/components/ComposeBox.tsx
index da4d878..5fb0f40 100644
--- a/ui/colony/src/components/ComposeBox.tsx
+++ b/ui/colony/src/components/ComposeBox.tsx
@@ -1,8 +1,6 @@
import { useState } from "react";
import type { MessageType } from "@/types/MessageType";
import { postMessage } from "@/api";
-import { Button } from "@/components/ui/button";
-import { Input } from "@/components/ui/input";
import { cn } from "@/lib/utils";
interface Props {
@@ -12,12 +10,12 @@ interface Props {
onMessageSent: () => void;
}
-const MSG_TYPES: { value: MessageType; label: string }[] = [
- { value: "text", label: "T" },
- { value: "code", label: "C" },
- { value: "result", label: "R" },
- { value: "error", label: "E" },
- { value: "plan", label: "P" },
+const MSG_TYPES: { value: MessageType; label: string; color: string }[] = [
+ { value: "text", label: "TXT", color: "" },
+ { value: "code", label: "COD", color: "text-[var(--color-msg-code)]" },
+ { value: "result", label: "RES", color: "text-[var(--color-msg-result)]" },
+ { value: "error", label: "ERR", color: "text-[var(--color-msg-error)]" },
+ { value: "plan", label: "PLN", color: "text-[var(--color-msg-plan)]" },
];
export function ComposeBox({
@@ -49,29 +47,34 @@ export function ComposeBox({
}
return (
-
+
{replyTo && (
-
-
^ #{replyTo.slice(0, 8)}
-