Column actions panel on mobile (#2669)

On mobile widths the column actions were no longer available.

This adds a new modal to help with that.

https://gisthost.github.io/?ec60eb27e22cf5d96642eec1715586b6
This commit is contained in:
Simon Willison 2026-03-18 09:04:28 -07:00 • committed by GitHub
commit fd016f7986
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 886 additions and 169 deletions

View file

@ -750,6 +750,21 @@ async def test_column_chooser_present(ds_client):
assert "primaryKeys" in script_text
@pytest.mark.asyncio
async def test_mobile_column_actions_present(ds_client):
response = await ds_client.get("/fixtures/facetable")
assert response.status_code == 200
soup = Soup(response.text, "html.parser")
button = soup.select_one("button.column-actions-mobile.small-screen-only")
assert button is not None
assert button.text.strip() == "Column actions"
assert button.find("svg") is not None
assert any(
"mobile-column-actions.js" in (script.get("src") or "")
for script in soup.find_all("script")
)
@pytest.mark.asyncio
async def test_column_chooser_data_reflects_col_filtering(ds_client):
response = await ds_client.get("/fixtures/facetable?_col=state&_col=created")