-
Notifications
You must be signed in to change notification settings - Fork 11
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
✨ improved the UX for the right sidebar #63
base: main
Are you sure you want to change the base?
Conversation
Hey, thanks for taking the time to submit another PR. I reviewed it locally and found a few things that would need to be addressed before merging:
Having the X icon is a better UI experience, but I'm afraid the extra issues this PR introduces aren't worth that benefit. If they're resolved, I'd be happy to do another review ~~ Its collapsing behavior should follow the same pattern as the left sidebar. Specifically, when the sidebar is open and a user clicks on the all-day grid, main grid, or left sidebar, then the right sidebar should simply collapse.~~
|
Hey, no worried. Let me look into it 👍 |
Hey Tyler, I have been looking into it. What's in my mind is that when the X button changes to ☰ , it causes a change in the size of DOM element which now occurs without letting the observer function know. I think all along this is why maybe you chose to let the ☰ stay in both open and close state. I feel like its a small logical error that I can fix but am struggling to identify it. I'll appreciate if you could help me figure out what could be a possible solution to fix the undelivered notification. |
If you watch the backend logs, you'll see that opening and closing the sidebar triggers event requests. They'll look something like this:
Why that happens gets into how state is being accessed and updated throughout the app, along with the effect hooks you've created on this branch. I wish I could give a quick explainer, but it'd take a lot of debugging to confirm what exactly is triggering this behavior. It's potentially caused by poorly architected state management, your implementation of the effect hooks, or both. Since this re-rendering and subsequent API requests will to slow down the UX, I'm afraid we can't proceed without fixing the underlying issues first. I didn't get the chance to dig into the ResizeObservable error, but the above issue is already a show-stopper, so it's not worth worrying about that at this point. |
Converted to draft due to the issues mentioned above |
Description
As a user when I:
- Click the hamburger menu it makes the difference when it is open and when it is closed .☰ for open and X for close .
- Click somewhere else in the page the right side bar closes.
- Press the esc button the right sidebar collapses.
This PR fixes #50
Checklist
##Screenshots