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

[UX] Add back admin bar links to manage display sub-pages #2450

Closed
jenlampton opened this issue Jan 2, 2017 · 55 comments · Fixed by backdrop/backdrop#4407
Closed

[UX] Add back admin bar links to manage display sub-pages #2450

jenlampton opened this issue Jan 2, 2017 · 55 comments · Fixed by backdrop/backdrop#4407

Comments

@jenlampton
Copy link
Member

jenlampton commented Jan 2, 2017

While working on #315 we removed the menu router items for the sub-tabs on manage displays. This also effectively removed them from the admin bar. We should add them back or there will be a little UX regression.

@quicksketch
Copy link
Member

There are lots of errors being reported by testbot currently.

@jenlampton
Copy link
Member Author

Bah, will take a look.

@quicksketch quicksketch modified the milestones: 1.6.0, 1.6.1 Jan 15, 2017
@quicksketch quicksketch modified the milestones: 1.6.1, 1.6.2 Feb 13, 2017
@quicksketch quicksketch modified the milestones: 1.6.2, 1.6.3, 1.6.4 Mar 15, 2017
@quicksketch quicksketch modified the milestones: 1.6.4, 1.7.1 May 15, 2017
@izmeez
Copy link

izmeez commented Oct 26, 2023

If the .diff is all that's needed, that is awesome. The code changes required are simple and effective. I'll have to take one more look before saying I've reviewed the code, but it's looking good.

@izmeez
Copy link

izmeez commented Oct 26, 2023

It's always best to review the code by clicking the "Files changed" link. But if you really want to check the diff, you can do that. The patch file is not correct.

Well that can be a way to confirm but it's not so useful for grabbing a patch for local testing.

@argiepiano
Copy link

argiepiano commented Oct 26, 2023

Well that can be a way to confirm but it's not so useful for grabbing a patch for local testing.

Both the patch and diff files will result in the same code after applying them. The patch file contains changes and reverted changes that have no effect on the final changes.

@izmeez
Copy link

izmeez commented Oct 27, 2023

Yeah, but it what my brain has to go through and totally unnecessary. Just to experience your own mental gyrations. I'm okay without that. Elegance and simple is nice. Isn't that want @klonos was thinking when he said he wished he had come up with it.

@argiepiano
Copy link

Those false changes and reverts are not related to this PR - they originate from a different issue from two years ago. My fork kept those, and they appear in every new PR unfortunately.

@izmeez
Copy link

izmeez commented Oct 27, 2023

To settle the diversion I created, I took a look at a simple example of a PR I made elsewhere. From what I can see there is a difference between adding .diff or .patch to the end of the PR url. The end result of applying either as a patch will be the same. The former, the .diff version, appears to be a unified patch where all the commits are consolidated into a single one showing the total net effect. Whereas the latter, the .patch version, includes each commit as a separate patch with each commit message, showing the steps taken along the way.

Apart from this standard behaviour which I previously had not examined in such detail. The wrinkle here has been the left over spaghetti from @argiepiano forking. If you only ever use the .diff extension approach you may never even see it and have the benefit of seeing the unified end result.

@izmeez
Copy link

izmeez commented Oct 27, 2023

I have looked at the code changes and I don't think I have enough depth of understanding to comment on the coding itself. I will have to leave that for someone else. All I can say is it works well and it would be a good fix to the regression. Thank you.

@izmeez
Copy link

izmeez commented Oct 27, 2023

Meanwhile, I have applied the diff patch (as opposed to the patch patch) to my dev platform for further enjoyment. Had to flush caches, something to be expected. Thank you.

@klonos
Copy link
Member

klonos commented Oct 27, 2023

@argiepiano code LGTM, thanks 🙏🏼 ...I only left a comment with a suggestion.

@izmeez there were many changes in this PR that were mere formatting changes in order to make the PHPCS check happy (it complains if array declarations go beyond 80 characters, so those occurrences were wrapped in multiple lines - no actual code change).

If you don't mind using the GitHub web UI to view diffs, this is what I believe might help you:

  1. when you visit a PR page, you are by default taken to the "Conversation" tab - switch to the "Files changed" tab at the top of the page instead
  2. click the ± bellow the tabs row, in order to switch to a unified diff view
    image

That will show the diff in this format, which is what you have been used to from what I understood by your previous comments:
image

@izmeez
Copy link

izmeez commented Oct 27, 2023

@klonos Thanks for the tip about using the Files tab as an alternative to view the diff. It also has some extra stuff showing, so it's ok for a look. But, it's not as useful to me for looking at just the diff in plain text so I can download as a patch. I can read it just fine in a plain text file. Thanks.

@izmeez
Copy link

izmeez commented Oct 27, 2023

I can see how the Files tab view is advantageous for seeing ongoing code suggestions. Although I'm not sure I fully understand how you added your code to make that happen.

@argiepiano
Copy link

@klonos, please see my comment to your last suggestion in the PR. Thanks for reviewing!

@klonos
Copy link
Member

klonos commented Dec 9, 2023

Sorry for taking this long to reply @argiepiano ...RTBC 👍🏼

@quicksketch quicksketch modified the milestones: 1.26.3, 1.26.4 Dec 20, 2023
@izmeez
Copy link

izmeez commented Jan 8, 2024

It looks to me like this has been fixed in BD 1.27.0-preview. Is this issue ready to close?

@argiepiano
Copy link

Huh? This was not included in 1.27.0-preview.

@izmeez
Copy link

izmeez commented Jan 11, 2024

So, let me take my foot out of my mouth.
Clearly, the PR has not been merged.
I'm not sure if it also includes a test to confirm the admin bar menu displays to it's full depth.
My eyeball review of a fresh site with bd-1.27.0-preview goes down to what looks like a full depth, but maybe there is no default admin menu item deep enough?

It would be really good to see this in the 1.27.0 release.

@quicksketch
Copy link
Member

quicksketch commented Jan 12, 2024

Merged backdrop/backdrop#4407 into 1.x and 1.26.x. Thanks @argiepiano and @jenlampton for creating the PRs. And thanks to @klonos, @izmeez, @stpaultim, @bugfolder, and @olafgrabienski for the repeated reviews and feedback! It's great to close out this old issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment