Skip to content

Commit

Permalink
feat(table,empty,skeleton): issues/10 add table component (#346)
Browse files Browse the repository at this point in the history
* table, convenience wrapper for pf tables
* tableEmpty, convenience wrapper for platform comp, empty state
* tableSkeleton, wrapper for skeleton table, allow variants
* locales, i18n, table strings
* styles, correct pf table behavior on small screens, no border fix
  • Loading branch information
cdcabrera committed Jul 24, 2020
1 parent 7028d96 commit 9869c86
Show file tree
Hide file tree
Showing 13 changed files with 1,297 additions and 0 deletions.
6 changes: 6 additions & 0 deletions public/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
"thresholdSocketsLegendTooltip_OpenShift": "Maximum capacity, as CPU sockets, based on total {{product}} subscriptions in this account.",
"tooltipSummary": "Your subscription data facets. With one level of column and row headers."
},
"curiosity-inventory": {
"tableAriaLabel": "Subscription Watch systems inventory table.",
"tableSummary": "A generated table with one level of column headers.",
"tableEmptyInventoryTitle": "No results found",
"tableEmptyInventoryMessage": "No results match the filter criteria. Remove filters or clear all filters to show results."
},
"curiosity-toolbar": {
"slaCategory": "SLA",
"slaNone": "No SLA",
Expand Down
21 changes: 21 additions & 0 deletions src/components/i18n/__tests__/__snapshots__/i18n.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,27 @@ Array [
},
],
},
Object {
"file": "./src/components/table/table.js",
"keys": Array [
Object {
"key": "curiosity-inventory.tableEmptyInventoryTitle",
"match": "t('curiosity-inventory.tableEmptyInventoryTitle')",
},
Object {
"key": "curiosity-inventory.tableEmptyInventoryMessage",
"match": "t('curiosity-inventory.tableEmptyInventoryMessage')",
},
Object {
"key": "curiosity-inventory.tableAriaLabel",
"match": "t('curiosity-inventory.tableAriaLabel')",
},
Object {
"key": "curiosity-inventory.tableSummary",
"match": "t('curiosity-inventory.tableSummary')",
},
],
},
Object {
"file": "./src/components/toolbar/toolbar.js",
"keys": Array [
Expand Down
Loading

0 comments on commit 9869c86

Please sign in to comment.