Skip to content

Commit

Permalink
docs: Standardize README badges for Labs components (#928)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesfan committed Dec 10, 2020
1 parent 18f0fc0 commit b3ee342
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions modules/_labs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Canvas Kit Labs

This is a group of unstable/work-in-progress components. Canvas Kit Labs is an incubator for new and
This is a group of work-in-progress components. Canvas Kit Labs is an incubator for new and
experimental components. Since we have a rather rigorous process for getting components in at a
production level, it can be valuable to make them available earlier while we continuously iterate on
the API/functionality. The Labs modules allow us to do that as needed.
Expand Down Expand Up @@ -36,7 +36,7 @@ ultimately performing a migration when components are promoted to a stable versi
## Creating a Canvas Kit Labs Module

1. Run `yarn create-module`
2. When asked `Is this an unstable component? [Y/n]`, enter `y` or `Y`.
2. When asked `What category should this component live in?`, select `Labs (beta)`.
3. Your new module will be generated in accordance with the file structure above. It will get a
package name of `@workday/canvas-kit-labs-<TARGET>-<COMPONENT>`.
4. If you had the storybook server running, you may need to restart it.
Expand All @@ -47,7 +47,7 @@ ultimately performing a migration when components are promoted to a stable versi
2. Change the package name in `package.json` to `@workday/canvas-kit-labs-<TARGET>-<COMPONENT>`
3. Add a warning to the README:
> <a href="https://github.com/Workday/canvas-kit/tree/master/modules/_labs/README.md">
> <img src="https://img.shields.io/badge/LABS-alpha-orange" alt="LABS: Alpha" />
> <img src="https://img.shields.io/badge/LABS-beta-orange" alt="LABS: Beta" />
> </a> This component is work in progress and currently in pre-release.
4. Update any necessary paths (links to storybook utils, tsconfig, etc.)
5. Change the storybook path to add a `Labs` prefix (e.g. `Labs/Menu/Default`)
Expand Down
2 changes: 1 addition & 1 deletion modules/_labs/breadcrumbs/react/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Canvas Kit React Breadcrumbs

<a href="https://github.com/Workday/canvas-kit/tree/master/modules/_labs/README.md">
<img src="https://img.shields.io/badge/LABS-alpha-orange" alt="LABS: Alpha" />
<img src="https://img.shields.io/badge/LABS-beta-orange" alt="LABS: Beta" />
</a> This component is work in progress and currently in pre-release.

Breadcrumbs provides navigation to previous levels of pages.
Expand Down
2 changes: 1 addition & 1 deletion modules/_labs/color-picker/react/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Canvas Kit React Color Picker

<a href="https://github.com/Workday/canvas-kit/tree/master/modules/_labs/README.md">
<img src="https://img.shields.io/badge/LABS-alpha-orange" alt="LABS: Alpha" />
<img src="https://img.shields.io/badge/LABS-beta-orange" alt="LABS: Beta" />
</a> This component is work in progress and currently in pre-release.

Color Picker is a popup for selecting a color.
Expand Down
2 changes: 1 addition & 1 deletion modules/_labs/combobox/react/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Canvas Kit Combobox

<a href="https://github.com/Workday/canvas-kit/tree/master/modules/_labs/README.md">
<img src="https://img.shields.io/badge/UNSTABLE-alpha-orange" alt="UNSTABLE: Alpha" />
<img src="https://img.shields.io/badge/LABS-beta-orange" alt="LABS: Beta" />
</a> This component is work in progress and currently in pre-release.

For a full suite of examples, have a look at the [Combobox Stories](./stories/stories.tsx).
Expand Down
2 changes: 1 addition & 1 deletion modules/_labs/core/react/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Canvas Kit Labs React Core

<a href="https://github.com/Workday/canvas-kit/tree/master/modules/_labs/README.md">
<img src="https://img.shields.io/badge/UNSTABLE-alpha-orange" alt="UNSTABLE: Alpha" />
<img src="https://img.shields.io/badge/LABS-beta-orange" alt="LABS: Beta" />
</a> This component is work in progress and currently in pre-release.

Includes:
Expand Down
2 changes: 1 addition & 1 deletion modules/_labs/drawer/react/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Canvas Kit React Drawer

<a href="https://github.com/Workday/canvas-kit/tree/master/modules/_labs/README.md">
<img src="https://img.shields.io/badge/LABS-alpha-orange" alt="LABS: Alpha" />
<img src="https://img.shields.io/badge/LABS-beta-orange" alt="LABS: Beta" />
</a> This component is work in progress and currently in pre-release.

## Installation
Expand Down
2 changes: 1 addition & 1 deletion modules/_labs/header/react/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Canvas Kit Labs React Header

<a href="https://github.com/Workday/canvas-kit/tree/master/modules/_labs/README.md">
<img src="https://img.shields.io/badge/UNSTABLE-alpha-orange" alt="UNSTABLE: Alpha" />
<img src="https://img.shields.io/badge/LABS-beta-orange" alt="LABS: Beta" />
</a> This component is work in progress and currently in pre-release.

A set of components to create headers for various Workday applications and sites.
Expand Down
2 changes: 1 addition & 1 deletion modules/_labs/menu/react/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Canvas Kit Labs React Menu

<a href="https://github.com/Workday/canvas-kit/tree/master/modules/_labs/README.md">
<img src="https://img.shields.io/badge/LABS-alpha-orange" alt="LABS: Alpha" />
<img src="https://img.shields.io/badge/LABS-beta-orange" alt="LABS: Beta" />
</a> This component is work in progress and currently in pre-release.

Creates an actions menu of clickable items.
Expand Down
2 changes: 1 addition & 1 deletion modules/_labs/pagination/react/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Canvas Kit React Pagination

<a href="https://github.com/Workday/canvas-kit/tree/master/modules/_labs/README.md">
<img src="https://img.shields.io/badge/LABS-alpha-orange" alt="LABS: Alpha" />
<img src="https://img.shields.io/badge/LABS-beta-orange" alt="LABS: Beta" />
</a> This component is work in progress and currently in pre-release.

Contains a component for a pagination bar and dispatches for page changes
Expand Down
2 changes: 1 addition & 1 deletion modules/_labs/select/react/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Canvas Kit Select (with Canvas-styled Menu)

<a href="https://github.com/Workday/canvas-kit/tree/master/modules/_labs/README.md">
<img src="https://img.shields.io/badge/LABS-alpha-orange" alt="LABS: Alpha" />
<img src="https://img.shields.io/badge/LABS-beta-orange" alt="LABS: Beta" />
</a> This component is work in progress and currently in pre-release.

A Canvas-styled Select with a Canvas-styled menu. This is a
Expand Down
2 changes: 1 addition & 1 deletion modules/_labs/side-panel/react/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Canvas Kit React Side Panel

<a href="https://github.com/Workday/canvas-kit/tree/master/modules/_labs/README.md">
<img src="https://img.shields.io/badge/LABS-alpha-orange" alt="LABS: Alpha" />
<img src="https://img.shields.io/badge/LABS-beta-orange" alt="LABS: Beta" />
</a> This component is work in progress and currently in pre-release.

A collapsable side panel
Expand Down
2 changes: 1 addition & 1 deletion modules/_labs/tabs/react/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Canvas Kit React Tabs

<a href="https://github.com/Workday/canvas-kit/tree/master/modules/_labs/README.md">
<img src="https://img.shields.io/badge/LABS-alpha-orange" alt="LABS: Alpha" />
<img src="https://img.shields.io/badge/LABS-beta-orange" alt="LABS: Beta" />
</a> This component is work in progress and currently in pre-release.

Composable tab components
Expand Down
4 changes: 2 additions & 2 deletions utils/create-component/createComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const questions = [
name: 'category',
message: 'What category should this component live in?:',
choices: [
'Labs (unstable)',
'Labs (beta)',
'Buttons',
'Containers',
'Indicators',
Expand Down Expand Up @@ -72,7 +72,7 @@ inquirer
const {name, category, targets} = answers;
const css = targets.includes('CSS');
const react = targets.includes('React');
const unstable = category == 'Labs (unstable)';
const unstable = category == 'Labs (beta)';
const componentPath = path.join(cwd, unstable ? `modules/_labs/${name}` : `modules/${name}`);

if (!fs.existsSync(componentPath)) {
Expand Down
2 changes: 1 addition & 1 deletion utils/create-component/templates/css/readme.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ${
unstable
? `
<a href="https://github.com/Workday/canvas-kit/tree/master/modules/_labs/README.md">
<img src="https://img.shields.io/badge/LABS-alpha-orange" alt="LABS: Alpha" />
<img src="https://img.shields.io/badge/LABS-beta-orange" alt="LABS: Beta" />
</a> This component is work in progress and currently in pre-release.
`
: ''
Expand Down
2 changes: 1 addition & 1 deletion utils/create-component/templates/react/readme.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ${
unstable
? `
<a href="https://github.com/Workday/canvas-kit/tree/master/modules/_labs/README.md">
<img src="https://img.shields.io/badge/LABS-alpha-orange" alt="LABS: Alpha" />
<img src="https://img.shields.io/badge/LABS-beta-orange" alt="LABS: Beta" />
</a> This component is work in progress and currently in pre-release.
`
: ''
Expand Down

0 comments on commit b3ee342

Please sign in to comment.