-
-
Notifications
You must be signed in to change notification settings - Fork 460
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
[ADD] oca-gen-addon-banner: Proof of concept #593
base: master
Are you sure you want to change the base?
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.
😄
@etobella could you please give some definition of the "external non canonical logo"? What is "canonical" and what is "non canonical"? |
It is just a PoC. No need to such a hurry. I was just checking if it was possible |
Oh I'm really sorry I didn't mean this to look like anything offensive )) |
We don't have to agree all the times, no worries :)
Cool. We'll get back to this w/ proper guidelines update.
General branding guidelines are in the making. Specific branding per app is not. Yet, it could be a good idea maybe, and is something that can be discussed and implemented by the new board next year if there's consensus. |
# TODO:Maybe we could add the title of the addon... | ||
modified = [] | ||
for path in manifest["images"]: | ||
image.save("%s/%s" % (addon_dir, path)) |
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.
Does it really make sense to save one copy of this banner in every OCA module? Isn't it easier just to modify the README template (contained in this repo too) to include it from this maintainer-tools github repo directly?
Even more taking into account OCA/oca-addons-repo-template#190 (comment).
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.
Does it really make sense to save one copy of this banner in every OCA module? Isn't it easier just to modify the README template (contained in this repo too) to include it from this maintainer-tools github repo directly?
Even more taking into account OCA/oca-addons-repo-template#190 (comment).
@yajo I think we should be able to put custom banners for modules. Same as icons.
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.
OK, but if it isn't custom, do we really need to replicate this image thousands of times?
For the icon, we do need it, because Odoo expects the icon to exist in a specific place. But the banner only appears on the compiled readme/index
The idea would be to introduce some letters with the module name on the title. |
How about custom design? I think would be reasonable to generate a default banner with letters. And have an OCA module banner guidelines in case someone would like to add a custom one. |
I would prefer to have this automatically generated in order to avoid strange cases, but that is my opinion |
@ivs-cetmix I see that you introduced in one module a "branding" banner including your company. For now, that's forbidden according OCA rules, but that can be discussed. |
Sorry, closed by mistake. |
@pedrobaeza don't get me wrong I'm not trying to "hack the OCA") |
Thanks for exposing your PoV and your involvement with OCA. The problem with "company branding" is that in a collaborative environment, this branding will provoke more problems than their benefits. Some examples:
That's why this kind of option was forbidden from the beginning, for avoiding such problems. We still have the debate about making co-author of a module to a great contributor, and this is sometimes very subjective, but at least we have the mechanism, as |
That makes sense, thank you for pointing! |
If this is the motivation, I agree with @pedrobaeza that the branding we should promote is OCA's, as a community. Of course, this can be customizable, so you can reuse the same script for your own modules. I still think that just changing the template should be enough.
I agree about this, but we currently have a place to promote module sponsors: maintainer-tools/template/module/readme/CREDITS.md Lines 1 to 7 in f71041f
And also a place to promote contributors: maintainer-tools/template/module/readme/CONTRIBUTORS.md Lines 1 to 2 in f71041f
If your company considers that they should put a banner in those sections instead of just text, I would have nothing against that. But I'd stick to keeping company promotion in the places designed for it.
That makes sense, but also can be a bit controversial. However I think we're all open to proposals, as long as they reflect an appropriate balance between the community interests and the ones of the members that form it, be them companies or individuals. |
+++
Yes there are those sections. However this is obvious that having a name on the banner and having it at the bottom of the movie closing credits is not the same. Same story with the modules in the App Store.
I totally agree with you. We respect the Community opinion so we decided to remove our logos from the banners until this case will be clarified. |
Yes, that's why I think the name banner should promote OCA, while the credits banners could be used to promote the companies behind the module. In any case, my opinions on contribution credit have been controversial in the past too. I'm more aligned to https://allcontributors.org/ You know, community work is a hard thing! Never everybody is happy. I think this subject of banners and sponsorship should be handled by @OCA/board. |
Ok, let's get back to this 😄 The main goal is to develop a banner template which can be later used for other OCA modules. Below are the results. Would be great to have your opinion on them: |
I like more variant A, but B is really cool too. You might want to open a poll in the forum. |
I like the idea, but I am uncertain how we will automate it, but it surely deserves a try from my side 😄 |
Hello all, great and constructive discussion. We do need consistent branding that does not depend on (or relay additional work to) contributors. My suggestion is that it is probably simples for the image to be a generic OCA one, without including the module title, since the title will display below the image anyway. And that will simplify automation too. This automation was discussed with @sbidoul and he is considering if this is best at the local pre-commit level, or an OCA bot automation step. Also, there is a takeaway for the @OCA/board to draft more detailed guidelines for module branding and attribution. |
Using SVGs, it's very simple to automate the generation of a customized banner, and then a tool to export from SVG to PNG to comply with the apps store requirements. All of this can be streamlined through pre-commit (the same as it's done for README or RST to MD conversion). |
@ivs-cetmix A big thank you for this initiative and having contacted Kapreon directly! |
Maybe just more fancy HTML and CSS in the |
Thank you everyone for the feedback! As I mentioned before the idea is to design some template that can be used for both automatic and custom banner creation. For example here we have:
@dreispt would be really great if @OCA/board paid much more attention to promotion. New logo is great but there is much more to be done. Eg a completely redesigned OCA App Store. But that's another story. |
The automation in SVG is possible and simpler than any other, and SVG > PNG is trivial with any automated tool as well. Doing it directly with HTML+CSS is not possible, as we required an image for both Odoo and Apps Store, not other thing. |
So we have ended up with option #2. Would be great to have this PR merged 😄 |
I don't see the banner in the referenced PR. And is this creating the image programatically? |
|
OK, but what about the second question? |
@pedrobaeza replied directly in the PR |
I mean for this PR |
Nope, banner was designed manually by Kapreon |
Then I think adding here a static banner is not the right place. Here we should add generating tools. |
Sure, however we should be able to replace a generated banner with a custom one designed according to the OCA guidelines. |
I would go for the fully automation system. Almost nobody is going to replace it by a custom one, and we will have the same image duplicated on each module of each repo... |
I totally agree with you. However there will be some cases when such banners will be replaces. For example we will be using custom banners for some OCA module we contribute. So in such cases automatic banner creation should not overwrite custom designed banners. |
That possible "custom" things should be parametrizable. The same you put on |
Sure this is one of the options. However we would like to introduce animated gif banners too. And this is something that is not parametrizable as a static ones. At least I don't have too much knowledge of how to do it with params |
I think that can be embedded also in SVG files, but anyway, we should also set a guideline about that: I personally consider them very annoying, and more for a banner with limited size. It's OK for READMEs, but not for banners IMO. |
I am adding a new generation function that sets all the banners to a Odoo Community Logo in order to avoid external non canonical logos.