Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Sen Hastings <sen@phobosdpl.com>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH v3] support/scripts/pkg-stats: migrate to CSS grid and inline javascript
Date: Sun, 24 Jul 2022 16:56:31 +0200	[thread overview]
Message-ID: <20220724165631.708af168@windsurf> (raw)
In-Reply-To: <e7d99988-6353-5cb8-0202-5a045eb57a88@phobosdpl.com>

Sen,

On Sun, 24 Jul 2022 09:36:20 -0500
Sen Hastings <sen@phobosdpl.com> wrote:

> >  * Sorting is now very slow, to the point that Firefox complains that
> >    the page is slowing down the web browser. It was instantaneous in
> >    the old code, but way faster.>  
> 
> Wow, dang I see what you mean. I was doing testing with relatively
> *small* defconfigs. Looks like the bottleneck is actually at the end
> when calling packageGrid.append(element). I'll dig into it.

Thanks:

> >  * The "Latest version" cell is no longer with a dark orange/red
> >    background when the version doesn't match with the "Current
> >    version", these cells now have a green background, making one think
> >    that the package is up-to-date in Buildroot.
> >   
> Ah, that's a cascade order issue. Fix is to move the
> ".correct, .nopatches, .good_url..." rule above the
> ".wrong, .lotsofpatches, .invalid_url..." rule.

OK. I guess you'll send a patch to fix this.

> >  * When sorting on a column, a small arrow appears indicating that the
> >    sorting has been done based on this column. But then when you sort
> >    by another column, the arrow appears on this new column, but doesn't
> >    disappear on the old one, so you no longer know which column was
> >    using for the sorting.
> >   
> This is *kind of* a feature? sortGrid()'s sorting is cumulative, so they
> are all *technically* being used for sorting. This means the table is
> not *reset* to its original state before every sort.
> For example, sorting by (clicking on) "Infrastructure", then "License"
> will yield a different sort (row order) than sorting by "License",
> *then* "Infrastructure". An actual table "reset" is achieved with
> sorting by "Package" ascending (down arrow). I must admit though, after
> the table is reset the other arrows are meaningless until clicked on
> again. That is definitely misleading, so no matter what arrows *should*
> be reset after a table reset. I guess I didn't realize my sort behaved
> differently in this regard. Whatever behaviour you think is most
> appropriate (the original or cumulative), I'll make it do that.

Yeah, Arnout told me the same thing, but I find that not obvious.
Indeed, you then simply have arrows on two (or more) columns, and then
don't remember which one you clicked first, and which one you clicked
afterwards. So basically, if you don't remember in which order you
clicked, you have no idea based on what sorting rules the current table
is listed.

> > Do you think you could have a look at those issues?
> >   
> Yes. As a clerical note, should I do multiple patches, a patch series or
> one big one?

Either multiple separate patches sent individually, or grouped as a
patch series, but not a "big one" :-)

Thanks a lot!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2022-07-24 14:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <394b4fbb-5d72-92ea-ccf3-3cbc47a0c1a9@phobosdpl.com>
2022-07-24 14:36 ` [Buildroot] [PATCH v3] support/scripts/pkg-stats: migrate to CSS grid and inline javascript Sen Hastings
2022-07-24 14:56   ` Thomas Petazzoni via buildroot [this message]
2022-07-22 19:15 Sen Hastings
2022-07-23 16:11 ` Arnout Vandecappelle
2022-07-23 17:48   ` Arnout Vandecappelle
2022-07-24 10:29 ` Thomas Petazzoni via buildroot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220724165631.708af168@windsurf \
    --to=buildroot@buildroot.org \
    --cc=sen@phobosdpl.com \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox