jsdelivr / www.jsdelivr.com

The official jsDelivr website
https://www.jsdelivr.com
Open Software License 3.0
142 stars 63 forks source link

Issues in redesign #438

Closed MartinKolarik closed 2 years ago

MartinKolarik commented 2 years ago

GitHub is hiding comments in #400 because there are too many, so we're going to track all remaining issues here for better visibility.

MartinKolarik commented 2 years ago

Package page: https://www-jsdelivr-com-pr-400.onrender.com/package/npm/react

Fixed:

- [x] if a package doesn't have a readme, show the "Show/Configure Files" tab on load (https://www-jsdelivr-com-pr-400.onrender.com/package/npm/yandex-metrica-watch) - [x] Ignore "day" period for charts - if a user selects "day", don't update the charts, keep whatever was shown before, update only the tables (see how it works at https://www.jsdelivr.com/package/npm/react) - [x] Vulnerabilities badge needs to be a link (see at master branch) - [x] code/icon overlap ![image](https://user-images.githubusercontent.com/6192491/168694027-e4518e81-6764-47e7-9f1e-0394e4772135.png)
MartinKolarik commented 2 years ago

All pages:

image

Homepage:

jimaek commented 2 years ago
IvanAdamovic646 commented 2 years ago

All pages:

  • [ ] In all places where we refer to "requests" and "GB", it should be "requests" and "bandwidth" and the unit should be part of the value. E.g. this switch but it's in many places so use search for "GB" and fix everywhere:

image

@MartinKolarik, could you explain more about this point? image Does the current chart is about for "GB" ? right?

MartinKolarik commented 2 years ago

@IvanAdamovic646 image

IvanAdamovic646 commented 2 years ago

So we are fetching "Request" data using "fetchPackageDateStats" function and the api url is https://data.jsdelivr.com/v1/package/npm/react-is/stats/date/month

To get "GB" data, we can use "fetchPackageBandwidthStats" function and api url is https://data.jsdelivr.com/v1/package/npm/react-is/stats/bandwidth/date/month

right?

MartinKolarik commented 2 years ago

@IvanAdamovic646 you wrote the same URL twice but yes, the function names are correct.

IvanAdamovic646 commented 2 years ago

Thanks for details, @MartinKolarik .

MartinKolarik commented 2 years ago

We now have preview endpoints for everything except part of the stats page. All data mocks should be replaced by the real endpoints.

IvanAdamovic646 commented 2 years ago

@MartinKolarik tweet button has broken text: "jquery is the 11th most popular package on https://github.com/jsdelivr CDN, with 23 344 847 771 hits in the last year: undefined" Can you tell me what can be replaced instead of undefined?

MartinKolarik commented 2 years ago

@MartinKolarik tweet button has broken text: "jquery is the 11th most popular package on https://github.com/jsdelivr CDN, with 23 344 847 771 hits in the last year: undefined" Can you tell me what can be replaced instead of undefined?

It's supposed to be a link to that page.

IvanAdamovic646 commented 2 years ago

I'm attaching image about the link for tweet button. image I have checked again which can be the link to that page but still not sure what can be the proper link for it. Could you give me a hint or proper tweet url for attached page again please?

MartinKolarik commented 2 years ago

I'm attaching image about the link for tweet button. image I have checked again which can be the link to that page but still not sure what can be the proper link for it. Could you give me a hint or proper tweet url for attached page again please?

in this case it would be the full localhost url to that page, which you see in the browser url bar (simply location.href)

IvanAdamovic646 commented 2 years ago

Ok. thanks for letting me know.

IvanAdamovic646 commented 2 years ago

Hi, @MartinKolarik. on smaller screens, the sidebar is cut, we should make it work down to 992px ideally and then hide it below 992 (currently it's still partially visible) Regarding this issue, currently, I have updated this page that it can work down to 1200px and if below 1200px it hide sidebar. Let me know please if current state is okay.

Or when size down like to 995px, is it okay to split the button text into 2 lines like below image ? image

MartinKolarik commented 2 years ago

@IvanAdamovic646 we could probably come up with a different layout for the buttons but generally I hoped we could make the right panel smaller on that size.

MartinKolarik commented 2 years ago

@xbpcb reassigned to you, please check the remaining unchecked tasks in the comments above (I've hidden all comments that are already resolved).

MartinKolarik commented 2 years ago

Stats page: