-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
feat[#50499]: Add navigational elements (breadcrumb and back buttons) #13962
feat[#50499]: Add navigational elements (breadcrumb and back buttons) #13962
Conversation
we have a file called primer-adjustements.sass where you can add the override for the With regards to the Breadcrumb and the BackButton being outside of the PageHeader: I am curious whether you discussed the option to add these elements directly to the |
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.
Great start @dominic-braeunlein 🙌🏾 A few remarks on general convention
🔴 For any UI interactions, we generally add feature tests. See https://github.com/opf/openproject/blob/dev/modules/storages/spec/features/admin_storages_spec.rb
fyi, I'm using @mereghost 's traffic light system for code review comments 😄
#13223 (review)
🟢 Just me being weird or minor suggestions
🟡 Points that warrant clarification discussion
🔴 (which I use sparingly) Major issues that need to be addressed before a merge
modules/storages/app/views/storages/admin/storages/edit.html.erb
Outdated
Show resolved
Hide resolved
modules/storages/app/views/storages/admin/storages/edit.html.erb
Outdated
Show resolved
Hide resolved
modules/storages/app/views/storages/admin/storages/edit.html.erb
Outdated
Show resolved
Hide resolved
b1fec70
to
f544fbe
Compare
514265f
to
6278a20
Compare
I redid that PR from scratch. The @HDinger
@akabiru This PR should only be merged after opf/primer_view_components#45 is merged. |
I think you could limit this a bit by using:
Thus we could be sure, that the effects are really limited to the breadcrumb and not other |
6778af1
to
6514964
Compare
3603a07
to
ea7369b
Compare
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.
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.
Looks good to me 👍 🥳 Next to the things @akabiru menitoned you should probably rebase, as the primer bump has already been merged to dev.
…readcrumbs in BreadcrumbHelper
ea7369b
to
4f3995f
Compare
Work package: https://community.openproject.org/wp/50499
This PR adds '
OpPrimer::BackButtonComponent
' inapp/components/op_primer
This button inherits from Primer::Beta::IconButton and needs only the
href
as parameter.This PR also adds this BackButton and breadcrumbs in storage edit view.
The breadcrumbs are outside of the header because
Primer::OpenProject::PageHeader
doesn't have aslot
for breadcumbs.There is a
left-margin
problem that I need to clarify with @HDinger (see picture below). Or maybe @akabiru you know too where themargin-left: 2rem;
for<ol>
tags should be overridden.I will clarify this before merging