Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

### [14.0.1](https://github.com/eea/volto-plotlycharts/compare/14.0.0...14.0.1) - 8 April 2026
### [14.0.2](https://github.com/eea/volto-plotlycharts/compare/14.0.1...14.0.2) - 14 April 2026

#### :hammer_and_wrench: Others

- Show llm_summary for page indexers [Miu Razvan - [`9f91053`](https://github.com/eea/volto-plotlycharts/commit/9f910534235b7bb3778d2e1e3dfd51aa798a3c38)]
### [14.0.1](https://github.com/eea/volto-plotlycharts/compare/14.0.0...14.0.1) - 9 April 2026

#### :bug: Bug Fixes

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eeacms/volto-plotlycharts",
"version": "14.0.1",
"version": "14.0.2",
"description": "Plotly Charts and Editor integration for Volto",
"main": "src/index.js",
"author": "European Environment Agency: IDM2 A-Team",
Expand Down
1 change: 1 addition & 0 deletions src/Blocks/EmbedVisualization/View.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const View = (props) => {
download_button: true,
has_data_query_by_context: data.has_data_query_by_context ?? true,
with_sources: true,
llm_summary: data.properties?.llm_summary,
}}
/>
</div>
Expand Down
17 changes: 16 additions & 1 deletion src/PlotlyComponent/PlotlyComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,12 @@ function UnconnectedPlotlyComponent(props) {
onSelectBlock,
onDeleteBlock,
} = props;
const { height, vis_url, with_metadata_section = true } = props.data;
const {
height,
vis_url,
with_metadata_section = true,
llm_summary,
} = props.data;
const [initialized, setInitialized] = useState(false);
const [filtersState, setFiltersState] = useState([]);
const [autoscaleHeight, setAutoscaleHeight] = useState(null);
Expand Down Expand Up @@ -429,6 +434,16 @@ function UnconnectedPlotlyComponent(props) {
data={toolbarData}
provider_metadata={provider_metadata}
/>

{llm_summary && (
<div
className="llm-summary"
style={{ display: 'none' }}
aria-hidden="true"
>
{llm_summary}
</div>
)}
</div>
);
}
Expand Down
1 change: 1 addition & 0 deletions src/Views/VisualizationView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const VisualizationView = (props) => {
with_share: true,
properties: pickMetadata(props.content),
visualization: props.content.visualization,
llm_summary: props.content.llm_summary,
}}
/>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/Widgets/VisualizationViewWidget.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ function VisualizationViewWidget(props) {
with_share: true,
visualization: props.value,
properties: pickMetadata(props.content),
llm_summary: props.content.llm_summary,
}}
/>
);
Expand Down
Loading