-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Upgrade to Storybook v10 #12299
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
hannahblair
wants to merge
75
commits into
main
Choose a base branch
from
upgrade-storybook
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Upgrade to Storybook v10 #12299
+24,006
−21,621
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Remove crop_size parameter from ImageEditor __init__ function and docstring description * Remove conversion code and deprecation warning message * Fix docstring typo * Remove deprecated ImageEditor crop_size references from demo files * Remove crop_size parameters and variable assignments in super().__init__() calls for Sketchpad, Paint, and ImageMask classes that inherit from ImageEditor * Regenerated notebook files --------- Co-authored-by: pngwn <[email protected]>
* First draft * Fix tests * add changeset * format * Fix reload test * Fix chatbot unit tests * lint * lint2 * Python unit tests * Fix code * Fix notebook --------- Co-authored-by: gradio-pr-bot <[email protected]>
* fix: enable padding by default in Markdown component * add changeset * add changeset * Fix: set the padding to false for both HTML and Markup * Enable padding by default in HTML component * fix: Fixed failing unit test and a docstring --------- Co-authored-by: Abubakar Abid <[email protected]> Co-authored-by: gradio-pr-bot <[email protected]> Co-authored-by: Freddy Boulton <[email protected]>
* Set allow tags to true by default. * add changeset --------- Co-authored-by: gradio-pr-bot <[email protected]>
* Fix * Fix * Fix * lint * Fix
* Audio * Fix * Video * Fix * Docs * Fix tests * Fix * Fix * Fix typos
… `show_xxxxxxx_button` parameters (#12042) * change buttons * docstring * changes * changes * notebooks * changes * changes * fix tests * fix lint * changes * changes * fix json test * story * format
* Rename hf_token -> token * remove * Do client * remaining files * Guides * Fix * empty
* subtitles * add video subtitles and allow json subs * add changeset * format * notebook * remove * remove test files * notebook fix * merge fix * remove unused prop * type fix * test fix * test fixes * format --------- Co-authored-by: gradio-pr-bot <[email protected]>
* remove ws * Fix: * remove * remove ws * Format
* Fix * Fix
#12117) * changes * add changeset --------- Co-authored-by: gradio-pr-bot <[email protected]>
…ags parameter (#12070) * Fix * Chatbot fixes * lint * Fix * Fix * E2e test * Add back feedback_value * Fix * Fix unit test * add changeset * Fix * Fix * add changeset * Allow setting x limits independently in native plots (#12096) * xlim independently * add changeset * fix * changes * changes * Changes * format --------- Co-authored-by: gradio-pr-bot <[email protected]> Co-authored-by: Freddy Boulton <[email protected]> * Fix * trigger ci * trigger ci * Fix * Collapse thinking * Fix * empty * empty * Fix * notebook * Fix * add changeset --------- Co-authored-by: gradio-pr-bot <[email protected]> Co-authored-by: Abubakar Abid <[email protected]>
* Add warning for conflicting ChatInterface textbox parameters * Fix warning logic and tests for conflicting ChatInterface textbox parameters * add changeset * Address review feedback: move test and remove comments * make the warning example in English * format --------- Co-authored-by: Freddy Boulton <[email protected]> Co-authored-by: gradio-pr-bot <[email protected]>
* improve mm textbox styling for mobile responsiveness * more stying * clean up * update send button * add changeset * fix * fix * tweak * lint * add changeset * clean up * format --------- Co-authored-by: gradio-pr-bot <[email protected]>
* * tweak toast styling * add swipe to dismiss * add changeset * tweak * light mode redesign * add changeset * tweak * tweak spacing --------- Co-authored-by: gradio-pr-bot <[email protected]>
* Fix huggingface-hub issue in lite (#12162) * load from new wheel * add changeset --------- Co-authored-by: gradio-pr-bot <[email protected]> * Fix transpose of square polars Dataframes. --------- Co-authored-by: Ali Abdalla <[email protected]> Co-authored-by: gradio-pr-bot <[email protected]> Co-authored-by: Anton Vattay <[email protected]> Co-authored-by: Abubakar Abid <[email protected]>
* changes * add changeset * changes * changes * changes * add changeset * changes * changes * changes * changes * changes * changes * chagnes * changes * changes * changes --------- Co-authored-by: Ali Abid <[email protected]> Co-authored-by: gradio-pr-bot <[email protected]> Co-authored-by: Abubakar Abid <[email protected]>
…implement i18n. (#12240) * Implemented i18n for hardcoded chat_interface labels * add changeset --------- Co-authored-by: arterm-sedov <[email protected]> Co-authored-by: Abubakar Abid <[email protected]> Co-authored-by: gradio-pr-bot <[email protected]>
* feat: Added filesize util. Prettified filesize error * add vitest tests * move fallback to param default * Update client/js/src/utils/filesize.ts * changes --------- Co-authored-by: Abubakar Abid <[email protected]> Co-authored-by: Abubakar Abid <[email protected]>
* Improve behaviour of gr.Checkbox (#12198) * improve behaviour of checkbox and add stories * add changeset --------- Co-authored-by: gradio-pr-bot <[email protected]> * Update ZeroGPU guide to reflect best practices on manually passing an IP token (#12205) * changes * change * add changeset * Fix reload test * Update js/_website/src/lib/templates/python-client/gradio_client/03_using-zero-gpu-spaces.svx Co-authored-by: hysts <[email protected]> * Update js/_website/src/lib/templates/python-client/gradio_client/03_using-zero-gpu-spaces.svx Co-authored-by: hysts <[email protected]> * changes * changes * add changeset * changes --------- Co-authored-by: gradio-pr-bot <[email protected]> Co-authored-by: Freddy Boulton <[email protected]> Co-authored-by: hysts <[email protected]> * fix: Add WebP MIME type support for image file validation (#12206) * fix: Add explicit WebP MIME type support for image file validation * changes --------- Co-authored-by: Abubakar Abid <[email protected]> * Move `theme`, `css`, `css_paths`, `js`, `head`, `head_paths` to `launch()` (#12151) * move params * moving params * add changeset * Fixed some demos * fix utils * fix demo * fixes * remove log * small fixes * fixes * test fix --------- Co-authored-by: gradio-pr-bot <[email protected]> Co-authored-by: Freddy Boulton <[email protected]> Co-authored-by: Abubakar Abid <[email protected]> * new cache * Fix * Notebook * test fixes * test fixes * more test fixes * test action * revert action --------- Co-authored-by: Hannah <[email protected]> Co-authored-by: gradio-pr-bot <[email protected]> Co-authored-by: Abubakar Abid <[email protected]> Co-authored-by: Freddy Boulton <[email protected]> Co-authored-by: hysts <[email protected]> Co-authored-by: devasadhu <[email protected]>
* [Client] Fix ZeroGPU headers forwarding * add changeset * changes * lint --------- Co-authored-by: gradio-pr-bot <[email protected]> Co-authored-by: Abubakar Abid <[email protected]> Co-authored-by: Freddy Boulton <[email protected]>
* dark mode docs!!! * add changeset * change footer * add changeset * cleanup * format * add matchmedia fallback * clean up * tweak * tweak search modal in dark mode * more dark mode fixes * format * add changeset * Update navbar design in website docs (#12152) * update desktop nav bar * format * light mode dropdown * dark target fix * tweak * tweak * fix * format * update pnpm * test * revert * fix demos on landing page --------- Co-authored-by: gradio-pr-bot <[email protected]> Co-authored-by: Ali Abdalla <[email protected]>
* change expanded to true * add changeset --------- Co-authored-by: gradio-pr-bot <[email protected]>
* Fix reload mode tests * add changeset * Fix blocks --------- Co-authored-by: gradio-pr-bot <[email protected]>
* changes * changes * changes * refactor * formatting * cleanup * add changeset * fix bug with unnamed non public endpoints * uniform copy buttons, and checkmark * switch to lang specific copy buttons * convert button to dropdown * add open in huggingchat * format and lint --------- Co-authored-by: gradio-pr-bot <[email protected]> Co-authored-by: Abubakar Abid <[email protected]>
* changes * add changeset * changes * changes * changes * changes * changes * changes * changes * changes * changes * changes * changes * changes * changes * changes * changes * changes --------- Co-authored-by: gradio-pr-bot <[email protected]>
* changes * fix things * changes * change * change * clean * Upgrade ColorPicker to Svelte5 (#12115) * Fix * fix --------- Co-authored-by: pngwn <[email protected]> * Upgrade Checkbox, CheckboxGroup, Markdown to Svelte 5 (#12116) * fix * fix * Remove comment * Migrate Dropdown to svelte5 (#12119) * Fix * Fix * Fix * Fix (#12122) * migrate slider (#12123) * Fix (#12125) * Fix Code Component (#12126) * Migrate Radio component to Svelte 5 (#12130) * Upgrade File To Svelte 5 (#12131) * Upgrade File Component To Svelte 5 * Fix dropdown radio change events * Fix change events * migrate image (#12133) * Fix video (#12134) * Migrate Gallery (#12135) * rename (#12136) * Migrate DateTime (#12137) * Migrate DownloadButton (#12138) * Migrate HighlightedText (#12139) * Migrate Json Component (#12140) * Migrate Json Component * Remove inspect * migrate number component (#12141) * Migrate UploadButton (#12142) * Migrate Model3D (#12143) * Migrate Timer (#12145) * Migreate Timer * remove console.log * Migrate FileExplorer (#12146) * ParamViewer (#12147) * Migrate ImageSlider (#12148) * Migrate NavBar and SideBar (#12149) * SimpleComponents (#12150) * Migrate Draggable (#12154) * Draggable * Add types * Add code (#12155) * Fix css variables (#12161) * Misc fixes (#12165) * fix things (#12166) * Try to fix * format + merge 6.0 dev branch * add changeset * Fix * Fix * Fix * Fix * Fix build for now * fix docstring * here we go again 😮💨 * Fix tests * Fix * V5 rerender (#12170) * almost * fix * fix * more fix * add changeset --------- Co-authored-by: gradio-pr-bot <[email protected]> * Fix i18n in Svelte 5 Branch (#12177) * Support i18n in svelte 5 branch * Fix i18n * add changeset --------- Co-authored-by: gradio-pr-bot <[email protected]> * Fix (#12179) * Fix success failure event triggers (#12180) * Fix * Fix sucess failure triggers * Fix * Fix radio change/input events (#12182) * Fix Chatbot Editing (#12183) * fix spa build (#12186) * fix loading statuses (#12185) * Fix chatbot multimodal (#12187) * Fixing * Add code * Fix JSON Component (#12188) * Fix gallery clear event (#12189) * Fix Gallery Clear Event * add changeset --------- Co-authored-by: gradio-pr-bot <[email protected]> * Fix image component events (#12190) * Fix Gallery Clear Event * Fix Image Component Events * Fix example loading (#12192) * Fix * Fix * Fix Example Label (#12193) * Add back app footer + Dispatch load events (#12181) * Fix * Fix * add changeset * fix load events/ state settling --------- Co-authored-by: gradio-pr-bot <[email protected]> Co-authored-by: pngwn <[email protected]> * fix moast toasts (#12195) * fix * fix * Formatting svelte 5 branch (#12197) * Fix loading status for SPA (#12196) * Fix Loading status * add changeset --------- Co-authored-by: gradio-pr-bot <[email protected]> * Fix Trigger ID (#12199) * .then events were being triggered twice (#12207) * Fix Image Updates (#12208) * Fix Weird Issues With SPA (#12209) * Fix Weird Issues With SPA * Fix devDependencies * Fix * Fix chatbot streaming (#12211) * Fix Weird Issues With SPA * Fix devDependencies * Fix * Fix MultimodalImage props * quick fix (#12210) * Fix Thought in Chatbot for Svelte 5 (#12231) * Fix Gallery + Video test (#12235) * Fix Video input output in svelte 5 (#12236) * Fix Video Payload * Fix * audio fix (#12204) * Fix ChatInterface Rapid Generation (#12232) * Fix Code (#12233) * Fix website build in svelte5 (#12241) * pin to different commit * just pass version * pin action version to 10.17.0 * Fix button issue in gr.MultimodalTextbox (#12200) * change button to div * add changeset --------- Co-authored-by: gradio-pr-bot <[email protected]> * Fix Toast Content checking (#12242) * S5 streaming (#12244) * pending inputs (#12252) * change * sd * fix * Fix clear button loading status (#12259) * Fix * add changeset --------- Co-authored-by: gradio-pr-bot <[email protected]> * Loading Status Fixes: Validation Errors + Making Errors Clearable (#12261) * Make error status clickable * add changeset * Fix --------- Co-authored-by: gradio-pr-bot <[email protected]> * Fix Chatbot Model3d loading (#12266) * Fix (#12269) * Fix (#12270) * Fix render tests (#12271) * WIP * Fix Render * remove console.log * Fix Render Merge test * Lint * Fix Tabs (#12272) * Fix code (#12273) * Small video tweak (#12274) * Fix API Recorder (#12277) * Fix accordion svelte 5 (#12279) * Fix API Recorder * Fix Accordion Svelte 5 * Fix ImageEditor Svelte 5 (#12278) * . * Format --------- Co-authored-by: Freddy Boulton <[email protected]> * Fix DeepLink in Svelte5 (#12281) * Fix DeepLink * Fix Loading States * Add code * Audio Debugger * Fix file explorer test svelte 5 (#12282) * Fix FileExplorer e2e test * Fix DeepLink in Svelte5 (#12281) * Fix DeepLink * Fix Loading States * Add code * Audio Debugger * Fixes to visibility in svelte 5 (#12283) * Push * Fix * Add comment explaining test * Fix TodoList e2e test (#12287) * Async rendering fix * MountComponents * Fix theme builder (#12292) * Async rendering fix * MountComponents * Ugly WIP * Revert * Revert * Fix theme builder * remove logs * Fix * Fix lint * changes (#12288) Co-authored-by: Ali Abid <[email protected]> Co-authored-by: Freddy Boulton <[email protected]> * Fix theme builder --------- Co-authored-by: Freddy Boulton <[email protected]> Co-authored-by: gradio-pr-bot <[email protected]> Co-authored-by: Dawood Khan <[email protected]> Co-authored-by: Ali Abdalla <[email protected]> Co-authored-by: Hannah <[email protected]> Co-authored-by: aliabid94 <[email protected]> Co-authored-by: Ali Abid <[email protected]>
…developer-provided `value` (#12294) * changes * add changeset --------- Co-authored-by: gradio-pr-bot <[email protected]> Co-authored-by: Freddy Boulton <[email protected]>
Collaborator
🪼 branch checks and previews
Install Gradio from this PR pip install https://gradio-pypi-previews.s3.amazonaws.com/6268bb513573cc54134fb555e36938acd4aae942/gradio-5.49.1-py3-none-any.whlInstall Gradio Python Client from this PR pip install "gradio-client @ git+https://github.com/gradio-app/gradio@6268bb513573cc54134fb555e36938acd4aae942#subdirectory=client/python"Install Gradio JS Client from this PR npm install https://gradio-npm-previews.s3.amazonaws.com/6268bb513573cc54134fb555e36938acd4aae942/gradio-client-2.0.0-dev.1.tgz |
Collaborator
🦄 change detectedThis Pull Request includes changes to the following packages.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Description
Please include a concise summary, in clear English, of the changes in this pull request. If it closes an issue, please mention it here.
Closes: #(issue)
AI Disclosure
We encourage the use of AI tooling in creating PRs, but the any non-trivial use of AI needs be disclosed. E.g. if you used Claude to write a first draft, you should mention that. Trivial tab-completion doesn't need to be disclosed. You should self-review all PRs, especially if they were generated with AI.
🎯 PRs Should Target Issues
Before your create a PR, please check to see if there is an existing issue for this change. If not, please create an issue before you create this PR, unless the fix is very small.
Not adhering to this guideline will result in the PR being closed.
Testing and Formatting Your Code
PRs will only be merged if tests pass on CI. We recommend at least running the backend tests locally, please set up your Gradio environment locally and run the backed tests:
bash scripts/run_backend_tests.shPlease run these bash scripts to automatically format your code:
bash scripts/format_backend.sh, and (if you made any changes to non-Python files)bash scripts/format_frontend.sh