Commit Graph

58 Commits

Author SHA1 Message Date
Alexandre Díaz
2be4a248d2 [IMP] web_responsive: Support long titles 2023-03-01 15:33:26 +01:00
Alexandre Díaz
66bffe3991 [IMP] web_responsive: Made chatter input & attachments scrollable 2023-03-01 15:33:26 +01:00
Alexandre Díaz
51a92835e2 [MIG] web_responsive: Migration to 13.0 2023-03-01 15:33:26 +01:00
Alexandre Díaz
de747ebef6 [FIX] web_responsive: changed button box more initial position 2023-03-01 15:33:26 +01:00
Mathias Markl
2763815e8d Update web_responsive.scss 2023-03-01 15:33:26 +01:00
Alexandre Díaz
46e6fb334f [IMP] web_responsive: Performance when hide menus 2023-03-01 15:33:26 +01:00
Alexandre Díaz
1e39ee2a2d [IMP] web_responsive: Small refactor 'isWaiting' 2023-03-01 15:33:26 +01:00
Alexandre Díaz
dafd3c75cb [IMP] web_responsive: Don't show menu if waiting for an action to end 2023-03-01 15:33:26 +01:00
Mathias Markl
5fc120e224 [FIX] web_responsive: Close Menu on Discard 2023-03-01 15:33:26 +01:00
Mathias Markl
4b68c7101e [FIX] web_responsive: adapt AppDrawer Discard 2023-03-01 15:33:26 +01:00
Mathias Markl
eab63387b3 [FIX] web_responsive: AppDrawer Discard 2023-03-01 15:33:26 +01:00
Alexandre Díaz
0cb1e72d23 [FIX] web_responsive: Close AppDrawer 2023-03-01 15:33:26 +01:00
Alexandre Díaz
1a05004294 [IMP] web_responsive: Chatter on small screen 2023-03-01 15:33:26 +01:00
Alexandre Díaz
47cad2f7bc imp overflow 2023-03-01 15:33:26 +01:00
Alexandre Díaz
5866e140a1 [FIX] web_responsive: Chatter position 2023-03-01 15:33:26 +01:00
Alexandre Díaz
09724c8f62 [IMP] web_responsive: Refactor code 2023-03-01 15:33:26 +01:00
Alexandre Díaz
d98ffa0458 [FIX] web_responsive: AppDrawer in Chromium 2023-03-01 15:33:26 +01:00
Alexandre Díaz
3fe224123c [IMP] web_responsive: Menu wait for action 2023-03-01 15:33:26 +01:00
Alexandre Díaz
7151c254ef [IMP] web_responsive: Suggested changes 2023-03-01 15:33:26 +01:00
Alexandre Díaz
82ca2888b8 [IMP] web_responsive: AppMenu wait for load view 2023-03-01 15:33:26 +01:00
Alexandre Díaz
220fed1f79 [IMP] web_responsive: Support long title in form view 2023-03-01 15:33:26 +01:00
Alexandre Díaz
dfc54d4f55 [IMP] web_responsive: Sticky in tree view and form view 2023-03-01 15:33:26 +01:00
Alexandre Díaz
069ea67f6c [IMP] web_responsive: chatter width 2023-03-01 15:33:26 +01:00
Jairo Llopis
6235617679 [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.
2023-03-01 15:33:26 +01:00
Jairo Llopis
3856b68531 Update web_responsive/static/src/css/web_responsive.scss
Co-Authored-By: Tardo <dev@redneboa.es>
2023-03-01 15:33:26 +01:00
Alexandre Díaz
fa0330c2e9 [FIX+IMP] web_responsive: Chatter Topbar + fix #1189 + added gif 2023-03-01 15:33:26 +01:00
Alexandre Díaz
6e982655fa [IMP] Sticky chatter topbar 2023-03-01 15:33:26 +01:00
Jairo Llopis
cced5e2588 [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.
2023-03-01 15:33:26 +01:00
Jairo Llopis
e32beeca13 [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.
2023-03-01 15:33:26 +01:00
Jairo Llopis
29d50dda8b [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!
2023-03-01 15:33:26 +01:00
Jairo Llopis
22064af3b7 [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.
2023-03-01 15:33:26 +01:00
Jairo Llopis
492f5e28a1 [FIX] web_responsive: Complete search feature forward-porting 2023-03-01 15:33:26 +01:00
Dave Lasley
d3becfe1cb [IMP] web_responsive: Add search feature (#838)
* Add feature to search menus in the app drawer
* Switch model to RPC
2023-03-01 15:33:26 +01:00
QS5ELkMu
0f395803fe [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
2023-03-01 15:33:26 +01:00
QS5ELkMu
1e726590ad [FIX][11.0][web_responsive] Views without sheet 2023-03-01 15:33:26 +01:00
QS5ELkMu
10e3935df9 [IMP] Add sticky header & footer in list view 2023-03-01 15:33:26 +01:00
QS5ELkMu
211ba4552f [IMP] Sticky Statusbar 2023-03-01 15:33:26 +01:00
QS5ELkMu
b7b65ec430 [FIX] Chatter Position 2023-03-01 15:33:26 +01:00
QS5ELkMu
702203920d [IMP] web_responsive: Possibility of putting the chatter in the right (#951) 2023-03-01 15:33:26 +01:00
fanha99
0f00e29faf [FIX] web_responsive: Hide header when print directly from browser issues 808 (#809)
Closes #808
2023-03-01 15:33:26 +01:00
Dave Lasley
1e43618778 [FIX] web_responsive: Menu Height on Init
* Add a call to the window resize method during init to fix OCA#773
2023-03-01 15:33:26 +01:00
Dave Lasley
13a3f61212 [FIX] web_responsive: Chrome Slow Scrolling
* Update to iScoll bleeding edge to fix #741
2023-03-01 15:33:26 +01:00
Angel Moya Pardo
0614d70b07 UPDT version 2023-03-01 15:33:26 +01:00
Sergio Teruel Albert
2d750bdad5 [10.0][IMP] web_responsive: Load default kanban view for small screen 2023-03-01 15:33:26 +01:00
Jairo Llopis
a54f6ecc0f [FIX][web_responsive] Long-named multicompanies nice in XS (#688) 2023-03-01 15:33:26 +01:00
Dennis Sluijk
56ffa63a0e [10.0][IMP][web_responsive] Make search bar sticky (#633)
* Initial commit

* Initial commit
2023-03-01 15:33:26 +01:00
Pedro M. Baeza
d5305b39ad [FIX] web_responsive: Execution permission 2023-03-01 15:33:26 +01:00
Jairo Llopis
9a256fc548 [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.
2023-03-01 15:33:26 +01:00
Dave Lasley
6df6f14b2d [FIX] web_responsive: Change edit accesskey
* Change accesskey for `edit` in form view back to `e` to fix #587
2023-03-01 15:33:26 +01:00
Dennis Sluijk
ad0ff87c62 [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
2023-03-01 15:33:26 +01:00