Commit Graph

442 Commits (692488a72219bd3bead737e9d48468c40b8212b7)

Author SHA1 Message Date
Alexandre Díaz 692488a722 black, isort 2025-01-28 01:31:26 +03:00
Alexandre Díaz 3f122ad826 [IMP] web_responsive: Support long titles 2025-01-28 01:31:26 +03:00
Alexandre Díaz 4fb55bb53a [IMP] web_responsive: Made chatter input & attachments scrollable 2025-01-28 01:31:26 +03:00
Alexandre Díaz c1e37460c0 [MIG] web_responsive: Migration to 13.0 2025-01-28 01:31:26 +03:00
Alexandre Díaz e245cda4ca [FIX] web_responsive: changed button box more initial position 2025-01-28 01:31:26 +03:00
Mathias Markl 6790f71915 Update web_responsive.scss 2025-01-28 01:31:26 +03:00
Alexandre Díaz 638f92edef [IMP] web_responsive: Performance when hide menus 2025-01-28 01:31:26 +03:00
Alexandre Díaz 900d70fd8a [IMP] web_responsive: Small refactor 'isWaiting' 2025-01-28 01:31:26 +03:00
Alexandre Díaz a69ba7ceeb [IMP] web_responsive: Don't show menu if waiting for an action to end 2025-01-28 01:31:26 +03:00
OCA-git-bot a4d4e402c0 [UPD] README.rst 2025-01-28 01:31:26 +03:00
Mathias Markl 12862a506d [FIX] web_responsive: Close Menu on Discard 2025-01-28 01:31:26 +03:00
Mathias Markl 20e1a06e7a [FIX] web_responsive: adapt AppDrawer Discard 2025-01-28 01:31:26 +03:00
Mathias Markl 7003e15e41 [FIX] web_responsive: AppDrawer Discard 2025-01-28 01:31:26 +03:00
Alexandre Díaz ec3f800e49 [FIX] web_responsive: Close AppDrawer 2025-01-28 01:31:26 +03:00
Alexandre Díaz b927a187e3 [IMP] web_responsive: Chatter on small screen 2025-01-28 01:31:26 +03:00
Alexandre Díaz 3f7c3fa7cd imp overflow 2025-01-28 01:31:26 +03:00
Alexandre Díaz 218960e2c6 [FIX] web_responsive: Chatter position 2025-01-28 01:31:26 +03:00
Alexandre Díaz 52d30d021b [IMP] web_responsive: Readme 2025-01-28 01:31:26 +03:00
Alexandre Díaz 5e43423003 [IMP] web_responsive: Refactor code 2025-01-28 01:31:26 +03:00
Alexandre Díaz 9bcd9bb0c9 [FIX] web_responsive: AppDrawer in Chromium 2025-01-28 01:31:26 +03:00
Alexandre Díaz 713b69a542 [IMP] web_responsive: Readme 2025-01-28 01:31:26 +03:00
Alexandre Díaz 45c7a6d420 [IMP] web_responsive: Menu wait for action 2025-01-28 01:31:26 +03:00
Alexandre Díaz 28af44b9f7 [IMP] web_responsive: Suggested changes 2025-01-28 01:31:26 +03:00
Alexandre Díaz 15335a0661 [IMP] web_responsive: AppMenu wait for load view 2025-01-28 01:31:26 +03:00
Alexandre Díaz 4a06068d08 [IMP] web_responsive: Support long title in form view 2025-01-28 01:31:26 +03:00
Alexandre Díaz 7bf737fbb1 [IMP] web_responsive: Sticky in tree view and form view 2025-01-28 01:31:26 +03:00
Alexandre Díaz 083e00f852 [IMP] web_responsive: chatter width 2025-01-28 01:31:26 +03:00
Jairo Llopis 2a9fbf9e4b [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.
2025-01-28 01:31:26 +03:00
Jairo Llopis d2226a0395 Update web_responsive/static/src/css/web_responsive.scss
Co-Authored-By: Tardo <dev@redneboa.es>
2025-01-28 01:31:26 +03:00
Alexandre Díaz 32d0ea659c [FIX+IMP] web_responsive: Chatter Topbar + fix #1189 + added gif 2025-01-28 01:31:26 +03:00
Alexandre Díaz 3e0f263def [IMP] Sticky chatter topbar 2025-01-28 01:31:26 +03:00
Jairo Llopis fa981bd1b0 [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.
2025-01-28 01:31:26 +03:00
Jairo Llopis 5c90e51b21 [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.
2025-01-28 01:31:26 +03:00
Jairo Llopis 569ee644c3 [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!
2025-01-28 01:31:26 +03:00
OCA Transbot fc14d7ec42 Update translation files 2025-01-28 01:31:26 +03:00
OCA Git Bot bf36373c08 [UPD] README.rst 2025-01-28 01:31:26 +03:00
Jairo Llopis bec60fa007 [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.
2025-01-28 01:31:26 +03:00
Jairo Llopis afbe90b6e7 [FIX] web_responsive: Complete search feature forward-porting 2025-01-28 01:31:26 +03:00
Dave Lasley ad1373ed4b [IMP] web_responsive: Add search feature (#838)
* Add feature to search menus in the app drawer
* Switch model to RPC
2025-01-28 01:31:26 +03:00
OCA Git Bot 84119d4117 [UPD] README.rst 2025-01-28 01:31:26 +03:00
Pedro M. Baeza d0aded0656 [IMP] web_responsive: Add known issue note about sticky 2025-01-28 01:31:26 +03:00
QS5ELkMu 2d4b91fe6d [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
2025-01-28 01:31:26 +03:00
QS5ELkMu 0bdd8862a4 [FIX][11.0][web_responsive] Views without sheet 2025-01-28 01:31:26 +03:00
QS5ELkMu 3d28511188 [IMP] Add sticky header & footer in list view 2025-01-28 01:31:26 +03:00
QS5ELkMu 67ce5e29cd [IMP] Sticky Statusbar 2025-01-28 01:31:26 +03:00
Jairo Llopis 61e1ec9edd Fix linter 2025-01-28 01:31:26 +03:00
QS5ELkMu 3c634ab69e [IMP] Adding res.users chatter_position read/write test 2025-01-28 01:31:26 +03:00
QS5ELkMu e6df7a49d2 [IMP] Code 2025-01-28 01:31:26 +03:00
QS5ELkMu 4a0089ab42 [CLEAN] Comments 2025-01-28 01:31:26 +03:00
QS5ELkMu 967ceae491 [FIX] Read/Write permissions 2025-01-28 01:31:26 +03:00