Re: Add support for tags on a server node

From: Aditya Toshniwal <aditya(dot)toshniwal(at)enterprisedb(dot)com>
To: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Cc: Usman Khan <umk555(at)gmail(dot)com>, Dave Page <dpage(at)pgadmin(dot)org>, Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com>
Subject: Re: Add support for tags on a server node
Date: 2024-12-03 11:37:15
Message-ID: CAM9w-_mgnPyXUsqs2JytNj2_QTmiazY83AB4pJ=gLHO5_uFeGg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi Hackers,

I've simplified the UI to ask the user for only one color. Other UI colors
will be derived from that color.

[image: image.png]

On Mon, Dec 2, 2024 at 10:27 AM Aditya Toshniwal <
aditya(dot)toshniwal(at)enterprisedb(dot)com> wrote:

> Hi Ashesh,
>
> On Mon, Dec 2, 2024 at 10:10 AM Ashesh Vashi <
> ashesh(dot)vashi(at)enterprisedb(dot)com> wrote:
>
>> On Mon, Dec 2, 2024 at 10:05 AM Aditya Toshniwal <
>> aditya(dot)toshniwal(at)enterprisedb(dot)com> wrote:
>>
>>> Hi Usman,
>>>
>>> On Fri, Nov 29, 2024 at 7:11 PM Usman Khan <umk555(at)gmail(dot)com> wrote:
>>>
>>>> okay sure.
>>>>
>>>> - Cannot we accommodate it in existing tabs such as General etc?
>>>>
>>>> No. It doesn't have enough space. Users will need to scroll. Plus, tags
>>> are not so important for a server connection.
>>>
>> We could create control something like this.
>>
>> https://dev.to/mio_im/lets-create-a-advanced-tags-input-component-in-react-js-58c6
>>
> We already have a multi-select creatable component. But this doesn't allow
> changing the colors. Having flexibility to change color can be helpful as
> we support multiple themes.
>
>>
>>
>> --
>>
>> 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>
>>
>>>
>>>> - It would be ideal if we also impose a limit on the text length.
>>>>
>>>> Sure.
>>>
>>>>
>>>> -
>>>>
>>>>
>>>> On Fri, Nov 29, 2024 at 5:13 PM Aditya Toshniwal <
>>>> aditya(dot)toshniwal(at)enterprisedb(dot)com> wrote:
>>>>
>>>>> Hi Usman,
>>>>>
>>>>> Nothing is predefined, users need to add. Here's a draft:
>>>>> [image: image.png]
>>>>>
>>>>> On Fri, Nov 29, 2024 at 5:21 PM Usman Khan <umk555(at)gmail(dot)com> wrote:
>>>>>
>>>>>> @adityatoshniwal it's a nice feature, thanks for adding.
>>>>>> Will we provide pre-defined tags or will the user have the liberty to
>>>>>> create them as per their need?
>>>>>>
>>>>>> On Thu, Nov 28, 2024 at 3:55 PM Aditya Toshniwal <
>>>>>> aditya(dot)toshniwal(at)enterprisedb(dot)com> wrote:
>>>>>>
>>>>>>> Thanks! git issue created -
>>>>>>> https://github.com/pgadmin-org/pgadmin4/issues/8192.
>>>>>>>
>>>>>>> On Thu, Nov 28, 2024 at 4:02 PM Dave Page <dpage(at)pgadmin(dot)org> wrote:
>>>>>>>
>>>>>>>> Hi
>>>>>>>>
>>>>>>>> On Thu, 28 Nov 2024 at 10:20, Aditya Toshniwal <
>>>>>>>> aditya(dot)toshniwal(at)enterprisedb(dot)com> wrote:
>>>>>>>>
>>>>>>>>> Hi Dave/Hackers,
>>>>>>>>>
>>>>>>>>> We have a requirement where we need to tag servers with some
>>>>>>>>> labels. Tags allow adding extra info without renaming the server. It can
>>>>>>>>> also be helpful when adding shared servers. In future, it can be helpful as
>>>>>>>>> a filter criteria. If you agree then I can create a git issue. Below
>>>>>>>>> is a sample.
>>>>>>>>> Let me know what you think.
>>>>>>>>>
>>>>>>>>> [image: Screenshot 2024-11-28 at 15.44.28.png]
>>>>>>>>>
>>>>>>>>
>>>>>>>> That seems like it could be useful.
>>>>>>>>
>>>>>>>> --
>>>>>>>> Dave Page
>>>>>>>> pgAdmin: https://www.pgadmin.org
>>>>>>>> PostgreSQL: https://www.postgresql.org
>>>>>>>> pgEdge: https://www.pgedge.com
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Thanks,
>>>>>>> Aditya Toshniwal
>>>>>>> pgAdmin Hacker | Sr. Staff SDE II | *enterprisedb.com*
>>>>>>> <https://www.enterprisedb.com/>
>>>>>>> "Don't Complain about Heat, Plant a TREE"
>>>>>>>
>>>>>>
>>>>>
>>>>> --
>>>>> Thanks,
>>>>> Aditya Toshniwal
>>>>> pgAdmin Hacker | Sr. Staff SDE II | *enterprisedb.com*
>>>>> <https://www.enterprisedb.com/>
>>>>> "Don't Complain about Heat, Plant a TREE"
>>>>>
>>>>
>>>
>>> --
>>> Thanks,
>>> Aditya Toshniwal
>>> pgAdmin Hacker | Sr. Staff SDE II | *enterprisedb.com*
>>> <https://www.enterprisedb.com/>
>>> "Don't Complain about Heat, Plant a TREE"
>>>
>>
>
> --
> Thanks,
> Aditya Toshniwal
> pgAdmin Hacker | Sr. Staff SDE II | *enterprisedb.com*
> <https://www.enterprisedb.com/>
> "Don't Complain about Heat, Plant a TREE"
>

--
Thanks,
Aditya Toshniwal
pgAdmin Hacker | Sr. Staff SDE II | *enterprisedb.com*
<https://www.enterprisedb.com/>
"Don't Complain about Heat, Plant a TREE"

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message Anil Sahoo 2024-12-04 05:18:53 Re: Require suggestions on feature #5766
Previous Message Aditya Toshniwal 2024-12-02 04:57:36 Re: Add support for tags on a server node