deneb-viz / deneb-viz.github.io

Documentation website for the Deneb custom visual for Power BI.
https://deneb-viz.github.io
8 stars 6 forks source link

Data-drive and randomize community experts display #45

Closed dm-p closed 9 months ago

dm-p commented 9 months ago

I've been thinking about the growing list (which is a terrible problem to have) and its maintenance. Also, we're adding people in the order they apply, and I think it might be better to do what a lot of community-facing sites do and randomize the order so it's different each time the page is viewed. We're using MDX, so we should be able to manage this with suitable React directives.

Suggested approach:

  1. Move the pertinent data into an object array. Probably YAML or JSON, and ideally, a separate file in source control.
  2. In the support page, import the array and shuffle it.
  3. Display the output procedurally, i.e., generate the parent div element, and then, for each array entry, output the requisite child div and content for the export.
dm-p commented 9 months ago

Resolved in PR #47