Skip to content

Commit 229adf3

Browse files
committed
better naming of cell_ to action or workspace
1 parent 06929df commit 229adf3

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

src/processors/gridsetProcessor.ts

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -725,15 +725,24 @@ class GridsetProcessor extends BaseProcessor {
725725
// Detect plugin cell type (Workspace, LiveCell, AutoContent)
726726
const pluginMetadata = detectPluginCellType(content);
727727

728-
// Default labels for prediction cells so they don't render blank
728+
// Friendly labels for workspace/prediction cells when captions are missing
729+
if (pluginMetadata.cellType === Grid3CellType.Workspace) {
730+
if (!label || label.startsWith('Cell_')) {
731+
label =
732+
pluginMetadata.displayName ||
733+
pluginMetadata.subType ||
734+
pluginMetadata.pluginId ||
735+
'Workspace';
736+
}
737+
}
738+
729739
if (
730740
pluginMetadata.cellType === Grid3CellType.AutoContent &&
731741
pluginMetadata.autoContentType === 'Prediction'
732742
) {
733743
predictionCellCounter += 1;
734-
if (!label) {
735-
label = `Prediction ${predictionCellCounter}`;
736-
}
744+
// Always surface a friendly label for predictions even if a placeholder exists
745+
label = `Prediction ${predictionCellCounter}`;
737746
}
738747

739748
// Parse all command types from Grid3 and create semantic actions

0 commit comments

Comments
 (0)