Skip to content

Commit

Permalink
Merge pull request #2166 from Teradata/alert-overview-add
Browse files Browse the repository at this point in the history
Add initial Alert overview document - Adam
  • Loading branch information
knapsack-cloud[bot] authored May 30, 2024
2 parents 6efa96b + 33c2964 commit fffdb2c
Show file tree
Hide file tree
Showing 44 changed files with 777 additions and 2 deletions.
11 changes: 11 additions & 0 deletions apps/knapsack/data/blocks/block.0rZ0OosspG.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"id": "0rZ0OosspG",
"data": {
"md": [
"# Anatomy\nAn alert is composed of (up to) four elements:\n- Status icon\n- Title\n- Description (optional)\n- Call to action button\n- Icon"
],
"columns": 1
},
"blockType": "markdown-block",
"size": "medium"
}
36 changes: 36 additions & 0 deletions apps/knapsack/data/blocks/block.0zquFzGyBA.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"id": "0zquFzGyBA",
"data": {
"content": {
"type": "doc",
"content": [
{
"type": "heading",
"attrs": {
"level": 2,
"textAlign": "left"
},
"content": [
{
"text": "Caution alerts",
"type": "text"
}
]
},
{
"type": "paragraph",
"attrs": {
"textAlign": "left"
},
"content": [
{
"text": "Use to indicate that a non-critical error has occurred",
"type": "text"
}
]
}
]
}
},
"blockType": "text-editor"
}
10 changes: 10 additions & 0 deletions apps/knapsack/data/blocks/block.1951-ccxBh.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"id": "1951-ccxBh",
"data": {
"md": [
"## Negative alerts\nUse to indicate that a critical or blocking error has occurred"
],
"columns": 1
},
"blockType": "markdown-block"
}
10 changes: 10 additions & 0 deletions apps/knapsack/data/blocks/block.3pS1ljDoD.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"id": "3pS1ljDoD",
"data": {
"md": [
"# Responsive design\nWhen expanding vertically, the elements within remain positioned as they were before expansion. They do not vertically center."
],
"columns": 1
},
"blockType": "markdown-block"
}
8 changes: 8 additions & 0 deletions apps/knapsack/data/blocks/block.A9-fak7l-z.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"id": "A9-fak7l-z",
"data": {
"md": ["## Informational alerts\nUse for general informational messages"],
"columns": 1
},
"blockType": "markdown-block"
}
10 changes: 10 additions & 0 deletions apps/knapsack/data/blocks/block.Bv0qhKCDXY.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"id": "Bv0qhKCDXY",
"data": {
"md": [
"## Positive alerts\nUse to indicate that a task or process has completed successfully"
],
"columns": 1
},
"blockType": "markdown-block"
}
5 changes: 5 additions & 0 deletions apps/knapsack/data/blocks/block.ChOAoD1GAW.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"id": "ChOAoD1GAW",
"data": {},
"blockType": "divider-block"
}
10 changes: 10 additions & 0 deletions apps/knapsack/data/blocks/block.DWYhXPGy7X.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"id": "DWYhXPGy7X",
"data": {
"md": [
"## Negative alerts\nUse to indicate that a critical or blocking error has occurred"
],
"columns": 1
},
"blockType": "markdown-block"
}
5 changes: 5 additions & 0 deletions apps/knapsack/data/blocks/block.Eu7gLbvJd.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"id": "Eu7gLbvJd",
"data": {},
"blockType": "divider-block"
}
36 changes: 36 additions & 0 deletions apps/knapsack/data/blocks/block.FUvMTxdOh8.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"id": "FUvMTxdOh8",
"data": {
"content": {
"type": "doc",
"content": [
{
"type": "heading",
"attrs": {
"level": 2,
"textAlign": "left"
},
"content": [
{
"text": "Caution alerts",
"type": "text"
}
]
},
{
"type": "paragraph",
"attrs": {
"textAlign": "left"
},
"content": [
{
"text": "Use to indicate that a non-critical error has occurred",
"type": "text"
}
]
}
]
}
},
"blockType": "text-editor"
}
20 changes: 20 additions & 0 deletions apps/knapsack/data/blocks/block.GkA7GAw-cW.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"id": "GkA7GAw-cW",
"data": {
"demoId": "s8Ci4Cd08W",
"demoSize": "landscape",
"patternId": "alert",
"templateId": "web-components-4qjJYWsUZi",
"hideControls": true,
"playgroundUi": {
"demoSize": "landscape",
"allowResizing": false,
"showSchemaForm": true,
"showCodeSnippet": false
},
"allowResizing": false,
"showSchemaForm": true,
"showCodeSnippet": false
},
"blockType": "pattern-template-block"
}
20 changes: 20 additions & 0 deletions apps/knapsack/data/blocks/block.HVzaIUeLad.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"id": "HVzaIUeLad",
"data": {
"demoId": "vmDFzhOhSn",
"templateId": "web-components-4qjJYWsUZi",
"hideControls": true,
"playgroundUi": {
"allowResizing": false,
"showSchemaForm": true,
"showCodeSnippet": false,
"demoSize": "landscape"
},
"allowResizing": false,
"showCodeSnippet": false,
"showSchemaForm": true,
"demoSize": "landscape",
"patternId": "alert"
},
"blockType": "pattern-template-block"
}
8 changes: 8 additions & 0 deletions apps/knapsack/data/blocks/block.Irv3QXCNsU.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"id": "Irv3QXCNsU",
"data": {
"md": ["## Informational alerts\nUse for general informational messages"],
"columns": 1
},
"blockType": "markdown-block"
}
20 changes: 20 additions & 0 deletions apps/knapsack/data/blocks/block.KB3Coqs2h.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"id": "KB3Coqs2h",
"data": {
"demoId": "CE5x5TaMa2",
"demoSize": "landscape",
"patternId": "alert",
"templateId": "web-components-4qjJYWsUZi",
"hideControls": true,
"playgroundUi": {
"demoSize": "landscape",
"allowResizing": false,
"showSchemaForm": true,
"showCodeSnippet": false
},
"allowResizing": false,
"showSchemaForm": true,
"showCodeSnippet": false
},
"blockType": "pattern-template-block"
}
52 changes: 52 additions & 0 deletions apps/knapsack/data/blocks/block.LBE3NyBRxu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"id": "LBE3NyBRxu",
"data": {
"guidelines": [
{
"id": "UL7Eim7XGc",
"type": "do",
"image": {
"src": "https://knapsack.imgix.net/site/covalent/alert-common-mistakes-overusing-title-correct-motenhycg7png",
"title": "Correct"
},
"content": {
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"text": "Lead with a short explanation of what's going on, and use the description to elaborate.",
"type": "text"
}
]
}
]
}
},
{
"id": "WaI0kcOUfY",
"type": "dont",
"image": {
"src": "https://knapsack.imgix.net/site/covalent/alert-common-mistakes-overusing-title-incorrect-edr3hzulecpng",
"title": "Incorrect"
},
"content": {
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"text": "Don't write a description in place of the title.",
"type": "text"
}
]
}
]
}
}
]
},
"blockType": "guidelines"
}
20 changes: 20 additions & 0 deletions apps/knapsack/data/blocks/block.NNtso0urVj.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"id": "NNtso0urVj",
"data": {
"demoId": "LATgTeg21H",
"demoSize": "landscape",
"patternId": "alert",
"templateId": "web-components-4qjJYWsUZi",
"hideControls": true,
"playgroundUi": {
"demoSize": "landscape",
"allowResizing": false,
"showSchemaForm": true,
"showCodeSnippet": false
},
"allowResizing": false,
"showSchemaForm": true,
"showCodeSnippet": false
},
"blockType": "pattern-template-block"
}
20 changes: 20 additions & 0 deletions apps/knapsack/data/blocks/block.Tg6b4c0IqE.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"id": "Tg6b4c0IqE",
"data": {
"demoId": "yf2q5F2Jyk",
"demoSize": "landscape",
"patternId": "alert",
"templateId": "web-components-4qjJYWsUZi",
"hideControls": true,
"playgroundUi": {
"demoSize": "landscape",
"allowResizing": false,
"showSchemaForm": true,
"showCodeSnippet": false
},
"allowResizing": false,
"showSchemaForm": true,
"showCodeSnippet": false
},
"blockType": "pattern-template-block"
}
10 changes: 10 additions & 0 deletions apps/knapsack/data/blocks/block.YlQCN5mV4X.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"id": "YlQCN5mV4X",
"data": {
"md": [
"# Page-level alerts\n- Use these for page-wide messaging\n- Provide a short alert title that describes the situation clearly and succinctly\n- If a longer message is required, it can be included within the alert description\n- Use an icon and color to indicate severity of the alert\n- A single-action text button or close icon can be placed inside of an alert"
],
"columns": 1
},
"blockType": "markdown-block"
}
52 changes: 52 additions & 0 deletions apps/knapsack/data/blocks/block.a6InsrLwTc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"id": "a6InsrLwTc",
"data": {
"guidelines": [
{
"id": "Xcd9B06M9R",
"type": "do",
"image": {
"src": "https://knapsack.imgix.net/site/covalent/alerts-responsive-design-correct-jthr4pynpng",
"title": "Correct"
},
"content": {
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"text": "Icon and buttons maintain their position relative to the top of the alert even if the content expands.",
"type": "text"
}
]
}
]
}
},
{
"id": "VJaLpVps9",
"type": "dont",
"image": {
"src": "https://knapsack.imgix.net/site/covalent/alerts-responsive-design-incorrect-8gsix3x5hpng",
"title": "Incorrect"
},
"content": {
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"text": "The icon and buttons should not vertically center when the alert grows in height.",
"type": "text"
}
]
}
]
}
}
]
},
"blockType": "guidelines"
}
14 changes: 14 additions & 0 deletions apps/knapsack/data/blocks/block.bKlWE2O54.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"id": "bKlWE2O54",
"data": {
"images": [
{
"src": "https://knapsack.imgix.net/site/covalent/alerts-anatomy-qzq-esibbdpng",
"caption": "alerts--anatomy.png"
}
],
"imageSize": "full"
},
"blockType": "image-block",
"size": "medium"
}
Loading

0 comments on commit fffdb2c

Please sign in to comment.