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

PriceRange-PopUp #317

Merged
merged 8 commits into from
Dec 6, 2024
Merged

PriceRange-PopUp #317

merged 8 commits into from
Dec 6, 2024

Conversation

006080
Copy link
Collaborator

@006080 006080 commented Nov 25, 2024

Снимок экрана от 2024-11-25 20-44-49
Implemented a simplified version of the Range Price Popup modal.
The modal is designed to open upon clicking the FilterButton.
Includes a modular structure to easily add new features or enhancements in the future.
Updated the slider functionality and styles to reflect dynamic price ranges and color changes for better UI/UX alignment.

@006080 006080 self-assigned this Nov 25, 2024
@006080 006080 linked an issue Nov 25, 2024 that may be closed by this pull request
@grabinskij
Copy link
Collaborator

Hi, there are some things to improve:
Since you decreased the z-index of the header to 900, the CategoryTabs now overlaps the search calendar and other dropdowns in the header. Additionally, the overlay does not cover the entire screen; two buttons remain visible despite the overlay.

Here is one suggested solution among many that worked for me in this project, as I faced the same problem when creating popups. It can be challenging to overlap the header because of its fixed position and placement within the structure.

You can resolve this by moving the PriceRangeModal to the App.jsx file, along with the associated styles and states. Additionaly return Header back to z-index:1000. This approach should work 100%.

filterButton3
filterButton2

@grabinskij
Copy link
Collaborator

grabinskij commented Nov 27, 2024

By the way, the content inside the popup looks great 👍

@006080 006080 requested review from xaved88 and alinaincodeland and removed request for orYoffe, grabinskij, GabrielMelhem and BajalanIman December 2, 2024 17:30
@006080
Copy link
Collaborator Author

006080 commented Dec 2, 2024

I'm glad you find it great! The small bug you identified in the header can be addressed in a separate ticket, as it’s unrelated to the filter this ticket focuses on. This ticket was created specifically to ensure we didn't lose the work contributed by one of our team members, Kalina, whose efforts have made the main page look much more appealing.

@grabinskij
Copy link
Collaborator

grabinskij commented Dec 3, 2024

I'm glad you find it great! The small bug you identified in the header can be addressed in a separate ticket, as it’s unrelated to the filter this ticket focuses on. This ticket was created specifically to ensure we didn't lose the work contributed by one of our team members, Kalina, whose efforts have made the main page look much more appealing.

This PR introduces a new feature but also breaks existing functionality(Category Tabs overlaps dropdowns in the Header). I’m not sure it’s a good practice to merge a feature that negatively impacts other working components.

Would it be better to refine this PR to ensure it doesn’t affect other UI elements before merging? This way, we can avoid introducing bugs to the Home page, especially since fixing it before Demo Day might not be possible. What do you think about it?

In my previous message, I suggested one possible solution that could resolve the issue.

@006080
Copy link
Collaborator Author

006080 commented Dec 4, 2024 via email

@006080
Copy link
Collaborator Author

006080 commented Dec 4, 2024

I created this component outside of the original plan and in my free time, simply as an addition to the overall project. I believe it plays an important and significant role. Unfortunately, I no longer have time to fix minor details.

I think it should be quite simple to resolve the z-index issue, possibly somewhere in the header. This would take no more than two minutes. However, as I’ve mentioned, unfortunately I no longer have the time to work on this.

@grabinskij
Copy link
Collaborator

I created this component outside of the original plan and in my free time, simply as an addition to the overall project. I believe it plays an important and significant role. Unfortunately, I no longer have time to fix minor details.

I think it should be quite simple to resolve the z-index issue, possibly somewhere in the header. This would take no more than two minutes. However, as I’ve mentioned, unfortunately I no longer have the time to work on this.

Natalia, I want to merge this component to the main. I spent half a day struggling with my suggestions until I found a solution, and simply changing z-index in the Header to a higher value will completely break the overlay in your new component. So, we need another solution that works for all components. I mentioned a solution earlier that could fix this issue. If you don't have time right now, with your permission, I could make some changes to resolve this problem.

@xaved88
Copy link
Collaborator

xaved88 commented Dec 6, 2024

I agree with @grabinskij - you need to pull this overlay component out of the category components. The reason being - the category component already has a Z-index applied putting it behind the header, and no matter what changes you make to the popup's z-index priority, it will always be limited to whatever its parent's is set at.

Pulling the popup component out to the root of the document, using callbacks to open it, and then setting it at a z-index above 500 will do the trick :)

@006080
Copy link
Collaborator Author

006080 commented Dec 6, 2024 via email

Copy link
Collaborator

@grabinskij grabinskij left a comment

Choose a reason for hiding this comment

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

Good job!

@grabinskij grabinskij merged commit 3415719 into main Dec 6, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FilterPriceModal
3 participants