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

feat: add filtered domains in filter in tools dashboard #1272

Merged
merged 5 commits into from
Feb 3, 2023

Conversation

janvi01
Copy link
Contributor

@janvi01 janvi01 commented Jan 28, 2023

Description

The PR adds the filtered domain below the dropdown in the tool's dashboard. Below is the screenshot that depicts the implemenatation.

Screenshot -

Screenshot 2023-01-28 at 11 48 38 AM

Related issue(s)

Fixes #1270

@netlify
Copy link

netlify bot commented Jan 28, 2023

Deploy Preview for asyncapi-website ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 40fe3a8
🔍 Latest deploy log https://app.netlify.com/sites/asyncapi-website/deploys/63dd22e9aaaafe0008561a3c
😎 Deploy Preview https://deploy-preview-1272--asyncapi-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@janvi01 janvi01 changed the title feat: added filtered domains in filter in tools dashboard feat: add filtered domains in filter in tools dashboard Jan 28, 2023
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@github-actions
Copy link

github-actions bot commented Jan 28, 2023

⚡️ Lighthouse report for the changes in this PR:

Category Score
🔴 Performance 35
🟠 Accessibility 88
🟢 Best practices 100
🟢 SEO 100
🔴 PWA 30

Lighthouse ran on https://deploy-preview-1272--asyncapi-website.netlify.app/

Copy link
Member

@akshatnema akshatnema left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Hey @janvi01, thanks for contributing to the issue. My suggestion is that if we are mentioning the tags selected in the filter, let's not just make it only UI. We should make it some way useful. Add a cross (in icon) button beside each tag so as to remove the filter without opening the dropdown for the field. Also, I find that these values look slightly similar to the fields given inside the Filter Dropdown. So, Can you please make it like having light gray border and on hover, slightly dark to make them different from others.

image

It will be nice if you can add a feature that when some tags are selected in the filter, this filter header shows the number of tags selected like "3 options selected", and none of them are selected, "Select Languages..." are there. I hope you will understand. If not, you can ask me freely.

@janvi01
Copy link
Contributor Author

janvi01 commented Jan 30, 2023

Hey, @akshatnema Thanks for the amazing improvement suggestions. I will update the PR soon.

@janvi01 janvi01 requested a review from akshatnema January 31, 2023 05:42
@janvi01
Copy link
Contributor Author

janvi01 commented Jan 31, 2023

I have changed the tags ui as per the suggestion, added the functionality to remove the filter and labels in the dropdown when a certain number of tags are selected.

Also when 1 option is selected, it says 'option' else 'options'.

Copy link
Member

@akshatnema akshatnema left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Certain changes are needed in the PR.

components/tools/Filters.js Outdated Show resolved Hide resolved
components/tools/Filters.js Outdated Show resolved Hide resolved
components/tools/Filters.js Outdated Show resolved Hide resolved
components/tools/Filters.js Outdated Show resolved Hide resolved
components/tools/Filters.js Outdated Show resolved Hide resolved
@janvi01 janvi01 requested a review from akshatnema February 2, 2023 07:21
@janvi01 janvi01 requested a review from akshatnema February 3, 2023 14:03
@akshatnema
Copy link
Member

/rtm

@asyncapi-bot asyncapi-bot merged commit 392f5c8 into asyncapi:master Feb 3, 2023
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.

Add filtered domain below the dropdown in filter section in tools dashboard
3 participants