Skip to content
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

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

Merged
merged 10 commits into from
Mar 18, 2025
Merged

Conversation

hannahblair
Copy link
Collaborator

Description

When we moved the sort by logic into the cell menu, we didn't remove the editable condition for showing the cell menu button. This fixes that, and adds a test.

Closes: #10817

🎯 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

  1. 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.sh

  2. Please 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

@gradio-pr-bot
Copy link
Collaborator

gradio-pr-bot commented Mar 17, 2025

🪼 branch checks and previews

Name Status URL
Spaces ready! Spaces preview
Storybook ready! Storybook preview
🦄 Changes detected! Details

Install Gradio from this PR

pip install https://gradio-pypi-previews.s3.amazonaws.com/3aabfec8aef5470c000446ee7a58ff98c928aac3/gradio-5.21.0-py3-none-any.whl

Install Gradio Python Client from this PR

pip install "gradio-client @ git+https://github.com/gradio-app/gradio@3aabfec8aef5470c000446ee7a58ff98c928aac3#subdirectory=client/python"

Install Gradio JS Client from this PR

npm install https://gradio-npm-previews.s3.amazonaws.com/3aabfec8aef5470c000446ee7a58ff98c928aac3/gradio-client-1.13.1.tgz

Use Lite from this PR

<script type="module" src="https://gradio-lite-previews.s3.amazonaws.com/3aabfec8aef5470c000446ee7a58ff98c928aac3/dist/lite.js""></script>

@gradio-pr-bot
Copy link
Collaborator

gradio-pr-bot commented Mar 17, 2025

🦄 change detected

This Pull Request includes changes to the following packages.

Package Version
@gradio/dataframe patch
gradio patch
  • Maintainers can select this checkbox to manually select packages to update.

With the following changelog entry.

Fix cell menu not showing in non-editable dataframes

Maintainers or the PR author can modify the PR title to modify this entry.

Something isn't right?

  • Maintainers can change the version label to modify the version bump.
  • If the bot has failed to detect any changes, or if this pull request needs to update multiple packages to different versions or requires a more comprehensive changelog entry, maintainers can update the changelog file directly.

@hannahblair hannahblair requested a review from abidlabs March 17, 2025 18:21
@abidlabs
Copy link
Member

Thanks @hannahblair nice catch. This indeed fixes the issue, but noticing a strange UI issue where sorting a column increases its width significantly:

Screen.Recording.2025-03-17.at.11.28.19.AM.mov

@hannahblair
Copy link
Collaborator Author

@abidlabs fixed!

@abidlabs
Copy link
Member

Nice lgtm!

@hannahblair hannahblair merged commit ac075ad into main Mar 18, 2025
24 checks passed
@hannahblair hannahblair deleted the fix-hidden-menu branch March 18, 2025 18:11
freddyaboulton pushed a commit that referenced this pull request Mar 20, 2025
* 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 <[email protected]>
freddyaboulton added a commit that referenced this pull request Mar 21, 2025
* 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 <[email protected]>

* 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 <[email protected]>

* Fix gr.load_chat (#10829)

* changes

* add changeset

---------

Co-authored-by: Ali Abid <[email protected]>
Co-authored-by: gradio-pr-bot <[email protected]>

* 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 <[email protected]>

* Sketch code generator (#10824)

* changes

* changes

* add changeset

* changes

* changes

* changes

* changes

* 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]>

* 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 <[email protected]>
Co-authored-by: Abubakar Abid <[email protected]>
Co-authored-by: aliabid94 <[email protected]>
Co-authored-by: Ali Abid <[email protected]>
Co-authored-by: Abdesselam Benameur <[email protected]>
Co-authored-by: Hannah <[email protected]>
Co-authored-by: Gradio PR Bot <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.

Updating gradio make column unsortable
3 participants