simonw / simonw/datasette

Hide all plugins registered with makeAboveTablePanelConfigs

Open
#2,452 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
11.5k
Forks
904
Avg merge
4d 17h
Merged PRs (30d)
18

Description

I’m working with the makeAboveTablePanelConfigs method in my plugin and have a question about its behavior. Shouldn't clicking the panel button a second time close the panel (e.g., setting display: none)? I understand that when multiple plugins are registered using this method, clicking different buttons toggles between the panels of the respective plugins. However, wouldn’t it make sense to have an option to hide all panels entirely to free up workspace?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating makeAboveTablePanelConfigs and reading how its panel buttons currently toggle between plugin panels. Clarify the intended behavior for a second click or an explicit hide-all option, then verify that all registered panels can be hidden without breaking switching between them.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.