Commit Graph

37 Commits

Author SHA1 Message Date
Splash
0d3e9051f2 [FIX] error on grouped mobile kanban with zero groups 2021-03-31 19:18:35 +03:00
Sergey Shebanin
5036a68a01 [MIG] web_responsive: Migration to 14.0 2021-03-18 21:42:02 +03:00
Pablo Androetto
87a1a65c68 New style in apps menu
scss file to change ui variables easily

Deleted unnecesary padding

remove unnecesary styles

unnecesary styles

align menu items to left again

search results styles and fixes

prettier configuration fix

newline at end of file (variables.scss)

text color calculation for navbar

fix in img url

requested fixes

Transitions and focus fixes

fix in js settimeout

margin added in search-container

Fix in transition

Co-authored-by: Jairo Llopis <Yajo@users.noreply.github.com>

Remove duplicated css
2021-03-18 21:42:00 +03:00
Alexandre Díaz
a33eff2706 [IMP] web_responsive: Restore discuss mobile mode 2021-03-18 21:42:00 +03:00
Alexandre Díaz
c42a1abfdb [FIX] web_responsive: Change AppDrawer close method
Previous of this commit, AppDrawer closes when the action have an id
that is defined in a menu item and no rpc calls are running.
Now AppDrawer closes in a more generic way, is enough that a
controller is attached to consider that the AppDrawer needs to be
closed.
2021-03-18 21:42:00 +03:00
Jairo Llopis
3a223fa490 [IMP] pre-commit run after update
Includes some manual fixes to silent ESLint warnings.
2021-03-18 21:41:59 +03:00
Alexandre Díaz
1651d7c137 [IMP] web-responsive: Document Viewer 2021-03-18 21:41:59 +03:00
Alexandre Díaz
d47935882e [MIG] web_responsive: Migration to 13.0 2021-03-18 21:41:59 +03:00
Alexandre Díaz
8e8d467fb1 [IMP] web_responsive: Performance when hide menus 2021-03-18 21:41:58 +03:00
Alexandre Díaz
b662b64a7c [IMP] web_responsive: Small refactor 'isWaiting' 2021-03-18 21:41:58 +03:00
Alexandre Díaz
196bb166b2 [IMP] web_responsive: Don't show menu if waiting for an action to end 2021-03-18 21:41:58 +03:00
Mathias Markl
7bed8d82e8 [FIX] web_responsive: Close Menu on Discard 2021-03-18 21:41:58 +03:00
Mathias Markl
b42dd64d04 [FIX] web_responsive: adapt AppDrawer Discard 2021-03-18 21:41:58 +03:00
Mathias Markl
ba9714451a [FIX] web_responsive: AppDrawer Discard 2021-03-18 21:41:58 +03:00
Alexandre Díaz
ed209ae66c [FIX] web_responsive: Close AppDrawer 2021-03-18 21:41:58 +03:00
Alexandre Díaz
635166426d [IMP] web_responsive: Refactor code 2021-03-18 02:05:46 +03:00
Alexandre Díaz
5dc7f58217 [FIX] web_responsive: AppDrawer in Chromium 2021-03-18 02:05:46 +03:00
Alexandre Díaz
80e5a9be71 [IMP] web_responsive: Menu wait for action 2021-03-18 02:05:46 +03:00
Alexandre Díaz
e1a42e47aa [IMP] web_responsive: Suggested changes 2021-03-18 02:05:46 +03:00
Alexandre Díaz
c51be2d0a0 [IMP] web_responsive: AppMenu wait for load view 2021-03-18 02:05:46 +03:00
Jairo Llopis
f567959665 [FIX] web_responsive: Allow searching apps in mobile Chrome
This patch fixes #1251.

The keydown event is faked in mobile chrome because it's not something reliable due to today's virtual keyboards prediction features. Typing a <kbd>C</kbd> character doesn't mean it will be there when user uses autocorrection/autoguessing.

Instead of that, we use now the `keydown` event exclusively for movement features, and `input` event exclusively for content changes in the search input element.

Apart from fixing search in mobile Chrome, it also makes code more readable.

The search input also disables autocompletion since it would be useless and annoying here.
2021-03-18 02:05:46 +03:00
Alexandre Díaz
b523dcc98b [FIX+IMP] web_responsive: Chatter Topbar + fix #1189 + added gif 2021-03-18 02:05:46 +03:00
Jairo Llopis
dc867a56b2 [FIX] web_responsive: Skip re-search when not writing
When the user uses TAB or SHIFT+TAB to navigate in search results, he can trigger a SHIFT-only keydown event without noticing, which would reset the selected result position to the first or last.

It is disturbing, so, to avoid that problem, the re-search is only triggered if the currently pressed key has length=1 or is Backspace, which will skip most keys that are not actually writing a character into the search input, like i.e. "Shift", "Alt", "F4", etc.

In addition to that, to detect if the search results is empty, the `:empty` selector is not trustable because it considers not empty nodes with whitespace-only content. That has been patched too.
2021-03-18 02:05:45 +03:00
Jairo Llopis
46ac45a5f1 [MIG] web_responsive: Migrate to v12 and refactor
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 https://github.com/odoo/odoo/issues/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!
2021-03-18 02:05:45 +03:00
Jairo Llopis
878d8bc876 [FIX] web_responsive: Disable access to hidden menus
When doing menu search, some menus that the user didn't have permission to use were presented to him.

Fix #850.
2021-03-18 02:01:27 +03:00
Jairo Llopis
353a10bd0c [FIX] web_responsive: Complete search feature forward-porting 2021-03-18 02:01:27 +03:00
Dave Lasley
165a544578 [IMP] web_responsive: Add search feature (#838)
* Add feature to search menus in the app drawer
* Switch model to RPC
2021-03-18 02:01:27 +03:00
QS5ELkMu
0b65bfb4f1 [IMP][11.0][web_responsive] Suggested changes (#978)
* [IMP] Chatter Position
* [IMP] Clean unused stuff
* [IMP] FieldStatus hidden-xs
* [IMP] Improvements suggested in #540
* [WIP] Suggested changes
* [WIP] Improve FieldStatus-Responsive
* [IMP] Statusbar Buttons & FieldStatus
* [IMP] Statusbar Buttons Style
* [IMP] Button 'Task' style
2021-03-18 01:55:16 +03:00
QS5ELkMu
b9e6116a43 [FIX] Chatter Position 2021-03-18 01:55:15 +03:00
QS5ELkMu
23bddb12b0 [IMP] web_responsive: Possibility of putting the chatter in the right (#951) 2021-03-18 01:55:15 +03:00
Dave Lasley
17a9d31581 [FIX] web_responsive: Menu Height on Init
* Add a call to the window resize method during init to fix OCA#773
2021-03-18 01:55:15 +03:00
Dave Lasley
e289eb69ff [FIX] web_responsive: Chrome Slow Scrolling
* Update to iScoll bleeding edge to fix #741
2021-03-18 01:55:15 +03:00
Angel Moya Pardo
cbf2f58774 UPDT version 2021-03-18 01:55:15 +03:00
Sergio Teruel Albert
1e11f8cc64 [10.0][IMP] web_responsive: Load default kanban view for small screen 2021-03-18 01:55:15 +03:00
Pedro M. Baeza
5e1cac5645 [FIX] web_responsive: Execution permission 2021-03-18 01:50:42 +03:00
Dave Lasley
cd85aa71a4 [MIG] web_responsive: Migrate to v10
* Bump version
* Change all openerp to odoo
* Fix qunit suite injection
* Remove jQuery require
* Change to new selectors:
  * `oe_leftbar` to `o_sub_menu`
  * `oe_logo` to `o_sub_menu_logo`
  * `oe_footer` to `o_sub_menu_footer`
  * `oe_secondary_menus_container` to `o_sub_menu_content`
* Add style to hide oe_footer instead of remove to not break `support_branding`
* Add note in ReadMe explaining override of `support_branding`
* Set top margin of app drawer title to 0 to fit v10 proportions
* Fix notification badge positioning
* Add o_web_client class to body to fix overlaps
* Scroll control panel with page
* Change navbar z-index to not be overlapped by buttons
* Raise z-index on header to raise over buttons
* Handle layered notifications via z-index
* Remove `#` from navigation links HREF to prevent history littering
2021-02-09 18:34:24 +03:00
Dave Lasley
e96d891a4b [FIX] web_responsive: Other minor fixes
* Add Tecnativa as author
* Remove untestable JS method
* Rename to web_responsive
2021-02-09 18:34:24 +03:00