Add history window controls and expand taxonomy pack support
- add 3Y/5Y/10Y financial history filtering and reorganize normalization details UI - add new fiscal taxonomy surface/income bridge/KPI packs and update Rust taxonomy loading - auto-detect Homebrew SQLite for native `sqlite-vec` in local dev/e2e with docs and env guidance
This commit is contained in:
@@ -1,20 +1,25 @@
|
||||
import { cn } from '@/lib/utils';
|
||||
import type { TaskStatus } from '@/lib/types';
|
||||
import { cn } from "@/lib/utils";
|
||||
import type { TaskStatus } from "@/lib/types";
|
||||
|
||||
type StatusPillProps = {
|
||||
status: TaskStatus;
|
||||
};
|
||||
|
||||
const classes: Record<TaskStatus, string> = {
|
||||
queued: 'border-[#525861] bg-[#262a30] text-[#c0c7d0]',
|
||||
running: 'border-[#686e77] bg-[#2d3137] text-[#d8dde4]',
|
||||
completed: 'border-[#7b828c] bg-[#353a42] text-[#eef2f6]',
|
||||
failed: 'border-[#8f3d3d] bg-[#431616] text-[#ff9c9c]'
|
||||
queued: "border-[#525861] bg-[#262a30] text-[#c0c7d0]",
|
||||
running: "border-[#686e77] bg-[#2d3137] text-[#d8dde4]",
|
||||
completed: "border-[#7b828c] bg-[#353a42] text-[#eef2f6]",
|
||||
failed: "border-[#8f3d3d] bg-[#431616] text-[#ff9c9c]",
|
||||
};
|
||||
|
||||
export function StatusPill({ status }: StatusPillProps) {
|
||||
return (
|
||||
<span className={cn('inline-flex items-center rounded-full border px-2 py-1 text-xs uppercase tracking-[0.16em]', classes[status])}>
|
||||
<span
|
||||
className={cn(
|
||||
"inline-flex items-center rounded border px-2 py-1 text-xs",
|
||||
classes[status],
|
||||
)}
|
||||
>
|
||||
{status}
|
||||
</span>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user