-
Notifications
You must be signed in to change notification settings - Fork 430
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
Modify the UI of events log switch tab #8286
Comments
Screen.Recording.2024-08-22.at.12.mp4I have brought them to single row by creating filter ui elements in the parent component (removed the logic related to them in child components where they were present initially) and passed the corresponding query values of both filter ui as props to components which render the result obtained from filtering. Adjusted the grid to 3 columns. Please let me know if this is what you wanted ? and happy to modify if anything @rithviknishad |
The "sort by" and "filter" is NOT a tab right? Can we keep it outside the tab switch? |
Screen.Recording.2024-08-22.at.13.mp4There is some inconsistency in the appearance of filter buttons. How do we make it better ? any inputs @rithviknishad |
We could use a Popover with 3-dot menu or filters icon for both. And keep the sort by as an option (select menu) in the popover instead. |
is this how you wanted @rithviknishad ? Let me know if any changes required. Screen.Recording.2024-09-20.at.09.31.52.mov |
Sure ill change. Update: @rithviknishad As both filter ui components are different (popover, dropdown), it was straight forward to achieve the requirement for popover botton since we are creating a popover (3 dot). Inorder to have same appearence for both i had to change core menu component (not custom dropdownmenu component) . It will affect in other places as it is imported. So, i have pass label of menu as "None" and conditionally rendered 3 dot button to maintain same appearence. Let me know what you think. Screen.Recording.2024-09-20.at.14.mp4 |
Checkout |
Also let the 3-dot button's variant be "secondary", also ensure it's square. Would be difficult to click if so slim. |
Hey @JOSHIK27 Any updates on this? Stuck somewhere? |
Apologies for the delay. I could not find SelectMenuFormField anywhere in neither headless ui elements nor the codebase. Checked with headlessui documentation. Am i missing something ? Could you please direct me with this element. I'll give u the update about pr eod. |
My bad, it's |
thank you. Will look into it @rithviknishad if we use selectformfield inside popover panel for sortbydropdown filter, would not that be a nested one as earlier ? Update: Instead of using selectformfield, i rendered all the options in the popover panel as divs with exact styling as selectformfield options for consistency. Now both filters are popvers. Please let me know if anything needs to be changed Screen.Recording.2024-10-01.at.17.mp4 |
@nihal467 whats the status here? Also link the PR |
@bodhish i think you mis tagged me, @rithviknishad @JOSHIK27 can you share the status on this issue and link the PR |
@JOSHIK27 the recording shared in the last comment looks fine to me |
Sure. Will create the pr. |
Here's the pr |
Describe the bug
Currently the switch tab of events & daily road and filters button in the consultation page are utilizing two separate rows, unnecessarily
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Screenshots
The text was updated successfully, but these errors were encountered: