ProjectActionAdapter

Unpublished development API. This package is under development and is not available as a published release.

Project commands the application implements. Supplying a command adds its built-in control. The list shows the result at once and calls the command; the application then updates projects. A rejected command puts the row back as supplied.

import type { ProjectActionAdapter } from '@threadplane/react/chat';

Declaration

export interface ProjectActionAdapter  {
  readonly create?: (name: string) => RowActionResult;
  readonly delete?: (projectId: string) => RowActionResult;
  readonly rename?: (projectId: string, name: string) => RowActionResult;
}

Members

create

Called with the trimmed, nonblank name typed into the built-in new-project editor.

readonly create?: (name: string) => RowActionResult;

delete

Called after the person confirms; the row is hidden while it runs.

readonly delete?: (projectId: string) => RowActionResult;

rename

Called with the trimmed, nonblank name; the row shows it while it runs.

readonly rename?: (projectId: string, name: string) => RowActionResult;