-
Notifications
You must be signed in to change notification settings - Fork 0
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
Switch to select multiple for editing permissions #24
Comments
I think this UI will work better on narrow screens and will expand to handle more permissions. |
I think I need to introduce an opt-in mechanism to Datasette core classes, maybe a class of |
I'm tempted to get Playwright tests working here, as seen in https://github.com/simonw/datasette-search-all/blob/main/tests/test_playwright.py |
Another problem: https://github.com/simonw/datasette/blob/832f76ce26ffb2f3e27a006ff90254374bd90e61/datasette/utils/asgi.py#L138-L140 async def post_vars(self):
body = await self.post_body()
return dict(parse_qsl(body.decode("utf-8"), keep_blank_values=True)) That means that a ` will only return the first selected item at the moment. need to work around that (and then fix it in Datasette core). |
For the moment I'll work around that problem like so: from datasette.utils import MultiParams
body = await self.post_body()
post_vars = MultiParams(parse_qs(qs=body, keep_blank_values=True)) |
Claude artifact showing what it could look like if I use this rather than the table of checkboxes:
https://claude.site/artifacts/3b83782b-74d3-4759-ac68-523fe2a905eb
Conversation transcript: https://gist.github.com/simonw/7b87b24cd53daf8ea05170c3c8013e3c
I started with this screenshot:
Originally posted by @simonw in #23 (comment)
The text was updated successfully, but these errors were encountered: