Add input parameters to the toolbox in the modeler#61187
Add input parameters to the toolbox in the modeler#61187nyalldawson merged 19 commits intoqgis:masterfrom
Conversation
🪟 Windows Qt6 buildsDownload Windows Qt6 builds of this PR for testing. 🪟 Windows buildsDownload Windows builds of this PR for testing. |
|
@ValentinBuira , hey there, I think it's the first time I'm commenting on a PR of yours, nice to meet your code! ;) On this PR, I'm -1 to remove the algorithm and parameters panels. I have a fairly large screen, and I much prefer to have both panels opened side by side (one above the other) and keep these separated. Now, I can also see an argument for people who want things merged together (small screen size, or just a subjective preference). What I'd propose here is for you to keep the alg. and parameters panels as is, and add a new panel (maybe call it toolbox, or components) that will have a tree structure like this: Having categories as root notes makes for a cleaner presentation and allows for more components / types to be added in the future (say we have conditional nodes for e.g.). I'm not against finding a way forward on this, and I very much appreciate your efforts. We just have to make sure it will be satisfactory for all and future proof :) |
|
Hi @nirvn thanks for your feedback The design is based of the Google Summer of code proposal I did last year, and that we discussed on the mailling list. As it stand, I am not that keen to duplicate panel that would be so similar in functionalities. In this PR I have been mostly following existing practice within the modeler for example:
In fact this already exist with the "Modeler tools" and is integrated in the algorithm panel as well. (It's even a bit more hidden as the icon is the same as algorithm) I don't know what do you think about it @nyalldawson ? |
|
I tend towards @nirvn's opinion that this isn't a universal "win". It will definitely improve some workflows, but I do think it comes at the cost of a bit less user-friendliness. Users will have to seek out the "model parameters" group, whereas the existing approach just puts these right in their faces. So in my view it's a win for some experienced users, but a step backwards for QGIS beginners. That's why I'd personally like something like @nirvn's proposal. We add the "model parameters" group to the algorithms list, rename this as "toolbox", but keep the existing "inputs" panel available (and visible by default). We then remember the state of this panel, so if a user doesn't want it they can close it and it'll be closed for all future sessions. |
|
Let's bring @alexbruy , @andreasneumann , and @DelazJ into the conversation too -- they'll all have valuable feedback. |
| else if ( isFavoriteNode ) | ||
| return tr( "Favorites" ); | ||
| else if ( isParameterGroupNode ) | ||
| return tr( "Model parameters" ); |
There was a problem hiding this comment.
Not sure about wording here, maybe it would be better to leave it as "Inputs" or "Algorithm parameters"?
There was a problem hiding this comment.
I went for the middle ground "Input parameters", so it inherit both the name "Inputs" from the initial panel and "parameters" from the first node item in this panel
|
I also think that we should keep existing "Inputs" panel available at least for some time. While having a single toolbox with inputs and algorithms can be more comfortable in some cases, in other cases having a separate panel is more useful. |
|
I understand than the consensus is to keep the two panels at least in some form. So, I made a synthesis of your comments:
See at the bottom of the for a screenshot of the current state If the design is settled then it's ready for a proper review. |
|
Design looks good to me (except "inputS parameters" in the tree should be just "input parameters")! @nirvn thoughts? |
Englishing is hard sometimes :-) Fixed thanks |
|
The QGIS project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 14 days and is being automatically marked as "stale". If you think this pull request should be merged, please check
|
|
This PR is still active and waiting for a review Ping @nirvn, do you think you could have a second look at the design ? |
|
Looking good to me, thanks for being responsive to our requests @ValentinBuira |
* Refresh comments
|
I corrected the last comments review, and it's ready to be merged, thanks all for your involvement |
|
@ValentinBuira Thanks for your contribution. Can you double-check whether the top message is inline with the final implementation so that we could appropriately label the PR for changelog and documentation, please? Same applies to #60664. Thanks |
Thanks @DelazJ, I have updated the PR description to match the end implementation. And for #60664 it stayed the same |
|
@ValentinBuira A documentation ticket will be opened at https://github.com/qgis/QGIS-Documentation when this PR is merged. Please update the description (not the comments) with helpful description and screenshot to help the work from documentors. Thank you! |
|
This pull request has been tagged for the changelog.
You can edit the description. Format available for credits
Thank you! |
|
@ValentinBuira |


Description
This PR create a single "Toolbox" panel for both the Inputs and Algorithms panel under a single panel.
The "Algorithms" panel is turned into a "Toolbox" panel and is embellished with a new sub categories "Input parameters" that is now searchable along side other model component. The parameter inside the toolbox behave as you would expect with double click and drag and drop to add it to the model
This feature avoid the annoyance to switch between the two panels back and forth. Additionally the model parameters are now searchable as well !
To note: The "Inputs" panel is still available on his own
Thanks to the Hauts-de-France region for sponsorising this work and Camptocamp for their collaboration
Before the PR:

After the PR:
Screencast.From.2025-03-25.17-15-06.webm