-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Make order details panel visible. #2719
Make order details panel visible. #2719
Conversation
At more narrow widths we don't want to lose the order selector there. @rymorgan Is there an already existing spec for how this order table should operate at all the varying widths? I feel like there is but I am not sure where one would look. |
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.
Still not behaving correctly at all widths
@zenweasel Thanks for the feedback. I have tested this PR and it truly displays the orders table in a weird way at wider screen widths. I'll fix that and update my PR. As for the orders' table's behaviour at smaller widths, especially in the screenshot you shared, what happens is that the container for the table becomes scrollable. So, if you scroll to the right, the order selector is still visible. PS: Other than the above, this PR also hides various columns as the screen size reduces in order to fit the orders' table to the screen. |
@foladipo can you come back to this soon, and fix the merge conflicts, and get this ready for review, or can you close the PR until you are ready? |
Thanks for the heads-up @aaronjudd . I put this in the icebox to work on #2265 because of how important it was to fix that bug. I've now fixed the issues observed by @zenweasel and pushed the commits. |
@foladipo I thought the above corrupted view might be dependent on a particular width but that's the way it is at all widths, rendering the order panel unusable. |
@zenweasel I've tried to reproduce this both on my computer's screen and a large monitor but can't. Can you tell me the steps you carried out to get the bug? I also wonder why the order's detail panel (to the right) is actually duplicating itself. |
@foladipo I followed the instructions in the PR |
I'm seeing the same thing. There is something more going on with sidebar than just this. I created an issue for what I'm seeing in general with the sidebar UI in orders. The sidebar for orders is basically unusable in Marketplace right now. |
@rymorgan @zenweasel So, I've figured out where this happens, being guided by what Ryan reported in #2775. Apparently, you can reproduce this bug as follows:
I'm guessing this was caused by some new code pushed to |
(Also add a TODO about a needed discussion of code design.)
@rymorgan and @zenweasel So, I've figured out that it doesn't even happen on the "Thank you" page alone. It happens on all pages that are NOT the index. So, if you go to I eventually traced the source down to this section of code. So, I wish to know your corrections (e.g that that code isn't actually the root of the bug) or suggestions as to how to update that section to fix the bug WHILE not breaking other parts of the codebase. |
@mikemurray @kieckhafer Can one of you two take a look at this. I can get you up to speed on the bug if needed. |
@foladipo The action view is split up into 2 sections. [ actionView | actionViewDetail ] You open the main action view with The button that opens the order detail should be doing |
@mikemurray Yes, the button that opens the order detail does call The problem is that that call eventually gets into this function. What I don't understand is why we have to open either In fact, if I simply open Now, after doing some more digging, I found out that that section of code was written by Jeremy about two weeks ago in this commit. @jshimko Please can you explain the aim of that section of code? |
@foladipo I don't know that Jeremy will know any thing particularly about that code as it was a merge commit. It was probably to fix a bug but that history has probably been lost with Either way, does this current code fix this bug? I am going to re-test now because it's my assumption from your notes that that's the status and it's not marked [WIP]. |
So it looks like this is still broken. @mikemurray Can you help us understand why/when/if we would want to open |
@zenweasel @foladipo I'm not sure why there is a check for the index page in the actionView function. It shouldn't care about that at all. I think at some point that |
So I just removed that branching since no one could understand why it's there and everything about orders seems to work great. A quick check of admin panels seems to be fine as well. @mikemurray Would you mind taking one last look at this and make sure everything is operating as it should be? |
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.
When I click the reaction logo, I think the actionViewDetail
is being opened on the small view of the actionView
panel. This doesn't seem to happen with the other button in the icon toolbar. Might be simple enough to close the detail view when you click on the reaction button. Otherwise it appears to be fixed.
To reproduce:
- Click on the orders Icon in the icon toolbar
- Open an order (show the small side panel)
- Click the reaction logo
@mikemurray Thanks for the heads up. That bug has now been fixed. cc @zenweasel |
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.
Was on marketplace branch when testing. My bad. All your changes are good!
Resolves #2617.
This PR resolves a bug with the orders page. Using the
Collapsed
mode to view the list of orders, the details panel for any specific order wasn't showing up because of some CSS issues.Test instructions
Orders
page.Collapsed
view.>
beside any listed order and you'll notice that the details panel for that order now show up correctly in the browser.