diff --git a/.changeset/.changeset/rude-gifts-pay.md b/.changeset/rude-gifts-pay.md similarity index 100% rename from .changeset/.changeset/rude-gifts-pay.md rename to .changeset/rude-gifts-pay.md diff --git a/plugins/scaffolder-backend/src/scaffolder/actions/builtin/debug/log.ts b/plugins/scaffolder-backend/src/scaffolder/actions/builtin/debug/log.ts index fe16e4759c..3863623563 100644 --- a/plugins/scaffolder-backend/src/scaffolder/actions/builtin/debug/log.ts +++ b/plugins/scaffolder-backend/src/scaffolder/actions/builtin/debug/log.ts @@ -29,7 +29,7 @@ const examples = [ { action: id, id: 'write-debug-line', - name: 'Write log line', + name: 'Write "Hello Backstage!" log line', input: { message: 'Hello Backstage!', }, @@ -43,8 +43,8 @@ const examples = [ steps: [ { action: id, - id: 'write-debug-line', - name: 'Write log line', + id: 'write-workspace-directory', + name: 'List the workspace directory', input: { listWorkspace: true, }, diff --git a/plugins/scaffolder/src/components/ActionsPage/ActionsPage.tsx b/plugins/scaffolder/src/components/ActionsPage/ActionsPage.tsx index 234ba1951f..c079ee29b5 100644 --- a/plugins/scaffolder/src/components/ActionsPage/ActionsPage.tsx +++ b/plugins/scaffolder/src/components/ActionsPage/ActionsPage.tsx @@ -44,7 +44,6 @@ import { Header, Page, ErrorPage, - Table as BackstageTable, TableColumn, CodeSnippet, } from '@backstage/core-components'; @@ -76,28 +75,33 @@ const useStyles = makeStyles(theme => ({ }, })); -const examplesColumns: TableColumn[] = [ - { - title: 'Description', - field: 'description', - width: '20%', - }, - { - title: 'Example', - render: ({ example }) => { - return ( - - - - ); - }, - }, -]; +const ExamplesTable = (props: { examples: ActionExample[] }) => { + return ( + + {props.examples.map(example => { + return ( + + + + {example.description} + + + + + + + + + ); + })} + + ); +}; export const ActionsPage = () => { const api = useApi(scaffolderApiRef); @@ -219,19 +223,7 @@ export const ActionsPage = () => { - +