Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add toolbar to VSCode extension webview #109

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
Copilot wants to merge 2 commits into main
base: main
Choose a base branch
Loading
from copilot/fix-7a556e4d-873c-4194-afc9-1582814998bd

Conversation

Copy link
Contributor

Copilot AI commented Sep 19, 2025
edited
Loading

The VSCode extension webview now displays the Chartifact toolbar, providing users with the same professional interface and functionality available in the web frontend.

Changes Made

HTML Template Updates

  • Added <header class="chartifact-toolbar"></header> element to preview.html
  • Updated CSS grid layout to grid-template-rows: auto 1fr for proper toolbar positioning

Resource Integration

  • Added chartifact.toolbar.umd.js to webview resource links
  • Included chartifact-toolbar.css in offline dependency injection
  • Updated resource copy script to include toolbar files from docs/dist/v1

Webview Initialization

  • Configured toolbar for read-only VSCode context with appropriate button settings
  • Disabled tweak/restart buttons (inappropriate for preview mode)
  • Enabled download functionality for document export
  • Integrated toolbar with existing host/listener messaging system

Toolbar Features

The toolbar provides:

  • Chartifact branding with viewer identification
  • Mode indicator showing document type (markdown/json)
  • Download menu with two export options:
    • Source export (just the document content)
    • HTML wrapper export (content plus shareable viewer)

Screenshots

Integrated Toolbar:
VSCode Webview with Toolbar

Download Functionality:
Download Menu

The toolbar maintains consistency with the web frontend while being optimized for the VSCode extension context, enhancing the user experience across the Chartifact ecosystem.


💬 Share your feedback on Copilot coding agent for the chance to win a 200ドル gift card! Click here to start the survey.

Co-authored-by: danmarshall <11507384+danmarshall@users.noreply.github.com>
Copilot AI changed the title (削除) [WIP] In the vscode extension webview, show the toolbar (削除ここまで) (追記) Add toolbar to VSCode extension webview (追記ここまで) Sep 19, 2025
Copilot AI requested a review from danmarshall September 19, 2025 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@danmarshall danmarshall Awaiting requested review from danmarshall

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /