Re: [pgAdmin4][PATCH] Improvements to Query Results Grid User Experience

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Shruti B Iyer <siyer(at)pivotal(dot)io>
Cc: Matthew Kleiman <mkleiman(at)pivotal(dot)io>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: [pgAdmin4][PATCH] Improvements to Query Results Grid User Experience
Date: 2017-05-23 21:28:26
Message-ID: CA+OCxoya0994ThFb161GGvXLwL6X9t9cFrD0nn4y0OuKLon-gw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi

git am is for applying patches from mailbox files:

Splits mail messages in a mailbox into commit log message, authorship
information and patches, and applies them to the current branch.

That doesn't seem like it'll help me as a gmail user. Can you fix the
patches to apply with git apply please?

On Tuesday, May 23, 2017, Shruti B Iyer <siyer(at)pivotal(dot)io> wrote:

> Hi Dave,
>
> We see the same errors when doing *git apply* for each patch. However, if
> you do *git am* for each patch, it should proceed.
>
> Thanks,
> Shruti & Matt
>
> On Tue, May 23, 2017 at 4:55 PM, Dave Page <dpage(at)pgadmin(dot)org
> <javascript:_e(%7B%7D,'cvml','dpage(at)pgadmin(dot)org');>> wrote:
>
>> Hi!
>>
>> Looks great! I found a few issues which I think should be addressed
>> before we continue too far. Note that I haven't reviewed the code at
>> this stage:
>>
>> - When dragging a selection, the bounding box doesn't line up with the
>> bottom of the grid rows. Note that I couldn't screen shot this
>> unfortunately. It's not broken as such - just looks wrong.
>>
>> - If I copy one or more rows, I'm unable to paste them in as new rows
>> when editing table data.
>>
>> - The 0004 patch doesn't apply:
>>
>> (pgadmin4)snake:web dpage$ git apply
>> ~/Downloads/0004-Introduces-XCellSelectionModel.patch
>> /Users/dpage/Downloads/0004-Introduces-XCellSelectionModel.patch:640:
>> trailing whitespace.
>> function scrollColumnIntoView(columnIndex) {
>> /Users/dpage/Downloads/0004-Introduces-XCellSelectionModel.patch:641:
>> trailing whitespace.
>> var colspan = getColspan(row, columnIndex);
>> /Users/dpage/Downloads/0004-Introduces-XCellSelectionModel.patch:642:
>> trailing whitespace.
>>
>> /Users/dpage/Downloads/0004-Introduces-XCellSelectionModel.patch:643:
>> trailing whitespace.
>> var left = columnPosLeft[columnIndex],
>> /Users/dpage/Downloads/0004-Introduces-XCellSelectionModel.patch:644:
>> trailing whitespace.
>> right = columnPosRight[columnIndex + (colspan > 1 ? colspan - 1 :
>> 0)],
>> error: patch failed: web/pgadmin/static/vendor/slic
>> kgrid/slick.grid.js:2794
>> error: web/pgadmin/static/vendor/slickgrid/slick.grid.js: patch does not
>> apply
>>
>> Thanks, Dave.
>>
>>
>> On Tue, May 23, 2017 at 12:11 PM, Matthew Kleiman <mkleiman(at)pivotal(dot)io
>> <javascript:_e(%7B%7D,'cvml','mkleiman(at)pivotal(dot)io');>> wrote:
>> > Hi Hackers!
>> >
>> > Attached are the updates to the query results grid, broken up into four
>> > patches.
>> >
>> >
>> > Description of the Completed Functionality After Applying All Four
>> Patches
>> > Currently the designed behavior is somewhere between excel like
>> behavior and
>> > not. As such we can describe the behavior as follows:
>> >
>> > Select columns by clicking on the header
>> > Select rows by clicking on the row header (column 0)
>> > You can drag and select with the mouse
>> > You can select all with ctrl+a or by clicking the upper left cell
>> > You can copy with ctrl+c or with the copy icon
>> > you can increase or decrease the size of the selected area with
>> shift+arrow
>> > shift+arrow understands directionality, e.g. drag select from left to
>> right
>> > differs from drag select from right to left
>> > Clicking anywhere outside of the selected area deselects the area and
>> > reselects the new cell(s) clicked on
>> >
>> > Current potentially awkward but intentional functionality
>> >
>> > When you select multiple columns/rows by clicking on the header, then
>> press
>> > shift+arrow all but the last selected columns/rows are deselected
>> >
>> > Includes fixes for:
>> > RM Bug #2348 - On resize of first/any column in "Query Tool/View Data"
>> will
>> > select/deselect all the rows/columns.
>> > RM Bug #2344 - ctrl+v and ctrl+c need to work
>> >
>> >
>> > Detailed Description of Each Patch
>> >
>> > 0001-Improves-user-s-ability-to-select-cells-in-query-res.patch -
>> >
>> > - user can select columns
>> >
>> > - user can modify column or row selection with shift+arrow
>> >
>> > - user can select entire grid with ctrl+A or cmd+A
>> >
>> > - user can copy from grid using keyboard shortcuts
>> >
>> > 0002-Drag-and-select-from-data-grid.patch -
>> >
>> > 0003-Removes-checkboxes-from-the-grid.patch -
>> >
>> > - Changes header color to grey
>> >
>> > 0004-Introduces-XCellSelectionModel.patch -
>> >
>> > - header styles depend on the selection
>> >
>> > - show the correct row/column when scrolling up or left
>> >
>> > - fixes drag and drop when drop is done outside the grid
>> >
>> >
>> > Thanks,
>> >
>> > Matt & Shruti
>> >
>> >
>> >
>> >
>> >
>> > --
>> > Sent via pgadmin-hackers mailing list (pgadmin-hackers(at)postgresql(dot)org
>> <javascript:_e(%7B%7D,'cvml','pgadmin-hackers(at)postgresql(dot)org');>)
>> > To make changes to your subscription:
>> > http://www.postgresql.org/mailpref/pgadmin-hackers
>> >
>>
>>
>>
>> --
>> Dave Page
>> Blog: http://pgsnake.blogspot.com
>> Twitter: @pgsnake
>>
>> EnterpriseDB UK: http://www.enterprisedb.com
>> The Enterprise PostgreSQL Company
>>
>
>

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Shruti B Iyer 2017-05-23 21:46:44 Re: [pgAdmin4][PATCH] Improvements to Query Results Grid User Experience
Previous Message Shruti B Iyer 2017-05-23 21:12:52 Re: [pgAdmin4][PATCH] Improvements to Query Results Grid User Experience