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

Dashboards #108

Open
redransil opened this issue Jun 28, 2023 · 0 comments
Open

Dashboards #108

redransil opened this issue Jun 28, 2023 · 0 comments

Comments

@redransil
Copy link
Contributor

Define dashboard.co2.storage/

The CID is a dashboard type with the following attributes:

{
Image: header image for the dashboard
Title: title to display on top of the dashboard
Description: message to go under the title
Dashboard_version: “1.0.0”
Display_elements: [
{
Display_type: “table”
Type: CID of data type
Indexing_chain: [array of indexing chains to query for records]
Filter: [
{field: name of field
Value: value of this field}
]
To_display: [array of field names of this data type, used as columns]
},...
]
}

Render the web page by:

  • Displaying the image at the top of the page
  • Displaying the page title in a large font
  • Display the description in a smaller font under the title
  • Iterate through Display_elements. Every element in this array becomes its own table
    -- Search for assets that meet the type
    -- Search every chain listed in the indexing_chain array (in the future, may clone templates between chains)
    -- Search for all assets of the given type
  • Filter assets to display, by iterating through the objects in the filter array
  • Build the table
  • For the assets we’ve selected, each one should have all of the fields in the to_display array
  • Table columns are the fields in to_display
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant