mirror of
https://github.com/eliasstepanik/core.git
synced 2026-01-11 21:28:29 +00:00
* Feat: change space assignment from statement to episode * feat: add default spaces and improve integration, space tools discovery in MCP * feat: change spaces to episode based * Feat: take multiple spaceIds while ingesting * Feat: modify mcp tool descriptions, add spaceId in mcp url * feat: add copy * bump: new version 0.1.24 --------- Co-authored-by: Manoj <saimanoj58@gmail.com>
27 lines
567 B
TypeScript
27 lines
567 B
TypeScript
import { formatString } from "~/lib/utils";
|
|
|
|
export const getStatusColor = (status: string) => {
|
|
switch (status) {
|
|
case "PROCESSING":
|
|
return "bg-blue-800";
|
|
case "PENDING":
|
|
return "bg-warning";
|
|
case "COMPLETED":
|
|
return "bg-success";
|
|
case "FAILED":
|
|
return "bg-destructive";
|
|
case "CANCELLED":
|
|
return "bg-gray-800";
|
|
default:
|
|
return "bg-gray-800";
|
|
}
|
|
};
|
|
|
|
export function getStatusValue(status: string) {
|
|
if (status === "PENDING") {
|
|
return formatString("In Queue");
|
|
}
|
|
|
|
return formatString(status);
|
|
}
|