Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redesign #400

Merged
merged 2,354 commits into from
Jan 22, 2023
Merged

Redesign #400

merged 2,354 commits into from
Jan 22, 2023

Conversation

xbpcb
Copy link
Collaborator

@xbpcb xbpcb commented Jul 16, 2021

Redesign jsDelivr

@render
Copy link

render bot commented Jul 16, 2021

@MartinKolarik
Copy link
Member

Please pull in the latest commits from master to fix the PR preview.

@MartinKolarik
Copy link
Member

Note here about wording. We are mixing up "GB" and "bandwidth" in the design. 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

@jsdelivr jsdelivr deleted a comment from seafarer111 Apr 18, 2022
@jimaek jimaek linked an issue May 5, 2022 that may be closed by this pull request
@MartinKolarik
Copy link
Member

MartinKolarik commented May 5, 2022

moved below

@MartinKolarik
Copy link
Member

MartinKolarik commented May 5, 2022

History page:

Done:

  • some icons are blurred, please try to find svg version for all logs, where not available, make sure to use the correct 1x and 2x sizes for png - e.g., the rawgit icon has just one size and it's also wrong,
  • update the content based on this comment: Add history page #408 (comment)

@MartinKolarik
Copy link
Member

MartinKolarik commented May 6, 2022

moved below

@IvanAdamovic646

This comment was marked as resolved.

@MartinKolarik

This comment was marked as resolved.

@IvanAdamovic646

This comment was marked as resolved.

@MartinKolarik
Copy link
Member

MartinKolarik commented May 11, 2022

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

  • undefined chart labels on Statistics tab - be sure to test all period options including yearly

image

  • 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)
  • chart labels on Y axis - number should be aligned to the right and have space between every three digits (see design), use _.formatNumber
  • "Group by" - this needs to be implemented on the client. Show only the groups for which we have all the data, drop the first/last group with partial data. Example: today is May 13, I select yearly range and group by month. Data for May won't be shown because the month isn't complete yet, the chart will have (from right to left) April, March, ..., until June 2021 (again May 2021 won't be shown because the API response will only have data for dates 13. 05. 2021 - 31. 05. 2021).
  • 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)
  • Vulnerabilities badge needs to be a link (see at master branch)
  • the version text should not change color on open - still wrong when you open it and hover something in the dropdown
    image
  • code/icon overlap
    image

@MartinKolarik
Copy link
Member

MartinKolarik commented May 12, 2022

Footer:

@MartinKolarik
Copy link
Member

I updated my to-do comments above with some new tasks.

@MartinKolarik
Copy link
Member

MartinKolarik commented May 15, 2022

Repost of my previous comments because GitHub now hides them

Purge page:

  • on mobile version (width 600), the results box looks broken:
    image

done:

  • only allow URLs on https://cdn.jsdelivr.net domain (accept http too)
  • the API accepts paths, not full URLs, you need to parse the path from the input and send only that
  • the expanded view doesn't match design
    image
  • not sure why the whole row is clickable and changes border color on click but expands only when clicked on the "success" text:
    image

probably expand on click anywhere and don't change border, make sure the cursor indicates the area is clickable

  • the footer must stick to the bottom of the screen (this applies to all pages where the content is too short)

image

see https://www.jsdelivr.com/tools/purge, in CSS it was previously implemented by the wrapper/push elements

image

@MartinKolarik
Copy link
Member

MartinKolarik commented May 15, 2022

Homepage:

  • the buttons should be aligned by type (i.e. npm always in forth column)
    image
  • no "load more" here, always show the full version (this was updated in the design too)
    image

Done:

@MartinKolarik
Copy link
Member

Please also check this on all pages: #400 (comment)

@MartinKolarik
Copy link
Member

probably wrong color of mobile me u on tap: Screenshot_20220517-021116.jpg

@itstarlight0808
Copy link

itstarlight0808 commented May 17, 2022

image

Total button count is 5 , isn't it? So you mean npm button should always be in fourth column . Is it ok to have a gap between first button and npm button? #

@MartinKolarik
Copy link
Member

@itstarlight0808 yes, fixed position for each button type, empty space when it's missing.

@itstarlight0808
Copy link

itstarlight0808 commented May 19, 2022

@MartinKolarik
How are you?
On stats page,
how to get necessary data using API.

  1. Global data
    1.1 Requests Served - how to get it?
    1.2 Bandwidth - how to get it?
    Let me know full detailed api url and example.
    Thanks.

@MartinKolarik
Copy link
Member

@itstarlight0808 it'll use data from 2.1, updated doc and mocks here:
api mocks.zip

@itstarlight0808
Copy link

itstarlight0808 commented May 19, 2022

I already got it , but can't notice its usage.
Full API url is like this?
https://data.jsdelivr.com/v1/stats/network/providers?type=hits&period=month

But it doesn't work. :(
image
How to get Requests served and Bandwidth data using API?
Please give me a hint.
Thanks.

@MartinKolarik
Copy link
Member

@itstarlight0808 that's exactly how the URL will be but it isn't live yet, that's why you have sample data files there. You can create all functions as needed (including the URL construction logic) but instead of making real http calls just return data from that zip (copy paste the data into the JS as needed and when the API is live we'll just remove it and make real http calls).

@MartinKolarik
Copy link
Member

MartinKolarik commented May 20, 2022

So for those two tables, render data from API-data-2.1-network-providers.json for now. Note that the ZIP I uploaded here is an updated version - newer than what you got before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New analytics Why jsDelivr section New stats
5 participants