Commit fab55e7
committed
[IMP] dms: CI artifact pipeline + Hoot suite + OWL 19.0 audit + view-toolbar collapse
Fork-only iteration on top of #3. Five distinct themes folded into one
squashed commit since this PR exists for runboat preview / stakeholder
review, not upstream review.
CI artifact pipeline (test-failure observability)
- `Upload screenshots from JS tests` step captures /tmp/odoo_tests/<DB>
on failure. Forward-port from the cookiecutter; companion template PR
at ledoent/oca-addons-repo-template#1.
- `Upload odoo server log on failure` step captures
/var/log/odoo/*.log + workspace + runner-temp.
- `workflow_dispatch:` so we can manually re-trigger when GitHub silently
throttles fork-PR runs after a push burst.
- checklog-odoo.cfg ignores `Killing chrome descendants` WARN
(benign browser_js cleanup; `OCA_ENABLE_CHECKLOG_ODOO=1` was treating
it as a build error).
Hoot test suite (tests/test_hoot.py + tests/test_backend_tours.py)
- tests/test_hoot.py wires HttpCase.browser_js with
`/web/tests?...&filter="@DMS"` — Hoot's `?filter=` defaults to fuzzy
character-order matching; the double-quoted exact-substring form
isolates @dms/... test paths from the bundled web-core suite.
- 9 Hoot test files run + pass under the wiring: dms_stat_bar,
file_preview_pane, preview_handlers, preview_registry,
file_kanban_buttons / _density / _mount / _list_renderer routing.
- `defineMailModels()` covers the mock-server base because dms depends on
mail; `expect.errors(N) + verifyErrors(patterns)` replaces the
array-of-objects form Hoot rejects.
OWL 19.0 readiness audit (per oca-review U/T pattern catalog)
- U7 (HIGH): delete dead static/src/js/views/file_kanban_controller.{xml,esm.js}.
The XML defined dms.FileKanbanView.Buttons via t-inherit="web.KanbanView.Buttons"
— the exact pattern that crashes at OWL render against 19.0's emptied
template. Not wired anywhere; the view uses the self-contained
dms.KanbanButtons template.
- U5 (MEDIUM): coerce boolean t-att-* attributes to explicit 'true'/'false'
strings. Owl serializes truthy booleans as a presence flag (<div data-loading>),
so CSS selectors `[data-loading="true"]` and tour selectors
`[aria-pressed="true"]` silently never matched. Applied to data-loading
on the stat bar and to aria-pressed on both density and preview toggles.
- U2 (style): convert 10 OWL 1 prototype-assignment idioms
(`Foo.template = "x"; Foo.props = {...}`) to OWL 2 static class fields
across 7 component classes. Cross-file `Renderer.template = "..."`
assignments lifted into the renderer class declarations where they belong.
View toolbar collapse (overlap fix)
- Both renderers were stacking four absolute-positioned floaters in the
top-right corner: preview-toggle pill (kanban + list), density toggle
(twice — once in file_kanban.scss, once shifted to right:160px inside
the kanban-split context). On list view this put the preview pill on
top of the column-header row immediately under Odoo's control panel.
- Replaced with `.o_dms_view_toolbar` — one in-flow strip above the
grid/list, populated with whatever view-level controls each renderer
needs (density btn-group + preview pill on kanban; preview pill only
on list, right-anchored via `__spacer { flex: 1 }`). Gone: 4
absolute-position rules, 2 `right: calc(40% + 12px)` shifts, 1
`display: none` density hack, all z-index battles.
Backend e2e tour
- tests/test_backend_tours.py::test_kanban_density_toggle drives
start_tour("/odoo", "dms_kanban_density_tour", login="admin"). Five
steps verify default density → click Compact → localStorage
persistence + data-attr propagation → restore Comfortable → cleanup.
Toolbar chrome renders even with zero records, so the tour is safe
under OCA CI's --without-demo=all.
Signed-off-by: Don Kendall <dkendall@ledoweb.com>1 parent 7fec59a commit fab55e7
29 files changed
Lines changed: 388 additions & 271 deletions
File tree
- .github/workflows
- dms
- static
- src
- js
- components
- fields
- path_json
- preview_binary
- views
- scss
- tests
- components
- tours
- views
- tests
- views
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
72 | 89 | | |
73 | 90 | | |
74 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
12 | 17 | | |
13 | 18 | | |
14 | 19 | | |
| |||
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
13 | 18 | | |
14 | 19 | | |
15 | 20 | | |
| |||
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
| |||
24 | 30 | | |
25 | 31 | | |
26 | 32 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
45 | 52 | | |
46 | 53 | | |
47 | 54 | | |
| |||
128 | 135 | | |
129 | 136 | | |
130 | 137 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | 23 | | |
46 | 24 | | |
47 | 25 | | |
| |||
54 | 32 | | |
55 | 33 | | |
56 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
57 | 83 | | |
58 | 84 | | |
59 | 85 | | |
60 | 86 | | |
61 | 87 | | |
62 | 88 | | |
63 | 89 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | 90 | | |
82 | 91 | | |
83 | 92 | | |
| |||
0 commit comments