Re: [pgadmin-hackers][patch] History Detail Pane

Поиск
Список
Период
Сортировка
От George Gelashvili
Тема Re: [pgadmin-hackers][patch] History Detail Pane
Дата
Msg-id CAHowoHY0f+vG-0OWtvynAX+kqBgCaygmt0F0b-6wp6A0Lb_PPw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [pgadmin-hackers][patch] History Detail Pane  (Murtuza Zabuawala <murtuza.zabuawala@enterprisedb.com>)
Ответы Re: [pgadmin-hackers][patch] History Detail Pane  (Surinder Kumar <surinder.kumar@enterprisedb.com>)
Список pgadmin-hackers
On Fri, Jun 23, 2017 at 11:24 AM, Surinder Kumar <surinder.kumar@enterprisedb.com> wrote:
Hi

Review comments:

​1. ​
Can we set "message"(in message detail) style property scroll to 
​'​
auto
​'​
 instead of 
​'​
scroll
​'​
 ?

Could you elaborate why 'auto' is what we want?

​2. CSS property flex is supported for IE >= 9 as per reference
​. I tested this patch on IE and layout is broken.​

 Anyways IE-9/10 are outdated and no longer supported by Microsoft, the only supported browsers are IE-11+.
 
Does this patch work in supported IEs?

3. ​Can the CSS styles in ‘history_detail_message.jsx’ moved out in a separate stylesheet file
​ as inline styles in html are never recommended.​

We've been trying to use inline styles rather than classes for our react jsx code, as this keeps element behavior declarative. This includes both functionality and appearance.
So far the pattern has been to extract styles used by more than one component to jsx/styles.

​4. In 'codemirror.jsx', setInterval is used to bind hydrateWhenBecomesVisible function after every 100ms. Can setTimeout ​be used as it needs to bind only once ?
Also if setInterval is used, in componentWillUnmount clearInterval(...) should be implemented.

We actually need to poll, as otherwise the codemirror element will render with its last state (so, incorrect query history)

5. The text like 'Rows Affected' or 'Duration' should be wrapped in 'gettext' for translation?

We are working on using translations in React components. This needs additional effort and we'll send this in a separate patch.

Thanks
Shruti and George
Вложения

В списке pgadmin-hackers по дате отправления:

Предыдущее
От: Atul Sharma
Дата:
Сообщение: Re: [pgAdmin4][Patch][RM_2191] : Add support for the hostaddrconnection parameter
Следующее
От: Dave Page
Дата:
Сообщение: Re: [pgAdmin4][Patch][RM_2191] : Add support for the hostaddr connection parameter