Re: [pgAdmin4][patch] update the alert style in the sub-navigation

From: Surinder Kumar <surinder(dot)kumar(at)enterprisedb(dot)com>
To: Wenlin Zhang <wzhang(at)pivotal(dot)io>
Cc: Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>, Sarah McAlear <smcalear(at)pivotal(dot)io>
Subject: Re: [pgAdmin4][patch] update the alert style in the sub-navigation
Date: 2017-08-07 06:30:35
Message-ID: CAM5-9D-TtBcKX9WG=BqpgfYhJuFZAtsZj_PPdBeVe0NbGLy0KQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi
Review comments:

1.

For consistency, we use two spaces for indentation in CSS files. Four
spaces are used in _dashboard.scss file. The configurations are defined
in web/.editorconfig file.
2.

In,dashboard.css Can we return function object in return instead of
function class itself, this will eliminate the need of creating function
object every time we use info and error?
3.

On Dashboard, I can see Postgres icon is misaligned compared to other
icons in Getting Started section. It is not related to this patch.
adjusting margin top will fix it.
4.

I tried to test out Error message displayed, but I encounter an
error(screenshot attached).
Steps to reproduce:
- Open pgAdmin4 in browser
- Connect to PostgreSQL Server, Keep dashboard tab open.
- Navigate to the database which is connected.
- Now disconnect pgAdmin4 python server.
- No error message is displayed on Dashboard because it breaks in JS
as xhr.responseText is empty.
However, it might be an existing issue.

Thanks,
Surinder

On Mon, Aug 7, 2017 at 10:40 AM, Wenlin Zhang <wzhang(at)pivotal(dot)io> wrote:

Hi Ashesh,
>
> That's correct. This patch just changed alert style in the 'tabs',
> such as Dependency and Dependents.
>
> Thanks
>
> Wenlin
>
> On Mon, Aug 7, 2017 at 12:51 PM, Ashesh Vashi <
> ashesh(dot)vashi(at)enterprisedb(dot)com> wrote:
>
>> Surinder,
>>
>> Please take a look at this patch.
>>
>> If I recalls correctly, this patch is related to styling of the 'tabs'
>> shown on the main window.
>> Wenlin - please correct me if my understanding is wrong.
>>
>> --
>>
>> Thanks & Regards,
>>
>> Ashesh Vashi
>> EnterpriseDB INDIA: Enterprise PostgreSQL Company
>> <http://www.enterprisedb.com>
>>
>>
>> *http://www.linkedin.com/in/asheshvashi*
>> <http://www.linkedin.com/in/asheshvashi>
>>
>> On Mon, Aug 7, 2017 at 8:11 AM, Sarah McAlear <smcalear(at)pivotal(dot)io>
>> wrote:
>>
>>> Hi hackers,
>>>
>>> Could you please review this patch?
>>>
>>> Thanks
>>>
>>> Wenlin and Sarah
>>>
>>> On Wed, Aug 2, 2017 at 2:15 PM, Wenlin Zhang <wzhang(at)pivotal(dot)io> wrote:
>>>
>>>> Hi Hackers,
>>>>
>>>> This patch changes the alert style in the sub-navigation to match style
>>>> guide.
>>>>
>>>> Thanks,
>>>> Wenlin, Shirley & Sarah
>>>>
>>>>
>>>>
>>>
>>
> ​

Attachment Content-Type Size
DashboardErrorWhenPythonSeverDisconnected.png image/png 364.1 KB

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Akshay Joshi 2017-08-07 08:33:20 pgAdmin 4 commit: Changed the mapping of cell from 'numeric' to 'intege
Previous Message Murtuza Zabuawala 2017-08-07 06:30:30 Re: [pgAdmin4][PATCH] Refactor and change of implementation of keyboard_shortcuts function dependencies