Commit Graph

11 Commits

Author SHA1 Message Date
Stéphane Bidoul
dee955fc26 pre-commit update: prettier xml indent 2020-03-02 11:50:56 +01:00
Jairo Llopis
77b09d555c [IMP] pre-commit run after update
Includes some manual fixes to silent ESLint warnings.
2020-01-30 10:52:55 +00:00
Alexandre Díaz
05230893ad [IMP] web-responsive: Document Viewer 2020-01-22 12:57:12 +01:00
Jairo Llopis
6215c05bc2 [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.
2019-10-13 23:12:04 +02:00
Alexandre Díaz
9ad63fbb17 [FIX+IMP] web_responsive: Chatter Topbar + fix #1189 + added gif 2019-10-13 23:12:04 +02:00
Jairo Llopis
25eb30edd1 [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.
2019-10-13 23:12:04 +02:00
Jairo Llopis
e8670da0b7 [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!
2019-10-13 23:12:04 +02:00
Dave Lasley
7977d82189 [IMP] web_responsive: Add search feature (#838)
* Add feature to search menus in the app drawer
* Switch model to RPC
2019-10-13 23:12:04 +02:00
QS5ELkMu
55882ab52a [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
2019-10-13 23:12:04 +02:00
Jairo Llopis
81d64de014 [FIX][web_responsive] Long-named multicompanies nice in XS (#688) 2019-10-13 23:12:04 +02:00
Dave Lasley
572fd80d0e [FIX] web_responsive: Change edit accesskey
* Change accesskey for `edit` in form view back to `e` to fix #587
2019-10-13 23:12:04 +02:00