Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(pattern): import pattern #199

Merged
merged 15 commits into from
Sep 5, 2019
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 dialog](/images/2.png)

<Caption>Example of an import dialog</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>