-
-
Notifications
You must be signed in to change notification settings - Fork 9k
feat(website): redesign of showcase page #5742
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
Conversation
Hey, thanks The site can't build in the CI however so I can't check the preview. It may be a problem with our Some initial feedback:
|
✔️ [V2] 🔨 Explore the source changes: e957dd9 🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/61965fa62577090007305cab 😎 Browse the preview: https://deploy-preview-5742--docusaurus-2.netlify.app |
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-5742--docusaurus-2.netlify.app/ |
I've changed the design of the card to meet the specifications in the comment above. For the tooltip, is it okay to use a third party library like tippy.js? |
Review url: https://deploy-preview-5742--docusaurus-2.netlify.app/showcase/ That looks nice thanks. Some raw comments:
|
@chimailo It seems you have been inactive for a while (~two weeks). I'm going to take this over soon after (maybe less than a week?) if it seems you are unavailable to finish this PR😉 |
@Josh-Cena I've actually been working on it, in the time I have, the tooltip component was a little more challenging than I thought. |
Also, merge main so we can see the latest changes applied & be ready for review |
I tried using just CSS for the tooltips, but it always had issues, one if which is the positioning of the tooltip. The closer the tooltip is to the edge of the viewport, the more likely it is to for part of it to be cut off from view, hence the need for javascript (I used popper js for this) to handle positioning of the tooltip. Another is that the parent element could limit/affect the display of the tooptip. Certain css properties like |
Thanks, that starts to look nice :) I'm ok for using popperjs, it's a quite generic and widely used lib that we can reuse in other parts later |
2b0089f
to
375c2e7
Compare
…e && highlight filter toggle on focus.
The space-bar key toggles the checkbox that is focused, the problem is just that one couldn't tell when it is focused. I've made sure to highlight the filter toggle when it is focused. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love it, thanks a lot! Didn't expect it to be so beautiful!
Some feedback:
-
Should we allow to click on the image or does it cause any trouble?
-
What about allowing to click on card tags? Does it lead to a weird UX?
-
Should favorites still be at the beginning if tags are used?
-
Would it be easy to animate a bit the tooltip?
-
Maybe we need a separator, at least for our light theme, because some screenshots have white background?
- I think we should normalize on card ratios, to avoid a weird offset:
(if images are not good enough we can update them, and eventually add a CI check to ensure a required image ratio? => this can be done in another PR)
All this is optional, merging this now is already good enough to me!
I'm assuming you mean making the card images links? That would make the images not load since the image only loads when it is clicked.
I don't think so. At least, it would help those using keyboard navigation.
They could be at the beginning but I don't think we need to separate them as they now can be easily identified.
For that I would need to use a transition library (React Transition Group). Didn't want to introduce another library, I'd implement it in the next push.
Sure.
I think so to. The image ratios vary very broadly and ensuring an image ratio is the best way to solve that. |
I thought about that but it's genuinely a bit weird. You click on a tag and then the page's scroll position goes back to the top.
No—we should just use CSS. That's too much limitation on the contributor side for little returns. |
I don't agree here, we should not add a strict ratio but a minimum one. Most users already send good looking screenshots, only some are bad. This should be rejected by CI, because of not enough height: We'll fix that in another PR Ok so I suggest we just do some minor changes to this PR merge it:
|
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
All addressed! 👍 Things look a lot cleaner now. I'll merge this shortly after, can't wait to see it in production |
Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
awesome, thanks :) |
Good catch
🌚 |
FB has given itself a name so easily misunderstood in a lot of contexts... |
Yes 🤷♂️ 😄 but I think it's required to do the change now |
It's quite late here, so...😉 |
I also noticed that Rocket Validator confirms it: Also underline links does not work correctly for multiline text: Maybe you don't need to merge this PR so quickly? Why the rush? This is not the first time I've noticed a PR in the spirit of "Missed this in ..." like that #5965. Probably we need to introduce a rule not to self-merge PR until it get at least one approval from any maintainer? Of course in the case of a tiny/insignificant change a maintainer can self-merge such a PR as before. |
Well, we did get approval in both cases ("Good to merge, just minor changes"). It's quite hard to catch everything especially if the diff, the preview, and CI all look misleadingly good (e.g. #4095). Sometimes it leads to bugs like #5863, other times it's less severe or is caught early. I doubt if any of us would be able to catch this had we been reviewing #4095. But, good point. I do think up to this point all of us have kept in mind to get some review before merging anything significant. |
not a big deal IMHO, it's not bad to merge it now and fix the remaining issues later as it's good enough in current state It's only impacting our own website, not users, so I'm ok to move fast and break things a bit on such PRs. We should be more careful in reviews in particular when new public APIs are created |
Yes, agreed, but just wanted to remind not to jump to merge a PR. Although at the repository level we could try to require an one approval to be able to merge a PR (just in case). |
Motivation
This PR was created as a result of this issue #4669 and after this design was approved.
Have you read the Contributing Guidelines on pull requests?
I certainly have and have tried to follow its guidelines.
Test Plan
Dark Theme
Light theme