-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels