Skip to content

fix(ui): render SQL as workflow code blocks - #585

Merged
zxuexingzhijie merged 1 commit into
spring-ai-alibaba:mainfrom
zxuexingzhijie:codex/timeline-code-blocks
Jul 27, 2026
Merged

zxuexingzhijie merged 1 commit into
spring-ai-alibaba:mainfrom
zxuexingzhijie:codex/timeline-code-blocks

Conversation

@zxuexingzhijie

Copy link
Copy Markdown
Collaborator

What changed

  • split mixed workflow output into consecutive text and typed-code segments
  • reuse the existing highlighted code renderer for SQL, Python, and JSON segments
  • add regression coverage for streamed SQL generation and SQL execution output

Root cause

One workflow step contains status text before and after its typed SQL events. The timeline only rendered a code block when every event in the step was a code type, so mixed TEXT -> SQL -> TEXT output was concatenated and displayed as plain text.

User impact

Generated and executed SQL now appears in a dedicated highlighted code block with preserved whitespace and horizontal scrolling, while the surrounding execution status remains normal text.

Validation

  • pnpm test:unit — 16 tests passed
  • pnpm build
  • ESLint on the changed Vue and TypeScript files
  • browser verification against the running local application: SQL generation and SQL execution both render as visible pre.tl-code blocks

@zxuexingzhijie
zxuexingzhijie marked this pull request as ready for review July 27, 2026 05:23
@zxuexingzhijie
zxuexingzhijie merged commit 4027d44 into spring-ai-alibaba:main Jul 27, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant