The code for query history is in web/pgadmin/static/js/sqleditor/history. It has two parts, entries and details. Entries are generated using HistoryCollection object. You may need to add flag to HistoryCollection entries to identify which are internal queries.
You can add div above the entries like and on basis of the switch show/hide the queries.
Let me know if need more help.
On Thu, Aug 8, 2019 at 7:38 PM Yosry Muhammad <yosrym93@gmail.com> wrote:
Hi hackers,
I am working on a patch introducing improvements and new features to the query history. I would like to add a slider controller to show/hide queries generated by pgAdmin from the query history. These sliders are used in several places such as preferences, table dialogs, etc.