Add an expandable metadata grid

This commit is contained in:
Kylian Schmidt
2025-07-29 10:31:35 +02:00
parent f3adbe49fa
commit bcb083bbb9
10 changed files with 430 additions and 269 deletions
-28
View File
@@ -1,28 +0,0 @@
# Example folder metadata file
# This file should be named "meta.yaml" in a folder containing plots
# Folder-level metadata that applies to all plots in this folder
title: "Analysis Results"
description: "ttbar"
experiment: "CMS"
dataset: "Run2_2016_nano_v9"
analysis_type: "ttbar_analysis"
# Analysis parameters that apply to all plots in this folder
parameters:
luminosity: "35.9 fb^-1"
center_of_mass_energy: "13 TeV"
selection: "baseline"
# Tags for categorization
tags:
- "ttbar"
- "run2"
- "cms"
- "analysis"
# Custom styling or display options
display:
highlight: true
category: "primary_results"
order_priority: 1
-19
View File
@@ -1,19 +0,0 @@
{
"title": "Sample Research Project",
"description": "This folder contains plots and analysis results for our sample research project studying data visualization techniques.",
"author": "Research Team",
"created": "2025-01-15",
"project_id": "PROJ-2025-001",
"status": "Active",
"tags": ["data-science", "visualization", "research"],
"collaborators": ["Alice Smith", "Bob Johnson", "Carol Davis"],
"funding": {
"agency": "National Science Foundation",
"grant_number": "NSF-2025-12345",
"amount": "$150,000"
},
"contact": "research-team@example.com",
"repository": "https://github.com/example/sample-project",
"documentation": "https://docs.example.com/sample-project",
"notes": "This is a long note that demonstrates how the system handles lengthy text content. It should be truncated in the display and allow users to expand it to see the full content. This helps keep the interface clean while still providing access to detailed information when needed."
}
-22
View File
@@ -1,22 +0,0 @@
{
"title": "Specific Plot Analysis",
"description": "This metadata overrides folder metadata for this specific plot",
"plot_type": "histogram",
"variables": {
"x_axis": "invariant_mass",
"y_axis": "events",
"units": "GeV"
},
"selection": "signal_region",
"statistics": {
"entries": 125000,
"mean": 125.3,
"std_dev": 2.1
},
"tags": ["signal", "mass_peak", "important"],
"display": {
"highlight": true,
"featured": true,
"order_priority": 0
}
}