Open a task in its own modal from its title, with status moves, and edit its brief in the code editor
The modal shows who has the task and where, who added it and when it moved, its files and notes (each note naming its bot). The task form's fields all show their labels. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
import Button from "@moduletrace/twui/layout/Button";
|
||||
|
||||
type Props = {
|
||||
title: string;
|
||||
value: string;
|
||||
disabled?: boolean;
|
||||
onMove: (status: string) => void;
|
||||
};
|
||||
|
||||
/**
|
||||
* Moves a task to one status: To do, Doing or Done.
|
||||
*/
|
||||
export default function TaskStatusMoveButton({ title, value, disabled, onMove }: Props) {
|
||||
return (
|
||||
<Button
|
||||
title={`Mark it ${title.toLowerCase()}`}
|
||||
type="button"
|
||||
variant="ghost"
|
||||
color="gray"
|
||||
size="small"
|
||||
disabled={disabled}
|
||||
onClick={() => onMove(value)}
|
||||
className="px-1.5! text-[12px]"
|
||||
>
|
||||
{title}
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user