fixed dashboard content
This commit is contained in:
parent
cb7ed7cf51
commit
0d55e40158
3 changed files with 21 additions and 5 deletions
|
|
@ -417,7 +417,10 @@ class RendererHtml(BaseRenderer):
|
|||
|
||||
if htmlParts:
|
||||
return '\n'.join(htmlParts)
|
||||
return self._renderJsonParagraph(sectionData, styles)
|
||||
# If sectionData is not a list, treat it as a dict
|
||||
if isinstance(sectionData, dict):
|
||||
return self._renderJsonParagraph(sectionData, styles)
|
||||
return ""
|
||||
elif sectionType == "code_block":
|
||||
# Work directly with elements like other renderers
|
||||
if isinstance(sectionData, list) and sectionData:
|
||||
|
|
@ -451,7 +454,9 @@ class RendererHtml(BaseRenderer):
|
|||
if htmlParts:
|
||||
return '\n'.join(htmlParts)
|
||||
# Fallback to paragraph for unknown types
|
||||
return self._renderJsonParagraph(sectionData, styles)
|
||||
if isinstance(sectionData, dict):
|
||||
return self._renderJsonParagraph(sectionData, styles)
|
||||
return ""
|
||||
|
||||
except Exception as e:
|
||||
self.logger.warning(f"Error rendering section {self._getSectionId(section)}: {str(e)}")
|
||||
|
|
|
|||
|
|
@ -162,7 +162,13 @@ class RendererMarkdown(BaseRenderer):
|
|||
return self._renderJsonHeading(element)
|
||||
return ""
|
||||
elif sectionType == "paragraph":
|
||||
return self._renderJsonParagraph(sectionData)
|
||||
# Work directly with elements like other renderers
|
||||
if isinstance(sectionData, list) and sectionData:
|
||||
element = sectionData[0] if isinstance(sectionData[0], dict) else {}
|
||||
return self._renderJsonParagraph(element)
|
||||
elif isinstance(sectionData, dict):
|
||||
return self._renderJsonParagraph(sectionData)
|
||||
return ""
|
||||
elif sectionType == "code_block":
|
||||
# Work directly with elements like other renderers
|
||||
if isinstance(sectionData, list) and sectionData:
|
||||
|
|
@ -177,7 +183,12 @@ class RendererMarkdown(BaseRenderer):
|
|||
return ""
|
||||
else:
|
||||
# Fallback to paragraph for unknown types
|
||||
return self._renderJsonParagraph(sectionData)
|
||||
if isinstance(sectionData, list) and sectionData:
|
||||
element = sectionData[0] if isinstance(sectionData[0], dict) else {}
|
||||
return self._renderJsonParagraph(element)
|
||||
elif isinstance(sectionData, dict):
|
||||
return self._renderJsonParagraph(sectionData)
|
||||
return ""
|
||||
|
||||
except Exception as e:
|
||||
self.logger.warning(f"Error rendering section {self._getSectionId(section)}: {str(e)}")
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ class ProgressLogger:
|
|||
return None
|
||||
|
||||
op = self.activeOperations[operationId]
|
||||
message = f"Service {op['service']}"
|
||||
message = f"{op['service']}"
|
||||
|
||||
workflow = self.services.workflow
|
||||
if not workflow:
|
||||
|
|
|
|||
Loading…
Reference in a new issue