Skip to content

Instantly share code, notes, and snippets.

@mmcgraw73
Last active May 20, 2020 13:19
Show Gist options
  • Save mmcgraw73/bab3a651d023d9645e710bc490611d0e to your computer and use it in GitHub Desktop.
Save mmcgraw73/bab3a651d023d9645e710bc490611d0e to your computer and use it in GitHub Desktop.
How will the data for the BaseDetail component data be stored/delivered to frontend?

Base Detail component currently expects the data as an object, is this expectation realistic?

{
  "header": "Detail Description Header Text",
  "description": "Zombie ipsum brains reversus ab cerebellum viral inferno, brein nam rick mend grimes malum cerveau cerebro.",
  "content": [
    "De carne cerebro lumbering animata cervello corpora quaeritis. Summus thalamus brains sit​​, morbo basal ganglia vel maleficia? De braaaiiiins apocalypsi gorger omero prefrontal cortex undead survivor fornix dictum mauris.",
    "Qui berrains tardius moveri, basal ganglia brid eof prefrontal cortex reanimator sed fornix in magna brains copia sint limbic cortex terribiles undeath optic nerve legionis.",
    "Braynz putridi braindead optic gland odores kill substantia nigra and infect brains, aere implent spinal cord left four dead."
  ],
  "linkheader": "Learn More in the support center",
  "links": [
    {
      "text": "Sample link to support article",
      "href": "https://www.gotothisplaceforthesupporttext.com"
    },
    {
      "text": "Sample link to another support article",
      "href": "https://www.gotothisplacefortheothersupporttext.com"
    }
  ]
}   
{
"header": "Detail Description Header Text",
"description": "Zombie ipsum brains reversus ab cerebellum viral inferno, brein nam rick mend grimes malum cerveau cerebro.",
"content": [
"De carne cerebro lumbering animata cervello corpora quaeritis. Summus thalamus brains sit​​, morbo basal ganglia vel maleficia? De braaaiiiins apocalypsi gorger omero prefrontal cortex undead survivor fornix dictum mauris.",
"Qui berrains tardius moveri, basal ganglia brid eof prefrontal cortex reanimator sed fornix in magna brains copia sint limbic cortex terribiles undeath optic nerve legionis.",
"Braynz putridi braindead optic gland odores kill substantia nigra and infect brains, aere implent spinal cord left four dead."
],
"linkheader": "Learn More in the support center",
"links": [
{
"text": "Sample link to support article",
"href": "https://www.gotothisplaceforthesupporttext.com"
},
{
"text": "Sample link to another support article",
"href": "https://www.gotothisplacefortheothersupporttext.com"
}
]
}
@mmcgraw73
Copy link
Author

@esparkman commented in slack:
I think the most logical place to put this information is inside the report_definitions table, in a new column. I know that PSQL can handle JSONB values in the columns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment