freelawproject / courtlistener

A fully-searchable and accessible archive of court data including growing repositories of opinions, oral arguments, judges, judicial financial records, and federal filings.
https://www.courtlistener.com
Other
542 stars 150 forks source link

Coverage page follow up tasks #3222

Closed mlissner closed 1 year ago

mlissner commented 1 year ago

A few things I"m seeing and thinking about wrt to the new coverage page:

What else?

flooie commented 1 year ago

Performance performance performance -

mlissner commented 1 year ago

The latest list:

mlissner commented 1 year ago
mlissner commented 1 year ago
flooie commented 1 year ago

what is weird about the x button?

mlissner commented 1 year ago

It's all the way down by the line?

mlissner commented 1 year ago
mlissner commented 1 year ago

Making progress! Amazing how hard a single page can be, but I think this is an important one to get right, so here's what I hope is my last fine-tooth combing through it:

I think that's it. I think all of this is easy except, perhaps, the last item, which I'm not sure about. Hopefully we're on the final bit of this one, but not yet at the ends of our rope.

flooie commented 1 year ago

I dont have the layout issue but it's a width thing when you load the page. The chart is surprisingly not dynamic. I'll see what I can do

Screenshot 2023-10-05 at 7 28 15 PM
flooie commented 1 year ago

I've got some updates for mobile - I think but I dont have enough data to validate the Ohio NY situation yet.

Here is how mobile looks in safari in different form factors. The only thing holding this up is the fact that we need to complete our court citation string to use as a shortened string to make it work across all mobile options.

@mlissner

Screenshot 2023-10-06 at 3 52 34 PM Screenshot 2023-10-06 at 3 52 41 PM Screenshot 2023-10-06 at 3 52 45 PM Screenshot 2023-10-06 at 3 52 20 PM Screenshot 2023-10-06 at 3 52 24 PM Screenshot 2023-10-06 at 3 52 29 PM Screenshot 2023-10-06 at 3 52 15 PM
mlissner commented 1 year ago

That's cool. I'm not sure the FB, F, etc. mean much to anybody though. Could we just remove those?

flooie commented 1 year ago

I was going to add a legend ? but we could easily remove them

mlissner commented 1 year ago

I'd suggest removing them on xs, sm, and md, but leave them on lg?

mlissner commented 1 year ago

I guess if we wanted to do a legend (and it's easy), we could use color of the bars instead and drop the left sidebar completely.

flooie commented 1 year ago

We need to update all citation string but otherwise it's great

flooie commented 1 year ago

To be clear it says federal appellate etc on big screens.

mlissner commented 1 year ago

I mean, if you're doing a legend, is it easier to just ditch the left sidebar completely on all screensizes?

flooie commented 1 year ago

@mlissner the PR is ready for your review - ditched the legend - but made some other choices

mlissner commented 1 year ago

OK, we're certainly getting there. I checked off a bunch of the boxes on this issue.

Ohio is still a little weird:

image

It's readable now, so it's probably fine to leave well enough alone, but I thought I'd raise it, since I know you were calculating widths and it surprised me that it had such a large margin on the right.

This is also really hard to understand. Why are there black and purpose boxes? What could it mean?

image

I'm not sure we can do much more about performance, so I guess that's done.

So, summarizing:

flooie commented 1 year ago

Whoa - Ohio is super weird on your screen. @ERosendo any chance you are having the same issue as @mlissner

ERosendo commented 1 year ago

I just checked the coverage page and I'm not seeing that result. 🤔

ERosendo commented 1 year ago

I'm getting this chart for Ohio:

Screenshot 2023-10-13 at 2 30 14 PM
flooie commented 1 year ago

@mlissner I've tested this on Safari, Firefox, Mobile Safari and Chrome - and do not see those results.

mlissner commented 1 year ago

Hm, it works for me on Chrome, but not Firefox. I did a SHIFT+R refresh, but that didn't change anything (nor did I expect it to with our cache-busting approach). I don't know why it'd do that, but if it's just a me on Firefox/Linux thing, I think we can leave it be and focus on the rest.

flooie commented 1 year ago

The Black vs Purple is an artifact that distinguishes scrapers from non scrapers charts. It is caused by the chart treating the two rows differently because there is no value for the number of opinions that are represented there.

Since we are currently having an issue with the opinion / cluster totals - dropping the value for the number of opinions will change every line to black.

mlissner commented 1 year ago

OK, but if every line is black, how will you know that lines 3 and 4 of my screenshot above are for scrapers and lines 1 and 2 are not?

flooie commented 1 year ago

You won't on mobile - but they will be listed as such on larger screen sizes. Alternatively we could add a (Scrp) or something to the label on the right?

flooie commented 1 year ago

Additionally

    <script type="text/javascript" nonce="{{ request.csp_nonce }}">
        var precedentTypes = [
            {% for status in precedential_statuses %}
                '{{ status }}'{% if not forloop.last %},{% endif %}
            {% endfor %}
        ];
        var sorted_courts = {{ sorted_courts|safe}};
    </script>

I believe this can be removed as well - as it creates variables that were used in the coverage.js file that was removed

mlissner commented 1 year ago

Alternatively we could add a (Scrp) or something to the label on the right?

Easy enough and better than nothing. Sure.

mlissner commented 1 year ago

OK, I think we can close this one with #3254