diff --git a/web_app_drawer/README.rst b/web_responsive/README.rst similarity index 86% rename from web_app_drawer/README.rst rename to web_responsive/README.rst index 92e981fd..9b76a2ff 100755 --- a/web_app_drawer/README.rst +++ b/web_responsive/README.rst @@ -3,11 +3,15 @@ :alt: License: LGPL-3 ============== -Web App Drawer +Web Responsive ============== -This module moves the side navigation panel to a top menu bar. It also provides -an app drawer that is mobile-compliant. +This module provides a mobile compliant interface for Odoo Community web. + +Features: + + * New navigation with an App drawer + * Keyboard shortcuts for easier navigation Installation @@ -36,11 +40,12 @@ The following keyboard shortcuts are implemented: Known issues / Roadmap ====================== -* Provide keyboard navigation to secondary (top) menu +* Provide full menu search feature instead of just App search * Drag drawer from left to open in mobile * Figure out how to test focus on hidden elements for keyboard nav tests * If you resize the window, body gets a wrong ``overflow: auto`` css property and you need to refresh your view or open/close the app drawer to fix that. +* Override LESS styling to allow for responsive widget layouts Bug Tracker =========== diff --git a/web_app_drawer/__init__.py b/web_responsive/__init__.py similarity index 100% rename from web_app_drawer/__init__.py rename to web_responsive/__init__.py diff --git a/web_app_drawer/__openerp__.py b/web_responsive/__openerp__.py similarity index 65% rename from web_app_drawer/__openerp__.py rename to web_responsive/__openerp__.py index 8e1d64e1..a21ba8c7 100755 --- a/web_app_drawer/__openerp__.py +++ b/web_responsive/__openerp__.py @@ -3,12 +3,13 @@ # License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html). { - "name": "Web App Drawer", - "summary": "It moves the sidebar to a main nav and adds an app drawer", + "name": "Web Responsive", + "summary": "It provides a mobile compliant interface for Odoo Community " + "web", "version": "9.0.1.0.0", "category": "Website", "website": "https://laslabs.com/", - "author": "LasLabs, Odoo Community Association (OCA)", + "author": "LasLabs, Tecnativa, Odoo Community Association (OCA)", "license": "LGPL-3", "installable": True, "depends": [ diff --git a/web_app_drawer/static/description/icon.png b/web_responsive/static/description/icon.png similarity index 100% rename from web_app_drawer/static/description/icon.png rename to web_responsive/static/description/icon.png diff --git a/web_app_drawer/static/lib/css/drawer.3.2.0.css b/web_responsive/static/lib/css/drawer.3.2.0.css similarity index 100% rename from web_app_drawer/static/lib/css/drawer.3.2.0.css rename to web_responsive/static/lib/css/drawer.3.2.0.css diff --git a/web_app_drawer/static/lib/js/drawer.3.2.0.js b/web_responsive/static/lib/js/drawer.3.2.0.js similarity index 100% rename from web_app_drawer/static/lib/js/drawer.3.2.0.js rename to web_responsive/static/lib/js/drawer.3.2.0.js diff --git a/web_app_drawer/static/lib/js/iscroll-probe.5.2.0.js b/web_responsive/static/lib/js/iscroll-probe.5.2.0.js similarity index 100% rename from web_app_drawer/static/lib/js/iscroll-probe.5.2.0.js rename to web_responsive/static/lib/js/iscroll-probe.5.2.0.js diff --git a/web_app_drawer/static/src/js/web_app_drawer.js b/web_responsive/static/src/js/web_responsive.js similarity index 99% rename from web_app_drawer/static/src/js/web_app_drawer.js rename to web_responsive/static/src/js/web_responsive.js index 03af47de..db4851bb 100755 --- a/web_app_drawer/static/src/js/web_app_drawer.js +++ b/web_responsive/static/src/js/web_responsive.js @@ -1,7 +1,7 @@ /* Copyright 2016 LasLabs Inc. * License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */ -odoo.define('web_app_drawer', function(require) { +odoo.define('web_responsive', function(require) { 'use strict'; var $ = require('$'); diff --git a/web_app_drawer/static/src/less/app_drawer.less b/web_responsive/static/src/less/app_drawer.less similarity index 100% rename from web_app_drawer/static/src/less/app_drawer.less rename to web_responsive/static/src/less/app_drawer.less diff --git a/web_app_drawer/static/src/less/main.less b/web_responsive/static/src/less/main.less similarity index 100% rename from web_app_drawer/static/src/less/main.less rename to web_responsive/static/src/less/main.less diff --git a/web_app_drawer/static/src/less/navbar.less b/web_responsive/static/src/less/navbar.less similarity index 100% rename from web_app_drawer/static/src/less/navbar.less rename to web_responsive/static/src/less/navbar.less diff --git a/web_app_drawer/static/src/less/variables.less b/web_responsive/static/src/less/variables.less similarity index 100% rename from web_app_drawer/static/src/less/variables.less rename to web_responsive/static/src/less/variables.less diff --git a/web_app_drawer/static/tests/js/web_app_drawer.js b/web_responsive/static/tests/js/web_responsive.js similarity index 94% rename from web_app_drawer/static/tests/js/web_app_drawer.js rename to web_responsive/static/tests/js/web_responsive.js index d594730d..c1f96196 100755 --- a/web_app_drawer/static/tests/js/web_app_drawer.js +++ b/web_responsive/static/tests/js/web_responsive.js @@ -1,7 +1,7 @@ /* Copyright 2016 LasLabs Inc. * License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). */ -odoo.define_section('web_app_drawer', ['web_app_drawer'], function(test) { +odoo.define_section('web_responsive', ['web_responsive'], function(test) { "use strict"; // It provides a base drawer compatible interface for testing @@ -275,17 +275,4 @@ odoo.define_section('web_app_drawer', ['web_app_drawer'], function(test) { } ); - test('It should move the panel header to negative iScroll.y', - function(assert, AppDrawer) { - self.initInterface(AppDrawer); - self.drawer.$el.iScroll.y = -200; - self.drawer.onIScroll(); - var $header = $('#appDrawerAppPanelHead'); - assert.equal( - $header.css('transform'), - 'matrix(1, 0, 0, 1, 0, 200)' - ); - } - ); - }); diff --git a/web_app_drawer/tests/test_ui.py b/web_responsive/tests/test_ui.py similarity index 87% rename from web_app_drawer/tests/test_ui.py rename to web_responsive/tests/test_ui.py index 5b012736..70f34880 100755 --- a/web_app_drawer/tests/test_ui.py +++ b/web_responsive/tests/test_ui.py @@ -10,7 +10,7 @@ class TestUi(HttpCase): def test_ui_web(self): """Test backend tests.""" self.phantom_js( - "/web/tests?module=web_app_drawer", + "/web/tests?module=web_responsive", "", login="admin", ) diff --git a/web_app_drawer/views/assets.xml b/web_responsive/views/assets.xml similarity index 66% rename from web_app_drawer/views/assets.xml rename to web_responsive/views/assets.xml index 128bdb8c..15bd22a2 100644 --- a/web_app_drawer/views/assets.xml +++ b/web_responsive/views/assets.xml @@ -11,35 +11,35 @@