-
-
Notifications
You must be signed in to change notification settings - Fork 708
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
Rename edit enterprise page to "Settings" #2515
Rename edit enterprise page to "Settings" #2515
Conversation
b31c76b
to
9d1f0ea
Compare
margin-top: 1em; | ||
margin-bottom: 1em; | ||
height: 1px; | ||
background-color: $admin-enterprises-index__admin-actions-divider-color; |
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.
The new color you've defined here has the same value as the existing $pale-blue
variable, so you can just use: background-color: $pale-blue
.
@@ -8,3 +8,5 @@ $warning-red: #da5354; | |||
$warning-orange: #da7f52; | |||
$medium-grey: #919191; | |||
$pale-blue: #cee1f4; | |||
|
|||
$admin-enterprises-index__admin-actions-divider-color: #cee1f4; |
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.
...and this can be deleted.
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.
@Matt-Yorkley Agh. Thanks, I was switching between colors and didn't realize that the final one I picked was declared as a variable immediately above.
What do you think about still using the variable for the divider color, but setting it $pale-blue
, like this:
$admin-enterprises-index__admin-actions-divider-color: $pale-blue;
In my experience, separating colors would make it easier to make color changes site-wide. Especially for OFN which is multi-instance, I imagine it would be convenient if more colors were assigned like this.
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.
I don't think the variable for $admin-enterprises-index__admin-actions-divider-color
needs to be shared throughout all the SCSS, as it's a single element on a single page.
I'm not sure about the complex name either, it seems much less likely to be re-used elsewhere if it's named by the exact page it's in.
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.
I know what you mean though. I think as the colour is the same as the border colour for tables, I think I'd probably add an entry like this with the main colours:
$admin-table-border: $spree-blue;
then use that on your divider element:
background-color: $admin-table-border;
9d1f0ea
to
88e57e5
Compare
@@ -5,6 +5,8 @@ | |||
= link_to_delete_enterprise enterprise | |||
%br/ | |||
|
|||
<div class="admin-enterprises-index__admin-actions-divider"></div> | |||
|
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.
Would a horizontal rule (hr) element not be better here? Or is there a reason to use a div with height 1px?
Also, we don't need all these braces and closing bracket in haml. %div.classname
is fine, or as a div is the most common element you can skip it all together and just use .classname
as a shorthand.
0dd30a3
to
216750c
Compare
Thanks for your review, @Matt-Yorkley! I absolutely agree and have made changes. This PR now uses I also switched from a BEM-style CSS class name to keep scss-lint from complaining. Although I'm considering proposing to start using BEM conventions for the project. |
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.
Heya @kristinalim could you please make sure you assign yourself to the PRs you create. It makes it easier for us delivery train drivers to see who's doing what. Thanks! |
I'm not able to assign myself to PRs I create either. 🙁 I'm working on getting certified though. If/when that happens, I would be able to ask for more permissions. |
not sure if I'm violating a process here but I trust you @kristinalim (obviously) so have added you to the repo :) |
The process is so far described in the contributor's guide. Since you are one of the facilitators to contact for certification requests @kirstenalarsen it seems you are not violating anything 😉 |
Thank you, @kirstenalarsen! 🙂 I've assigned to myself all PRs I submitted and all issues I've been working on. |
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! 🙂
I've moved this to test ready as it's been reviewed twice. @Matt-Yorkley don't forget to move it along the train if you're the second reviewer, and also stage it if you can! |
The ".manage" key is still used by the column header for the "Manage" buttons.
Change the start of the heading from "Editing:" to "Settings:".
Change "Edit Profile" link to "Settings".
216750c
to
6251c72
Compare
@kristinalim I resolved a merge conflict with some of my recent spec changes. Staged on https://staging1.openfood.com.au/. |
Testing notes Reads settings now, for enterprise users and superadmin :) yay https://docs.google.com/document/d/1K8V51UZTR40wpRyjudN02XsjUSJ6vC7OnnxVVeyLl2k/edit# |
What? Why?
Closes #1535
This improves and standardizes the name of the page for editing an enterprise. This will make communication internally and with users easier. Please see related issue for more details.
What should we test?
As enterprise owner:
As admin user:
Release notes
Changelog Category: Changed