pgadmin4
pgadmin4 copied to clipboard
Usability issue with Macros (RM #6969)
Issue migrated from Redmine: https://redmine.postgresql.org/issues/6969 Originally created by Dave Caughey at 2021-11-01 14:31:18 UTC.
I just started playing with macros, and have the following usability observations:
To create a macro, you should be able to right click on any displayed SQL (e.g., in the Query Tool or "View/Edit Rows") and click "Add to macros" (or "Create macro"), whereby you get prompted for the name and key binding (or just add it to the next free slot).
There should be a default name (e.g., "Macro 5") so the user doesn't have to pick an explicit name for each macro before they can save it. (Minor issue)
If you ever want to change the key bindings (e.g., swap CTRL+1 and CTRL+2 functionality), you have to manually rebuild both macros (e.g., type in the name and SQL for both). Either the key sequence should be editable, or there should be shift up/down keys to re-order them.
There is a limit of 22 macros (CTRL + 0-9, CTRL + F1-F12). There is no need for this limit, because there's actually no need to have a macro bound to a CTRL+
The "Save" button in Manage Macros isn't enabled until focus is lost on an input. E.g., if I paste in some SQL, then click on the "Name" input and enter "My Macro" I still can't click Save, until I tab away from the Name input.
Comment migrated from Redmine: https://redmine.postgresql.org/issues/6969#note-1 Originally created by Aditya Toshniwal at 2021-11-12 11:36:13 UTC.
Redmine ticket header update:
Name | Old Value | New Value |
---|---|---|
Sprint changed | Ready |
Comment migrated from Redmine: https://redmine.postgresql.org/issues/6969#note-2 Originally created by Akshay Joshi at 2022-01-05 09:10:45 UTC.
Redmine ticket header update:
Name | Old Value | New Value |
---|---|---|
Sprint changed | Ready | EDB Sprint 108 |
Comment migrated from Redmine: https://redmine.postgresql.org/issues/6969#note-3 Originally created by Akshay Joshi at 2022-01-19 10:32:06 UTC.
Redmine ticket header update:
Name | Old Value | New Value |
---|---|---|
Sprint changed | EDB Sprint 108 | EDB Sprint 109 |
Comment migrated from Redmine: https://redmine.postgresql.org/issues/6969#note-4 Originally created by Akshay Joshi at 2022-01-26 17:21:22 UTC.
Redmine ticket header update:
Name | Old Value | New Value |
---|---|---|
Sprint changed | EDB Sprint 109 | EDB Sprint 110 |
Comment migrated from Redmine: https://redmine.postgresql.org/issues/6969#note-5 Originally created by Aditya Toshniwal at 2022-01-27 05:32:43 UTC.
Redmine ticket header update:
Name | Old Value | New Value |
---|---|---|
Relationship (relates) changed | RM #6131 |
Comment migrated from Redmine: https://redmine.postgresql.org/issues/6969#note-6 Originally created by Akshay Joshi at 2022-02-16 10:24:26 UTC.
Redmine ticket header update:
Name | Old Value | New Value |
---|---|---|
Sprint changed | EDB Sprint 110 | Ready |
Comment migrated from Redmine: https://redmine.postgresql.org/issues/6969#note-7 Originally created by Akshay Joshi at 2022-03-29 07:38:35 UTC.
Redmine ticket header update:
Name | Old Value | New Value |
---|---|---|
Sprint changed | Ready | EDB Sprint 114 |
Comment migrated from Redmine: https://redmine.postgresql.org/issues/6969#note-8 Originally created by Akshay Joshi at 2022-03-29 07:52:30 UTC.
Redmine ticket header update:
Name | Old Value | New Value |
---|---|---|
Assigned To changed | Aditya Toshniwal |
Comment migrated from Redmine: https://redmine.postgresql.org/issues/6969#note-9 Originally created by Akshay Joshi at 2022-04-13 10:41:33 UTC.
Redmine ticket header update:
Name | Old Value | New Value |
---|---|---|
Sprint changed | EDB Sprint 114 | EDB Sprint 115 |
Comment migrated from Redmine: https://redmine.postgresql.org/issues/6969#note-10 Originally created by Akshay Joshi at 2022-04-13 10:48:55 UTC.
Redmine ticket header update:
Name | Old Value | New Value |
---|---|---|
Sprint changed | EDB Sprint 115 | Ready |
Assigned To changed | Aditya Toshniwal |
Comment migrated from Redmine: https://redmine.postgresql.org/issues/6969#note-11 Originally created by Akshay Joshi at 2022-04-13 10:52:25 UTC.
Some part has been fixed after porting the query tool to React. Revision b5b9ee46 (https://redmine.postgresql.org/projects/pgadmin4/repository/2/revisions/b5b9ee46a1f7aa9cc228e6c4c676da20c80a8260)
@RohitBhati8269, I found one issue.
The Macros dialog opens but nothing is displayed, if I close the dialog and then again open contents are displayed. It displays content on alternate clicks. Attaching screen recording for ref:
https://github.com/pgadmin-org/pgadmin4/assets/111979571/a6a25511-32e6-4707-a713-b38dec50220e
Issue fixed, Verified on candidate build.
Env: OS - Rocky 9 Mode - Desktop