Skip to content

Commit

Permalink
Merge pull request #199 from connor-leech/pattern-import
Browse files Browse the repository at this point in the history
docs(pattern): import pattern
  • Loading branch information
connor-leech authored Sep 5, 2019
2 parents 2220a90 + 50438e1 commit 9c5ee78
Show file tree
Hide file tree
Showing 26 changed files with 82 additions and 8 deletions.
10 changes: 6 additions & 4 deletions src/data/nav-items.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,14 @@
path: /experimental/overview
- title: Chatbots
path: /experimental/chatbot/overview
- title: Exporting pattern
path: /experimental/exporting-pattern
- title: Delete pattern
path: /experimental/delete-pattern
- title: Export pattern
path: /experimental/export-pattern
- title: Import pattern
path: /experimental/import-pattern
- title: Navigation pattern
path: /experimental/navigation-pattern
- title: Deleting pattern
path: /experimental/deleting-pattern
- title: Resources
pages:
- path: /resources
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Deleting pattern
title: Delete pattern
---

### Deleting is a destructive action. To protect user resources, your product should support ‘undo’ where possible. If ‘undo’ support is impossible, request user confirmation before deleting a resource or asset.
Expand All @@ -10,7 +10,7 @@ Experimental

#### Maintainers:

[Vikki Paterson](https://github.ibm.com/VICTORIA)
[Vikki Paterson](https://github.com/vikkipaterson)

<AnchorLinks>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Exporting pattern
title: Export pattern
---

### Exporting a resource saves data in a different format, external to the system.
Expand All @@ -10,7 +10,7 @@ Experimental

#### Maintainers:

[Vikki Paterson](https://github.ibm.com/VICTORIA)
[Vikki Paterson](https://github.com/vikkipaterson)

<AnchorLinks>

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
72 changes: 72 additions & 0 deletions src/pages/experimental/import-pattern/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
---
title: Import pattern
---

<PageDescription>

The import action transfers data or objects from an external source into a system.

</PageDescription>

#### Status:

[Experimental](experimental/about)

#### Maintainers:

[Vikki Paterson](https://github.com/vikkipaterson)




![Example of an import modal in context](/images/0.5.png)

<Caption>Example of an import modal in context</Caption>

## Choose a file

Wherever possible there should be a drag and drop zone. Use a file drop component and offer the option to browse locally to select a file. Note that file selection should be restricted to allowed file types.

<Row>
<Column colLg={8}>

![Example of an import modal](/images/2.png)

<Caption>Example of an import modal</Caption>

</Column>
</Row>

<Row>
<Column colLg={8}>

![Example of drag and drop file import](/images/3.png)

<Caption>Example of drag and drop file import</Caption>

</Column>
</Row>

<Row>
<Column colLg={8}>

![Example of loaded files in the import modal](/images/4.png)

<Caption>Example of loaded files in the import modal</Caption>

</Column>
</Row>

## Import from a URL

If your product supports importing from a URL, use this method.

<Row>
<Column colLg={8}>

![Example of importing with a URL](images/5.png)

<Caption>Example of importing with a URL</Caption>

</Column>
</Row>

1 comment on commit 9c5ee78

@vercel
Copy link

@vercel vercel bot commented on 9c5ee78 Sep 5, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.