-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Split admin settings #2650
Split admin settings #2650
Conversation
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.
Marvellous! 👏
</tbody> | ||
</table> | ||
<% else %> | ||
<h3>No banner images to show.</h3> |
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.
Can you change hardcoded text creating a new i18n key <%= t("admin.settings.index.no_banners_images") %>
🙏
</tbody> | ||
</table> | ||
<% else %> | ||
<h3>No banner styles to show.</h3> |
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.
Can you change hardcoded text creating a new i18n key <%= t("admin.settings.index.no_banners_styles") %>
@@ -0,0 +1,28 @@ | |||
|
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.
Remove extra line 🙏
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.
Oh and don't forget to remove this extra line on a new commit, @aamarill
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.
done!
Hey @aamarill, thanks for this! Just two small things:
Thanks once again! |
@aitbw No problem! Can you please clarify your bullet points. What branch exactly (repo and branch) are you referring to when you say "your branch"? I pulled the latest from "consul/consul master branch" before I did my second commit. Is that not a standard practice? Also, how do I squash two commits together? Thanks! 😄 |
Sure 😌
I would't know if pulling from If I need to update my branch with the latest
You can also simplify this by doing (while being on your branch with your proposed changes) the following:
You'll be greeted with something like this: Keep the first line as it is and replace |
@aitbw Thank you so much for the help so far! I am running into trouble because I rebased my local master and fork master with consul/master... How can I get the master branch that I initially started with? Thanks! |
@aamarill That would mean a hard reset and resetting the Also, which issues are you currently dealing with? |
@aitbw The issue is that I don't have a branch that doesn't include the commits you want me to remove . (I am not referring to any code failures/issues) 😕 |
@aamarill When I asked you to rebase your branch to get @raul-fuentes' commits out of this PR, I meant the Of course said commits will be on your branch, they just won't show up as changes for your Pull Request |
@aitbw Ah! I do apologize for all of the confusion, I am quite new to the git/GitHub workflow. I don't see an option to remove the commits and files from @raul-fuentes ... I am not sure if I don't have the privileges or am I not looking in the right place? Thanks!! 😄 Here's what I see on my end:Hope that helps! |
@aamarill Don't worry about it, we all start somewhere If you ran on your branch |
@aitbw Thank you for your patience 🙏 Ok, I did have to do some conflict resolution, but I was able to rebase and then push back to my fork and hence update the PR. Let me know if it looks good! |
@aamarill Don't even mention it And yes, it looks awesome!! Now only your changes are reflected on the PR making it easier to review 🎉 Let's wait for Travis now 😸 |
This following test is failing because I added:
test that is failing:require 'i18n/tasks'
RSpec.describe 'I18n' do
let(:i18n) { I18n::Tasks::BaseTask.new }
let(:missing_keys) { i18n.missing_keys }
let(:unused_keys) { i18n.unused_keys }
it 'does not have missing keys' do
expect(missing_keys).to be_empty,
"Missing #{missing_keys.leaves.count} i18n keys, run `i18n-tasks missing' to show them"
end
...
end failure 1) I18n does not have missing keys
Failure/Error:
expect(missing_keys).to be_empty,
"Missing #{missing_keys.leaves.count} i18n keys, run `i18n-tasks missing' to show them"
Missing 2 i18n keys, run `i18n-tasks missing' to show them
# ./spec/i18n_spec.rb:10:in `block (2 levels) in <top (required)>' Output of
|
@aamarill That is because you referenced the keys on the views but forgot to add them under |
@aitbw Fixed! I am moving on to the last two tests that are failing. no_banners_images: No banner images
no_banners_styles: No banner styles FYI, these don't have a Spanish translation either: banners: Banner style
banner_imgs: Banner images |
For the For the keys that don't have a translation (we tend to miss those from time to time), feel free to add a commit as well fixing that 😸 |
Don't worry, the translation is perfect! 👌 😉 |
@decabeza Awesome! 🥂 Is there anything else we need before accepting/merging this PR? 😄 |
Hey @aamarill! Really nice work you did here! I just wanted to warn you that updating a field in any of the tabs will always send you back to the first tab. It would be nice if it could stay on the tab after you update. Also, I'm often having a bug on Safari macOS (latest): the content of the tabs doesn't appear when I switch. I doesn't happen on Chrome. |
Thanks for the note @PierreMesure! |
@bertocq @decabeza this is a fix for issue #2586 😄
Objectives
Visual Changes
Before/was:
After/is:
After/is (Cont.)
After/is (Cont.)
Notes