Skip to content

Conversation

@aaazzam
Copy link
Collaborator

@aaazzam aaazzam commented Dec 11, 2025

Adds a RichArtifact type that renders HTML/JS in a sandboxed iframe. Users can create interactive charts, visualizations, or custom HTML as artifacts.

Release Order

graphs#701
    ↓
prefect-ui-library#3109 (bump @prefecthq/graphs)
    ↓
prefect (this PR) — bump @prefecthq/prefect-ui-library after ui-library releases

Depends on: PrefectHQ/prefect-ui-library#3109 — merge and release ui-library first, then bump the dependency here.

Python SDK

  • RichArtifact class with html, sandbox, and csp fields
  • create_rich_artifact() / acreate_rich_artifact() helpers
  • Default sandbox: allow-scripts only (JS isolated from parent origin)

Usage

from prefect.artifacts import create_rich_artifact

create_rich_artifact(
    html="<html><body><script src='https://cdn.jsdelivr.net/npm/chart.js'></script>...</body></html>",
    key="my-chart",
)

🤖 Generated with Claude Code

aaazzam and others added 2 commits December 11, 2025 07:00
Add a new artifact type that renders HTML/JS in a sandboxed iframe.

- Add RichArtifact class with html, sandbox, and csp fields
- Add create_rich_artifact() and acreate_rich_artifact() helpers
- Default sandbox is allow-scripts only (JS runs but isolated from parent)
- Add tests for RichArtifact

Depends on: PrefectHQ/prefect-ui-library#3109

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@codspeed-hq
Copy link

codspeed-hq bot commented Dec 11, 2025

CodSpeed Performance Report

Merging #19726 will not alter performance

Comparing feat/rich-artifact-type (fc59c82) with main (3a423d0)

Summary

✅ 2 untouched

@aaazzam aaazzam requested a review from chrisguidry as a code owner December 14, 2025 03:42
aaazzam and others added 19 commits December 13, 2025 23:26
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected]>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected]>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected]>
…g (OSS-7263) (#19786)

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected]>
…19787)

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected]>
…19785)

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected]>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected]>
…9788)

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected]>
…#19790)

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected]>
…19792)

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Nate Nowack <[email protected]>
…ine chart (#19793)

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected]>
devin-ai-integration bot and others added 14 commits December 24, 2025 09:51
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected]>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected]>
…19972)

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected]>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected]>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected]>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected]>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected]>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected]>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected]>
…NG (#19980)

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected]>
…n wizard (#19983)

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected]>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected]>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected]>
@github-actions
Copy link
Contributor

This pull request is stale because it has been open 14 days with no activity. To keep this pull request open remove stale label or comment.

devin-ai-integration bot and others added 6 commits December 29, 2025 09:08
…yments tab (#19979)

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected]>
Add a new artifact type that renders HTML/JS in a sandboxed iframe.

- Add RichArtifact class with html, sandbox, and csp fields
- Add create_rich_artifact() and acreate_rich_artifact() helpers
- Default sandbox is allow-scripts only (JS runs but isolated from parent)
- Add tests for RichArtifact

Depends on: PrefectHQ/prefect-ui-library#3109

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@github-actions
Copy link
Contributor

This pull request is stale because it has been open 14 days with no activity. To keep this pull request open remove stale label or comment.

@github-actions
Copy link
Contributor

This pull request was closed because it has been stale for 14 days with no activity. If this pull request is important or you have more to add feel free to re-open it.

@github-actions github-actions bot closed this Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.