-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Admin] Add products#show
#5373
Conversation
916e85a
to
c0f4d03
Compare
admin/app/components/solidus_admin/products/show/component.html.erb
Outdated
Show resolved
Hide resolved
7614e9c
to
94cbb8d
Compare
94cbb8d
to
5e19b8d
Compare
5e19b8d
to
cfced44
Compare
Wondering if this should be |
@tvdeyen yes, that's a good call, I did some research on how REST conceptualizes this stuff because I was torn between the this page being the only representation we have for the resource in the admin (there's no traditional With this in mind there are other considerations:
and so on and so forth. I'm still conflicted so I'd like to hear from you, given the context above. |
cfced44
to
4058b44
Compare
Codecov Report
@@ Coverage Diff @@
## nebulab/admin #5373 +/- ##
=================================================
+ Coverage 88.72% 88.86% +0.13%
=================================================
Files 614 615 +1
Lines 14841 14860 +19
=================================================
+ Hits 13168 13205 +37
+ Misses 1673 1655 -18
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. 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.
🌟 Amazing work! 🌟
That are good arguments. What is the point of displaying a resource in an admin area anyway, right? And if we also consider authorization into account it makes even more sense to use the show route as it might be the case an unauthorized user only sees static values anyway.
If we go with show routes, what about using it for all ongoing routes as well? So that we at least have a pattern here?
|
For sure, we'll head that way for all the routes of the new dashboard and ensure that you can go back and forth during the transition time 👍 |
38bb704
to
4ce7e55
Compare
4ce7e55
to
2cf93ab
Compare
They are directly listed under the main h1 element.
2cf93ab
to
6a907e0
Compare
Summary
There are still a few rough edges, but we can go from here. We're keeping track of lacking or broken things in an internal GH project (e.g. we'll build a component that will replace the original
select2
behavior).The
Manage …
links are pointing to sections in the original admin that still need to be ported to the new UI, e.g. adding a media uploading component (which is better handled in a separate PR).Checklist
Check out our PR guidelines for more details.
The following are mandatory for all PRs:
The following are not always needed: