Commit Graph

147 Commits

Author SHA1 Message Date
Alexandre Díaz
c5e026e476 [IMP] web_responsive: Readme 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
Alexandre Díaz
e2249d163b [IMP] web_responsive: Support long title in form view 2021-03-18 02:05:46 +03:00
Alexandre Díaz
2465cf590f [IMP] web_responsive: Sticky in tree view and form view 2021-03-18 02:05:46 +03:00
Alexandre Díaz
9fc4a0372e [IMP] web_responsive: chatter width 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
Jairo Llopis
35678581b7 Update web_responsive/static/src/css/web_responsive.scss
Co-Authored-By: Tardo <dev@redneboa.es>
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
Alexandre Díaz
11a2f313fe [IMP] Sticky chatter topbar 2021-03-18 02:05:46 +03:00
Jairo Llopis
0053bdf72a [FIX] web_responsive: Make app icons and search results middle-button-clickable
In the case of app icons, those weren't getting the `href` attribute filled.

In the case of search results, those weren't even an `<a>` element.

Fixed in both cases to fix https://github.com/OCA/web/issues/1170.
2021-03-18 02:05:45 +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
OCA Transbot
dbca634dcc Update translation files 2021-03-18 02:05:45 +03:00
OCA Git Bot
fcc7f17b7e [UPD] README.rst 2021-03-18 02:01:27 +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
OCA Git Bot
b7c24494d5 [UPD] README.rst 2021-03-18 02:01:26 +03:00
Pedro M. Baeza
c411d0e30f [IMP] web_responsive: Add known issue note about sticky 2021-03-18 02:01:26 +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
ff1b1579a5 [FIX][11.0][web_responsive] Views without sheet 2021-03-18 01:55:16 +03:00
QS5ELkMu
e8382c3e3d [IMP] Add sticky header & footer in list view 2021-03-18 01:55:16 +03:00
QS5ELkMu
3a76f4ce18 [IMP] Sticky Statusbar 2021-03-18 01:55:15 +03:00
Jairo Llopis
ff92678d3a Fix linter 2021-03-18 01:55:15 +03:00
QS5ELkMu
1ea9bddf2e [IMP] Adding res.users chatter_position read/write test 2021-03-18 01:55:15 +03:00
QS5ELkMu
fbc1eea97b [IMP] Code 2021-03-18 01:55:15 +03:00
QS5ELkMu
e48483adf3 [CLEAN] Comments 2021-03-18 01:55:15 +03:00
QS5ELkMu
fe9ddc9d77 [FIX] Read/Write permissions 2021-03-18 01:55:15 +03:00
QS5ELkMu
b9e6116a43 [FIX] Chatter Position 2021-03-18 01:55:15 +03:00
OCA Git Bot
5dd0b6825b [UPD] README.rst 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
fanha99
11eb066a31 [FIX] web_responsive: Hide header when print directly from browser issues 808 (#809)
Closes #808
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
Minh H.G
d1c46b242a [MIG] web_responsive test to 11.0 2021-03-18 01:55:15 +03:00
Pedro M. Baeza
bb826861a3 [FIX] web_responsive: Correct runbot link 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 - PESOL
ab2358da63 FIX travis (#747)
* FIX hasclass

* FIX views

* [FIX] web_responsive: Syntax error in xpath
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
Jairo Llopis
220e9a4ca2 [FIX][web_responsive] Long-named multicompanies nice in XS (#688) 2021-03-18 01:55:15 +03:00
Dennis Sluijk
03a759023d [10.0][IMP][web_responsive] Make search bar sticky (#633)
* Initial commit

* Initial commit
2021-03-18 01:50:42 +03:00
Pedro M. Baeza
5e1cac5645 [FIX] web_responsive: Execution permission 2021-03-18 01:50:42 +03:00
Jairo Llopis
8e71b8b336 [FIX][web_responsive] Make it compatible with l10n_es_toponyms
Before this patch, there was an incompatibility between this addon and l10n_es_toponyms, caused by the lack of wrapping of the special address field that was being added.

Now layout works as expected in that case. In any other case, it seems sensible to wrap inputs so no more weird overflows happen and less chances of needing horizontal scrolling happen.
2021-03-18 01:50:42 +03:00
Dave Lasley
87a5b1c8ce [FIX] web_responsive: Change edit accesskey
* Change accesskey for `edit` in form view back to `e` to fix #587
2021-03-18 01:50:42 +03:00
zeroheure
582606288b Update README to fix wikipedia link 2021-03-18 01:50:42 +03:00
Dennis Sluijk
d24721b725 [10.0][IMP][web_responsive] (#569)
* [IMP] drawer-toggle

* [IMP] Hitbox of close drawer-toggle

* [IMP] Removed outline on menu item

* [IMP] Logo positionings

* [FIX] Try me on runbot button

* [REM] Reversed outline change
2021-03-18 01:50:42 +03:00
Jairo Llopis
d2729feef5 [FIX][web_responsive] Form padding, titles and buttons OK in XS
Small makeup to make it look good in XS screens.
2021-03-18 01:49:34 +03:00
Jairo Llopis
f69ae6c7f8 Fix problem with overflowing chatter widget. 2021-03-18 01:49:34 +03:00