Components · Layout
LegacyTaskPanel
A read-only task details panel built on the thread panel; deprecated, because task details are a dialog with a description list.
Also called Task panel, TaskPanel
import { LegacyTaskPanel } from "@botiverse/raft-ui";LegacyTaskPanel lays out a task's details as a side panel: a header with the task's title, then fields, a status and meta rows, built on ThreadPanel. No product uses it, and it is removed in raft-ui 1.0. Task details are a centered Dialog instead, with the properties in a DescriptionList and the history in a collapsed Timeline; how they are assembled is in Composites, and the dialog's size is in Tasks.
When to use
| Situation | Use |
|---|---|
| A task's details | A Dialog, built as in Composites |
| A task's properties: Status, Assignee, Created by | DescriptionList |
| What happened to the task | A collapsed Timeline |
| A task in a list or on a board | TaskCard |
API
LegacyTaskPanelActions, LegacyTaskPanelBody, LegacyTaskPanelField, LegacyTaskPanelFieldLabel, LegacyTaskPanelFieldText, LegacyTaskPanelFieldTitle, LegacyTaskPanelHeader, LegacyTaskPanelIcon, LegacyTaskPanelMeta, LegacyTaskPanelMetaLabel, LegacyTaskPanelMetaRow, LegacyTaskPanelMetaValue
No consumer uses it; compose read-only task details from Dialog and DescriptionList. Removed in raft-ui 1.0.
| Prop | Type | Default |
|---|---|---|
| Allows you to replace the component's HTML element with a different tag, or compose it with another component. | ReactElement | ((props, state) => ReactElement) |
Also takes the attributes of its element.
LegacyTaskPanelRoot
No consumer uses it; compose read-only task details from Dialog and DescriptionList. Removed in raft-ui 1.0.
| Prop | Type | Default |
|---|---|---|
| Docs preview chrome. Shell hosts (Playground) leave this off. | boolean | false |
| Allows you to replace the component's HTML element with a different tag, or compose it with another component. | ReactElement | ((props, state) => ReactElement) |
Also takes the attributes of its element.
LegacyTaskPanelStatus, LegacyTaskPanelSection, LegacyTaskPanelTitle, LegacyTaskPanelTitleMeta
No consumer uses it; compose read-only task details from Dialog and DescriptionList. Removed in raft-ui 1.0.
| Prop | Type | Default |
|---|---|---|
| Allows you to replace the component's HTML element with a different tag, or compose it with another component. | ReactElement | ((props, state) => ReactElement) |
Also takes the attributes of its element.
Related
Changes
- 0.2.0 · FixedFixed conditional-hook rendering in
AppShellSidebarTriggerandLegacyTaskPanelRoot, and corrected sortable Composer drag-overlay mapping.