1392 Commits

Author SHA1 Message Date
Gradio PR Bot
9c6c55ba2d
chore: update versions (#10931)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-04-08 14:31:44 -07:00
pngwn
2f68c9d988
Refactor and redesign ImageEditor component (#10635)
* thanks o3

* add changeset

* more

* make events work

* moreeeeeee

* prettier

* nb

* add changeset

* Update utils.py (#10773)

### Description

This pull request updates the `get_node_path` function in the `gradio/utils.py` file to handle scenarios where the `which` command is missing. The function has been improved by splitting the error handling into two separate `try` blocks for better granularity and robustness.

### Changes Made

- Split the `try` block into two separate `try` blocks for handling Windows and Unix-like systems.
- Added error handling for `FileNotFoundError` in addition to `subprocess.CalledProcessError`.

### Rationale

The original implementation did not properly handle the case when the `which` command is missing. This update ensures the function gracefully handles such scenarios and continues to check other possible locations for the `node` executable.

* fix: latex rendering of markdown (#10765)

* fix: latex rendering of markdown

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* more

* Tweak Image Editor UI (#10779)

* tweak layers ui

* upload alignment and text colour

* change check icon

* zoom tweaks

* tweak layers panel

* changes

* more

* fix image inputs

* more fix

* fix

* fix loading layer via events

* fix loading layer via events

* allow developers to control layers more granularly

* disable pan button when at min zoom

* Update image_editor.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* show visual indicator for outpainting region

* ensure initial image values work

* fix cropped image placement

* fix crop intiialisation options

* demos and fix brush opacity options

* fix layer_options updates and add demo

* more

* fix webcam

* fix

* fix

* improve color swatches

* fix canvas resizing

* simplify crop

* fix crop yet again

* rework controls

* scripts

* tweaks

* tweaks

* fix things

* Add two more demos for `gr.ImageEditor` (#10946)

* changes

* sketchpad

* changes

* various fixed

* generate notebooks

* update changes

* lockfile

* format code

* notebooks

* tweaks

* fix test

* fix notebooks

* changes

* fix storybook

* changes

* interface

* remove redo/undo story

* fix pytest

* changes

* push

* fiiiiiix

* tweaks

* fix

* fix thingy

* tweaks

* changeset

* add changeset

* fix

* fix

* website build issue

* add changeset

* add layeroptions to docs

* formatting

* fix

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
Co-authored-by: Pablo Speciale <pablospe@users.noreply.github.com>
Co-authored-by: Col0ring <47329987+Col0ring@users.noreply.github.com>
Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2025-04-08 22:02:04 +01:00
Hannah
d654e60ff6
Map search-filtered row indices to original data indices in gr.Dataframe (#10955)
* map search-filtered row indices to original data indices in SelectData events

* add changeset

* add test

* fix test

* fix test

* nb

* fix test

* display selected cell borders in  search results

* fix test

* more robust focus

* nb

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-04-08 08:58:58 -07:00
Rafael Ferreira
ede74283d7
Fix gr.NativePlot sorting of labels as default behaviour (#10953)
* Fix #10764: Automatic sorting of labels in plots

Originally, the bug appeared to be isolated to
gr.BarPlot, but it turns out that it affects all
gr.NativePlot components, including BarPlot,
LinePlot, and ScatterPlot.

Although the data does not seem sorted in the
program's flow, it gets sorted when the Svelte
file is rendered. This issue occurs because the
reformat_sort function in index.svelte of
NativePlot returns undefined when sort is not
specified, which, during compilation, is treated
as void 0. This implicitly triggers default
sorting. To resolve this, I changed undefined to
null, ensuring that the compiled code handles it
as null, resulting in unsorted data being
displayed in the browser.

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-04-07 18:22:25 -07:00
Yuvraj Sharma
a8dc9f469b
update website banner with 1m MAU announcement (#10952)
* update website banner qith 1m MAU announcement

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-04-07 11:07:17 -07:00
Hannah
36da6d0d54
Fix value synchronisation issue in gr.Dataframe (#10918) 2025-04-05 14:49:08 +01:00
Ali Abdalla
e8b8eef7e5
Fix broken css on some param tables (#10936)
* add status docs

* fix

* add changeset

* generate and use theme.css

* add to pnpm build

* save theme.css

* formatting

* add back to gitignore

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-04-03 22:51:41 -07:00
Hannah
b7686515d9
Add rtl to Block Label (#10933)
* tweak

* add rtl to block label

* add changeset

* tweak story copy

* add changeset

* fix margin

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-04-03 12:59:35 +00:00
Hannah
c37de0f908
Tweak rtl UI in gr.MultimodalTextbox (#10925)
* mm textbox rtl tweak

* tweak

* tweak

* add changeset

* move label to right

* add changeset

* tweak

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-04-02 15:08:22 +00:00
Hannah
be46b94f51
Add rtl to gr.HighlightedText (#10924)
* add rtl to highlighted text

* add changeset

* fix test

* Update gradio/components/highlighted_text.py

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-04-02 13:57:23 +00:00
Hannah
8a62c7e90b
Add rtl to gr.Radio (#10923)
* add rtl to radio

* add changeset

* tweak param type

* tweak

* tweak

* fix test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-04-02 12:35:50 +01:00
Gradio PR Bot
097838c7ae
chore: update versions (#10911)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-04-01 14:25:15 -07:00
Ali Abdalla
d81385bdb9
Add status docs to MetadataDict (#10926)
* add status docs

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-04-01 13:55:19 -07:00
Abubakar Abid
afe0b139fa
Fix regression around chatbot thoughts not being collapsible (#10922)
* changes

* add changeset

* add changeset

* changes

* changes

* changes

* format

* update docs

* docs

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-04-01 13:10:43 -07:00
Yuichiro Tachibana (Tsuchiya)
2521e8a1c7
Check if SharedWorker is available in the current runtime and fallback to DedicatedWorker if not available (#10845)
* Check if SharedWorker is available in the current runtime, e.g. Chrome for Androind, and fallback to DedicatedWorker if not available

* add changeset

* add changeset

* trigger website build

* add changeset

* formatting

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2025-04-01 12:56:38 -07:00
Freddy Boulton
2322700812
Update i18n files (#10913)
* update

* add changeset

* proofread

* add changeset

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-04-01 11:53:33 -07:00
Cedric Guillemet
d5fde7c390
Babylon update for model3D (#10847)
* Babylon update for model3D

* code format

* add changeset

* PR feedback

* added pnpm lock

* add changeset

* code format

* format

* type fix

* type

* restore zoom/pan

* zoom_speed and pan_speed are back

* reset_camera_position parameters

* pre-merge

* code format

* update pnpm lockfile

* add changeset

* ssr fix

* type fix

---------

Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-04-01 01:35:06 -04:00
Tiago Santos
64a6ead05c
Fix EventData scaling when gr.Image is in fullscreen mode (#10901)
* Fix #10268: EventData scaling more than Image in fullscreen mode

Previously, when an image smaller than the screen size was displayed
in gr.Image and the fullscreen button was pressed, the image remained
at its original size. However, the surrounding div container scaled
as if the image had expanded to fullscreen. This caused the EventData
to detect clicks outside the image but within the expanded container.

To fix this, the image container styles were removed, ensuring that
the container always matches the image size, whether scaled or not.
This guarantees that EventData accurately detects clicks within the
correct boundaries.

This fix was applied to both ImageUploader and ImagePreview to ensure
consistent behavior across the gr.Image component.

* add changeset

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2025-03-31 22:44:22 +01:00
Gradio PR Bot
0e6ae52f3d
chore: update versions (#10898)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-03-31 14:06:58 -04:00
Hannah
a018a46a7f
Fix wrap behaviour in dataframe (#10900)
* fix wrap

* add changeset

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-31 17:52:42 +01:00
Zero King
17fed951a9
Fix empty array check in arrow key handling in gr.Dropdown (#10891)
* Fix empty array check in arrow key handling

* add changeset

* fix changeset

* add changeset

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-31 16:38:09 +00:00
Lara Faria
b9b8d08bd2
Fix disabling buttons in MultimodalTextbox when interactive=False (#10902)
* Fix #9967: interactive=False not disabling buttons

In the MultimodalTextbox component, when
interactive=False, the submit button remained
active allowing users to submit inputs without
being able to edit them. To fix this, I added
restrictions to disable the submit, file upload
and microphone buttons when interactive=False.

* format

* add changeset

---------

Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-31 16:09:29 +00:00
Gradio PR Bot
846b60dbd5
chore: update versions (#10848)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-03-24 15:52:12 -04:00
Abubakar Abid
1649b00384
Add support for mermaid.js in Markdown component (as well as components like gr.Chatbot that use Markdown) (#10854)
* changes

* add changeset

* changes

* format

* add changeset

* notebook

* change

* changes

* format

* story

* changes

* update

* changes

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-24 19:37:20 +00:00
Yuichiro Tachibana (Tsuchiya)
6384bcc11f
Jedi-based Python code completion on gr.Code (#10812)
* Jedi-based code completion

* Delete unused objects

* add changeset

* add changeset

* Format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-24 19:29:26 +09:00
Freddy Boulton
c05610c87d
Add Deep Links (#10834)
* WIP

* Fix

* roughdraft

* Workinig

* query params

* add changeset

* modify

* revert

* lint

* Code

* Fix

* lint

* Add code

* Fix

* Fix python unit tests

* Update `markupsafe` dependency version (#10820)

* changes

* add changeset

* type

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>

* Adds a watermark parameter to `gr.Chatbot` that is added to copied text (#10814)

* changes

* add changeset

* format'

* test

* copy

* changes

* doc

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>

* Fix gr.load_chat (#10829)

* changes

* add changeset

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>

* Fix typo in docstring of Request class in route_utils.py (#10833)

* Fix cell menu not showing in non-editable dataframes (#10819)

* remove editable condition

* - add test
- improve html semantics

* add changeset

* fix test

* fix test

* - fix test
- fix column widths changing on sort

* swap e2e for story

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>

* Sketch code generator (#10824)

* changes

* changes

* add changeset

* changes

* changes

* changes

* changes

* changes

* changes

* changes

---------

Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>

* chore: update versions (#10811)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* minor fixes

* fix

* Add guide

* Minor tweaks

* Address comments

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: aliabid94 <aabid94@gmail.com>
Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: Abdesselam Benameur <abdesselambenameur.pro@gmail.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
Co-authored-by: Gradio PR Bot <121576822+gradio-pr-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-03-21 14:15:34 -04:00
Florian Bruggisser
8ff0a5e3e9
Fix path generation for returned files for bash API (#10841)
* added error mesasge if wrong route_path has been provided

* implemented fix for bash based data return urls

* add changeset

* removed error message in route_utils to not break gradio

* fix api docs

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-03-21 12:29:03 +00:00
Clara Rodrigues
3fd4e11f41
Fix #9599: Preserve preview mode when selected_index exceeds the number of images in the gallery. (#10816)
* Fix #9599: Preserve Selected Index in Gallery Component
Fixed preview mode unexpected exit when selected_index is greater
than the number of images in the gallery.

* Fix #9599: Prevent preview exit when index exceeds image count

Updated the index selection process so that the slider selects the last
image if the chosen index is out of bounds, instead of exiting preview
mode unexpectedly.
2025-03-21 11:34:03 +00:00
Gradio PR Bot
fe8c06afb5
chore: update versions (#10811)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-03-18 14:38:44 -07:00
Hannah
ac075ad6aa
Fix cell menu not showing in non-editable dataframes (#10819)
* remove editable condition

* - add test
- improve html semantics

* add changeset

* fix test

* fix test

* - fix test
- fix column widths changing on sort

* swap e2e for story

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-18 18:11:02 +00:00
Abubakar Abid
b42e4612ab
Adds a watermark parameter to gr.Chatbot that is added to copied text (#10814)
* changes

* add changeset

* format'

* test

* copy

* changes

* doc

* format

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-17 14:58:58 -07:00
Gradio PR Bot
f719264344
chore: update versions (#10753)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-03-13 15:11:33 -07:00
Hannah
8d03368243
Fix max characters in non-editable dataframes (#10805)
* logic tweak for truncation

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-13 21:24:13 +00:00
Hannah
39c30be162
Add parent focus for drag selection (#10804)
* add drag focus

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-13 13:27:58 -07:00
Hannah
9ec8898c0f
Fix excess scroll bug in dataframe (#10802)
* fix excess scroll

* add changeset

* fix test

* fix test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-13 17:44:49 +00:00
Abubakar Abid
681254453a
On Windows OS, hide gr.Dataframe scrollbars while keeping scrolling functionality (#10784)
* scrollbars

* add changeset

* add changeset

* add changeset

* format

* changes

* revert

* add changeset

* revert everything

* revert

* delete changeset

* changes

* add changeset

* Changes"
push
"
;

* changes

* changes

* changes

* notebook

* maybe a simpler fix

* - add css tweaks back in
- add touch device improvement

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2025-03-13 00:05:07 -07:00
Hannah
88941b655e
Remove fixed layouts from dataframe (#10786)
* remove fixed layout

* add changeset

* tweak

* - remove css widths on change

* tweak

* allow % widths

* add story

* dataframe

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-03-12 22:44:29 +00:00
Dawood Khan
cae5517307
Fixed size for pending thoughts (#10671)
* restyle

* style

* add changeset

* nested thoughts

* nested fix

* format

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-12 17:51:13 +00:00
Hannah
373007b3e9
Allow sorting by multiple columns in dataframe (#10778)
* add sort by multiple columns logic

* add changeset

* fix sort tests

* priority design tweaks

* tweak

* add story

* improvements to sort buttons

* add changeset

* - reset sort after update
- fix order

* sort icon border tweak

* reset sort state on change

* move sort to cell menu

* add changeset

* add sort story

* fix type check

* fix test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-12 09:42:07 +00:00
Hannah
b3e8c263be
Implement cell selection via drag in dataframe (#10787)
* add dragging interaction

* add changeset

* fix

* fix cursor

* add drag test

* change test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-11 20:24:59 -07:00
Abubakar Abid
fb8c1cb6d1
Move gr.Textbox lines logic to frontend (#10785)
* changes

* add changeset

* test

* fix max lines

* fix e2e test

* add changeset

* changes

* format

* warnings textbox

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-11 23:10:35 +00:00
Yuichiro Tachibana (Tsuchiya)
731ab92001
Autocompletion on code editor component (#10733)
* Update CodeMirror packages to use the autocompletion feature of lang-python

* Add autocomplete option to the Code component

* add changeset

* Add AutocompleteTheme

* Fix test

* Fix docstring

* Enable autocompletion on Playground

* add changeset

* add changeset

* Assign Tab to acceptCompletion

* Enable autocompletion in the playground mode of Lite apps

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2025-03-11 19:51:29 +09:00
Abubakar Abid
3b483672f4
Allow navigating down from header cells, as well as support cmd/ctrl + arrow keys (#10777)
* keyboard

* add changeset

* format

* changes

* s

* changes

* changes

* format

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-11 09:57:05 +00:00
Col0ring
3232cddc00
fix: latex rendering of markdown (#10765)
* fix: latex rendering of markdown

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-03-11 01:05:24 +00:00
Abubakar Abid
85f6132f1f
Fix cell selection when using shift + arrow keys (#10776)
* changes

* add changeset

* changes

* add changeset

* remove console

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-10 14:39:55 -07:00
Hannah
c44b8f47b9
Add static_columns param for interactive dataframes (#10734)
* allow showing image sin dataframe with image component

* add scroll to top button

* add changeset

* fix truncated text issue + prevent truncating non-text data

* refactor with state mgmnt

* add changeset

* formatting

* tweaks

* tweak

* add e2e tests

* notebook

* more component extraction, move css to components

* type fixes

* test fixes

* fix test

* notebook

* add changeset

* fix tests

* fix test

* fix test

* remove misc.css file

* reset sort

* fix z-index over progress bar

* css tweak

* fix search and add search to e2e test

* fix keyboard reactivity issue

* add cell selection e2e tests

* z-index fixes

* ensure unique context ids

* fix row number bug

* frozen -> pinned

* pinned col border tweak

* pinned col fix when show_row_numbers is true

* header tweak

* fix pinned columns clash with column_widths

* add row test

* add static_cols param and test

* add changeset

* tweak

* fix tests

* test tweaks

* add row story

* tweaks

* fix test

* tweak

* redesign selection buttons

* fix test

* fix test

* fix test

* fix test

* edit demo with static cols

* change to list[int]

* cursor tweak

* fix test

* nb

* set col count to fixed if static_cols are set

* lint

* tweak demo

* fix col count logic

* add padlock icon

* fix py test

* lint

* fix test

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-10 19:10:36 +00:00
Dawood Khan
3086343a68
Allow custom tags for chatbot (#10743)
* restyle

* style

* add changeset

* nested thoughts

* nested fix

* format

* allow_tags

* allow-tags for load

* undo

* add changeset

* allow custom tags

* format

* extract html tags into file

* add changeset

* changes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2025-03-07 21:45:54 +00:00
Hannah
b4342d24a8
Fix dataframe search and filter functionality (#10757)
* store and update rows with indices value

* clean up search/filter logic and remove duplicate functions

* add changeset

* add make_headers tests

* simplify logic

* lint

* add changeset

* ts fixes

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-07 20:16:50 +00:00
Hannah
b5ca1dcfdf
Refactor gr.Dataframe (#10631)
* allow showing image sin dataframe with image component

* add scroll to top button

* add changeset

* fix truncated text issue + prevent truncating non-text data

* refactor with state mgmnt

* add changeset

* formatting

* tweaks

* tweak

* add e2e tests

* notebook

* more component extraction, move css to components

* type fixes

* test fixes

* fix test

* notebook

* add changeset

* fix tests

* fix test

* fix test

* remove misc.css file

* reset sort

* fix z-index over progress bar

* css tweak

* fix search and add search to e2e test

* fix keyboard reactivity issue

* add cell selection e2e tests

* z-index fixes

* ensure unique context ids

* fix row number bug

* frozen -> pinned

* pinned col border tweak

* pinned col fix when show_row_numbers is true

* header tweak

* fix pinned columns clash with column_widths

* add row test

* tweak

* fix tests

* test tweaks

* add row story

* tweaks

* redesign selection buttons

* fix test

* fix test

* fix seach issue

* allow navigation with arrows when not in editing mode

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2025-03-07 10:52:18 +00:00
Gradio PR Bot
db0e09ce21
chore: update versions (#10717)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-03-06 14:29:33 -08:00