-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[MIG] web_responsive: Migrate to v12 and refactor #1066
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
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.
Small Change
web_responsive/views/inherited_view_users_form_simple_modif.xml
Outdated
Show resolved
Hide resolved
9576585
to
e6fbd84
Compare
@nikul-serpentcs all done 😉 |
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.
Very cool!
I found a small issue in Chrome:
- When you open the apps box it's not possible to navigate with the keys. No response from the arrows and the tab kicks you out of the menu.
In the aesthetics side, wouldn't it be nice to have a colored background in the apps box?
App navigation is not supported right now. Only navigating through results when you search. I'll add it to roadmap.
I suppose, but I wanted to focus on getting it functional. It can be beautier later 😉. Adding to roadmap as well. |
e6fbd84
to
c7734d3
Compare
Roadmap updated. |
@yajo I mean the search results. It's not possible to select them with the keys in Chrome. It works perfectly in Firefox though. |
Oh sorry! Let me check that. |
It should work now. Problem: https://stackoverflow.com/a/11031754/1468388 |
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 work! 👍 👍 👍
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.
Love to see this module migrated! Nice work, thanks for your effort.
Just a small note.
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 love the search function because it searches on display_name.
I've also did a functional test. It seems some features are lost because there's no keyboard navigation to change the app selection anymore. I don't know if other features are lost too.
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.
Functional review. Great improvement on the search!
Several points to discuss/solve:
-
Arrows don't work on app switcher for selecting directly the app and press enter.
There are 2 solutions for this:- Present the app icon also on the list of candidates, and remove all of them when you have typed anything
- when you press the arrows on the text box, you navigate on the apps icons.
-
Apps icons are moved down and top each time you type something on the search box. The first solution for the previous point will solve this also.
-
On Firefox, switching to mobile view, it's not possible to search, as I can't type in the textbox. It's curious, as I have been able to do it on a real mobile, so this is not critical.
-
As the search happens in another "screen", can you hide the searchbox on mobile view and let only the glass icon? This way, we gain a bit of space.
-
We have lost the improvements made on v11 for collapsing statusbar and buttons. Please restore it:
About the name of the button, I'm still not very convinced for calling it "Tasks". Enterprise responsive interface calls this "Action", but hides "Print" and "Action" dropdown that are when full. I consider this a loss, as you can't for example remove a record from mobiles. Is it feasible to join the 3 of them (Print dropdown, Action dropdown and buttons) in the same mobile dropdown, split by a separator? Enterprise also increases the space for tapping each option and put text in upper for better recognition.
-
On a notebook with pages that doesn't fit current width, full page appears side scrollable, which breaks mobile purpose. Enterprise makes scrollable in this case only the pages part instead of everything. Other technique can be to collapse extra pages that doesn't fit on mobile width (or put all of them as collapsable?)
EDIT: Looking to other form views, it's an incorrect size of the notebook container, as here we don't have too many pages and they fit on the width:
-
On mobile view, shadow and padding is preserved on forms with
sheet
attribute. We should gain this space:
@Tardo can you review this also?
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.
As said by others... good work with search feature!
Bad news:
Another pending thing is the inclusion of web_searchbar_full_width module in this one, which is a simply CSS rule. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Maybe we can discard this module as has a high maintenance an start using It is already done and supported by Openworx |
AFAIK that one is not responsive. And IMO is ugly. It doesn't include menu search nor app switcher (only a variant of the navbar). And finally, it's not OCA. |
The first version only has the app sidebar and more enterprise look'n'feel. The second version will using web_responsive when it's available. |
Currently translated at 90.0% (9 of 10 strings) Translation: web-11.0/web-11.0-web_responsive Translate-URL: https://translation.odoo-community.org/projects/web-11-0/web-11-0-web_responsive/da/
* Add feature to search menus in the app drawer * Switch model to RPC
When doing menu search, some menus that the user didn't have permission to use were presented to him. Fix OCA#850.
a99f334
to
cbcc2c2
Compare
@yajo what is the status of this? |
Under a pile of work. 🙄 |
You might need to modify something when odoo/odoo#29994 is merged. |
b8fb90c
to
7c4da85
Compare
7c4da85
to
f5b2069
Compare
This migration includes a full refactoring to make this module more maintainable. Some things that have changed: - Removed external libraries. - Change Less for Scss. - Reduce ES and XML to the minimal required needs. - Implement as much features as possible with just Scss. - Remove copyright from `__init__.py` files. - Trigger the new hotkeys system from Odoo v12 with `Shift+Alt` instead of just `Alt`, and restore some good old hotkeys (`E` for "Edit", `D` for "Discard", and `A` for "Apps menu"). See odoo/odoo#30068 on the matter. - Control panel breadcrumbs are collapsed into a single backwards icon. - Add FA icons to most common buttons in control panel. - Hide text in XS for those buttons, to have a slicker phone experience. - Lots of gifs in the README!
f5b2069
to
69a7491
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.
All the comments have been attended, so I'm going to merge this after a long incubation phase.
@yajo full width searchbar is still missing, but we can add it later on a new PR.
Great work! |
When will it be published in the Odoo Apstore? |
This migration includes a full refactoring to make this module more
maintainable. Some things that have changed:
@Tecnativa